help with udev
by pingu_penguin from LinuxQuestions.org on (#5N39Y)
Hi,
I have a Terios P4 wireless gamepad.
I have already paired it to the pc via a usbbluetooth dongle.
I just need to disable the touchpad of the gamepad upon connecting it via bluetooth, so it doesn't interfere ingame. So I wrote a script , which is as simple as :
#!/bin/bash
#
xinput set-prop 16 "Device Enabled" 0
The problem is that, with my limited bluetooth experience, the script is not getting triggered via a udev rule.
My udev rule is :
ACTION=="add", SUBSYSTEMS=="bluetooth", ATTRS{DEVNAME}=="/dev/hidraw4", RUN+="/home/pingu/scripts/terios_disable_touchpad.sh"
The script runs correctly if run seperately/independently.
Where am I going wrong with this ? Any pointers/help is appreciated.
Thanks.
I have a Terios P4 wireless gamepad.
I have already paired it to the pc via a usbbluetooth dongle.
I just need to disable the touchpad of the gamepad upon connecting it via bluetooth, so it doesn't interfere ingame. So I wrote a script , which is as simple as :
#!/bin/bash
#
xinput set-prop 16 "Device Enabled" 0
The problem is that, with my limited bluetooth experience, the script is not getting triggered via a udev rule.
My udev rule is :
ACTION=="add", SUBSYSTEMS=="bluetooth", ATTRS{DEVNAME}=="/dev/hidraw4", RUN+="/home/pingu/scripts/terios_disable_touchpad.sh"
The script runs correctly if run seperately/independently.
Where am I going wrong with this ? Any pointers/help is appreciated.
Thanks.