1. Change the OS driver binding: use UGEN

Like other hardware, USB devices are interfaced to the operating system by OS drivers, and often there are several suitable drivers with different capabilities. In Solaris and related systems, this mapping is detailed in the /etc/driver_aliases file and properly managed by dedicated tools. By default, USB devices can be captured by the generic USB HID driver, or none at all; however an "UGEN" driver can behave better with the libusb library used on Solaris.

Note

Operations below would need running as root or elevating the privileges (via pfexec, sudo, etc.)

Connect the power device using its USB port to your computer.

Run prtconf -v | less to see the details of device connections, and search for its probable strings (vendor, model, serial number).

Two examples follow:

You can also check with cfgadm if the device is at least somehow visible (if not, there can be hardware issues in play). For example, if there is a physical link but no recognized driver was attached, the device would show up as "unconfigured":

:; cfgadm | grep usb-
usb8/1                 usb-input    connected    unconfigured ok

If you conclude that a change is needed, you would need to unload the existing copy of the "ugen" driver and set it up to handle the device patterns that you find in compatible values from prtconf. For example, to monitor the devices from listings above, you would run:

:; rem_drv ugen
:; add_drv -i '"usb463,ffff.100"' -m '* 0666 root sys' ugen

or

:; rem_drv ugen
:; add_drv -i '"usb665,5161.2"' -m '* 0666 root sys' ugen

Note that there are many patterns in the compatible line which allow for narrower or wider catchment. It is recommended to match with the narrowest fit, to avoid potential conflict with other devices from same vendor (especially if the declared identifiers are for a generic USB chipset).

Also note that the add_drv definition above lists the POSIX access metadata for the device node files that would be generated when the device is plugged in and detected. In the examples above, it would be owned by root:sys but accessible for reads and writes (0666) to anyone on the system. On shared systems you may want to constrain this access to the account that the NUT driver would run as.

After proper driver binding, cfgadm should expose the details:

# cfgadm -lv
...
usb8/1                         connected    configured   ok
    Mfg: EATON  Product: Eaton 9PX  NConfigs: 1  Config: 0  <no cfg str descr>
    unavailable  usb-input    n        /devices/pci@0,0/pci103c,1309@1d,2:1
...

Usually the driver mapping should set up the "friendly" device nodes under /dev/ tree as well (symlinks to real entries in /devices/) so for NUT drivers you would specify a port=/dev/usb/463.ffff/0 for your new driver section in ups.conf.

Note

As detailed in config-notes.txt, the "natively USB" drivers (including usbhid-ups and nutdrv_qx) match the device by ID and/or strings it reports, and so effectively require but ignore the port option — so it is commonly configured as port=auto. Drivers used for SHUT or serial protocols do need the device path.

For some serial-to-USB converter chips however it was noted that while the device driver is attached, and the /device/... path is exposed in the dmesg output (saved to /var/adm/messages) the /dev/... symlinks are not created. In this case you can pass the low-level name of the character-device node as the "port" option, e.g.:

./mge-shut -s 9px-ser -DDDDD -d2 -u root \
    -x port=/devices/pci@0,0/pci103c,1309@1a,2/device@1:0