更新后,我在 Ubuntu 18.04 中遇到了一个非常奇怪的问题。我无法从设置中选择“点击以单击”选项。当我从 GUI 打开设置时,每次我看到它处于关闭状态,当我启用它时,我的触摸板“点击以单击”不起作用,关闭它后,设置再次默认为关闭。我尝试使用dconf-editor
它来设置它,首选项也保存了,但触摸板“点击以单击”仍然不起作用。
以下是输出xinput
:
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ PixArt Dell MS116 USB Optical Mouse id=12 [slave pointer (2)]
⎜ ↳ ELAN1200:00 04F3:3090 Touchpad 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)]
↳ Asus Wireless Radio Control id=7 [slave keyboard (3)]
↳ Video Bus id=8 [slave keyboard (3)]
↳ Video Bus id=9 [slave keyboard (3)]
↳ Power Button id=10 [slave keyboard (3)]
↳ Sleep Button id=11 [slave keyboard (3)]
↳ USB2.0 HD UVC WebCam: USB2.0 HD id=13 [slave keyboard (3)]
↳ Asus WMI hotkeys id=15 [slave keyboard (3)]
↳ AT Translated Set 2 keyboard id=16 [slave keyboard (3)]
以下是使用我的触摸板属性的输出xinput list-props <id>
:
Device 'ELAN1200:00 04F3:3090 Touchpad':
Device Enabled (197): 1
Coordinate Transformation Matrix (199): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
libinput Tapping Enabled (349): 0
libinput Tapping Enabled Default (350): 0
libinput Tapping Drag Enabled (351): 1
libinput Tapping Drag Enabled Default (352): 1
libinput Tapping Drag Lock Enabled (353): 0
libinput Tapping Drag Lock Enabled Default (354): 0
libinput Tapping Button Mapping Enabled (355): 1, 0
libinput Tapping Button Mapping Default (356): 1, 0
libinput Natural Scrolling Enabled (331): 1
libinput Natural Scrolling Enabled Default (332): 0
libinput Disable While Typing Enabled (357): 1
libinput Disable While Typing Enabled Default (358): 1
libinput Scroll Methods Available (333): 1, 1, 0
libinput Scroll Method Enabled (334): 1, 0, 0
libinput Scroll Method Enabled Default (335): 1, 0, 0
libinput Click Methods Available (359): 1, 1
libinput Click Method Enabled (360): 0, 1
libinput Click Method Enabled Default (361): 1, 0
libinput Middle Emulation Enabled (338): 0
libinput Middle Emulation Enabled Default (339): 0
libinput Accel Speed (340): 0.000000
libinput Accel Speed Default (341): 0.000000
libinput Left Handed Enabled (345): 0
libinput Left Handed Enabled Default (346): 0
libinput Send Events Modes Available (316): 1, 1
libinput Send Events Mode Enabled (317): 0, 0
libinput Send Events Mode Enabled Default (318): 0, 0
Device Node (319): "/dev/input/event10"
Device Product ID (320): 1267, 12432
libinput Drag Lock Buttons (347): <no items>
libinput Horizontal Scroll Enabled (348): 1
xinput list-props <id>
以下是添加后的输出Option "Tapping" "True"
:
Device 'ELAN1200:00 04F3:3090 Touchpad':
Device Enabled (197): 1
Coordinate Transformation Matrix (199): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
libinput Tapping Enabled (349): 0
libinput Tapping Enabled Default (350): 0
libinput Tapping Drag Enabled (351): 1
libinput Tapping Drag Enabled Default (352): 1
libinput Tapping Drag Lock Enabled (353): 0
libinput Tapping Drag Lock Enabled Default (354): 0
libinput Tapping Button Mapping Enabled (355): 1, 0
libinput Tapping Button Mapping Default (356): 1, 0
libinput Natural Scrolling Enabled (331): 1
libinput Natural Scrolling Enabled Default (332): 0
libinput Disable While Typing Enabled (357): 1
libinput Disable While Typing Enabled Default (358): 1
libinput Scroll Methods Available (333): 1, 1, 0
libinput Scroll Method Enabled (334): 1, 0, 0
libinput Scroll Method Enabled Default (335): 1, 0, 0
libinput Click Methods Available (359): 1, 1
libinput Click Method Enabled (360): 0, 1
libinput Click Method Enabled Default (361): 1, 0
libinput Middle Emulation Enabled (338): 0
libinput Middle Emulation Enabled Default (339): 0
libinput Accel Speed (340): 0.000000
libinput Accel Speed Default (341): 0.000000
libinput Left Handed Enabled (345): 0
libinput Left Handed Enabled Default (346): 0
libinput Send Events Modes Available (316): 1, 1
libinput Send Events Mode Enabled (317): 0, 0
libinput Send Events Mode Enabled Default (318): 0, 0
Device Node (319): "/dev/input/event8"
Device Product ID (320): 1267, 12432
libinput Drag Lock Buttons (347): <no items>
libinput Horizontal Scroll Enabled (348): 1
以下是输出cat /usr/share/X11/xorg.conf.d/40-libinput.conf
:
# Match on all types of devices but joysticks
Section "InputClass"
Identifier "libinput pointer catchall"
MatchIsPointer "on"
MatchDevicePath "/dev/input/event*"
Driver "libinput"
EndSection
Section "InputClass"
Identifier "libinput keyboard catchall"
MatchIsKeyboard "on"
MatchDevicePath "/dev/input/event*"
Driver "libinput"
EndSection
Section "InputClass"
Identifier "libinput touchpad catchall"
MatchIsTouchpad "on"
MatchDevicePath "/dev/input/event*"
Driver "libinput"
Option "Tapping" "True"
EndSection
Section "InputClass"
Identifier "libinput touchscreen catchall"
MatchIsTouchscreen "on"
MatchDevicePath "/dev/input/event*"
Driver "libinput"
EndSection
Section "InputClass"
Identifier "libinput tablet catchall"
MatchIsTablet "on"
MatchDevicePath "/dev/input/event*"
Driver "libinput"
EndSection
如果有人能帮助解决这个问题,那就太好了。提前谢谢。
答案1
由于某种原因,您的设备由 管理xorg-synaptics
,而 Ubuntu 18.04 中的默认设置应该是libinput
。
在终端中运行
sudo apt install xserver-xorg-input-libinput
sudo apt remove xserver-xorg-input-synaptics
然后重新启动。
跑步sudo nano /usr/share/X11/xorg.conf.d/40-libinput.conf
并将Option "Tapping" "True"
其添加到触摸板部分,如下所示:
Section "InputClass"
Identifier "libinput touchpad catchall"
MatchIsTouchpad "on"
MatchDevicePath "/dev/input/event*"
Driver "libinput"
Option "Tapping" "True"
EndSection
按 Crtl+O 保存文件,按 Ctrl+X 退出。重新启动,它应该开始工作。