2
What I'm trying to do is set up a udev rule for my HP headphones (usb) with the aid of several tutorials out there.
Created a file ( 90-local.rules ) in /etc/udev/rules.d and added the following:
ACTION="add",SUBSYSTEM="usb", ATTR{vendor}=="Hewlett-Packard", RUN+="sh /home/alex/Scripts/usb.sh"
The problem is nothing happens when I connect the headphones! What am I doing wrong?
note: I did restart udev and the script works also, so it's not that
Do this corresponds with the output of monitoring udevadm? – Tamara Wijsman – 2012-09-02T20:48:03.627
If by 'this' you mena the vendor, yes – user1233963 – 2012-09-02T20:50:24.850
What exactly is the
usb.sh
script doing? – user1686 – 2012-09-03T09:36:37.260just a simple notify-send call – user1233963 – 2012-09-03T10:35:21.677
Here's the output of udevadm info -a -p /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.2/2-1.2:1.3/input/input29 if it helps: http://pastebin.com/95swJYhF
– user1233963 – 2012-09-03T10:38:23.780