[opensuse] Attempting (and failing) to use my UPS



-----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



Relevant Pages

  • [SLE] APCUPSD (Battery Backup) Question
    ... Running SuSE 9.3 with an APC BX1000 UPS. ... When I disconnect the USB cable apcupsd is supposed to report that it has ... lost connection with the UPS. ... LOTRANS: 097.0 Volts ...
    (SuSE)
  • Re: USB - UPS problem
    ... Recently purchased Eaton Nova AVR 1250 ups to replace an old faulty unit (different make, but also USB) ... Unit constantly loses its connection, usually it re-enables after a few secs but occassionaly the only way to reconnect is by rebooting PC ...
    (microsoft.public.windowsxp.hardware)
  • Re: USB - UPS problem
    ... Recently purchased Eaton Nova AVR 1250 ups to replace an old faulty ... USB connected direct to mobo, the ups load level is only 16% ... Unit constantly loses its connection, usually it re-enables after a few ... usb to same or other port has no impact) ...
    (microsoft.public.windowsxp.hardware)
  • Re: USB - UPS problem
    ... tried different ports / cable ... Recently purchased Eaton Nova AVR 1250 ups to replace an old faulty unit ... USB connected direct to mobo, the ups load level is only 16% ... If it loses connection then obviously I dont have proper ups protection, ...
    (microsoft.public.windowsxp.hardware)
  • Re: explorer.exe freezes
    ... My experience is based a wired broadband internet connection. ... early versions of USB were much slower than USB 2. ...
    (microsoft.public.windowsxp.general)