[Nut-upsuser] Can not find the Belkin F6H375-USB

dcw dwoody1 at charter.net
Tue Jun 5 22:12:31 UTC 2007


On Tuesday 05 June 2007 4:35 pm, you wrote:
> On 6/5/07, dcw <dwoody1 at charter.net> wrote:
> > See additional comments below.
> >
> > On Monday 04 June 2007 6:07 pm, dcw wrote:
> > > On Sunday 03 June 2007 9:56 pm, dcw wrote:
> > > > On Sunday 03 June 2007 9:44 pm, you wrote:
> > > > > On 6/3/07, dcw <dwoody1 at charter.net> wrote:
> > > > > > On Sunday 03 June 2007 5:49 pm, you wrote:
> > > > > > > On 6/3/07, Charles Lepple <clepple at gmail.com> wrote:
> > > > > > > > Since you said this worked under 2.0.4 on Mandriva, I will
> > > > > > > > suggest that this product ID be added to the driver for the
> > > > > > > > next release. (The 2.0.4 Belkin HID driver apparently didn't
> > > > > > > > check the VID at all, just the PID.)
> > > > > >
> > > > > > But the 2.0.4 does not work on CentOS5 which is a clone of RHEL5.
> > > > > > The 2.0.5 does not work on CentOS5 either.
> > > > > > I added the following line to
> > > > > > /etc/udev/rules.d/025_nut-usbups.rules for version 2.0.5:
> > > > > > SYSFS{idVendor}=="050d", SYSFS{idProduct}=="0375", MODE="664",
> > > > > > GROUP="ups"
> > > > > >
> > > > > > This did not help.
> > > > >
> > > > > Did you unplug and replug the USB cable after adding this? (I think
> > > > > there might be a way to tell udev to rescan, but I don't know off
> > > > > the top of my head how that works.)
> > > >
> > > > I am sure I did but I did again, just to make sure.
> > > >
> > > > > What does the /proc/bus/usb node for the UPS look like (ls -l)
> > >
> > > after/usr/local/ups/bin/newhidups -x productid=0375 -u root -D  auto
> > >
> > > > > you add the rule and re-plug the UPS?
> > > >
> > > > Everything is owned by root as follows:
> > > > [root]->l /proc/bus/usb
> > > > total 0
> > > > dr-xr-xr-x 2 root root 0 May 28 07:26 001
> > > > -r--r--r-- 1 root root 0 Jun  3 21:51 devices
> > > > [root]->l /proc/bus/usb/001
> > > > total 0
> > > > -rw-r--r-- 1 root root 43 May 28 07:26 001
> > > > -rw-r--r-- 1 root root 57 May 28 07:26 003
> > > > -rw-r--r-- 1 root root 52 Jun  3 21:51 009
> > > >
> > > > > > I assume that since it works on Mandriva 2006 and not CentOS5
> > > > > > that there is a configuration error on CentOS separate from the
> > > > > > nut software. Would CentOS mailing list be the best place to ask
> > > > > > about that or stay with this thread and see if others have any
> > > > > > input?
> > > > >
> > > > > Can't hurt to ask on the CentOS lists. Someone here might have some
> > > > > other suggestions, but that's all I have based on the error
> > > > > messages you sent before.
> > >
> > > I have not gotten anything from CentOS yet but I did continue to do
> > > some research. The following command finds the UPS:
> > > /usr/local/ups/bin/newhidups -x productid=0375 -u root -D  auto
> > >
> > > Trying several different combinations of the above command line I have
> > > to have both:
> > > -x productid=0375
> > > and
> > > -u root
> > > for it to work.
> > >
> > > the ups.conf now looks like:
> > >         driver = newhidups
> > >         productid=0375
> > >         port = auto
> > >
> > > adding the productid line did not help
> > >
> > > I added these lines /etc/udev/rules.d/nut-usbups.rules:
> > > # Belkin  - Belkin-UBS
> > > SYSFS{idVendor}=="050d", SYSFS{idProduct}=="0375", MODE="660",
> > > GROUP="ups" Adding that line did not help either.
> > >
> > > FYI, when compiling nut, I use ./configure --with-user=ups
> > > and user ups is in group ups.
> > >
> > > SO, then I tried the upsdrvctl command with -root as an option and it
> > > appeared to work.
> > > Running upsd gave a permission denied error.
> > > What permissions and how do they need to be set for the upsd command to
> > > work?
> >
> > After more research here is what makes it work
> > the ups.conf now looks like:
> > [ups]
> >          driver = newhidups
> >          productid=0375
> >          port = auto
> >
> > Inserted the following lines to /etc/udev/rules.d/nut-usbups.rules:
> > # Belkin  - Belkin-UBS
> >  SYSFS{idVendor}=="050d", SYSFS{idProduct}=="0375", MODE="660",
> > GROUP="ups"
> >
> > Then run:
> > /usr/local/ups/bin/upsdrvctl -u root start
> > chown ups:ups /var/state/ups/*
> > /usr/local/ups/sbin/upsd
> > /usr/local/ups/sbin/upsmon
> > /usr/local/ups/bin/upsc ups@$HOSTNAME ups.status
> > The upsc command displays:
> >          0L CHRG
> > I assume the chown command above indicates that there is still a
> >  configuration that is wrong somewhere.
> > Everything in /usr/local/ups is owned ups:ups.
> > Everthing in /var/state is owned by ups:ups
> > After upsdrvctl is run there are files in /var/state/ups that have the
> > ownership changed to root:root.
>
> You mentioned that you were running upsdrvctl with "-u root"; hence,
> it will not change its userid to ups:ups.
Running upsdrvctl without a -u option it fails and if I use -u ups it also 
fails.

David



More information about the Nut-upsuser mailing list