Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
acpi ac adapter state not updating
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
TheCoop
Veteran
Veteran


Joined: 15 Jun 2002
Posts: 1814
Location: Where you least expect it

PostPosted: Thu Apr 08, 2004 1:29 pm    Post subject: acpi ac adapter state not updating Reply with quote

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


Joined: 14 Apr 2003
Posts: 7753
Location: Germany

PostPosted: Thu Apr 08, 2004 1:41 pm    Post subject: Reply with quote

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


Joined: 15 Jun 2002
Posts: 1814
Location: Where you least expect it

PostPosted: Thu Apr 08, 2004 7:37 pm    Post subject: Reply with quote

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
View user's profile Send private message
The Sentry
n00b
n00b


Joined: 11 Apr 2004
Posts: 55
Location: Kaiserslautern / Germany

PostPosted: Sat May 15, 2004 4:06 pm    Post subject: Reply with quote

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


Joined: 15 Jun 2002
Posts: 1814
Location: Where you least expect it

PostPosted: Sat May 15, 2004 11:20 pm    Post subject: Reply with quote

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


Joined: 31 Aug 2002
Posts: 429
Location: Sweden

PostPosted: Sat Jun 26, 2004 11:17 pm    Post subject: Reply with quote

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


Joined: 20 Feb 2004
Posts: 268

PostPosted: Tue Sep 28, 2004 8:01 pm    Post subject: Reply with quote

Here's how I fixed it.

https://forums.gentoo.org/viewtopic.php?t=122145&highlight=acpi+acadapter
Back to top
View user's profile Send private message
bfkeats
Apprentice
Apprentice


Joined: 20 Feb 2004
Posts: 268

PostPosted: Tue Sep 28, 2004 8:29 pm    Post subject: Reply with quote

I spoke too soon. It's still not working.
Back to top
View user's profile Send private message
The Sentry
n00b
n00b


Joined: 11 Apr 2004
Posts: 55
Location: Kaiserslautern / Germany

PostPosted: Fri Nov 12, 2004 9:58 am    Post subject: Reply with quote

I just booted with the new 2.6.9 Kernel and now my problme is solved.
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