Udev not running scripts
Solution 1:
When invoking xinput
from udev, you have to set the XAUTHORITY
variable:
#!/bin/sh
export DISPLAY=":0"
export XAUTHORITY="/home/<user>/.Xauthority"
/usr/bin/xinput set-prop "DLL063E:00 06CB:2934" "Device Enabled" $1
this variable is already set when you run the script directly from the console, but scripts invoked by udev (and other services, such as cron), usually have a minimum set of environment variables, so you have to set it manually.