[Nut-upsuser] Keep on losing communication: Raspberry Pi, CyberPower PR1500LCD

Rory Jaffe rsjaffe at gmail.com
Tue Aug 29 00:58:26 UTC 2017

​Found a way of addressing this without rebuilding nut. The following
restarts upsdrvctl when communications are lost (COMMBAD). I added NOCOMM
as a condition just in case. I've monitored this, and it successfully
reconnects when connection is lost.

Added to upsmon.conf
NOTIFYCMD /etc/nut/notify.sh

Then, /etc/nut/notify.sh is marked executable and contains:
case "$NOTIFYTYPE" in
                /sbin/upsdrvctl stop;
                /sbin/upsdrvctl start;
                echo 'Restarted upsdrvctl' | systemd-cat -p notice -t upsd
        *) ;;

On Tue, Aug 15, 2017 at 6:01 AM, Charles Lepple <clepple at gmail.com> wrote:

> On Aug 12, 2017, at 12:00 PM, Rory Jaffe <rsjaffe at gmail.com> wrote:
> >
> > OS Version: Linux piaware 4.9.35-v7+ #1014 SMP Fri Jun 30 14:47:43 BST
> 2017 armv7l GNU/Linux
> > Nut Version: 2.7.2-4
> > Nut Installation Method: apt
> > Device: CyberPower PR1500LCD
> > Uses​ ​Generic HID driver 0.38 (2.7.2)
> Is this stock Raspbian or another variant?
> If it is Raspbian, I think it might be affected by a Debian issue with
> libusb-0.1. It is possible to rebuild from source and use libusb-1.0
> instead - let us know if that sounds reasonable. You can also check the
> list archives for previous discussions (although I think we were seeing
> issues with Tripp-Lite hardware more frequently).
> Also, sometimes swapping out the USB cable can help.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20170828/3a15d5ee/attachment.html>

More information about the Nut-upsuser mailing list