Sadly, udev, doesn’t work for me…
I have a shell script
disable-touchpad.sh
in my home directory
and run it as
sudo ./disable-touchpad.sh
#!/bin/bash
FOUND=false
for input in /sys/class/input/input*; do
if [ -f “$input/name” ] && grep -q “AMIRA-KEYBOAR USB KEYBOARD Touchpad” “$input/name” 2>/dev/null; then
echo “Found touchpad at $input”
if echo 1 | sudo tee “$input/inhibited” >/dev/null; then
echo “Successfully inhibited $input”
else
echo “Failed to inhibit $input (check sudo or permissions)”
fi
FOUND=true
break
fi
done