Ubuntu 18.04でタッチスクリーンを永久に無効にする方法


14

Asus S200Eラップトップのタッチスクリーンを無効にしようとしています。Ubuntu 16.04では、次のようにすることができました。

Section "InputClass"
    Identifier "evdev touchscreen catchall"
    MatchIsTouchscreen "on"
    MatchDevicePath "/dev/input/event*"
    Driver "libinput"
EndSection

Ubuntu 18.04でこれを行うにはどうすればよいですか?


このコマンドxinput disableを使用できますxinput --list | grep -i "touch " | sed 's/id=//g' | cut -f2
naib khan

回答:


16

にあるファイルを参照しているように見えます/usr/share/X11/xorg.conf.d。おそらく、libinputドライバーが最近更新されてタッチスクリーンをサポートしていますか?

おそらくあなたは次のように編集/usr/share/X11/xorg.conf.d/10-evdev.confしたいでしょう:

セクション「InputClass」
    識別子「evdev touchscreen catchall」
    MatchIsTouchscreen「オン」
    MatchDevicePath "/ dev / input / event *"
    #ドライバー「evdev」
    オプション「無視」「オン」 
EndSection

そして/usr/share/X11/xorg.conf.d/40-libinput.conf

セクション「InputClass」
    識別子「libinputタッチスクリーンキャッチオール」
    MatchIsTouchscreen「オン」
    MatchDevicePath "/ dev / input / event *"
    #ドライバー「libinput」
    オプション「無視」「オン」 
EndSection

それが機能しない場合は、を使用してタッチスクリーンの名前を取得しxinput、次のコマンドのいずれかを起動スクリプトに追加します。

xinput set-prop [touchscreen id] "Device Enabled" 0
xinput disable [touchscreen id]
弊社のサイトを使用することにより、あなたは弊社のクッキーポリシーおよびプライバシーポリシーを読み、理解したものとみなされます。
Licensed under cc by-sa 3.0 with attribution required.