[ltp] udev rule and bluetooth

Thomas Breitner linux-thinkpad@linux-thinkpad.org
Wed, 02 Aug 2006 09:43:19 +0200


hi there,

does anyone have some working udev-rules for the fn+f5-bluetooth-switch?

i'd like to bind "/etc/init.d/bluetooth start | stop" (and several other
scripts) via udev to enabling/disabling the internal bluetooth device.

i managed to react on the kernel-add-event of the device via:
ACTION=="add", BUS=="usb", SYSFS{bcdDevice}=="0546", SYSFS{idProduct}=="2441", SYSFS{idVendor}=="1668", RUN+="/usr/bin/logger -s -i udevbluetooth-start"

... very wired, i get multiple (test-)entries in syslog, as if the
device-node is created several times...

sadly, the corresponding ACTION=="remove"-rule doesn't leave its notice
in syslog:
ACTION=="remove", BUS=="usb", SYSFS{bcdDevice}=="0546", SYSFS{idProduct}=="2441", SYSFS{idVendor}=="1668", RUN+="/usr/bin/logger -s -i udevbluetooth-stop"



any ideas about some thinkpad-udev-rules for someone who dislike binding
this action to/on(?) ibm_acpi?

greetings,
thomas

-- 
_____________________________________________
Thomas Breitner

mail@tombreit.de   |   http://www.tombreit.de