! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Refresh power status on UPower events
Status:
RESOLVED: FIXED
Product:
Xfce4-battery-plugin
Component:
General

Comments

Description Alexander Butenko 2018-12-16 15:10:23 CET
Created attachment 8184 
patch

Currently panel refresh its state every 30 seconds so once you will plug or unplug power supply from the laptop you have  long a delay before battery plugin will show its real state.
Patch adds support for Upower events like lid open/lid close, power supply connected and power supply disconnected
Comment 1 Git Bot editbugs 2018-12-16 22:23:25 CET
Alexander Butenko referenced this bugreport in commit 205a18e99c554529b282b3f30e1cd8e40a5efa55

Listen for UPower events for power source changes (Bug #14978)

https://git.xfce.org/panel-plugins/xfce4-battery-plugin/commit?id=205a18e99c554529b282b3f30e1cd8e40a5efa55
Comment 2 Andre Miranda editbugs 2018-12-16 22:24:24 CET
Works very well, a nice addition, I just simplified a bit your patch.
Thanks!

Bug #14978

Reported by:
Alexander Butenko
Reported on: 2018-12-16
Last modified on: 2018-12-16

People

Assignee:
Xfce-Goodies Maintainers
CC List:
1 user

Version

Attachments

patch (2.60 KB, patch)
2018-12-16 15:10 CET , Alexander Butenko
no flags

Additional information