auto poweroff

Mark J. Dulcey mark at buttery.org
Sat Jul 3 11:52:01 EDT 2004


Rajesh Monty wrote:
> Guys/Gals  
> I installed latest gentoo release (2.4.25-gentoo-r3) on my Sony Desktop. Then went ahead and recompiled the kernel with apm support in it. Here is  what it has:
> 
> #grep -i apm /proc/config
> CONFIG_APM=y
> CONFIG_APM_IGNORE_USER_SUSPEND=y
> CONFIG_APM_DO_ENABLE=y
> CONFIG_APM_CPU_IDLE=y
> CONFIG_APM_DISPLAY_BLANK=y
> CONFIG_APM_RTC_IS_GMT=y
> CONFIG_APM_ALLOW_INTS=y
> CONFIG_APM_REAL_MODE_POWER_OFF=y
> So, all options are turned on.
> However, an 'init 0' or 'shutdown now' or 'poweroff' doesn't turn the box off. It shuts the machine down normally but no poweroff.
> Any other params I need to enable in the kernel?
> 
> Earlier installation of Windows XP and Xandros on the same box would indeed turn off the power so BIOS is probably set correctly. What else might be missing?

If that's a sufficiently new box, it's probably using ACPI rather than 
APM; its BIOS may not even have any APM support. You might want to try 
that, though if you really want to use ACPI with Linux, you might be 
better off with a 2.6 kernel.



More information about the Discuss mailing list