Bug#562023: gnome-power-manager: Shows on battery icon when power is plugged in but not charging.

Kurt Roeckx kurt at roeckx.be
Tue Dec 22 00:19:08 UTC 2009


Package: gnome-power-manager
Version: 2.28.1-2

Hi,

On my laptop, when I'm on mains power it does not always show
that but instead shows I'm on battery.  That is, it just shows
the battery and not the plug next to it.

It seems that it's using the wrong data to base this on.  I think
it's basing it on the battery's "state: discharing" part, while it
should look at the line_power_AC's "line-power online: yes" part.

Note that my bios either reports charging or discharging.  You
could claim this is wrong, but it really is slowing discharging
when it's not charging.

The same type of problems might also explain some other weird
behaviour that I'm seeing, like dimming my screen too fast
for no good reason.

Here is the output of gnome-power-bugreport:
Distro version:       squeeze/sid
Kernel version:       2.6.32-trunk-686
g-p-m version:        2.28.2
HAL version:          0.5.14
System manufacturer:  missing
System version:       missing
System product:       missing
AC adapter present:   yes
Battery present:      yes
Laptop panel present: yes
CPU scaling present:  yes
Battery Information:
  battery.charge_level.current = 46516  (0xb5b4)  (int)
  battery.charge_level.design = 46886  (0xb726)  (int)
  battery.charge_level.last_full = 46886  (0xb726)  (int)
  battery.charge_level.percentage = 99  (0x63)  (int)
  battery.charge_level.rate = 0  (0x0)  (int)
  battery.is_rechargeable = true  (bool)
  battery.model = 'BA-02'  (string)
  battery.present = true  (bool)
  battery.rechargeable.is_charging = false  (bool)
  battery.rechargeable.is_discharging = true  (bool)
  battery.reporting.current = 3143  (0xc47)  (int)
  battery.reporting.design = 3168  (0xc60)  (int)
  battery.reporting.last_full = 3168  (0xc60)  (int)
  battery.reporting.rate = 0  (0x0)  (int)
  battery.reporting.technology = 'Li-ion'  (string)
  battery.reporting.unit = 'mAh'  (string)
  battery.serial = ''  (string)
  battery.technology = 'lithium-ion'  (string)
  battery.type = 'primary'  (string)
  battery.vendor = 'ASUSTek'  (string)
  battery.voltage.current = 16491  (0x406b)  (int)
  battery.voltage.design = 14800  (0x39d0)  (int)
  battery.voltage.unit = 'mV'  (string)
DeviceKit data:
Device: /org/freedesktop/DeviceKit/Power/devices/line_power_AC
  native-path:          /sys/devices/LNXSYSTM:00/LNXSYBUS:00/ACPI0003:00/power_supply/AC
  power supply:         yes
  updated:              Tue Dec 22 00:34:03 2009 (2081 seconds ago)
  has history:          no
  has statistics:       no
  line-power
    online:             yes

Device: /org/freedesktop/DeviceKit/Power/devices/battery_BAT0
  native-path:          /sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0A:00/power_supply/BAT0
  vendor:               ASUSTek
  model:                BA-02
  power supply:         yes
  updated:              Tue Dec 22 01:08:40 2009 (4 seconds ago)
  has history:          yes
  has statistics:       yes
  battery
    present:             yes
    rechargeable:        yes
    state:               discharging
    energy:              46.5164 Wh
    energy-empty:        0 Wh
    energy-full:         46.8864 Wh
    energy-full-design:  46.8864 Wh
    energy-rate:         0 W
    voltage:             16.491 V
    percentage:          99.2109%
    capacity:            100%
    technology:          lithium-ion

Daemon:
  daemon-version:  013
  can-suspend:     yes
  can-hibernate    yes
  on-battery:      no
  on-low-battery:  no
  lid-is-closed:   no
  lid-is-present:   yes
GNOME Power Manager Process Information:
kurt     20569  0.6  3.1  25260  7880 ?        S    01:08   0:00          \_ gnome-power-manager
HAL Process Information:
110      14250  0.3  1.6   6304  4244 ?        Ss   01:04   0:00 /usr/sbin/hald
root     14251  0.0  0.4   3332  1180 ?        S    01:04   0:00  \_ hald-runner
root     14295  0.0  0.4   3396  1112 ?        S    01:04   0:00      \_ /usr/lib/hal/hald-addon-rfkill-killswitch
root     14296  0.0  0.4   3396  1112 ?        S    01:04   0:00      \_ /usr/lib/hal/hald-addon-leds
root     14305  0.0  0.4   3392  1136 ?        S    01:04   0:00      \_ /usr/lib/hal/hald-addon-generic-backlight
root     14314  0.0  0.4   3396  1136 ?        S    01:04   0:00      \_ hald-addon-input: Listening on /dev/input/event1 /dev/input/event3 /dev/input/event2 /dev/input/event4 /dev/input/event5 /dev/input/event8 /dev/input/event0 /dev/input/event9
root     14316  0.0  0.4   3408  1108 ?        S    01:04   0:00      \_ /usr/lib/hal/hald-addon-cpufreq
110      14317  0.0  0.4   3252  1104 ?        S    01:04   0:00      \_ hald-addon-acpi: listening on acpid socket /var/run/acpid.socket
root     14323  0.0  0.4   3400  1124 ?        S    01:04   0:00      \_ hald-addon-storage: polling /dev/hdb (every 2 sec)






More information about the pkg-gnome-maintainers mailing list