> I wonder if the same approach will also work for a computer connected to a UPS. Probably not!
Considering that my UPS appears as a battery in KDE when I plug the USB cable in, I wouldn't be surprised if it's treated the same as a laptop battery across most of the stack