Mailinglist Archive: opensuse (1986 mails)
| < Previous | Next > |
[opensuse] Attempting (and failing) to use my UPS
- From: "Carlos E. R." <carlos.e.r@xxxxxxxxxxxx>
- Date: Tue, 18 Nov 2008 02:43:35 +0100 (CET)
- Message-id: <alpine.LSU.2.00.0811180222440.6163@xxxxxxxxxxxxxxxx>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
I'm attempting to make use of my new UPS, connecting it via USB to the 'nut' service (nut-classic package), but I'm failing.
It is a Belkin, model BU306000me. According to <http://www.networkupstools.org/compat/stable.html> I should use the driver megatec_usb, because the vendor id 0665.
See the kernel log:
kernel: usb 3-1: new low speed USB device using uhci_hcd and address 14
kernel: usb 3-1: configuration #1 chosen from 1 choice
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
kernel: usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
kernel: usb 3-1: Product: USB to Serial
kernel: usb 3-1: Manufacturer: Cypress Semiconductor
So in '/etc/ups/ups.conf' I configured it thus:
[myups]
driver = megatec_usb
port = /dev/hiddev0
desc = "Local UPS"
When I run "rcupsd start" it fails; it simply says "failed", there is nothing in the logs. But searching this list archive, I found one
Date: Jun 2008
Subject: Re: [opensuse] new ups device, what location
in which it says, amongst other things, that the user 'upsd' should be added to the group 'uucp' - I understand because the the daemon runs as user and needs access to '/dev/hiddev0':
crw-rw-r-- 1 root daemon 180, 96 Nov 18 01:55 /dev/hiddev0
but perhaps it now has to be added to the group "daemon", so that I have added user 'upsd' to both groups. Now I'm getting output in the logs, so I must have done something right.
The script "rcupsd start" takes 45" to finish, and fails:
nimrodel:~ # time rcupsd start
Starting NUT UPS drivers failed
real 0m45.113s
user 0m0.028s
sys 0m0.044s
One of the problems is that the device _disappears_ as soon as the above script starts:
nimrodel:/etc/ups # l /dev/hiddev0
ls: cannot access /dev/hiddev0: No such file or directory
and a minute before it was there. There is an entry in the log:
Nov 18 01:57:35 nimrodel megatec_usb[23363]: Startup successful
but I think it is false, though I'm unsure how to test it. I suppose it should be this:
nimrodel:/etc/ups # upscmd -l myups
Error: Connection failure: Connection refused
but it fails. Something is running, though:
23276 ? Ss 0:00 /usr/lib/ups/driver/megatec_usb -a myups
The daemon stop is also problematic, takes 4 seconds but succeeds:
nimrodel:~ # time rcupsd stop
Shutting down NUT UPS monitor done
Shutting down NUT UPS server done
Shutting down NUT UPS drivers.... done
real 0m4.295s
user 0m0.104s
sys 0m0.128s
nimrodel:~ #
and the log shows it:
Nov 18 01:58:58 nimrodel megatec_usb[23363]: Signal 15: exiting
I have also tried using mknod to create the device, to no avail. Of course, it does not disappear, but it does not work.
nimrodel:/etc/ups # mknod /dev/hiddev0 c 180 96
nimrodel:/etc/ups # chmod 0664 /dev/hiddev0
nimrodel:/etc/ups # chown :uucp /dev/hiddev0
What can I do to make it work - if it should work at all?
- --
Cheers
Carlos E. R.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
iEYEARECAAYFAkkiHckACgkQtTMYHG2NR9WqLQCdEb9QcYvgf32JJijwxQUiCufP
d/EAnRuFEsSVygLVoQxtjXLWAzMOMrJT
=/HfX
-----END PGP SIGNATURE-----
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx
Hash: SHA1
Hi,
I'm attempting to make use of my new UPS, connecting it via USB to the 'nut' service (nut-classic package), but I'm failing.
It is a Belkin, model BU306000me. According to <http://www.networkupstools.org/compat/stable.html> I should use the driver megatec_usb, because the vendor id 0665.
See the kernel log:
kernel: usb 3-1: new low speed USB device using uhci_hcd and address 14
kernel: usb 3-1: configuration #1 chosen from 1 choice
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
kernel: usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
kernel: usb 3-1: Product: USB to Serial
kernel: usb 3-1: Manufacturer: Cypress Semiconductor
So in '/etc/ups/ups.conf' I configured it thus:
[myups]
driver = megatec_usb
port = /dev/hiddev0
desc = "Local UPS"
When I run "rcupsd start" it fails; it simply says "failed", there is nothing in the logs. But searching this list archive, I found one
Date: Jun 2008
Subject: Re: [opensuse] new ups device, what location
in which it says, amongst other things, that the user 'upsd' should be added to the group 'uucp' - I understand because the the daemon runs as user and needs access to '/dev/hiddev0':
crw-rw-r-- 1 root daemon 180, 96 Nov 18 01:55 /dev/hiddev0
but perhaps it now has to be added to the group "daemon", so that I have added user 'upsd' to both groups. Now I'm getting output in the logs, so I must have done something right.
The script "rcupsd start" takes 45" to finish, and fails:
nimrodel:~ # time rcupsd start
Starting NUT UPS drivers failed
real 0m45.113s
user 0m0.028s
sys 0m0.044s
One of the problems is that the device _disappears_ as soon as the above script starts:
nimrodel:/etc/ups # l /dev/hiddev0
ls: cannot access /dev/hiddev0: No such file or directory
and a minute before it was there. There is an entry in the log:
Nov 18 01:57:35 nimrodel megatec_usb[23363]: Startup successful
but I think it is false, though I'm unsure how to test it. I suppose it should be this:
nimrodel:/etc/ups # upscmd -l myups
Error: Connection failure: Connection refused
but it fails. Something is running, though:
23276 ? Ss 0:00 /usr/lib/ups/driver/megatec_usb -a myups
The daemon stop is also problematic, takes 4 seconds but succeeds:
nimrodel:~ # time rcupsd stop
Shutting down NUT UPS monitor done
Shutting down NUT UPS server done
Shutting down NUT UPS drivers.... done
real 0m4.295s
user 0m0.104s
sys 0m0.128s
nimrodel:~ #
and the log shows it:
Nov 18 01:58:58 nimrodel megatec_usb[23363]: Signal 15: exiting
I have also tried using mknod to create the device, to no avail. Of course, it does not disappear, but it does not work.
nimrodel:/etc/ups # mknod /dev/hiddev0 c 180 96
nimrodel:/etc/ups # chmod 0664 /dev/hiddev0
nimrodel:/etc/ups # chown :uucp /dev/hiddev0
What can I do to make it work - if it should work at all?
- --
Cheers
Carlos E. R.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
iEYEARECAAYFAkkiHckACgkQtTMYHG2NR9WqLQCdEb9QcYvgf32JJijwxQUiCufP
d/EAnRuFEsSVygLVoQxtjXLWAzMOMrJT
=/HfX
-----END PGP SIGNATURE-----
--
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx
| < Previous | Next > |