Re: [ACPI-sppt] Problem with poweroff (was Re: plz help ACPI)

Matt Gibson <[email protected]>
Newsgroups gmane.linux.acpi.support
Organization The Wardrobe Happy Cow Emporium
Message-ID <[email protected]>
On Monday 07 Jul 2003 22:17, lu jun wrote:
> Here is the file.

Thanks for the help, lu jun.  Turns out the answer was a bit simpler than 
that, though -- my kernel was okay.

So, for anyone searching the list archives to find out why their SuSE 7.0, 
7.1 or 7.2 system doesn't seem to poweroff properly using the ACPI from more 
recent kernels (I was using 2.4.18 and 2.4.21 before, but now I'm using 
2.6...), the answer is this:

The script /etc/rc.d/reboot contains the line:

	if test -e /proc/apm -o -e /proc/sys/acpi ; then ....

...and this is how it detects whether to pass the "-p" (poweroff) flag to 
"halt".  But with more recent kernels than SuSE 7 started off with, the acpi 
directory is now immediately under /proc.  So, if you change the 
"/proc/sys/acpi" to just "/proc/acpi", then it all works fine.

Cheers,

Matt

-- 
"It's the small gaps between the rain that count,
 and learning how to live amongst them."
	      -- Jeff Noon


-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.