View previous topic :: View next topic |
Author |
Message |
patrickbores Apprentice
Joined: 19 May 2003 Posts: 276 Location: Minneapolis, MN, USA
|
Posted: Sun Nov 09, 2003 3:28 am Post subject: Gnome battery monitor / ACPI |
|
|
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 |
|
|
duff Guru
Joined: 19 Jun 2002 Posts: 466 Location: Clemson, SC
|
Posted: Sun Nov 09, 2003 5:55 am Post subject: Re: Gnome battery monitor / ACPI |
|
|
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 |
|
|
patrickbores Apprentice
Joined: 19 May 2003 Posts: 276 Location: Minneapolis, MN, USA
|
Posted: Sun Nov 09, 2003 6:46 am Post subject: |
|
|
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 |
|
|
patrickbores Apprentice
Joined: 19 May 2003 Posts: 276 Location: Minneapolis, MN, USA
|
Posted: Sun Nov 09, 2003 3:19 pm Post subject: |
|
|
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 |
|
|
patrickbores Apprentice
Joined: 19 May 2003 Posts: 276 Location: Minneapolis, MN, USA
|
Posted: Sun Nov 09, 2003 4:17 pm Post subject: |
|
|
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 |
|
|
patrickbores Apprentice
Joined: 19 May 2003 Posts: 276 Location: Minneapolis, MN, USA
|
Posted: Sun Nov 09, 2003 5:08 pm Post subject: |
|
|
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 |
|
|
|