You are not logged in.

#1 2008-11-01 06:58:52

mattfitz
Member
Registered: 2008-10-27
Posts: 27

/etc/acpi/handler.sh not handling power events

I posted a related problem in the Newbie Corner but it turned into a more laptop/acpi specific problem, so I'll try again here. Basically, my /etc/acpi/handler.sh is apparently not handling my power events. I am running the laptop-mode and acpid daemons, and I have pm-utils installed, but even though i have added /usr/bin/pm-hibernate to the button/lid section my laptop does not hibernate when the lid is shut. However, when the lid is shut the screen is shut off, and when on battery power the screen dims. So my question to the laptop experts is this: if handler.sh is not controlling these events, what is?

Offline

#2 2008-11-01 13:07:34

Profjim
Member
From: NYC
Registered: 2008-03-24
Posts: 658

Re: /etc/acpi/handler.sh not handling power events

laptop-mode-tools may be controlling it. You really only need acpi and pm-utils. Try uninstalling laptop-mode-tools, and tweak your acpi handler script to log EVERY input it gets, then try shutting your lid and try going from AC->battery and inspect what gets logged. Then you can confirm that the script is really trying to capture the specific events your laptop generates.

(A bit) more here: http://bbs.archlinux.org/viewtopic.php? … 67#p433667

Offline

#3 2008-11-03 03:27:53

mattfitz
Member
Registered: 2008-10-27
Posts: 27

Re: /etc/acpi/handler.sh not handling power events

Thanks for the help. I'll be out of town for a week but I'll give this a shot when I return and post my results.

Offline

#4 2008-11-03 04:43:04

Profjim
Member
From: NYC
Registered: 2008-03-24
Posts: 658

Re: /etc/acpi/handler.sh not handling power events

Just remembered: you don't need to tweak the acpi handler script to log events; just use the acpi_listen utility included in the acpid package from extra.

Offline

#5 2008-11-12 09:32:50

mattfitz
Member
Registered: 2008-10-27
Posts: 27

Re: /etc/acpi/handler.sh not handling power events

I used acpi_listen and acpid was indeed logging the lid events. Exasperated, I tried to run /usr/bin/pm-hibernate from the command line, only to find that the file didn't exist! After some searching I found pm-hibernate in /usr/sbin. It's always the simple, stupid things that you miss that cause the biggest headaches. Anyways, thanks a lot for the help, now I can finally go on to configuring acpi to my liking.

Offline

#6 2008-11-12 09:50:03

Profjim
Member
From: NYC
Registered: 2008-03-24
Posts: 658

Re: /etc/acpi/handler.sh not handling power events

Glad you're back on track. Good luck.

Offline

Board footer

Powered by FluxBB