[Nut-upsuser] Problem detecting USB/HID UPS

Brian Foster penguinator781 at gmail.com
Thu Aug 17 16:43:26 UTC 2006


I was wrong in my interpretation of the information provided by man 
udevinfo.   Thanks for helping me out with that (-a flag).
My question now becomes: should I worry about the permissions on the usb 
device, and if so, how do I correct the fact that udev is not using our 
rule?
Thanks for the quick responses!

root at thebeast:/etc/nut# udevinfo -q all -a  -p /class/usb_device/usbdev1.21
device '/sys/class/usb_device/usbdev1.21' has major:minor 189:20
  looking at class device '/sys/class/usb_device/usbdev1.21':
    KERNEL=="usbdev1.21"
    SUBSYSTEM=="usb_device"
    SYSFS{dev}=="189:20"

follow the "device"-link to the physical device:
  looking at the device chain at 
'/sys/devices/pci0000:00/0000:00:1d.0/usb1/1-1':
    BUS=="usb"
    ID=="1-1"
    DRIVER=="usb"
    SYSFS{bConfigurationValue}=="1"
    SYSFS{bDeviceClass}=="00"
    SYSFS{bDeviceProtocol}=="00"
    SYSFS{bDeviceSubClass}=="00"
    SYSFS{bMaxPacketSize0}=="8"
    SYSFS{bMaxPower}=="100mA"
    SYSFS{bNumConfigurations}=="1"
    SYSFS{bNumInterfaces}==" 1"
    SYSFS{bcdDevice}=="0010"
    SYSFS{bmAttributes}=="a0"
    SYSFS{configuration}==""
    SYSFS{devnum}=="21"
    SYSFS{idProduct}=="2005"
    SYSFS{idVendor}=="09ae"
    SYSFS{manufacturer}=="Tripp Lite "
    SYSFS{maxchild}=="0"
    SYSFS{product}=="TRIPP LITE UPS "
    SYSFS{serial}=="692199 B "
    SYSFS{speed}=="1.5"
    SYSFS{version}==" 1.10"


~Brian Foster


Peter Selinger wrote:
> Brian Foster wrote:
>   
>> Hi all,
>> I guess this is more for the development side of things, rather than for 
>> my own benefit:
>> In response to the permission problems I was experiencing, I looked at 
>> the udevinfo output for my Tripplite SMART1200LCD, and this is all it 
>> gives me:
>>
>> brifo at thebeast:/$ udevinfo -q all -p /class/usb_device/usbdev1.18
>> P: /class/usb_device/usbdev1.18
>> N: bus/usb/001/018
>> E: USB_BUS=001
>> E: USB_DEV=018
>>     
>
> Did you try running "udevinfo" as root? It seems, if there is a
> permission problem, you cannot open the device as a regular user,
> hence not get any information about it.
>
>   
>> man udevinfo states that these are the attributes that can be used when 
>> making rules for the udev .rules files.  The obvious problem is that the 
>> only available information for the Tripplite SMART 1200 USB is its USB 
>> connectivity info, which changes with each unplug and boot.  This makes 
>> it next to impossible to form dependable permissions rules.  I think 
>> I'll take Peter's advice on his website and just run the apps (upsmon,  
>> upsdrvctl, etc) as root.  If anyone has any better solutions, I would 
>> gladly be open to suggestions. 
>>
>> ~Brian Foster
>>
>>
>>
>>     
>> _______________________________________________
>> Nut-upsuser mailing list
>> Nut-upsuser at lists.alioth.debian.org
>> http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser
>>
>>     
>
>
>   



More information about the Nut-upsuser mailing list