Article 5N39Y help with udev

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.latest?d=yIl2AUoC8zA latest?i=zBu1_TIWzII:04iu7Tb6viI:F7zBnMy latest?i=zBu1_TIWzII:04iu7Tb6viI:V_sGLiP latest?d=qj6IDK7rITs latest?i=zBu1_TIWzII:04iu7Tb6viI:gIN9vFwzBu1_TIWzII
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments