Summary: | On boot and login with ac power battery shows zero percent when it is full | ||
---|---|---|---|
Product: | upower | Reporter: | Mike C <mike.cloaked> |
Component: | general | Assignee: | Richard Hughes <richard> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | medium | CC: | bugzilla |
Version: | unspecified | ||
Hardware: | x86-64 (AMD64) | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
Mike C
2013-10-28 11:02:51 UTC
What does: $ cat /sys/class/power_supply/BAT0/capacity say? Here is the output of the requested command plus the parameters in the same directory: [mike@lapmike3 ~]$ cat /sys/class/power_supply/BAT0/capacity 108 [mike@lapmike3 ~]$ cat /sys/class/power_supply/BAT0/charge_now 5200000 [mike@lapmike3 ~]$ cat /sys/class/power_supply/BAT0/charge_full 4808000 [mike@lapmike3 ~]$ cat /sys/class/power_supply/BAT0/charge_full_design 5200000 [mike@lapmike3 ~]$ cat /sys/class/power_supply/BAT0/current_now 1000 [mike@lapmike3 ~]$ cat /sys/class/power_supply/BAT0/cycle_count 0 I also see that there is a new version of upower in the repos - so I will update the system and test again shortly. Was fixed by that commit. Will be in the next version of UPower 0.9, and 0.99. commit b8fe9902f3c6c50ca6a23e24fcea99582beebc65 Author: Martin Pitt <martinpitt@gnome.org> Date: Tue Oct 22 10:02:51 2013 +0200 linux: Clamp percentage for overfull batteries Some batteries report energy > energy_full and a percentage ("capacity" attribute) > 100%. Clamp these within 0 and 100% for both plausibility as well as to avoid setting an out-of-range property which would then become 0%. https://launchpad.net/bugs/1240673 Many thanks - this is confirmed fixed as of archlinux upower version: upower 0.9.23-2 With this latest version the command outputs from the previous commands are: [mike@lapmike3 ~]$ cat /sys/class/power_supply/BAT0/capacity 108 [mike@lapmike3 ~]$ cat /sys/class/power_supply/BAT0/charge_now 5200000 [mike@lapmike3 ~]$ cat /sys/class/power_supply/BAT0/charge_full 4808000 [mike@lapmike3 ~]$ cat /sys/class/power_supply/BAT0/charge_full_design 5200000 [mike@lapmike3 ~]$ cat /sys/class/power_supply/BAT0/current_now 1000 [mike@lapmike3 ~]$ cat /sys/class/power_supply/BAT0/cycle_count 0 [mike@lapmike3 ~]$ acpi -b Battery 0: Full, 100% [mike@lapmike3 ~]$ upower -d Device: /org/freedesktop/UPower/devices/line_power_AC native-path: AC power supply: yes updated: Mon 28 Oct 2013 18:19:07 GMT (113 seconds ago) has history: no has statistics: no line-power online: yes Device: /org/freedesktop/UPower/devices/battery_BAT0 native-path: BAT0 vendor: SMP model: DELL XD7368 serial: 3261 power supply: yes updated: Mon 28 Oct 2013 18:19:12 GMT (108 seconds ago) has history: yes has statistics: yes battery present: yes rechargeable: yes state: fully-charged energy: 57.72 Wh energy-empty: 0 Wh energy-full: 57.72 Wh energy-full-design: 57.72 Wh energy-rate: 0.0111 W voltage: 12.919 V percentage: 100% capacity: 92.4615% technology: lithium-ion History (charge): 1382984348 100.000 fully-charged 1382984347 0.000 unknown History (rate): 1382984348 0.011 fully-charged 1382984347 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 Many thanks for the fast resolution. |
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.