How to make upower show correct battery state?
Ubuntu battery icon uses about 1-2 minutes before recognizing that the charger is plugged in or not. How to make the battery status update more often so that it recognizes the charger's state immediately.
This problem was not present in Ubuntu 14.10. It appeared in 15.04, and was also present in 15.10. Currently, I am using 16.04 on an early 2014 MacBook Air model.
You can see that in the picture it says updated and then 99 seconds.
With charger unplugged, upower -i /org/freedesktop/UPower/devices/battery_BAT0
gives me the following output:
native-path: BAT0
vendor: SMP
model: bq20z451
power supply: yes
updated: fr. 01. jan. 2016 kl. 21.29 +0100 (1 seconds ago)
has history: yes
has statistics: yes
battery
present: yes
rechargeable: yes
state: charging
warning-level: none
energy: 19,2888 Wh
energy-empty: 0 Wh
energy-full: 48,1992 Wh
energy-full-design: 54,34 Wh
energy-rate: 7,3112 W
voltage: 7,868 V
time to full: 4,0 hours
percentage: 36%
temperature: 32,8 degrees C
capacity: 88,6993%
technology: lithium-ion
icon-name: 'battery-good-charging-symbolic'
History (charge):
1451680147 36,000 charging
History (rate):
1451680164 7,311 charging
1451680147 24,183 charging
After working with you in chat it was determined that the plugin was correctly installed and it was working as it should. The minor issue is that the Battery Indicator icon can take anywhere between 2 - 5 minutes to update.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Under older versions of Gnome you were able to follow the steps below to change some of the power-manager settings. However that has been dropped in version 3.1.4. (Further info can be found here.)
I suggest you try using the "dconf editor". BE VERY CAREFUL while using it!
sudo apt-get install -y dconf-editor
After installing "dconf-editor" have a look at the section "org" -> "gnome" -> "power-manager" -> "icon-policy"... this also changes the behavior of the battery-icon.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To solve the problem, it is suggested that you use the Unity interface under your system settings to change anything that need be.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The addition of indicator-power
in Ubuntu overrides the need of power-manager