The touchpad is the mobile cursor-enabled device on the notebook. It usually has a shortcut key to enable or disable it quickly. In CentOS 6.4, scripts can be used automatically. Close the touchpad, the following small series will introduce you to how CentOS6.4 uses the script to disable the touchpad, let's learn together.
Method:
1. Check whether xorg-x11-app installed;
rpm -qa xorg-x11-apps
If there is no Installation Use the following command to install xorg-x11-app
yum install xorg-x11-apps
2. View the input devices available in graphics mode
xinput list
My computer displays the following results
[root@reage input]# xinput list
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ Macintosh mouse button emulation id=14 [slave pointer (2)]
⎜ ↳ SIGMACHIP Usb Mouse id=15 [slave pointer (2)]
⎜ ↳ ImPS/2 Logitech Wheel Mouse id=13 [slave pointer (2)]
⎣ Virtual core keyboard id=3 [ Master keyboard (2)]
↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
↳ Asus Laptop extra buttons i d=6 [slave keyboard (3)]
↳ AT Translated Set 2 keyboard id=7 [slave keyboard (3)]
↳ Lid Switch id=8 [slave keyboard (3) ]
↳ USB 2.0 Camera id=9 [slave keyboard (3)]
↳ Sleep Button id=10 [slave keyboard (3)]
↳ Video Bus id =11 [slave keyboard (3)]
↳ Power Button id=12 [slave keyboard (3)]
3. Find the device corresponding to the touchpad
Different touch devices may have different names, but generally the touchpad is a PS/2 device. Therefore, PS/2 and touchpad characters may appear in the name of the touchpad. If you can't find all the device ids in the Virtual core pointer, use the xinput --set-prop device's id “Device Enabled” 0 to execute them. After sliding, the touchpad is displayed to see if the touchpad is available. Indicates that the device corresponding to the touchpad has been found. Then use the idput-set-prop device id “Device Enabled” 1, to enable all non-touchpad input devices in turn.
4. Write scripts that automatically disable the touchpad
Create touchpad.sh
vim touchpad.sh
Enter the content
#! /bin/bash
if [ “$1” = “on” ] |
|
[ “$1” = “1” ]
then
xinput --set-prop 13 “Device Enabled” 1
echo “open”< Br>
elif [ “$1” = “off” ] |
|
[ “$1” = “0” ]
then
xinput --set-prop 13 “Device Enabled& rdquo; 0
echo “close”< Br>
else
echo “Please enter the correct parameters: on/off, 0/1. ”
Echo “ Turn on the touchpad sh touchpad on or sh touchpad 1. ”
echo “ Turn off the touchpad sh touchpad off or sh touchpad 0”;
fi
The above is the way CentOS6.4 uses the script to close the touchpad Introduced, although it is a bit more troublesome than the shortcut, if the shortcut fails, the method will come in handy.
After installing the Debian system on the HP notebook, the sound has a problem, most of which is the
Because the storage speed of a RAID disk array is higher than that of a single hard disk, you usuall
bcloud is Baidu network disk under Linux, supports a variety of versions of Linux system, there are
Learning the knowledge of character sets in Linux system can solve many system prob
How to use the Linux system top command
How to back up and restore Linux file permissions
What is the use of the pwd command in Linux?
What commands are used for Linux system monitoring?
How to fix the program error prompted by Ubuntu system?
Linux df command using instance summary
The implementation principle of Linux system TSO
Techniques for Handling Shared Interrupts in Linux
What should I do when the Ubuntu hard disk reads and writes?
Invalid software in Windows 7 operating system
How to set the "sleep wake-up password" in Windows 8.1 system?
Windows 8 input method set graphic tutorial
Xinput1_3.dll how to run in WIN7
Win8 Win7 dual system installation graphic tutorial (1)
How to optimize the WinXP system strategy
3 ways to quickly experience the Linux operating system
CF version of the computer housekeeper's exclusive event website share Nepal-T daily pumping
Win7 connection remote desktop prompts beyond the maximum allowable number of connections