Indicator-power stuck on the first value after logining
It's really disappointing to seek the help for a problem then even there is no reply, but also down voting for a problem affects my work. However I will leave the workaround in case some one else had the same issue:
The issue is in the GUI. It freezes, so killing it every 10 minutes will force it to update, so I made a cron job to do that:
crontab -e
Add this line to the end of the file witch will do the job every 10 minutes:
*/10 * * * * pkill -f indicator-power-service
I tried the above solutions, and they didn't work properly for me.
I also did a bunch of other things and I think the trick was:
dconf reset -f /com/canonical/indicator/power/
pkill -f indicator-power-service
After I fully restarted, the indicator seemed to work without issue, no need for the cron job!
BTW, on a side note, "acpi -V | grep Battery" was giving me the battery status, but "upower -d" was not. After the fix, both are working.
Also, be careful with Mindaugas's solution, because removing upower takes a bunch of packages with it, many essential for logging in (namely ubuntu-desktop). Make sure to keep a list of the packages removed and reinstall them or you could break your system! (I had to save myself with the Ctrl-Alt-F1 terminal and /var/log/dpkg.log)
Hope this helps someone!
UPDATE:
The issue actually came back after my fix, but re-running:
dconf reset -f /com/canonical/indicator/power/
pkill -f indicator-power-service
fixed the problem again.
Maybe both commands in a cron job would be the way to go!
For me the issue got fixed after uninstalling any gnome-related software.
All I had to do was to follow that tutorial:
How to revert unity and remove gnome desktop?
Hope that this answer is of any value for you.
I also had this problem. To solve this I did:
sudo apt-get remove upower
sudo apt-get install upower
sudo apt-get install indicator-power
Log out and log in to test if it is working.