Conforme o roteiro de https://thoughtexpo.com/disable-touch/
Procurar o device com "hid" e anotar o HID_ID:
$ ls -laGFoh /sys/bus/hid/drivers/hid-multitouch/
Depois criar um arquivo de service para o systemd:
product_id="2C29:0000043F:0000034" # pegar esse codigo do ls acima
$ sudo tee /etc/systemd/system/disable-touchscreen.service > /dev/null << EOF
[Unit]
Description=Unbind touchscreen device
[Service]
Type=oneshot
ExecStart=/bin/bash -c "basename \$(ls /sys/bus/hid/devices/*$product_id* -d) > /sys/bus/hid/drivers/hid-multitouch/unbind"
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target
EOF
E entao rodar/habilitar o service com o systemctl:
$ sudo systemctl daemon-reload && sudo systemctl enable disable-touchscreen.service
Nenhum comentário:
Postar um comentário