[Nut-upsdev] Openups patch proposal (KDE, etc.)

Charles Lepple clepple at gmail.com
Sun Jul 23 18:04:10 UTC 2017


On Jul 23, 2017, at 4:50 AM, Alphonse <alphsteiner at gmail.com> wrote:
> 
> Another point is bugging me: the ups is not repported as a battery in kde nor in the output of  'solid-hardware list'.
> Do you have an idea for this problem?
> Thanks!
> 
To be honest, most of the NUT development effort is focused on shutting down servers, so there isn't a whole lot of work on the desktop side. Having not used KDE in many years, I hadn't heard of Solid.

For anyone else casually interested, this seems to be a good introduction: http://shubham.chaudhary.xyz/blog/2013/11/09/kde-solid-namespace/

And this bug seems to show that "solid-hardware list" is talking to UPower for battery information: https://lists.debian.org/debian-qt-kde/2015/03/msg00554.html

Before UPower came along, we had a version of usbhid-ups which was a bridge between the UPS and DeviceKit Power. It was, unfortunately, an either-or proposition: you could have the UPS show up in the GUI, or you could have the traditional NUT upsmon/upsd/driver stack, and all of the network connectivity of the latter. That bridge code no longer exists.

However someone could probably write a NUT client that does something similar: connect to a running upsd, and publish UPS information via DBus. I am not volunteering, but it does sound like an interesting idea.

In the near term, you might consider KNutClient <http://knut.prynych.cz> or NUT-Monitor <http://www.lestat.st/en/informatique/projets/nut-monitor>.


More information about the Nut-upsdev mailing list