Bug 71197 - No power state indicator with upower > 0.9.20
Summary: No power state indicator with upower > 0.9.20
Status: RESOLVED FIXED
Alias: None
Product: upower
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: x86-64 (AMD64) Linux (All)
: medium normal
Assignee: Richard Hughes
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-03 21:14 UTC by ljnapa
Modified: 2014-05-11 08:29 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description ljnapa 2013-11-03 21:14:38 UTC
Using:

- Arch Linux x86_64
- Xfce 4.10
- xfce4-power-manager 1.2.0

There is no power state AC (plugged cable) indicator (icon) in the notification area when using upower > 0.9.20. There is power info (right click > Power Information) like "line_power_AC0" in all tested versions.


I've tested the following versions:
- 0.9.20-2 - there is an icon
- 0.9.22-1 - no icon
- 0.9.23-1 - no icon
- 0.9.23-2 - no icon

Let me know if you need any further info.
Comment 1 Bastien Nocera 2013-12-13 17:50:24 UTC
(In reply to comment #0)
> Using:
> 
> - Arch Linux x86_64
> - Xfce 4.10
> - xfce4-power-manager 1.2.0
> 
> There is no power state AC (plugged cable) indicator (icon) in the
> notification area when using upower > 0.9.20. There is power info (right
> click > Power Information) like "line_power_AC0" in all tested versions.
> 
> 
> I've tested the following versions:
> - 0.9.20-2 - there is an icon
> - 0.9.22-1 - no icon
> - 0.9.23-1 - no icon
> - 0.9.23-2 - no icon
> 
> Let me know if you need any further info.

At the very least the output of "upower -d".
Comment 2 ljnapa 2014-01-08 00:09:10 UTC
Looks like it has to do something with the mouse. It loses icon on the mouse battery state change ([00:58:25.056] entry). Difference between provided dumps are that before the mouse is not present and after it is.

Let me know if you need any further info.

~~~
$ upower -m
Monitoring activity from the power daemon. Press Ctrl+C to cancel.
[00:57:27.900]	device changed:     /org/freedesktop/UPower/devices/battery_BAT0
[00:57:57.927]	device changed:     /org/freedesktop/UPower/devices/battery_BAT0
[00:58:25.056]	device changed:     /org/freedesktop/UPower/devices/mouse_0003o046DoC52Fx0024
[00:58:27.901]	device changed:     /org/freedesktop/UPower/devices/battery_BAT0
~~~


Icon displayed

~~~
$ upower -d
Device: /org/freedesktop/UPower/devices/line_power_AC0
  native-path:          AC0
  power supply:         yes
  updated:              Wed 08 Jan 2014 12:33:52 AM CET (1417 seconds ago)
  has history:          no
  has statistics:       no
  line-power
    online:             yes

Device: /org/freedesktop/UPower/devices/battery_BAT0
  native-path:          BAT0
  vendor:               ASUSTeK
  model:                N56--52
  power supply:         yes
  updated:              Wed 08 Jan 2014 12:57:27 AM CET (2 seconds ago)
  has history:          yes
  has statistics:       yes
  battery
    present:             yes
    rechargeable:        yes
    state:               fully-charged
    energy:              53.268 Wh
    energy-empty:        0 Wh
    energy-full:         55.377 Wh
    energy-full-design:  57.72 Wh
    energy-rate:         0 W
    voltage:             11.1 V
    percentage:          96%
    capacity:            95.9407%
    technology:          lithium-ion

Device: /org/freedesktop/UPower/devices/mouse_0003o046DoC52Fx0024
  native-path:          /sys/devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.1/0003:046D:C52F.0024
  vendor:               Logitech, Inc.
  model:                M305
  serial:               4194B55B
  power supply:         no
  updated:              Wed 08 Jan 2014 12:57:24 AM CET (5 seconds ago)
  has history:          yes
  has statistics:       no
  mouse
    present:             no
    rechargeable:        yes
    state:               unknown
    percentage:          0%
  History (charge):
    1389139044	0.000	unknown
  History (rate):
    1389139044	0.000	unknown

Daemon:
  daemon-version:  0.9.23
  on-battery:      no
  on-low-battery:  no
  lid-is-closed:   no
  lid-is-present:  yes
  is-docked:       no

~~~

Icon missing

~~~
$ upower -d
Device: /org/freedesktop/UPower/devices/line_power_AC0
  native-path:          AC0
  power supply:         yes
  updated:              Wed 08 Jan 2014 12:33:52 AM CET (1499 seconds ago)
  has history:          no
  has statistics:       no
  line-power
    online:             yes

Device: /org/freedesktop/UPower/devices/battery_BAT0
  native-path:          BAT0
  vendor:               ASUSTeK
  model:                N56--52
  power supply:         yes
  updated:              Wed 08 Jan 2014 12:58:27 AM CET (24 seconds ago)
  has history:          yes
  has statistics:       yes
  battery
    present:             yes
    rechargeable:        yes
    state:               fully-charged
    energy:              53.268 Wh
    energy-empty:        0 Wh
    energy-full:         55.377 Wh
    energy-full-design:  57.72 Wh
    energy-rate:         0 W
    voltage:             11.1 V
    percentage:          96%
    capacity:            95.9407%
    technology:          lithium-ion

Device: /org/freedesktop/UPower/devices/mouse_0003o046DoC52Fx0024
  native-path:          /sys/devices/pci0000:00/0000:00:14.0/usb1/1-3/1-3:1.1/0003:046D:C52F.0024
  vendor:               Logitech, Inc.
  model:                M305
  serial:               4194B55B
  power supply:         no
  updated:              Wed 08 Jan 2014 12:58:25 AM CET (26 seconds ago)
  has history:          yes
  has statistics:       no
  mouse
    present:             yes
    rechargeable:        yes
    state:               discharging
    percentage:          55%
  History (charge):
    1389139105	55.000	discharging
    1389139044	0.000	unknown
  History (rate):
    1389139044	0.000	unknown

Daemon:
  daemon-version:  0.9.23
  on-battery:      no
  on-low-battery:  no
  lid-is-closed:   no
  lid-is-present:  yes
  is-docked:       no
~~~
Comment 3 ljnapa 2014-05-11 08:29:04 UTC
Using upower 0.99.0 and xfce4-power-manager (ATM Git version, sha g75107db) works as expected.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.