[root@nas1]# lsusb -tv/: Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 5000M/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 480M|__ Port 1: Dev 2, If 0, Class=HID, Driver=usbhid, 1.5M/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=orion-ehci/1p, 480M[root@nas1]# dmesg | grep -i usb
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
orion-ehci d0050000.usb: EHCI Host Controller
orion-ehci d0050000.usb: new USB bus registered, assigned bus number 1
orion-ehci d0050000.usb: irq 27, io mem 0xd0050000
orion-ehci d0050000.usb: USB 2.0 started, EHCI 1.00
hub 1-0:1.0: USB hub found
xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 2
hub 2-0:1.0: USB hub found
xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 3
usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
hub 3-0:1.0: USB hub found
usbcore: registered new interface driver usb-storage
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
usb 2-1: new low-speed USB device number 2 using xhci_hcd
usb 2-1: ep 0x81 - rounding interval to 64 microframes, ep desc says 80 microframes
usbcore: registered new interface driver usblp
usbcore: deregistering interface driver usblp
usbcore: registered new interface driver usblp[root@nas1]# upsdrvctl startNetwork UPS Tools - UPS driver controller 2.8.0Network UPS Tools - Generic HID driver 0.47 (2.8.0)USB communication driver (libusb 1.0) 0.43kill: No such processDriver exited abnormallyNetwork UPS Tools - Generic HID driver 0.47 (2.8.0)USB communication driver (libusb 1.0) 0.43kill: No such processDriver exited abnormallyNetwork UPS Tools - Generic HID driver 0.47 (2.8.0)USB communication driver (libusb 1.0) 0.43kill: No such processDriver exited abnormally[root@nas1]# upsd -u rootNetwork UPS Tools upsd 2.8.0kill: No such processlistening on 127.0.0.1 port 3493not listening on ::1 port 3493/opt/var/run is world readableCan't connect to UPS [apcups] (usbhid-ups-apcups): Connection refused[root@nas1]# upsc apcups
Error: Connection failure: Connection refused
/: Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 5000M[root@nas1]# lsusb -tv|__ Port 1: Dev 5, If 0, Class=HID, Driver=usbhid, 1.5M/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/2p, 480M[root@nas1]# upsdrvctl start/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=orion-ehci/1p, 480MNetwork UPS Tools - Generic HID driver 0.47 (2.8.0)Network UPS Tools - UPS driver controller 2.8.0kill: No such processUSB communication driver (libusb 1.0) 0.43[root@nas1]# upsd -u rootUsing subdriver: APC HID 0.98fopen /opt/var/run/upsd.pid: No such file or directoryNetwork UPS Tools upsd 2.8.0Could not find PID file '/opt/var/run/upsd.pid' to see if previous upsd instance is already running!
listening on 127.0.0.1 port 3493not listening on ::1 port 3493/opt/var/run is world readableConnected to UPS [apcups]: usbhid-ups-apcups[root@nas1]# upsc apcupsbattery.charge: 100battery.charge.low: 10battery.charge.warning: 50battery.date: not setbattery.mfr.date: 2024/11/06battery.runtime: 1380battery.runtime.low: 120battery.type: PbAcbattery.voltage: 13.6battery.voltage.nominal: 12.0device.mfr: APCdevice.model: Back-UPS ES 550device.serial: XXXXXXXXXXXdevice.type: upsdriver.name: usbhid-upsdriver.parameter.pollfreq: 30driver.parameter.pollinterval: 2driver.parameter.port: autodriver.parameter.synchronous: autodriver.version: 2.8.0driver.version.data: APC HID 0.98driver.version.internal: 0.47driver.version.usb: libusb-1.0.22 (API: 0x1000106)input.sensitivity: highinput.transfer.high: 139input.transfer.low: 92input.voltage: 122.0input.voltage.nominal: 120ups.beeper.status: enabledups.delay.shutdown: 20ups.firmware: 843.K2 .Dups.firmware.aux: K2ups.load: 18ups.mfr: APCups.mfr.date: 2010/08/29ups.model: Back-UPS ES 550ups.productid: 0002ups.serial: XXXXXXXXXXXups.status: OLups.timer.reboot: 0ups.timer.shutdown: -1ups.vendorid: 051d
I know that this is a 10 year old thread at https://groups.google.com/g/alt-f/c/Wtc6geFyypk that never got resolved. I recently added an APC UPS behind my DNS-327L Alt-F 1.0 NAS (and some other hardware) that I likewise am trying to use NUT on. After a reboot, the USB connection to the UPS is not seen by NUT unless I unplug the USB cable and plug it back into the DNS-327L. I am using the NUT package from Entware-ng.
After a reboot, lsusb does see it, but NUT does not
[root@nas1]# dmesg | grep -i usb
Has there ever been a fix for this other than to unplug and replug the USB port after the Alt-F NAS reboots?
[root@nas1]# dmesg | egrep '(usb|051D)'
orion-ehci d0050000.usb: EHCI Host Controllerorion-ehci d0050000.usb: new USB bus registered, assigned bus number 1orion-ehci d0050000.usb: irq 27, io mem 0xd0050000orion-ehci d0050000.usb: USB 2.0 started, EHCI 1.00
usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
usbcore: registered new interface driver usb-storageusbcore: registered new interface driver usbhidusbhid: USB HID core driverusb 2-1: new low-speed USB device number 2 using xhci_hcdusb 2-1: ep 0x81 - rounding interval to 64 microframes, ep desc says 80 microframes
hid-generic 0003:051D:0002.0001: device has no listeners, quitting
usbcore: registered new interface driver usblp
usb 2-1: USB disconnect, device number 2usb 2-1: new low-speed USB device number 3 using xhci_hcd
usb 2-1: ep 0x81 - rounding interval to 64 microframes, ep desc says 80 microframes
hid-generic 0003:051D:0002.0002: device has no listeners, quittingusb 2-1: USB disconnect, device number 3usb 2-1: new low-speed USB device number 4 using xhci_hcd
usb 2-1: ep 0x81 - rounding interval to 64 microframes, ep desc says 80 microframes
hid-generic 0003:051D:0002.0003: device has no listeners, quitting
--
You received this message because you are subscribed to the Google Groups "Alt-F" group.
To unsubscribe from this group and stop receiving emails from it, send an email to alt-f+un...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/alt-f/45ccdcc9-35af-4010-bed2-9331f96e86fen%40googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/alt-f/01fb48d3-4a1b-450d-acb2-2c392cf55514n%40googlegroups.com.