[Nut-upsuser] Need help with Unitek Alpha 1200sx.

Joseph Borg juu.borg at gmail.com
Wed Jan 2 21:39:29 UTC 2008


Many thanks for that; I seem to be getting somewhere :-):

----------------
[root at www www]# /sbin/upsdrvctl -DD -u root start
Network UPS Tools - UPS driver controller 2.2.0-
Starting UPS: myups
exec: /sbin/megatec_usb -a myups
Network UPS Tools 2.2.0- - Megatec protocol driver 1.5.4 [megatec_usb]
Carlos Rodrigues (c) 2003-2007

Serial-over-USB transport layer for Megatec protocol driver [megatec_usb]

Megatec protocol UPS detected [UNITEK Alph1200Sx A1].
-----------------
The driver seems to load fine from the above, however upsd now seems a
no-go:
[root at www ups]# /usr/sbin/upsd
Network UPS Tools upsd 2.2.0-
not listening on 0.0.0.0 port 3493
------------------
If I try:
[root at www ups]# /usr/bin/upsc myups at localhost ups.status
Error: Driver not connected

I also discovered that the log file is getting filled up with these errors:

---------------------
Jan  2 22:38:19 www kernel: usb 1-2: usbfs: process 24538 (megatec_usb) did
not claim interface 0 before use
Jan  2 22:38:19 www kernel: usb 1-2: usbfs: process 24538 (megatec_usb) did
not claim interface 0 before use
Jan  2 22:38:20 www upsmon[24650]: Poll UPS [myups at localhost] failed -
Driver not connected
Jan  2 22:38:20 www kernel: usb 1-2: usbfs: process 24380 (megatec_usb) did
not claim interface 0 before use
Jan  2 22:38:20 www kernel: usb 1-2: usbfs: process 24380 (megatec_usb) did
not claim interface 0 before use
Jan  2 22:38:21 www kernel: usb 1-2: usbfs: process 24538 (megatec_usb) did
not claim interface 0 before use
Jan  2 22:38:21 www kernel: usb 1-2: usbfs: process 24538 (megatec_usb) did
not claim interface 0 before use
Jan  2 22:38:22 www kernel: usb 1-2: usbfs: process 24380 (megatec_usb) did
not claim interface 0 before use
Jan  2 22:38:22 www kernel: usb 1-2: usbfs: process 24380 (megatec_usb) did
not claim interface 0 before use
-------------------------------

Same thing happens if I use the init script for everything (I added the -u
root to the script).

Thanks,
Joe

On Jan 2, 2008 8:54 PM, Arjen de Korte <nut+users at de-korte.org> wrote:

> Joseph Borg wrote:
>
> > The strange thing is that this fails really fast...it's as though it's
> > not even trying to detect the ups....
>
> No, it won't. You need to pass the '-u root' option, since the
> hotplug/udev rules are not setup for this VID:PID combination. Until
> then, you'll have to tell the driver to run as root, otherwise it will
> drop privileges and will never be able to claim the port.
>
> Best regards, Arjen
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20080102/05d5338d/attachment-0001.htm 


More information about the Nut-upsuser mailing list