Udev rules

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Hi

I'm coming from an ubuntu background where this line in the udev.rule 
file worked.
SUBSYSTEMS=="usb", ATTR{idVendor}=="0fd1", ATTR{idProduct}=="1000", 
ATTR{bConfigurationValue}=="1",RUN+="/bin/bash -c 'echo 3 > 
/sys/bus/usb/devices/%b/bConfigurationValue'"

However this does not work in Arch and I'm really struggling to 
understand the udev wiki and udev rules - its going a bit over my head 
at the moment.  I have experimented with trying this line from looking 
at other udev rules:

SUBSYSTEM=="usb", SYSFS{idProduct}=="1000", SYSFS{idVendor}=="0fd1", 
RUN+="/bin/bash -c 'echo 3 > /sys/bus/usb/devices/%b/bConfigurationValue'"

the device is then recognised but /var/log/messages then shows and 
endless looping of the device be connected and disconnected.

I'm not sure what to do.

Please can someone help?

M

Sent via my BlackBerry from Vodacom - let your email find you!


[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux