[Nut-upsuser] UPS hotplug
Maxence Rioblanc
maxence.rioblanc at ixblue.com
Wed Nov 17 14:54:30 GMT 2021
Hi Bart,
Thanks for the clue.
I tried and managed to make it works by modifying the udev rule I was
working with.
Not sure if this is 100% correct but I can now recover my UPS when I
hotplug it:
/etc/udev/rules.d/ 90-nut-ups.rules
# ECUS UPS
ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="0001",
ATTR{idProduct}=="0000", MODE="0664", GROUP="nut",
RUN+="/usr/bin/systemctl restart nut-server.service"
Best regards,
Maxence
De : Bart J. Smit <bart at smits.scot>
Envoyé : mercredi 17 novembre 2021 13:45
À : Maxence Rioblanc <maxence.rioblanc at ixblue.com>;
nut-upsuser at alioth-lists.debian.net
Objet : RE: UPS hotplug
You can add a udev script to restart NUT when the UPS is plugged in
https://wiki.debian.org/udev
From: Nut-upsuser
<nut-upsuser-bounces+bart=smits.co.uk at alioth-lists.debian.net
<mailto:nut-upsuser-bounces+bart=smits.co.uk at alioth-lists.debian.net> > On
Behalf Of Maxence Rioblanc
Sent: 16 November 2021 11:55
To: nut-upsuser at alioth-lists.debian.net
<mailto:nut-upsuser at alioth-lists.debian.net>
Subject: [Nut-upsuser] UPS hotplug
Hello,
Im using nut for few days and found it working perfectly fine in most
conditions. However, there is one behavior I am not able to handle
correctly:
When I boot my computer (I am in a mode=standalone configuration) while my
UPS is not connected and that I plug it (using USB cable) later, the
driver doesnt mount automatically, and I am not able to enable
communication with my UPS.
I need to restart nut-server.service to get communication established.
Is there any way to make this hot plug works?
My configuration:
* Debian 11
* NUT 2.7.4-13 installed from apt-get
* UPS: ECUS MRT_2_1000 running fine with blazer_usb driver
*
Regards,
Maxence
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/nut-upsuser/attachments/20211117/436241df/attachment.htm>
More information about the Nut-upsuser
mailing list