Running NUT drivers with debugging
-
To run the NUT driver in debug mode, follow these steps:
-
Start the service in the GUI. This is done automatically when you press Save in Services / UPS / Settings.
-
Log into the system via ssh or on the console and determine the name of the UPS and the name of the driver. You can find both in /usr/local/etc/nut/ups.conf. Example:
[myups] driver=usbhid-ups
-
Kill the UPS driver. You can find If you are using the usbhid-ups driver, the command would look like this:
killall usbhid-ups
-
Now, run the driver with debug. As an example, if you are using the usbhid-ups driver, and your UPS name is myups, the command would look like this:
/usr/local/libexec/nut/usbhid-ups -DDD -a myups
There driver will output information in the shell as it runs. See what error it shows. If it doesn't show enough you can add more 'D's until it does up to "-DDDDDD".
-
-
-