standby resumes immediately in 2.6.0-test8
Hi,
I am trying to get "standby" to work on my Sony vaio laptop. I did:
echo -n "standby" > /sys/power/state
But this only flashes the screen once (in X this is more noticeable) and resumes immediately.
Dmesg shows:
PM: Preparing system for suspend
Stopping tasks:
============================================================================| Restarting tasks... done
I am using 2.6.0-test8 with suspend and sleep states enabled. All other ACPI functions seems to work fine, my laptop is an R505DL.
How can I debug this?
- Aviram
-------------------------------------------------------
This SF.net email is sponsored by: The SF.net Donation Program. Do you like what SourceForge.net is doing for the Open Source Community? Make a contribution, and help us add new features and functionality. Click here: http://sourceforge.net/donate/
A message that is not in the archive (sent off-list or not yet received): 200310231630.21392.aviram-koYqR8i3DjZZkMgn48OZqdBPR1lH4CV8@public.gmane.org
Quoted 7 lines · Aviram Jenik
Hi,
I am trying to get "standby" to work on my Sony vaio laptop. I did:
echo -n "standby" >/sys/power/stateBut this only flashes the screen once (in X this is more noticeable) and resumes immediately.
You might try
sleep 1; echo -n "standby" > /sys/power/state
I have the feeling that the "release key" event othe return key wakes the computer up. With the sleep 1; the "release key" event occurs while the computer is not yet suspended.
That might be considered a bug, by the way.
Éric Brunet
-------------------------------------------------------
This SF.net email is sponsored by: The SF.net Donation Program. Do you like what SourceForge.net is doing for the Open Source Community? Make a contribution, and help us add new features and functionality. Click here: http://sourceforge.net/donate/
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 9 lines · Éric Brunet
Quoted 7 lines · Aviram Jenik
Hi,
I am trying to get "standby" to work on my Sony vaio laptop. I did:
echo -n "standby" >/sys/power/stateBut this only flashes the screen once (in X this is more noticeable) and resumes immediately.
Quoted 8 lines
You might try
sleep 1; echo -n "standby" >
/sys/power/stateI have the feeling that the "release key" event othe return key wakes the computer up. With the sleep 1; the "release key" event occurs while the computer is not yet suspended.
I tried it, but that didn't help. I even booted with init=/bin/sh to make sure nothing is running (and no modules are loaded) and tried the line above - again the resume was immediate.
It *does* look like something wakes the computer up immediately - but what can it be?
- Aviram
-------------------------------------------------------
This SF.net email is sponsored by: The SF.net Donation Program. Do you like what SourceForge.net is doing for the Open Source Community? Make a contribution, and help us add new features and functionality. Click here: http://sourceforge.net/donate/
A message that is not in the archive (sent off-list or not yet received): 200310251516.50547.aviram-koYqR8i3DjZZkMgn48OZqdBPR1lH4CV8@public.gmane.org
Quoted 3 lines
It *does* look like something wakes the computer up immediately - but what can it be?
Could you please do
# echo -n standby > /sys/power/state # echo $?
and report whether that says '0' or '1'?
Also, please send the output of 'cat /proc/acpi/sleep' ? If "S1" is not present, then your system does not support standby, and it will not work. Otherwise, we truly do have a bug..
Thanks,
Pat
-------------------------------------------------------
This SF.net email is sponsored by: The SF.net Donation Program. Do you like what SourceForge.net is doing for the Open Source Community? Make a contribution, and help us add new features and functionality. Click here: http://sourceforge.net/donate/
A message that is not in the archive (sent off-list or not yet received): Pine.LNX.4.44.0310271050240.13116-100000-L1xM/[email protected]
Quoted 7 lines · Patrick Mochel
Quoted 2 lines
It *does* look like something wakes the computer up immediately - but what can it be?
Could you please do
# echo -n standby > /sys/power/state # echo $?
# echo -n standby > /sys/power/state # echo $? 1
Quoted 2 lines
Also, please send the output of 'cat
/proc/acpi/sleep' ?
# cat /proc/acpi/sleep S0 S3 S4 S5
Quoted 2 lines
If "S1" is not
present, then your system does not support standby, and it will not work.
I guess not :-(
For the record, it's a Sony Vaio R505DL.
- Aviram
-------------------------------------------------------
This SF.net email is sponsored by: The SF.net Donation Program. Do you like what SourceForge.net is doing for the Open Source Community? Make a contribution, and help us add new features and functionality. Click here: http://sourceforge.net/donate/
Quoted 1 line · Patrick Mochel
# echo -n standby > /sys/power/state
Is there a certain reason why
# echo standby > /sys/power/state
(also without -n) is not accepted by the code?
Regards,
Bas.
-------------------------------------------------------
This SF.net email is sponsored by: The SF.net Donation Program. Do you like what SourceForge.net is doing for the Open Source Community? Make a contribution, and help us add new features and functionality. Click here: http://sourceforge.net/donate/
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 8 lines
Quoted 2 lines
# echo -n standby > /sys/power/stateIs there a certain reason why
# echo standby > /sys/power/state(also without -n) is not accepted by the code?
It's just pedantic about the parsing, which saves a couple of lines of code. If it's too inconvenient, please use a script to mask it. :)
Pat
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/