Created attachment 106887 [details] Changes in the output of 'upower -d' on battery removal After removing the battery from my laptop the battery device is correctly removed but DisplayDevice is not updated to reflect the new state. Looking at the code, it seems that up_daemon_update_display_battery() should be called on battery removal to update the display device. I've tested under GDB and this function is called multiple times on battery insertion but not at all on removal. (I've attached the difference in the output of 'upower -d' after removing the battery, which shows that DisplayDevice remains unchanged.)
Posted a tentative fix for this on the mailing list: http://lists.freedesktop.org/archives/devkit-devel/2014-October/001626.html
Pushed to master, thanks.
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.