FS#39876 - [upower] doesn't read battery information since update to 0.99.0-2
Attached to Project:
Arch Linux
Opened by Eicke Herbertz (WolleTD) - Tuesday, 15 April 2014, 13:08 GMT
Last edited by Jan de Groot (JGC) - Monday, 21 April 2014, 08:42 GMT
Opened by Eicke Herbertz (WolleTD) - Tuesday, 15 April 2014, 13:08 GMT
Last edited by Jan de Groot (JGC) - Monday, 21 April 2014, 08:42 GMT
|
Details
Description: upower -i
/org/freedesktop/UPower/devices/battery_BAT0 doesn't show
any battery information.
This results into cinnamon (and most likely other DEs too) not showing battery info. Output: [wolle ~]$ sudo upower -i /org/freedesktop/UPower/devices/battery_BATO native-path: (null) power supply: no updated: Do 01 Jan 1970 01:00:00 CET (1397561195 seconds ago) has history: no has statistics: no unknown warning-level: unknown icon-name: '(null)' Version 0.99.0-1 works. Additional info: * upower 0.99.0-2 Steps to reproduce: Install upower 0.99.0-2 and issue "upower -i /org/freedesktop/UPower/devices/battery_BAT0" when a battery is present in system. |
This task depends upon
Running MATE, I have this problem until I go to see the "Power Statistics", at which point the command runs fine and my battery is being watched fine.
upower -i /org/freedesktop/UPower/devices/battery_BAT0
(upower:2672): libupower-glib-WARNING **: Couldn't connect to proxy: Fehler beim Aufruf von StartServiceByName für org.freedesktop.UPower: GDBus.Error:org.freedesktop.DBus.Error.TimedOut: Activation of org.freedesktop.UPower timed out
failed to set path: Fehler beim Aufruf von StartServiceByName für org.freedesktop.UPower: GDBus.Error:org.freedesktop.DBus.Error.TimedOut: Activation of org.freedesktop.UPower timed out
Chronological list of things I did:
1. Discovered that my battery icon in the cinnamon taskbar is missing
2. Discovered that upower 0.99.0-2 doesn't show any information
3. Downgraded to upower 0.99.0-1 and tried again. Got the desired information
4. Reboot in hope of battery icon being in the taskbar again
5. No battery icon, tried issuing upower (0.99.0-1) and got the above error
6. Upgraded to upower 0.99.0-2 again, still the same error
7. Reboot again, just to see what will happen
8. upower 0.99.0-2 working without any problems
9. Still no battery icon
10. Power management in cinnamon settings isn't working.
Python module
Could not find bluetooth module; is the cinnamon-control-center package installed?
Could not find wacom module; is the cinnamon-control-center package installed?
Loading Power module
/usr/bin/python2: symbol lookup error: /usr/lib/cinnamon-control-center-1/panels/libpower.so: undefined symbol: up_client_get_can_hibernate
I think there is a huge mess in the repos.
Looking glass error logs show the applet being loaded into the systray and nothing more.
Applications that don't update are listening to the wrong signals, upower no longer emits DeviceChanged and Changed signals, but uses PropertyChanged signals now.
Applications with symbol lookup errors are linking to the old glib bindings (up_client_get_can_hibernate has been removed, in 0.9 that function is a dummy and if you get that message with 0.99 it's your own fault because you are symlinking sobumped libraries).
Further, if you have a 0.9 daemon running and you try to connect to that with 0.99 client, it will fail. The other way around is probably also the case. Be sure the old running daemon is killed after upgrading/downgrading upower versions.
These are some upstream bug reports related to the power applet and suspending with Cinnamon. The first one mentions upower API changes.
https://github.com/linuxmint/Cinnamon/issues/2913
https://github.com/linuxmint/Cinnamon/issues/3068
https://github.com/linuxmint/Cinnamon/issues/3054
$ LANG=C upower -i /org/freedesktop/UPower/devices/battery_BAT0
native-path: (null)
power supply: no
updated: ?? 01 ??? 1970 03:00:00 (1397981426 seconds ago)
has history: no
has statistics: no
unknown
warning-level: unknown
icon-name: '(null)'
With BAT1 output is the same.
acpi output:
$ acpi --battery --details
Battery 0: Unknown, 0%
Battery 0: design capacity 2500 mAh, last full capacity 1726 mAh = 69%
Battery 1: Charging, 13%, 01:27:46 until charged
Battery 1: design capacity 6200 mAh, last full capacity 4483 mAh = 72%
As this bugreport is about upower not reading battery information, which it does, I'm closing this bug. This is not an upower bug.