I am trying to control my CyberPower 625VA UPS. From what I hear, this is best done via nut, rather than via the gnome-power-manager. See e.g. Monitoring a UPS with nut on Debian or Ubuntu Linux | Random Bits
But when I configure nut as described in that article, it fails:
$ sudo upsdrvctl start
Network UPS Tools - UPS driver controller 2.4.3
Network UPS Tools - Generic HID driver 0.34 (2.4.3)
USB communication driver 0.31
Can't claim USB device [0764:0501]: could not detach kernel driver from interface 0: Operation not permitted
Driver failed to start (exit status=1)
I then noted that it was already being monitored by gnome-power-manager. The article (presumably now out-of-date) had said I would need to install nut-hal-drivers in order to monitor it with the Gnome Power Manager, so I hadn't even looked up there on the indicator panel.... But it wasn't being monitored very well (both the History and Statistics tabs were useless), and what I really want is programmatic control.
I do note that I can get some raw battery data via
lshal -u /org/freedesktop/Hal/devices/usb_device_764_501_noserial_if0_hiddev
But I'd prefer nut.
So how to I tell the power manager to NOT monitor the UPS, so nut will (presumably)?
FWIW, this situation is the same on both maverick and precise, on laptops in both cases.
maverickorpreciseand the problem went away on its own? – WinEunuuchs2Unix Jul 17 '17 at 03:42