Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Gnome battery monitor / ACPI
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
patrickbores
Apprentice
Apprentice


Joined: 19 May 2003
Posts: 276
Location: Minneapolis, MN, USA

PostPosted: Sun Nov 09, 2003 3:28 am    Post subject: Gnome battery monitor / ACPI Reply with quote

Hello,

I just got a Toshiba A25 laptop and installed Gentoo (what else?) on it. Now, I know that the battery monitor in gnome-applets-2.4 is supposed to work fine with ACPI right out of the box, but mine simply doesn't.

ACPI appears to be working fine. I've got "alarm", "info", and "state" in /proc/acpi/battery/BAT1, and the acpi program returns helpful information like:

Battery 1: charging, 87%, 00:29:53 until charged

But the icon sits there, reading an empty battery, with a red exclamation point. Mousing over the battery icon produces a message that says "Battery: 0% (High)". Mousing over the exclamation point produces a message that says "System is running on battery power" whether it is or not.

I'm running with kernel 2.4.20-gentoo-r8 and Gnome 2.4. Anybody have an idea what's going wrong?

Patrick
_________________
P.S. - this is what part of the alphabet would look like if Q and R were eliminated.
Back to top
View user's profile Send private message
duff
Guru
Guru


Joined: 19 Jun 2002
Posts: 466
Location: Clemson, SC

PostPosted: Sun Nov 09, 2003 5:55 am    Post subject: Re: Gnome battery monitor / ACPI Reply with quote

patrickbores wrote:

I'm running with kernel 2.4.20-gentoo-r8 and Gnome 2.4. Anybody have an idea what's going wrong?

Upgrade to the 2.4.22 kernel...that's worked on different laptops for me.
Back to top
View user's profile Send private message
patrickbores
Apprentice
Apprentice


Joined: 19 May 2003
Posts: 276
Location: Minneapolis, MN, USA

PostPosted: Sun Nov 09, 2003 6:46 am    Post subject: Reply with quote

Yeah, I did that too. It didn't seem to help. Plus it knocked out my sound for some reason. I'll try again and post back.

Patrick
_________________
P.S. - this is what part of the alphabet would look like if Q and R were eliminated.
Back to top
View user's profile Send private message
patrickbores
Apprentice
Apprentice


Joined: 19 May 2003
Posts: 276
Location: Minneapolis, MN, USA

PostPosted: Sun Nov 09, 2003 3:19 pm    Post subject: Reply with quote

Unfortunately, running with kernel 2.4.22 doesn't help the problem. I still get the same behavior. This is frustrating because I can see all the correct values in /proc/acpi/battery/BAT1/state. Why can't the battery monitor?

Any other advice is greatly appreciated.

Patrick
_________________
P.S. - this is what part of the alphabet would look like if Q and R were eliminated.
Back to top
View user's profile Send private message
patrickbores
Apprentice
Apprentice


Joined: 19 May 2003
Posts: 276
Location: Minneapolis, MN, USA

PostPosted: Sun Nov 09, 2003 4:17 pm    Post subject: Reply with quote

Okay. I did some code hacking and found out that things were failing because /proc/acpi/ac_adapter didn't exist. So I tried:

modprobe ac

and got:

/lib/modules/2.4.22-2.4.22/kernel/drivers/acpi/ac.o: init_module: No such deviceHint: insmod errors can be caused by incorrect module parameters, including invalid IO or IRQ parameters.
You may find more information in syslog or the output from dmesg
/lib/modules/2.4.22-2.4.22/kernel/drivers/acpi/ac.o: insmod /lib/modules/2.4.22-2.4.22/kernel/drivers/acpi/ac.o failed
/lib/modules/2.4.22-2.4.22/kernel/drivers/acpi/ac.o: insmod ac failed

I'm going to try compiling the battery and ac modules straight into the kernel to see if that helps. Any ideas as to why this module failed to load?

Thanks,

Patrick
_________________
P.S. - this is what part of the alphabet would look like if Q and R were eliminated.
Back to top
View user's profile Send private message
patrickbores
Apprentice
Apprentice


Joined: 19 May 2003
Posts: 276
Location: Minneapolis, MN, USA

PostPosted: Sun Nov 09, 2003 5:08 pm    Post subject: Reply with quote

That did it. Works now.
_________________
P.S. - this is what part of the alphabet would look like if Q and R were eliminated.
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