我在 dynabook GX83 上安装了 Ubuntu 20.04。我的触摸板完全不工作,但 USB 鼠标工作正常。虽然我想使用触摸板。我搜索并尝试了很多命令,但无法解决这个问题。
我尝试过的方法及结果如下。
~ $xinput
︙
↳ SynPS/2 Synaptics TouchPad id=15 [slave pointer (2)]
︙
~ $xinput 列表 15
SynPS/2 Synaptics TouchPad id=15 [slave pointer (2)]
Reporting 7 classes:
Class originated from: 15. Type: XIButtonClass
Buttons supported: 7
Button labels: "Button Left" "Button Middle" "Button Right" "Button Wheel Up" "Button Wheel Down" "Button Horiz Wheel Left" "Button Horiz Wheel Right"
Button state:
Class originated from: 15. Type: XIValuatorClass
Detail for Valuator 0:
Label: Rel X
Range: -1.000000 - -1.000000
Resolution: 0 units/m
Mode: relative
Class originated from: 15. Type: XIValuatorClass
Detail for Valuator 1:
Label: Rel Y
Range: -1.000000 - -1.000000
Resolution: 0 units/m
Mode: relative
Class originated from: 15. Type: XIValuatorClass
Detail for Valuator 2:
Label: Rel Horiz Scroll
Range: -1.000000 - -1.000000
Resolution: 0 units/m
Mode: relative
Class originated from: 15. Type: XIValuatorClass
Detail for Valuator 3:
Label: Rel Vert Scroll
Range: -1.000000 - -1.000000
Resolution: 0 units/m
Mode: relative
Class originated from: 15. Type: XIScrollClass
Scroll info for Valuator 2
type: 2 (horizontal)
increment: 15.000000
flags: 0x0
Class originated from: 15. Type: XIScrollClass
Scroll info for Valuator 3
type: 1 (vertical)
increment: 15.000000
flags: 0x0
~ $xinput 列表属性 15
Device 'SynPS/2 Synaptics TouchPad':
Device Enabled (187): 1
Coordinate Transformation Matrix (189): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
libinput Tapping Enabled (340): 1
libinput Tapping Enabled Default (341): 0
libinput Tapping Drag Enabled (342): 1
libinput Tapping Drag Enabled Default (343): 1
libinput Tapping Drag Lock Enabled (344): 0
libinput Tapping Drag Lock Enabled Default (345): 0
libinput Tapping Button Mapping Enabled (346): 1, 0
libinput Tapping Button Mapping Default (347): 1, 0
libinput Natural Scrolling Enabled (322): 1
libinput Natural Scrolling Enabled Default (323): 0
libinput Disable While Typing Enabled (348): 1
libinput Disable While Typing Enabled Default (349): 1
libinput Scroll Methods Available (326): 1, 1, 0
libinput Scroll Method Enabled (327): 1, 0, 0
libinput Scroll Method Enabled Default (328): 1, 0, 0
libinput Click Methods Available (350): 1, 1
libinput Click Method Enabled (351): 1, 0
libinput Click Method Enabled Default (352): 1, 0
libinput Middle Emulation Enabled (331): 0
libinput Middle Emulation Enabled Default (332): 0
libinput Accel Speed (333): 0.000000
libinput Accel Speed Default (334): 0.000000
libinput Left Handed Enabled (338): 0
libinput Left Handed Enabled Default (339): 0
libinput Send Events Modes Available (307): 1, 1
libinput Send Events Mode Enabled (308): 0, 0
libinput Send Events Mode Enabled Default (309): 0, 0
Device Node (310): "/dev/input/event5"
Device Product ID (311): 2, 7
libinput Drag Lock Buttons (324): <no items>
libinput Horizontal Scroll Enabled (325): 1
~ $gsettings 递归列表 org.gnome.desktop.peripherals.touchpad
org.gnome.desktop.peripherals.touchpad click-method 'default'
org.gnome.desktop.peripherals.touchpad edge-scrolling-enabled false
org.gnome.desktop.peripherals.touchpad disable-while-typing true
org.gnome.desktop.peripherals.touchpad two-finger-scrolling-enabled true
org.gnome.desktop.peripherals.touchpad send-events 'enabled'
org.gnome.desktop.peripherals.touchpad speed 0.0
org.gnome.desktop.peripherals.touchpad scroll-method 'two-finger-scrolling'
org.gnome.desktop.peripherals.touchpad natural-scroll true
org.gnome.desktop.peripherals.touchpad middle-click-emulation false
org.gnome.desktop.peripherals.touchpad left-handed 'mouse'
org.gnome.desktop.peripherals.touchpad tap-to-click true
org.gnome.desktop.peripherals.touchpad tap-and-drag true
~ $gsettings 列表递归 org.gnome.settings- daemon.peripherals.touchpad.deprecated:/
org.gnome.settings-daemon.peripherals.touchpad.deprecated horiz-scroll-enabled true
org.gnome.settings-daemon.peripherals.touchpad.deprecated touchpad-enabled true
org.gnome.settings-daemon.peripherals.touchpad.deprecated disable-while-typing false
org.gnome.settings-daemon.peripherals.touchpad.deprecated motion-threshold -1
org.gnome.settings-daemon.peripherals.touchpad.deprecated scroll-method 'two-finger-scrolling'
org.gnome.settings-daemon.peripherals.touchpad.deprecated motion-acceleration -1.0
org.gnome.settings-daemon.peripherals.touchpad.deprecated tap-to-click false
org.gnome.settings-daemon.peripherals.touchpad.deprecated left-handed 'mouse'
org.gnome.settings-daemon.peripherals.touchpad.deprecated natural-scroll false
〜$cat / proc / bus /输入/设备
︙
I: Bus=0011 Vendor=0002 Product=0007 Version=01b1
N: Name="SynPS/2 Synaptics TouchPad"
P: Phys=isa0060/serio2/input0
S: Sysfs=/devices/platform/i8042/serio2/input/input10
U: Uniq=
H: Handlers=mouse0 event5
B: PROP=5
B: EV=b
B: KEY=e520 10000 0 0 0 0
B: ABS=660800011000003
︙
我也尝试了下面这些命令但是触摸板不起作用。
sudo apt-fast -y install xserver-xorg-input-synaptics
gsettings reset-recursively org.gnome.desktop.peripherals.touchpad
gsettings reset-recursively org.gnome.settings-daemon.peripherals.touchpad
那么我应该怎样使用触摸板呢?
感谢您阅读这个长问题。如果您有任何想法,我将不胜感激。
答案1
我可以按照以下步骤启用 ubuntu 触摸板。
sudo nano /etc/default/grub
您将会看到如下一行
GRUB_CMDLINE_LINUX_DEFAULT='quiet splash'
并在此处进行如下编辑。
GRUB_CMDLINE_LINUX_DEFAULT='quiet splash psmouse.synaptics_intertouch=1'
最后运行这些命令即可生效。
sudo update-grub
sudo reboot