You are not logged in.

#1 2006-02-17 03:28:40

stonecrest
Member
From: Boulder
Registered: 2005-01-22
Posts: 1,190

button/lid (no /proc/acpi/events?)

I must be missing something obvious but it seem that when I close my laptop's lid, the button/lid section of handler.sh is not triggered. I have acpi running fine, it even seems that other events are successfully triggered (like ac_adapter), but not button/lid. Essentially I'm trying to run 'powersave -u' when I close the lid.

Help please?


I am a gated community.

Offline

#2 2006-02-17 11:45:06

brain0
Developer
From: Aachen - Germany
Registered: 2005-01-03
Posts: 1,382

Re: button/lid (no /proc/acpi/events?)

You might have to modify the handler.sh script. Try the following as root (you might have to stop acpid first):

cat < /proc/acpi/event

Then close the LID and reopen it. Then check the messages and compare them to the triggers on the handler.sh script. If you can't figure it out yourself, just post the output here.

Offline

#3 2006-02-17 18:14:02

stonecrest
Member
From: Boulder
Registered: 2005-01-22
Posts: 1,190

Re: button/lid (no /proc/acpi/events?)

Thanks for the reply. It seems like this might be part of a bigger problem though, because I don't seem to have a /proc/acpi/event. What I have in /proc/acpi are ac_adapter, battery, button, embedded_controller, fan, power_resource, processor, thermal_zone, and video.

Also, when I start my computer, Arch says that the acpi daemon started successfully. But if I stop it (also successfully) and then try to start it again, it always fails with "acpid: can't open /proc/acpi/event: Device or resource busy".

Here's some sample output from /var/log/acpid which doesn't seem to be very useful. The exiting lines are probably me manually stopping acpid, although it never starts up again unless I reboot..

[Fri Feb 17 10:59:02 2006] starting up
[Fri Feb 17 10:59:02 2006] 2 rules loaded
[Fri Feb 17 10:59:07 2006] client connected from 2788[82:82]
[Fri Feb 17 10:59:07 2006] 1 client rule loaded
[Fri Feb 17 10:59:39 2006] exiting
[Fri Feb 17 11:01:34 2006] starting up
[Fri Feb 17 11:01:34 2006] 2 rules loaded
[Fri Feb 17 11:01:39 2006] client connected from 2729[82:82]
[Fri Feb 17 11:01:39 2006] 1 client rule loaded
[Fri Feb 17 11:02:12 2006] received event "thermal_zone C176 00000081 00000000"
[Fri Feb 17 11:02:12 2006] notifying client 2729[82:82]
[Fri Feb 17 11:02:12 2006] executing action "/etc/acpi/handler.sh thermal_zone C176 00000081 00000000"
[Fri Feb 17 11:02:12 2006] BEGIN HANDLER MESSAGES
cat: /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_min_freq: No such file or directory
cat: /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq: No such file or directory
[Fri Feb 17 11:02:12 2006] END HANDLER MESSAGES
[Fri Feb 17 11:02:12 2006] action exited with status 0
[Fri Feb 17 11:02:12 2006] executing action "/etc/acpi/handler.sh thermal_zone C176 00000081 00000000"
[Fri Feb 17 11:02:12 2006] BEGIN HANDLER MESSAGES
cat: /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_min_freq: No such file or directory
cat: /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq: No such file or directory
[Fri Feb 17 11:02:12 2006] END HANDLER MESSAGES
[Fri Feb 17 11:02:12 2006] action exited with status 0
[Fri Feb 17 11:02:12 2006] completed event "thermal_zone C176 00000081 00000000"
[Fri Feb 17 11:08:30 2006] exiting

Now I'm really confused.


I am a gated community.

Offline

#4 2006-02-17 18:55:31

brain0
Developer
From: Aachen - Germany
Registered: 2005-01-03
Posts: 1,382

Re: button/lid (no /proc/acpi/events?)

I am confused, too. The log indicates that you do receive events, but ACPI events are afaik only captured by /proc/acpi/event. Maybe this has changed, but I doubt it.

Offline

Board footer

Powered by FluxBB