On Mar 27, 2020, at 11:51 PM, Ben Kamen <[email protected]> wrote:
> 
> I'm playing with a new CentOS 8 with a cyperpower OR500 (a smaller sibling to 
> the OR700) plugged in via USB.
> 
> GNOME sees the UPS... but NUT does not (even if I shut down gnome).
> 
>> [root@delp ups]# upsdrvctl start
>> Network UPS Tools - UPS driver controller 2.7.4
>> Network UPS Tools - Generic HID driver 0.41 (2.7.4)
>> USB communication driver 0.33
>> No matching HID UPS found
>> Driver failed to start (exit status=1)
> 
> 
> Annoyingly, the USB listeing is for a PR1500 even though it really IS an OR500
> 
>> [root@delp ups]# lsusb -d 0764:0601 -v
>> 
>> Bus 006 Device 002: ID 0764:0601 Cyber Power System, Inc. PR1500LCDRT2U UPS

^ that is based on the usb.ids database, not what the UPS returns. All of the 
CPS UPSes seem to be either 0501 or 0601.

>>   iProduct                1 UPS OR500

^ this model string (the part after "1") comes from the UPS itself.

> 
> What else can I provide to help debug this?
> 
> And -- can gnome and NUT access the UPS at the same time or do I need to 
> disable Gnome somehow?

Short answer, no, they can't easily share.

The NUT drivers will attempt to grab the driver away from other kernel drivers 
or userspace programs if it has permission to open the device node, but the "No 
matching HID UPS" error is often caused by permissions issues. Was the UPS 
plugged in to the USB port before you installed NUT? If so, try unplugging and 
re-plugging the USB cable. The /dev node (it will change, but using your 
previous lsusb output, something like /dev/bus/usb/006/002) should allow the 
NUT system user to have read/write access, frequently through the group 
permission bits.

Open to suggestions from others about the Gnome side, though maybe the 
permissions part is sufficient.

> _______________________________________________
> Nut-upsuser mailing list
> [email protected]
> https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser


_______________________________________________
Nut-upsuser mailing list
[email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser

Reply via email to