Hi I am setting up my ACPI on my notebook and have come across a small problem. I am setting the events in the /etc/acpi/events/default config file. Now I have got the ac_adapter event working nicely with speedfreq. Now I want to setup my power button and sleep button.
This is from the acpid log file: [Sat Apr 2 00:16:30 2005] starting up [Sat Apr 2 00:16:30 2005] 1 rule loaded [Sat Apr 2 00:16:35 2005] received event "button/lid LID 00000080 00000005" [Sat Apr 2 00:16:35 2005] completed event "button/lid LID 00000080 00000005" [Sat Apr 2 00:16:39 2005] received event "button/lid LID 00000080 00000006" [Sat Apr 2 00:16:39 2005] completed event "button/lid LID 00000080 00000006" [Sat Apr 2 00:19:36 2005] received event "button/sleep SLPB 00000080 00000002" [Sat Apr 2 00:19:36 2005] completed event "button/sleep SLPB 00000080 00000002" [Sat Apr 2 00:20:05 2005] received event "button/power PWRF 00000080 00000002" [Sat Apr 2 00:20:05 2005] completed event "button/power PWRF 00000080 00000002" [Sat Apr 2 00:21:32 2005] exiting As you can see the acpid sees the sleep button lid and power button being triggered. Now it is just a matter of getting it to do something with the event. Here is my /etc/acpi/events/default file: event=button power.* action=/etc/acpi/sleep.sh #action=/sbin/init 0 event=button sleep.* action=/etc/acpi/sleep.sh event=button[ /]lid.* action=/etc/acpi/sleep.sh event=ac_adapter.* action=/etc/acpi/ac.sh As I said above my ac_adapter works perfectly its just now to get the events working for the others. All the sleep.sh scipt does is tell logger to log "Zzz" so that I can check whether the event is working or not. Any ideas as to why it is not working correctly? I suspect it is the way I am defining the events seeing that the sleep power and lid are all under the buttons director where ac_adapter is on in its own directory. Thanks Cheers Rav -- gentoo-user@gentoo.org mailing list