View previous topic :: View next topic |
Author |
Message |
Gremo Guru
Joined: 27 Feb 2006 Posts: 450
|
Posted: Wed Mar 01, 2006 4:47 am Post subject: no ac_adapter events (but battery) |
|
|
Hi,
I have followed the gentoo power managment guide, but have some problems with ac_adapter events not recognized:
Determining ACPI events for changing the power source:
Code: |
# tail -f /var/log/acpid | grep "received event"
|
From AC to battery:
Code: |
[Wed Mar 1 05:39:03 2006] received event "battery BAT0 00000080 00000001"
[Wed Mar 1 05:39:03 2006] received event "processor CPU0 00000080 00000000"
[Wed Mar 1 05:39:03 2006] received event "processor CPU0 00000081 00000000"
|
From battery to AC:
Code: |
[Wed Mar 1 05:36:22 2006] received event "processor CPU0 00000080 00000000"
[Wed Mar 1 05:36:23 2006] received event "processor CPU0 00000081 00000000"
|
what's wrong?why can i see battery events and not ac ones?
thank you |
|
Back to top |
|
|
voodoodoc Apprentice
Joined: 01 Feb 2004 Posts: 158
|
Posted: Wed Mar 01, 2006 3:43 pm Post subject: |
|
|
Well for one thing, instead of using tail to read the log file, cat it out, or pipe it to less / more and see if the events are perhaps listed just did not occur in the last 10 lines which is what tail reads by default. |
|
Back to top |
|
|
Earthwings Bodhisattva
Joined: 14 Apr 2003 Posts: 7753 Location: Germany
|
Posted: Wed Mar 01, 2006 3:47 pm Post subject: |
|
|
Verify that the ac module is loaded (of you didn't compile it into the kernel) and that there are no error messages in dmesg.
Even if you don't get the ac_adapter event, chances are high you can use the processor event instead. _________________ KDE |
|
Back to top |
|
|
Gremo Guru
Joined: 27 Feb 2006 Posts: 450
|
Posted: Thu Mar 02, 2006 3:29 pm Post subject: |
|
|
Earthwings wrote: | Verify that the ac module is loaded (of you didn't compile it into the kernel) and that there are no error messages in dmesg.
Even if you don't get the ac_adapter event, chances are high you can use the processor event instead. |
built into the kernel |
|
Back to top |
|
|
Earthwings Bodhisattva
Joined: 14 Apr 2003 Posts: 7753 Location: Germany
|
Posted: Thu Mar 02, 2006 4:01 pm Post subject: |
|
|
I guess it will work when you replace ac_adapter with processor: /etc/acpi/events/pmg_ac_adapter wrote: |
# replace "ac_adapter" below with the event generated on your laptop
# For example, ac_adapter.* will match ac_adapter AC 00000080 00000000
event=processor.*
action=/etc/acpi/actions/pmg_switch_runlevel.sh %e |
_________________ KDE |
|
Back to top |
|
|
|