[Nut-upsuser] suse linux and nut

Peter Selinger selinger at mathstat.dal.ca
Sat Aug 26 13:13:20 UTC 2006


Marc Collin wrote:
> 
> changed for
> 
> [myups]
>        driver = newhidups
>        port = /dev/hiddev0
>        desc = "Ultra ULT31502"
> 
> maybe some information that can be usefull
> 
> drivers/newhidups -DDD -u root /dev/hiddev0

... [works]

> when i try to start the driver
> 
> /usr/local/ups/bin/upsdrvctl start

... [doesn't work]

You did "make install", right? (Else upsdrvctl might be trying to
start an older version of the driver). 

Since the first method works and the second does not, this is probably
a permissions problem. This means that your USB device is not owned by
the same user that the driver runs as (typically a user called "ups").

Try running upsdrvctl with "-u root". If this works, then it's
definitely a permissions problem.

You can run upsdrvctl and upsd with "-u root" for now for testing
purposes.  Later, you would have to find a way to change the ownership
of the USB device to the "ups" user. Since USB devices are created
dynamically when the device is plugged in, the usual way to do this is
by setting up hotplugging. See scripts/hotplug and scripts/hotplug-ng.

-- Peter




More information about the Nut-upsuser mailing list