-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tuesday, 2008-11-18 at 03:16 -0600, David C. Rankin wrote:
Carlos,
You are getting close. There should be a whole string of e-mails on the list from about 6-8 months ago between Patrick Shanahan and myself concerning nut setup for the usb model cyber power UPS.
I know, I have read them. In fact, I mentioned them above :-)
I have forgotten the details, but the permission on the /dev/hiddev0 were important, and for some reason, if not set up right the node would get deleted, etc..
Ah, didn't notice that part. Anyway, I have tried also creating the node via mknode myself, to no avail - apparently at least.
and you would have to create it again.. The permissions need to be setGID uucp. We finally got it solved. If you can search the archives for usb ups cyber power hiddev0 shanahan, I bet you'll find an answer. It works:
I'll have another look.
For my setup hiddev0 isn't there, I have:
[03:09 nirvana/home/david/tmp/ups] # lsusb Bus 002 Device 002: ID 0764:0501 Cyber Power System, Inc. ^^^^^^^ ^^^^^^^^^^^ Bus 002 Device 001: ID 0000:0000 Bus 001 Device 001: ID 0000:0000
That's another problem: it is not listed: nimrodel:/etc/ups # lsusb Bus 003 Device 019: ID 0665:5161 Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub nimrodel:/etc/ups # l /dev/hiddev0 ls: cannot access /dev/hiddev0: No such file or directory But the kernel saw it this morning, after thawing the machine: kernel: hiddev96hidraw0: USB HID v1.00 Device [Cypress Semiconductor USB to Serial] on usb-0000:02:02.1-1 kernel: usb 3-1: New USB device found, idVendor=0665, idProduct=5161 Interestingly, the daemon is talking to the UPS, because as soon as I disconnect the cable, it starts complaining: Nov 18 12:34:30 nimrodel megatec_usb[26349]: ser_send_pace: Device detached? (error -19: error sending control message: No such device) Nov 18 12:34:30 nimrodel megatec_usb[26349]: Reconnecting to UPS failed; will retry later... Nov 18 12:34:30 nimrodel megatec_usb[26349]: Reconnecting to UPS failed; will retry later... Nov 18 12:34:32 nimrodel megatec_usb[26349]: Successfully reconnected I have read a document, about using my UPS on gentoo, that says that the megatec driver in fact ignores the /dev/hiddev0 device. It is in Spanish, though: http://www.lacofi.org/014.html#nut One of the things it says is to use the devel version, not the stable. So, according to the messages above, it is working somehow. But if I disconnect the power I see no messages.
[03:09 nirvana/home/david/tmp/ups] # l /dev/bus/usb/002/ ^^^^^^^^ total 0 drwxr-xr-x 2 root root 80 2008-11-06 04:34 ./ drwxr-xr-x 4 root root 80 2008-11-06 04:34 ../ crw-r--r-- 1 root root 189, 128 2008-11-06 04:34 001 crw-rw-r-- 1 root uucp 189, 129 2008-11-18 03:11 002 ^^^^ ^^^ ^^^ ^^^ IIRC, you need to create the node for the "Bus" and "Device"
Yep, but mine dissapears. Ah, I see... it is there, but has no name; it is the first entry: nimrodel:/etc/ups # lsusb Bus 003 Device 020: ID 0665:5161 Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub nimrodel:/etc/ups # l /dev/bus/usb/003/ total 0 drwxr-xr-x 2 root root 80 Nov 18 12:34 ./ drwxr-xr-x 5 root root 100 Nov 16 02:38 ../ crw-r--r-- 1 root root 189, 256 Nov 16 02:38 001 crw-rw-r-- 1 root daemon 189, 275 Nov 18 12:39 020 Mine belongs to "daemon", not uucp. Now it does not exist: nimrodel:/etc/ups # l /dev/hiddev0 ls: cannot access /dev/hiddev0: No such file or directory when it does, it belongs to daemon:
crw-rw-r-- 1 root daemon 180, 96 Nov 18 01:55 /dev/hiddev0
and I added 'upsd' to that group. To both groups, actually.
After creating the node about 5 times until I figured it out, I ended up with this config:
hosts.conf:
I'll have a carefull look at all those, thanks.
Good Luck
Thanks. I'll have a good look this afternoon, I hope. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAkkivakACgkQtTMYHG2NR9XdUwCfafYcgCX5etVZ9V/zfSq8cAE9 I50Anjz/+fcXnTwyWrAcexAu0pUiLNVb =YQt1 -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org