Re: System hang when trying to enter sleep/standby state
From: Jens Haug <hidden>
Date: 2003-02-13 06:59:07
I would recommend never, ever doing 'echo 5 > /proc/acpi/sleep', especially if you're trying to suspend the system.
It's not worse than pushing the power button on a normal system (or hold the power button on an ACPI system).
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).
The regular user can't write anything to that file - this must be root. He's supposed to know what he's doing. If he wants to turn the machine off without halting the system, then that's his choice. Think of something like an embedded system to control a machine. Many machines have an emergency off whith a huge red button. This is the software version of this red button. Your software can press this if you thing that's necessary.
Andy, I recommend removing that from 2.4, and I'll send you a patch for 2.5..
I'd like to have it in. I don't know what I could ever use it for, but I'd really prefer to have this possibility. Jens -- Jens Haug IKFF Universität Stuttgart Tel. 0711/685-6422 Pfaffenwaldring 9 Fax 0711/685-6356 70550 Stuttgart haug-X6ztD3ggwzuBAmxm6OvjtTjhTm2NLCe8@public.gmane.org ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf