Skip to main content

System Hacks and Hints

HP Envy x360 - 13-agXXXXXX

Disable touchscreen in Ubuntu 24

Why? Because touching the touchscreen actually simulates multiple touches instead of just one therefore triggering unwanted actions.

  • Create /opt/touchscreen-disable.sh:
!/bin/bash
echo "0018:04F3:262A.0003" > /sys/bus/hid/drivers/hid-multitouch/unbind
  • Make that file executable
chmod +x /opt/touchscreen-disable.sh
  • Create a systemd service to run at start by creating the file /etc/systemd/system/touchscreen-disable.service:
Unit]
Description=Disable touch on touchscreen
[Service]
ExecStart=/opt/touchscreen-disable.sh
[Install]
WantedBy=multi-user.target
  • Enable and run the service immediately
systemctl enable touchscreen-disable --now