View previous topic :: View next topic |
Author |
Message |
TheCoop Veteran
Joined: 15 Jun 2002 Posts: 1814 Location: Where you least expect it
|
Posted: Thu Apr 08, 2004 1:29 pm Post subject: acpi ac adapter state not updating |
|
|
If I start my laptop with the ac plugged in, /proc/acpi/ac_adapter/AC0/state says its in, but when I take it out it still says the adapter is plugged in. Similarly if I bootup on the battery it says theres no ac plugged in, but when I plug it in it still says its running off the battery. How can I get the state to update itself whenever it changes? _________________ 95% of all computer errors occur between chair and keyboard (TM)
"One World, One web, One program" - Microsoft Promo ad.
"Ein Volk, Ein Reich, Ein Führer" - Adolf Hitler
Change the world - move a rock |
|
Back to top |
|
|
Earthwings Bodhisattva
Joined: 14 Apr 2003 Posts: 7753 Location: Germany
|
Posted: Thu Apr 08, 2004 1:41 pm Post subject: |
|
|
I load ac.ko and battery.ko on startup and things are updated perfectly. You're probably doing the same - what kernel version and laptop are you using? Any ACPI related error messages in dmesg? Like broken DSDT or similar? _________________ KDE |
|
Back to top |
|
|
TheCoop Veteran
Joined: 15 Jun 2002 Posts: 1814 Location: Where you least expect it
|
Posted: Thu Apr 08, 2004 7:37 pm Post subject: |
|
|
ac and battery are compiled into the kernel. 2.6.5-love2. its an alienware area-51m, no dsdt error msgs on bootup at all _________________ 95% of all computer errors occur between chair and keyboard (TM)
"One World, One web, One program" - Microsoft Promo ad.
"Ein Volk, Ein Reich, Ein Führer" - Adolf Hitler
Change the world - move a rock |
|
Back to top |
|
|
The Sentry n00b
Joined: 11 Apr 2004 Posts: 55 Location: Kaiserslautern / Germany
|
Posted: Sat May 15, 2004 4:06 pm Post subject: |
|
|
I have the same problem with my laptop, I'm using vanilla-kernel 2.6.6-rc1. Did you already solve it?
Last edited by The Sentry on Sun May 16, 2004 9:47 am; edited 1 time in total |
|
Back to top |
|
|
TheCoop Veteran
Joined: 15 Jun 2002 Posts: 1814 Location: Where you least expect it
|
Posted: Sat May 15, 2004 11:20 pm Post subject: |
|
|
not yet, given up for the moment. I think its a dsdt problem... _________________ 95% of all computer errors occur between chair and keyboard (TM)
"One World, One web, One program" - Microsoft Promo ad.
"Ein Volk, Ein Reich, Ein Führer" - Adolf Hitler
Change the world - move a rock |
|
Back to top |
|
|
hrnick Guru
Joined: 31 Aug 2002 Posts: 429 Location: Sweden
|
Posted: Sat Jun 26, 2004 11:17 pm Post subject: |
|
|
I have the same problem, removing the ac adapter produces both a battery and an ac_adapter event, but nothing happens when I plug the ac cable back in...
Code: | bash-2.05b# acpid --debug
[Sun Jun 27 01:01:29 2004] starting up
[Sun Jun 27 01:01:29 2004] DBG: parsing conf file /etc/acpi/events/default
[Sun Jun 27 01:01:29 2004] 1 rule loaded
[Sun Jun 27 01:01:41 2004] received event "ac_adapter AC 00000080 00000000"
[Sun Jun 27 01:01:41 2004] DBG: rule from /etc/acpi/events/default matched
[Sun Jun 27 01:01:41 2004] executing action "/etc/acpi/default.sh ac_adapter AC 00000080 00000000"
[Sun Jun 27 01:01:41 2004] BEGIN HANDLER MESSAGES
[Sun Jun 27 01:01:41 2004] END HANDLER MESSAGES
[Sun Jun 27 01:01:41 2004] action exited with status 0
[Sun Jun 27 01:01:41 2004] DBG: 1 total rule matched
[Sun Jun 27 01:01:41 2004] completed event "ac_adapter AC 00000080 00000000"
[Sun Jun 27 01:01:41 2004] received event "battery BAT0 00000080 00000001"
[Sun Jun 27 01:01:41 2004] DBG: rule from /etc/acpi/events/default matched
[Sun Jun 27 01:01:41 2004] executing action "/etc/acpi/default.sh battery BAT0 00000080 00000001"
[Sun Jun 27 01:01:41 2004] BEGIN HANDLER MESSAGES
[Sun Jun 27 01:01:41 2004] END HANDLER MESSAGES
[Sun Jun 27 01:01:41 2004] action exited with status 0
[Sun Jun 27 01:01:41 2004] DBG: 1 total rule matched
[Sun Jun 27 01:01:41 2004] completed event "battery BAT0 00000080 00000001"
[Sun Jun 27 01:02:22 2004] exiting
bash-2.05b# |
but it doesn't seems to matter if I boot on the battery or not, the only events I get are the once above...
any ideas? |
|
Back to top |
|
|
bfkeats Apprentice
Joined: 20 Feb 2004 Posts: 268
|
|
Back to top |
|
|
bfkeats Apprentice
Joined: 20 Feb 2004 Posts: 268
|
Posted: Tue Sep 28, 2004 8:29 pm Post subject: |
|
|
I spoke too soon. It's still not working. |
|
Back to top |
|
|
The Sentry n00b
Joined: 11 Apr 2004 Posts: 55 Location: Kaiserslautern / Germany
|
Posted: Fri Nov 12, 2004 9:58 am Post subject: |
|
|
I just booted with the new 2.6.9 Kernel and now my problme is solved. |
|
Back to top |
|
|
|