禁用触摸屏 Ubuntu 20.04 Huawei matebook pro

禁用触摸屏 Ubuntu 20.04 Huawei matebook pro

由于屏幕角落有裂缝,我试图禁用华为 matebook x pro 笔记本电脑上的触摸屏。这导致我的光标变得混乱,在裂缝处随机点击鼠标。

我试过了:

xinput --list

我得到的地方:

⎡ Virtual core pointer                      id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
⎜   ↳ SYNA2393:00 06CB:19AC                     id=20   [slave  pointer  (2)]
⎜   ↳ SYNA1D31:00 06CB:CD48 Mouse               id=21   [slave  pointer  (2)]
⎜   ↳ SYNA1D31:00 06CB:CD48 Touchpad            id=22   [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)]
    ↳ HD Camera: HD Camera                      id=19   [slave  keyboard (3)]
    ↳ Huawei WMI hotkeys                        id=23   [slave  keyboard (3)]
    ↳ AT Translated Set 2 keyboard              id=24   [slave  keyboard (3)]

我在这里看不到任何与触摸屏相关的东西。

我也尝试通过取消注释来禁用驱动程序

/usr/share/X11/xorg.conf.d/70-wacom.conf

# Some of the below input classes appear 3x times, once for each of
# "tablet", "touchscreen", and "touchpad" to ensure that the Wacom
# driver is not accidentally bound to other types of hardware that
# Wacom has made which are not handled by the wacom driver (e.g the
# Wacom Bluetooth Keyboard)
#
# https://sourceforge.net/p/linuxwacom/bugs/294/

Section "InputClass"
        Identifier "Wacom USB tablet class"
        MatchUSBID "056a:*"
        MatchDevicePath "/dev/input/event*"
        MatchIsTablet "true"
        Driver "wacom"
EndSection

#Section "InputClass"
#        Identifier "Wacom USB touchscreen class"
#        MatchUSBID "056a:*"
#        MatchDevicePath "/dev/input/event*"
#        MatchIsTouchscreen "true"
#        Driver "wacom"
#EndSection

Section "InputClass"
        Identifier "Wacom USB touchpad class"
        MatchUSBID "056a:*"
        MatchDevicePath "/dev/input/event*"
        MatchIsTouchpad "true"
        Driver "wacom"
EndSection

Section "InputClass"
        Identifier "Wacom tablet class"
        MatchProduct "Wacom|WACOM|PTK-540WL|ISD-V4"
        MatchDevicePath "/dev/input/event*"
        MatchIsTablet "true"
        Driver "wacom"
EndSection

#Section "InputClass"
#       Identifier "Wacom touchscreen class"
#       MatchProduct "Wacom|WACOM|PTK-540WL|ISD-V4"
#       MatchDevicePath "/dev/input/event*"
#       MatchIsTouchscreen "true"
#       Driver "wacom"
#EndSection

Section "InputClass"
        Identifier "Wacom touchpad class"
        MatchProduct "Wacom|WACOM|PTK-540WL|ISD-V4"
        MatchDevicePath "/dev/input/event*"
        MatchIsTouchpad "true"
        Driver "wacom"
EndSection

# Serial Wacom devices should always be one of tablet, touchscreen, or
# touchpad so we can safely get away with just one match section in
# these cases
Section "InputClass"
        Identifier "Wacom PnP device class"
        MatchPnPID "WACf*|WCOM*|WACM*|FUJ02e5|FUJ02e7|FUJ02e9"
        MatchDevicePath "/dev/input/event*"
        Driver "wacom"
EndSection

Section "InputClass"
        Identifier "Wacom serial class"
        MatchProduct "Serial Wacom Tablet"
        Driver "wacom"
EndSection

Section "InputClass"
        Identifier "Wacom serial class identifiers"
        MatchProduct "WACf|FUJ02e5|FUJ02e7|FUJ02e9"
        Driver "wacom"
EndSection

# Hanwang tablets
Section "InputClass"
        Identifier "Hanwang class"
        MatchProduct "Hanwang"
        MatchDevicePath "/dev/input/event*"
        Driver "wacom"
EndSection

# Waltop tablets
Section "InputClass"
        Identifier "Waltop class"
        MatchProduct "WALTOP"
        MatchIsTablet "on"
        MatchDevicePath "/dev/input/event*"
        Driver "wacom"
EndSection

# N-Trig Duosense Electromagnetic Digitizer
#Section "InputClass"
#       Identifier "Wacom N-Trig class"
#       MatchProduct "HID 1b96:0001|N-Trig Pen|N-Trig DuoSense"
#       MatchDevicePath "/dev/input/event*"
#       Driver "wacom"
#       Option "Button2" "3"
#EndSection

# Dell Canvas 27 (touch part is an Advanced Silicon, pen part a Wacom)
Section "InputClass"
        Identifier "Dell Canvas 27 Touch"
        MatchUSBID "2575:0204"
        MatchDevicePath "/dev/input/event*"
        MatchIsTouchscreen "true"
        Driver "wacom"
EndSection

# Surface Go
Section "InputClass"
        Identifier "SurfaceGo Touch"
        MatchProduct "ELAN9038:00 04F3:261A"
        MatchDevicePath "/dev/input/event*"
        Driver "wacom"
EndSection

# Nuvision Solo 10 Draw (Supports Surface Pens)
Section "InputClass"
        Identifier "Nuvision Solo 10 Draw"
        MatchProduct "04F3200A:00 04F3:22F7"
        MatchDevicePath "/dev/input/event*"
        Driver "wacom"
EndSection

这也无济于事。

有什么建议么?

答案1

SYNA2393:00 06CB:19AC

您可以通过修改文件/usr/share/X11/xorg.conf.d/40-libinput.conf并注释掉有关 的整个部分来永久禁用它touchscreen

答案2

获取列表

xinput

然后禁用例如 ID 为 2 的设备

xinput disable 2

相关内容