CentOS6.4關閉觸控板

來源:互聯網
上載者:User

CentOS6.4關閉觸控板 1. 檢查是否安裝xorg-x11-app; [plain] rpm -qa xorg-x11-apps       如果沒有安裝使用下面命令安裝xorg-x11-app [plain] yum install xorg-x11-apps    2.查看在圖形模式下可用的輸入裝置  [plain]    xinput list      我的電腦顯示的是如下結果 [plain] [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                 id=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.尋找觸控板對應的裝置好    不同的觸控裝置可能名字不同,但是一般觸控板都是一個PS/2裝置。所以在觸控板的名字中可能會出現PS/2、touchpad字樣。如果都找不到可以將Virtual core pointer 中的所有的裝置id使用 xinput --set-prop 裝置的id "Device Enabled" 0 依次執行,執行後滑動觸控板看觸控板是否可用,不可用表示已經找到,觸控板對應的裝置。然後使用xinput --set-prop 裝置的id "Device Enabled" 1,將所有非觸控板的輸入裝置依次啟用。4.書寫自動禁用觸控板的指令碼建立touchpad.sh [plain]   vim touchpad.sh   輸入一下內容 [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 "close"  else          echo "請輸入正確的參數:on/off 、0/1。"          echo "開啟觸控板sh touchpad on或者sh touchpad 1。"          echo "關閉觸控板sh touchpad off或者sh touchpad 0";  fi   

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.