Come disabilitare il touchscreen in modo permanente su Ubuntu 18.04


14

Sto cercando di disabilitare il touchscreen sul mio laptop Asus S200E. In Ubuntu 16.04, sono stato in grado di farlo con questo:

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

Come è possibile farlo su Ubuntu 18.04?


è possibile utilizzare questo comando xinput disablexinput --list | grep -i "touch " | sed 's/id=//g' | cut -f2
naib khan

Risposte:


16

Sembra che ti riferisca ai file che si trovano in /usr/share/X11/xorg.conf.d. Forse il libinputdriver è stato recentemente aggiornato per supportare il tuo touchscreen?

Probabilmente vuoi modificare /usr/share/X11/xorg.conf.d/10-evdev.confcon:

Sezione "InputClass"
    Identificatore "evdev touchscreen catchall"
    MatchIsTouchscreen "on"
    MatchDevicePath "/ dev / input / event *"
    #Driver "evdev"
    Opzione "Ignora" "su" 
EndSection

E /usr/share/X11/xorg.conf.d/40-libinput.confcon:

Sezione "InputClass"
    Identificatore "libinput touchscreen catchall"
    MatchIsTouchscreen "on"
    MatchDevicePath "/ dev / input / event *"
    #Driver "libinput"
    Opzione "Ignora" "su" 
EndSection

Se il problema persiste, ottenere il nome del touchscreen con xinpute aggiungere uno dei seguenti comandi a uno script di avvio:

xinput set-prop [touchscreen id] "Device Enabled" 0
xinput disable [touchscreen id]
Utilizzando il nostro sito, riconosci di aver letto e compreso le nostre Informativa sui cookie e Informativa sulla privacy.
Licensed under cc by-sa 3.0 with attribution required.