LinHES Forums
http://forums.linhes.org/

Power button
http://forums.linhes.org/viewtopic.php?f=5&t=3411
Page 1 of 1

Author:  tndotnet [ Tue Feb 01, 2005 11:25 am ]
Post subject:  Power button

Hi all,
I have Knoppmyth installed and I would like to avoid hitting the reset or power button where the system crashing down. How do I set it up to catch these events to invoke a normal shutdown action.

Thanks,
Tien Nguyen

Author:  willem [ Wed Feb 02, 2005 2:56 am ]
Post subject: 

apmd can take care of this for you (provided your BIOS is not set to immediately switch off the power).
The following script:

Code:
/etc/apm/apmd_proxy


is run by apmd. There is a lot of comments added explaining the inner workings. Reading through it should get you started..

Author:  tndotnet [ Thu Feb 03, 2005 11:23 am ]
Post subject: 

Thanks for your pointer. Still reading up on apmd_proxy stuffs. But in the mean time, in my syslog at boot up it show:

====
Feb 3 08:59:02 mythtv kernel: apm: BIOS version 1.2 Flags 0x07 (Driver version 1.16ac)
Feb 3 08:59:02 mythtv kernel: apm: overridden by ACPI.
Feb 3 08:59:02 mythtv modprobe: FATAL: Error inserting apm (/lib/modules/2.6.9-chw-2/kernel/arch/i386/kernel/apm.ko): No such device
Feb 3 08:59:02 mythtv kernel: ACPI: PCI interrupt 0000:00:02.0[A] -> GSI 16 (level, low) -> IRQ 16
=====

Does it mean this system does not have APM support?

Thanks,

Author:  willem [ Fri Feb 04, 2005 1:42 am ]
Post subject: 

Most (all?) PCs since let's say PII have power management. BIOS manufacturers tend to use Windows as their sole testing platform so APM/ACPI things do not always work in Linux.
However in your case my guess is that power management is disabled in the BIOS. Check that and enable it again if nescessary.
Another option would be that your kernel does not have all the required components for APM support. I see you use a 2.6 kernel so I take it you recompiled? Don't know which components are needed in the kernel. You have an apm.ko module which seems like a good start.
The bootloader could also be set to disable apm. Do you have apm=off in the append line of /etc/lilo.conf?

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/