Disable notebook touchpad settings in centos 7

Source: Internet
Author: User

Install the xorg-x11-apps package: Yum install xorg-x11-apps.

Terminal input xinput list

Find PS/2

ID after record

 
Xinput list

? Virtual core pointer id = 2 [Master pointer (3)]
? ? Virtual core xtest pointer id = 4 [slave pointer (2)]
? ? Pixart USB Optical Mouse id = 12 [slave pointer (2)]
? ? Fspps/2 sentelic fingersensingpad id = 14 [slave pointer (2)]
? Virtual core keyboard id = 3 [Master keyboard (2)]
? Virtual core xtest keyboard id = 5 [slave keyboard (3)]
? Power Button id = 6 [slave keyboard (3)]
? Video bus id = 7 [slave keyboard (3)]
? Video bus id = 8 [slave keyboard (3)]
? Power Button id = 9 [slave keyboard (3)]
? Sleep button id = 10 [slave keyboard (3)]
? USB webcam id = 11 [slave keyboard (3)]
? At translated set 2 Keyboard id = 13 [slave keyboard (3)]

I am here 14

 

 

 
Then: # Shield xinput set-int-prop 14 "device enabled" 8 0 # enable xinput set-int-prop 14 "device enabled" 8 1

Simple script

#! /Bin/bash # echo "====================================== = "# echo" ============= touchpad Management Program =========== "If [$1 = 'on'] Then xinput set-int-prop 14 "device enabled" 8 1 echo "touchpad enabled successfully! "Elif [$1 = 'off'] Then xinput set-int-prop 14" device enabled "8 0 echo" the touchpad is disabled successfully! "Else echo" Enter the parameter: On/Off "Echo" for example, enable the touchpad: fingersensingpad on "fi

Disable notebook touchpad settings in centos 7

Related Article

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.