Thread (1 message) 1 message, 1 author, 2003-02-12

Re: System hang when trying to enter sleep/standby state

From: Patrick Mochel <hidden>
Date: 2003-02-12 16:47:59

On 11 Feb 2003, Erik van Pienbroek wrote:
Hi,

I've experimented a little bit more with ACPI and found out the
following things :
With kernel 2.4.21-pre4 when I tried to echo "5" to /proc/acpi/sleep
the console would be killed an the following Oops appeared in the logs :
I would recommend never, ever doing 'echo 5 > /proc/acpi/sleep', 
especially if you're trying to suspend the system. 

S5 (the state the system enters when you do that) is defined as 'Soft 
Off'. It is equivalent to what ACPI does when you shut down the system and 
it automatically powers it off for you. You cannot resume from it; you 
must restart the machine. 

The reason it's defined by the spec is to a) allow software to power down 
the system, and b) allow some events to trigger a power on by the firmware 
(like wake-on-lan). 

ACPI should not allow a user to write '5' to that file. It used to be that 
way, but someone clever decided that that interface should support _all_ 
sleep states. (It might have been me, in one of my finer moments). 


Andy, I recommend removing that from 2.4, and I'll send you a patch for 
2.5..

	-pat



-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help