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