Community Packages

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#40213 - [cinnamon] Power Manager does not read battery information

Attached to Project: Community Packages
Opened by Johan R (archolith) - Sunday, 04 May 2014, 11:53 GMT
Last edited by Balló György (City-busz) - Saturday, 10 May 2014, 12:44 GMT
Task Type Bug Report
Category Upstream Bugs
Status Closed
Assigned To Alexandre Filgueira (faidoc)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description: There is no battery information displayed by the power manager in Cinnamon. There seems to be a change in the acpi.

Output:

[johan@busta ~]$ acpi -b
Battery 0: Unknown, 98%

Referring to this bugreport https://bugs.archlinux.org/task/39876

Output:
[johan@busta ~]$ upower -i /org/freedesktop/UPower/devices/battery_BAT0
native-path: BAT0
vendor: SMPNz4517D3LCDEF0123456789ABCDE
model: bq20z4517D3LCDEF0123456789ABCDE
power supply: yes
updated: Sun 04 May 2014 01:46:31 PM CEST (46 seconds ago)
has history: yes
has statistics: yes
battery
present: yes
rechargeable: yes
state: fully-charged
warning-level: none
energy: 52.57 Wh
energy-empty: 0 Wh
energy-full: 53.13 Wh
energy-full-design: 57.7 Wh
energy-rate: 15.321 W
voltage: 12.49 V
percentage: 98%
capacity: 92.0797%
icon-name: 'battery-full-charged-symbolic'

upower also works when discharging:

[johan@busta ~]$ upower -i /org/freedesktop/UPower/devices/battery_BAT0
native-path: BAT0
vendor: SMPNz4517D3LCDEF0123456789ABCDE
model: bq20z4517D3LCDEF0123456789ABCDE
power supply: yes
updated: Sun 04 May 2014 01:50:06 PM CEST (7 seconds ago)
has history: yes
has statistics: yes
battery
present: yes
rechargeable: yes
state: discharging
warning-level: none
energy: 52.57 Wh
energy-empty: 0 Wh
energy-full: 53.13 Wh
energy-full-design: 57.7 Wh
energy-rate: 15.321 W
voltage: 12.49 V
time to empty: 3.4 hours
percentage: 98%
capacity: 92.0797%
icon-name: 'battery-full-symbolic'

Additional info:

[johan@busta ~]$ uname -a
Linux busta 3.14.2-1-ARCH #1 SMP PREEMPT Sun Apr 27 11:28:44 CEST 2014 x86_64 GNU/Linux

Steps to reproduce: n/a
This task depends upon

Closed by  Balló György (City-busz)
Saturday, 10 May 2014, 12:44 GMT
Reason for closing:  Upstream
Comment by Doug Newgard (Scimmia) - Sunday, 04 May 2014, 15:33 GMT
What version of cinnamon and cinnamon-control-center?
Comment by Johan R (archolith) - Sunday, 04 May 2014, 20:38 GMT
That should have been in the initial report. Here it is...

[johan@busta ~]$ sudo pacman -Qs cinnamon
local/cinnamon 2.2.5-1
Linux desktop which provides advanced innovative features and a traditional
user experience
local/cinnamon-control-center 2.2.4-1
The Control Center for Cinnamon
local/cinnamon-desktop 2.2.1-1
Library with common API for various Cinnamon modules
local/cinnamon-menus 2.2.0-1
Cinnamon menu specifications
local/cinnamon-screensaver 2.2.2-1
Screensaver designed to integrate well with the Cinnamon desktop.
local/cinnamon-session 2.2.0-2
The Cinnamon Session Handler
local/cinnamon-settings-daemon 2.2.2-1
The Cinnamon Settings daemon
local/cinnamon-translations 2.2.0-1
Translations for Cinnamon and Nemo
local/cjs 2.2.0-1
Javascript Bindings for Cinnamon
local/muffin 2.2.2-1
Cinnamon window manager based on Mutter
local/nemo 2.2.1-1
Cinnamon file manager (Nautilus fork)
Comment by Paul (wegsehen) - Monday, 05 May 2014, 18:24 GMT
Same problem here. I think this should have higher priority than low because this also disables Hibernate etc on Arch, so Harddisc could get damaged when power is just empty and computer simply goes off.
Comment by Johan R (archolith) - Monday, 05 May 2014, 20:24 GMT
My comment that there seems to be a change in the acpi is probably wrong. I misunderstood the output from the command

$ acpi -b
Battery 0: Unknown, 98%

The information "unknown 98%" only refers to time before discharge. If the power is plugged in this is what gets displayed. If the power is unplugged I get

$ acpi -b
Battery 0: Discharging, 82%, 02:44:14 remaining (for example)

I think Paul also have a point. It has happened to me already once that the computer just shut down without any warning at all.
Comment by Balló György (City-busz) - Friday, 09 May 2014, 22:55 GMT
It's an upstream bug, because Cinnamon is not yet fully ported to upower 1.0. Please follow the upstream discussion about it:
https://github.com/linuxmint/Cinnamon/issues/3068

If you are a developer, you should check Cinnamon Settings Daemon's power manager code, and compare it to GNOME Settings Daemon:
https://github.com/linuxmint/cinnamon-settings-daemon/blob/master/plugins/power/csd-power-manager.c
https://git.gnome.org/browse/gnome-settings-daemon/tree/plugins/power/gsd-power-manager.c

Loading...