Re: Nut,usb and installation

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

 



On Sun, 25 Sep 2005, david walcroft wrote:

Thomas Taylor wrote:
On Saturday 24 September 2005 18:43, david walcroft wrote:

Markku Kolkka wrote:

david walcroft kirjoitti viestissään (lähetysaika sunnuntai, 25.

syyskuuta 2005 00:37):

# If the UPS is locally attached set it to "yes"
SERVER=yes
# Model of the UPS (filename to call for it, without path)
# Example - one of
#       apcsmart        - APC SMartUPS and similar
#       fentonups       - Fenton UPS
#       optiups
#       bestups
#       genericups
#       ups-trust425+625
#  upsdrvctl
# You MUST change this, or set SERVER to "no"
# To support multiple drivers, set MODEL=upsdrvctl
MODEL=Powermate-3105

The "MODEL" parameter does _not_ mean the actual model of your
ups, you must set it to the nut driver used for your UPS (or
"upsdrvctl").


# UPS device - needed if UPS is locally attached
DEVICE=/dev/ttyS0

Wasn't your UPS connected through USB, not the serial port?

Ok, I'll set up with MODEL=genericups, but I'm not sure what USB uses
for connections <socket> <port> and how to determine the same for a
config file.

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



Thanks for all you help Markku.

                                  david


-- To find out where udev is putting your ups, as root run "tail /var/log/message" after plugging the ups into the usb socket, the entry you want will probably contain /dev/ttyUSB1..4. But be warned, it may not always be loaded as the same usb device depending on other usb devices being plugged or unplugged.

You will probably have to write a rule for your ups. Take a look at the man page for udev and examine the existing rules in /etc/udev/rules/d to get the idea. It would be a good idea to create a "file" under /dev, sav /dev/ups, and put a symlink pointing to it in the rule.
Hope this helps,
Tom

-
Tom Taylor
Linux user #263467
Federal Way, WA
Iraq war: 1,914 and counting

Thanks Tom,
I've run 'Tail /var/log/messages' several times before - same result

"Sep 25 17:19:24 reddwarf kernel: usb 3-2: USB disconnect, address 2

Sep 25 17:19:34 reddwarf kernel: usb 3-2: new low speed USB device using uhci_hcd and address 5"

I have never seen so many config files for one programme !!


 david







--
		Matthew Saltzman

Clemson University Math Sciences
mjs AT clemson DOT edu
http://www.math.clemson.edu/~mjs

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux