Jag

Members
  • Posts

    4
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Jag's Achievements

Noob

Noob (1/14)

0

Reputation

  1. That is my suspect as well. Just do not know how to check yet. Thanks Dmacias.
  2. You might need this package too kmod-usb-hid and maybe more. I'm not sure as I've only played with openwrt a bit. driver is already there: root@GL-MT300N-V2:~# opkg list-installed | grep kmod-usb-hid kmod-usb-hid - 4.4.92-1 I tried to shutdown the UPS through this command and I get: root@GL-MT300N-V2:~# /lib/nut/usbhid-ups -a durant -D -k Network UPS Tools - Generic HID driver 0.41 (reboot-6807-g58f7b5b) USB communication driver 0.33 0.000000 debug level is '1' 0.001698 upsdrv_initups... 0.018973 Can't claim USB device [0764:0501]: No such file or directory I checked /dev/usb/hiddev0 and nothing is there. Then I unplug/plug my USB, /dev/usb/hiddev0 shows up, I try to shutdown again, and then it works. Problem is, unplug/plug is not a solution. Would you know what is going wrong here? Read a lot and some say I need to do udev stuff. Problem though, openwrt has no udev.
  3. here's what I got from debug lines... root@GL-MT300N-V2:~# /lib/nut/usbhid-ups -DDDDD -a durant Network UPS Tools - Generic HID driver 0.41 (reboot-6807-g58f7b5b) USB communication driver 0.33 0.000000 send_to_all: SETINFO driver.parameter.port "auto" 0.001167 send_to_all: SETINFO driver.parameter.vendorid "0764" 0.002656 send_to_all: SETINFO driver.parameter.productid "0501" 0.003927 send_to_all: SETINFO driver.parameter.product "CP1500EPFCLCD" 0.005188 send_to_all: SETINFO driver.parameter.serial "CRNGV2000035" 0.005373 send_to_all: SETINFO driver.parameter.vendor "CPS" 0.006187 send_to_all: SETINFO driver.parameter.bus "002" 0.006371 send_to_all: SETINFO driver.flag.ignorelb "enabled" 0.006513 send_to_all: SETINFO battery.runtime.low "4000" 0.006606 send_to_all: SETFLAGS battery.runtime.low 0.006765 debug level is '5' 0.007771 upsdrv_initups... 0.013575 Checking device (1D6B/0002) (001/001) 0.015552 - VendorID: 1d6b 0.016554 - ProductID: 0002 0.017856 - Manufacturer: Linux 4.4.92 ehci_hcd 0.018840 - Product: EHCI Host Controller 0.020118 - Serial Number: 101c0000.ehci 0.020867 - Bus: 001 0.021482 - Device release number: 0404 0.021595 Trying to match device 0.021687 Device does not match - skipping 0.021841 Checking device (0764/0501) (002/007) 0.032514 - VendorID: 0764 0.033564 - ProductID: 0501 0.033688 - Manufacturer: CPS 0.033754 - Product: CP1500EPFCLCD 0.033819 - Serial Number: CRNGV2000035 0.034533 - Bus: 002 0.034616 - Device release number: 0001 0.034681 Trying to match device 0.034920 Device matches 0.035020 failed to claim USB device: Resource busy 0.035109 failed to detach kernel driver from USB device: No such file or directory 0.035758 failed to claim USB device: Resource busy 0.035864 failed to detach kernel driver from USB device: No such file or directory 0.035948 failed to claim USB device: Resource busy 0.036031 failed to detach kernel driver from USB device: No such file or directory 0.036113 failed to claim USB device: Resource busy 0.036199 failed to detach kernel driver from USB device: No such file or directory 0.036284 Can't claim USB device [0764:0501]: No such file or directory
  4. Hi, I am trying to run nut on my router (GL-iNet) on openwrt. Installed the following packages: nut, nut-driver-usbhid-ups Here is my ups.conf: [durant] driver = "usbhid-ups" port = "auto" vendorid = "0764" productid = "0501" product = "CP1500EPFCLCD" serial = "CRNGV2000035" vendor = "CPS" bus = "002" desc = "Cyber Power CP1500EPFCLCD Unit 35" ignorelb override.battery.runtime.low = 4000 override.ups.timer.shutdown = 10 override.ups.delay.shutdown = 60 upsmon.conf says... MONITOR durant@localhost 1 root pass master When I try to shutdown the UPS, I always get this message: root@GL-MT300N-V2:~# upsdrvctl shutdown Network UPS Tools - UPS driver controller reboot-6807-g58f7b5b Network UPS Tools - Generic HID driver 0.41 (reboot-6807-g58f7b5b) USB communication driver 0.33 Can't claim USB device [0764:0501]: No such file or directory Driver failed to start (exit status=1) No other UPS process is running (e.g. apcupsd) Thanks in advance.