I have a Fedora Core 19 system powered via a desk-side UPS. I've connected the UPS' USP port to the FC19 system, and it was apparently recognized, as upower -d now reports its presence:
ups
present: yes
state: fully-charged
time to empty: 1.3 hours
percentage: 100%
I'd like to have a script run for power state changes (on battery, on line power, etc.) The documentation for upower is pretty sketchy and I can't find any reference to hooks for running scripts for these events; is this possible?