[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Nut,usb and installation



Matthew Saltzman wrote:


All the drivers listed as examples in /etc/sysconfig/ups are for devices connected by serial cable.

If your UPS is connected via USB, use MODEL=hidups. (If that doesn't work, try MODEL=newhidups. The only other USB-enabled driver is energizerups, but that's brand specific.) The DEVICE will be something like /dev/hiddevX (where X is a digit. The device will be created at startup, so you should not need an entry is /etc/udev/rules.d.

On boot, I see:

  Sep 10 12:43:20 yankee kernel: hiddev96: USB HID v1.10 Device [APC
  Back-UPS ES 650 FW:818.w1.D USB FW:w1] on usb-0000:00:04.2-2

The device created is:

  # ls -l /dev/hiddev0
  crw-rw----  1 root root 180, 96 Sep 17 12:52 /dev/hiddev0

My /etc/sysconfig/ups has

  MODEL=hidups
  DEVICE=/dev/hiddev0

Changed my "MODEL=[new]hidups" and booted both with no result,no /dev/hiddev* is generated and syslog has errors:

Sep 25 21:50:55 reddwarf upsmon[2105]: Set username on [david reddwarf] failed: Server disconnected

Sep 25 21:51:05 reddwarf upsmon[2105]: Poll UPS [david reddwarf] failed - Write error: Bad file descriptor

david


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]