Originally having a touch screen is a fun thing, but the screen is cracked, causing frequent automatic clicks and affecting normal use. After installing Ubuntu, I searched for a long time and finally found a working solution. The main idea is to use ***xinput to disable the driver to solve ***, the disadvantage is that it fails after shutdown.
The environment used here:
xinput
in the terminalFind the name of the touch screen in the list of input devices listed. Here is SYNAPTICS Synaptics Touch Digitizer V04 and its id: 14.
note:
xinput set-prop 14"Device Enabled"0
xinput list-props 14
It is obviously very troublesome to configure the above settings manually every time you start it. At this time, we can completely set it up automatically by writing a shell script and loading it on boot.
Created here in the /home/windcoder/documents/ss directory
vi disableTouch.sh
Enter in the file:
#! /bin/bash
# Disable desktop touch screen
DESKTOP_DEV='SYNAPTICS Synaptics Touch Digitizer V04'
HAVE_DISKTOP_TOUCH=`xinput list | grep "$DESKTOP_DEV"`if["$HAVE_DISKTOP_TOUCH"!=""];
then
echo "The touch screen starts to turn off"if[`xinput list-props "$DESKTOP_DEV" | grep "Device Enabled" | awk -F ':' '{print $2}'`==1];
then
echo "The touch screen is turning off"
xinput set-prop "$DESKTOP_DEV"'Device Enabled'0
echo "The touch screen is turned off successfully!"else
echo "Shutdown failed. . ."
fi
else
echo "Program closed"
fi
echo "Completely over"
The echo statement in the script can be deleted, and it is only added here to test the script.
Use in the terminal:
sudo vi /etc/profile
Add at the end:
. /home/windcoder/documents/sh/disableTouch.sh
Save and exit, and finally execute the following:
source /etc/profile
Restart at this time to find that the corresponding driver has been automatically disabled.
How to disable the ASUS S550C touch screen in Ubuntu
Recommended Posts