CentOS6.4 close touchpad

Source: Internet
Author: User

CentOS6.4 close touchpad 1. check whether the xorg-x11-app is installed; [plain] rpm-qa xorg-x11-apps if not installed use the following command to install the xorg-x11-app [plain] yum install xorg-x11-apps 2. view available input devices in graphic mode [plain] xinput list my computer displays the following results [plain] [root @ reage input] # xinput list using Virtual core pointer id = 2 [master pointer (3)] required bytes Virtual core XTEST pointer id = 4 [slave pointer (2)] Too many Macintosh mouse button emulation id = 14 [slave pointer (2)] Too many SIGMACHIP Usb Mouse id = 15 [slave pointer (2)] ⎜ ↳ ImPS/2 Logitech Wheel Mouse id = 13 [slave pointer (2)] using Virtual core keyboard id = 3 [master keyboard (2)] using Virtual core XTEST keyboard id = 5 [slave keyboard (3)] asus Laptop extra buttons id = 6 [slave keyboard (3)] running AT Translated Set 2 keyboard id = 7 [slave keyboard (3)] export Lid Switch id = 8 [slave keyboard (3)] export USB 2.0 Camera id = 9 [slave keyboard (3)] expose lupus Ep Button id = 10 [slave keyboard (3)] Audio Video Bus id = 11 [slave keyboard (3)] Audio 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. So PS/2 and touchpad may appear in the touchpad name. If none of them can be found, you can use the xinput -- set-prop Device id "Device Enabled" 0 in sequence for all the Device IDs in the Virtual core pointer to run the command. After the command is executed, move the touchpad to check whether the touchpad is available, if it is unavailable, the device corresponding to the touchpad is found. Then, use the id "Device Enabled" 1 of the xinput -- set-prop Device to enable all input devices other than the touchpad. 4. Write a script to automatically disable the touchpad. sh [plain] vim touchpad. sh and enter the content [plain] #! /Bin/bash if ["$1" = "on"] | ["$1" = "1"] then xinput -- set-prop 13 "Device Enabled" 1 echo "open" elif ["$1" = "off"] | ["$1" = "0"] then xinput -- set-prop 13 "Device Enabled" 0 echo" enter the correct parameters for close "else echo: on/off, 0/1. "Echo" enables the touchpad sh touchpad on or sh touchpad 1. "Echo" Close touchpad sh touchpad off or sh touchpad 0 "; fi

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.