g-p-m shows battery at 0% on wireless mouse

Bug #36662 reported by Mikael Eriksson
14
Affects Status Importance Assigned to Milestone
gnome-power-manager (Ubuntu)
Fix Released
Medium
Brian Murray

Bug Description

When i plug in my wireless mouse g-p-m show a notification that is has 0% battery power left. But when it is plugged in at boot it works correctly.

Revision history for this message
Richard Hughes (richard-hughes) wrote :

What does "lshal | grep battery" say when it reports 0%?

Revision history for this message
Mikael Eriksson (mikael-eriksson) wrote : output of lshal|grep battery

Attached the output of lshal|grep battery in non working mode

Revision history for this message
Richard Hughes (richard-hughes) wrote :

battery.charge_level.current is missing... all we need to do now if to work out why... I suspect this is a hal csr addon problem.

Revision history for this message
Paul Sladen (sladen) wrote :

Hi Mikael, What versions of various packages do you have installed? Can you paste the output of:

  $ dpkg -l | awk '/^ii.*(linux-image|acpi-support|hal|udev|gnome-power-manager)/{print $2,$3}'

and check whether the battery module is loaded:

  $ /sbin/lsmod | grep battery

and check what the ACPI battery output is:

  $ grep . -r /proc/acpi/battery/

Many Thanks,

Changed in gnome-power-manager:
status: Unconfirmed → Needs Info
Revision history for this message
Mikael Eriksson (mikael-eriksson) wrote :

BAT0 is this laptops battery. And there is no difference in the output when it works and when it isn't.

$ dpkg -l | awk '/^ii.*(linux-image|acpi-support|hal|udev|gnome-power-manager)/{print $2,$3}'
acpi-support 0.67
gnome-power-manager 2.13.93-0ubuntu4
hal 0.5.7-1ubuntu10
hal-device-manager 0.5.7-1ubuntu10
libhal-storage1 0.5.7-1ubuntu10
libhal1 0.5.7-1ubuntu10
linux-image-2.6.15-19-686 2.6.15-19.29
linux-image-686 2.6.15.18
udev 079-0ubuntu23

$ /sbin/lsmod | grep battery
battery 9988 1 acpi_sbs

$ grep . -r /proc/acpi/battery/
/proc/acpi/battery/BAT0/alarm:alarm: 3240 mWh
/proc/acpi/battery/BAT0/state:present: yes
/proc/acpi/battery/BAT0/state:capacity state: ok
/proc/acpi/battery/BAT0/state:charging state: charging
/proc/acpi/battery/BAT0/state:present rate: 3824 mW
/proc/acpi/battery/BAT0/state:remaining capacity: 59040 mWh
/proc/acpi/battery/BAT0/state:present voltage: 16776 mV
/proc/acpi/battery/BAT0/info:present: yes
/proc/acpi/battery/BAT0/info:design capacity: 64800 mWh
/proc/acpi/battery/BAT0/info:last full capacity: 59340 mWh
/proc/acpi/battery/BAT0/info:battery technology: rechargeable
/proc/acpi/battery/BAT0/info:design voltage: 14400 mV
/proc/acpi/battery/BAT0/info:design capacity warning: 3240 mWh
/proc/acpi/battery/BAT0/info:design capacity low: 648 mWh
/proc/acpi/battery/BAT0/info:capacity granularity 1: 1 mWh
/proc/acpi/battery/BAT0/info:capacity granularity 2: 1 mWh
/proc/acpi/battery/BAT0/info:model number: IBM-92P1080
/proc/acpi/battery/BAT0/info:serial number: 216
/proc/acpi/battery/BAT0/info:battery type: LION
/proc/acpi/battery/BAT0/info:OEM info: SANYO

Revision history for this message
Richard Hughes (richard-hughes) wrote :

Does 2.14.1 fix the issue for you?

Revision history for this message
Mikael Eriksson (mikael-eriksson) wrote :

I can only find g-p-m 2.14.0-1 so I presume thats what you meant. But sadly that doesn't fix the problem.

This is a Logitech LX 5 which I forgot to tell earlier.

Revision history for this message
Greg Unger (mr-ory) wrote :

I have the same problem.

I have a Logitech Wireless Laptop Mouse.

I noticed that if I plug the mouse reciever in before turning on my laptop, it displays the proper battery level. It's only when the computer is already on and I plug in the mouse that I have this problem.

Revision history for this message
Greg Unger (mr-ory) wrote :

sorry, redundant post!

Revision history for this message
Richard Hughes (richard-hughes) wrote :

You need to update to at least 2.14.1

Revision history for this message
Greg Unger (mr-ory) wrote :

Sadly, I am running 2.14.1.

Revision history for this message
Mikael Eriksson (mikael-eriksson) wrote :

Where can I find 2.14.1? I can't find it in the archives[0].
Should I try to compile from source?

[0]: http://archive.ubuntu.com/ubuntu/pool/main/g/gnome-power-manager/

Revision history for this message
Greg Unger (mr-ory) wrote :

Wow. My head is not screwed on properly today. I have GNOME 2.14.1, but g-p-m is still only 2.14.0.

Download it here:
http://ftp.gnome.org/pub/GNOME/sources/gnome-power-manager/2.14/
and follow the Ubuntu adivce here:
http://www.gnome.org/projects/gnome-power-manager/packages.html

I haven't compiled 2.14.1 myself, because I don't know how (still kinda new to linux).

Revision history for this message
Greg Unger (mr-ory) wrote :

Have you tried compiling the new version? I run into an error: the compiler complains that i'm missing the packages glib-2.0 and gobject-20, but they aren't in the repos.

Will a newer version of g-p-m be put in the repos anytime soon?

Revision history for this message
Mikael Eriksson (mikael-eriksson) wrote :

This is kind of fixed for me in 2.14.3-0ubuntu1. After I insert the mouse, it shows the mouse at 0%, but after about 5min it shows the correct value.

Revision history for this message
Richard Hughes (richard-hughes) wrote :

Thats as good as you are going to get until hal is fixed, sorry.

Revision history for this message
Brian Murray (brian-murray) wrote :

This bug was reported a while ago and there hasn't been any activity in it recently. We were wondering is this still an issue? Thanks in advance.

Changed in gnome-power-manager:
assignee: nobody → brian-murray
Revision history for this message
Mikael Eriksson (mikael-eriksson) wrote :

Yeah, it working correctly now. And has for a while. Sorry for not closing this bug sooner.

Changed in gnome-power-manager:
status: Incomplete → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.