[Nut-upsuser] Usb, udev and nut
Sean Thomas
SeanT at zdata.co.za
Mon May 12 12:31:47 UTC 2008
Hi
Just normal symlinking linking works for me too. It's the udev version
that's got issues
1. Its version 2.0.4-4 installed from a .deb running on Debian 4.0
2. lrwxrwxrwx 1 root root 7 2008-05-09 08:59 /dev/upsserial2usb ->
ttyUSB0
AND
crw-rw-r-- 1 root nut 188, 0 2008-05-12 14:23 /dev/upsserial2usb
3. Network UPS Tools - Megatec protocol driver 1.4 (2.0.4)
Carlos Rodrigues (c) 2003-2006
debug level is '1'
/dev/ttyUSB0 is locked by another process
OK, I am starting to see now where this is going. Any further help will
be much appreciated.
Thanks
Sean
-----Original Message-----
From: Charles Lepple [mailto:clepple at gmail.com]
Sent: Monday, May 12, 2008 1:50 PM
To: Sean Thomas
Cc: nut-upsuser at lists.alioth.debian.org
Subject: Re: [Nut-upsuser] Usb, udev and nut
On Mon, May 12, 2008 at 7:05 AM, Sean Thomas <SeanT at zdata.co.za> wrote:
> And here is the problem: upsdrvctl will fail to start when pointed to
> the symlink that the udev rule creates, but will start normally when
> set to use /dev/ttyUSB0 for example.
That's a handy rule to have.
I will have to try again later with udev and a USB-to-serial adapter,
but I did a quick test with a symlink to /dev/ttyS0, using NUT from the
SVN trunk (rev 1368), and I did not have any problems starting the
bestups driver.
Let's try and close the gap between what works, and what doesn't:
1) What version of NUT are you using? Did you compile from source, or is
it provided by your Linux distribution as a package?
2) What do you get from 'ls -l /dev/upsserial2usb' and 'ls -lL
/dev/upsserial2usb'?
3) Run upsdrvctl with "-t" as well, and copy the command it uses to
start the driver. Then, add "-D" to that command and run it. For me,
this would be "/lib/nut/bestups -D -a ppro2". What messages do you get
from the driver?
--
- Charles Lepple
More information about the Nut-upsuser
mailing list