View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 4 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
 Post subject: Power button
PostPosted: Tue Feb 01, 2005 11:25 am 
Offline
Joined: Tue Feb 01, 2005 11:22 am
Posts: 2
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


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 02, 2005 2:56 am 
Offline
Joined: Tue Feb 03, 2004 3:23 am
Posts: 159
Location: Friesland, The Netherlands
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..


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 03, 2005 11:23 am 
Offline
Joined: Tue Feb 01, 2005 11:22 am
Posts: 2
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,


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 04, 2005 1:42 am 
Offline
Joined: Tue Feb 03, 2004 3:23 am
Posts: 159
Location: Friesland, The Netherlands
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?


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu