Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
no ac_adapter events (but battery)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Gremo
Guru
Guru


Joined: 27 Feb 2006
Posts: 450

PostPosted: Wed Mar 01, 2006 4:47 am    Post subject: no ac_adapter events (but battery) Reply with quote

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
View user's profile Send private message
voodoodoc
Apprentice
Apprentice


Joined: 01 Feb 2004
Posts: 158

PostPosted: Wed Mar 01, 2006 3:43 pm    Post subject: Reply with quote

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
View user's profile Send private message
Earthwings
Bodhisattva
Bodhisattva


Joined: 14 Apr 2003
Posts: 7753
Location: Germany

PostPosted: Wed Mar 01, 2006 3:47 pm    Post subject: Reply with quote

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
View user's profile Send private message
Gremo
Guru
Guru


Joined: 27 Feb 2006
Posts: 450

PostPosted: Thu Mar 02, 2006 3:29 pm    Post subject: Reply with quote

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
View user's profile Send private message
Earthwings
Bodhisattva
Bodhisattva


Joined: 14 Apr 2003
Posts: 7753
Location: Germany

PostPosted: Thu Mar 02, 2006 4:01 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum