I have a Genius tablet and I need to remap some buttons on it when I connect it to the usb. The remmaping is done by this command:
xinput set-button-map 'Genius EasyPen M610X' 0 0 0 0 0 0 0 1 3 2
and I'm using udev to call a script like this:
#!/bin/bash sleep 10 /usr/bin/xinput set-button-map 'Genius EasyPen M610X' 0 0 0 0 0 0 0 1 3 2
The script works fine, also the udev calls the script when the device is plugged in however the line with the xinput is not executed. Dmesg and syslog didn't say nothing about error, also using udevadm test device... is passing with no errors. Any ideas? Thanks.