挂起后 Ubuntu 上的惰性触摸板。“SynPS/2 Synaptics TouchPad”从 xinput 列表中消失

Аби*_*или 2 touchpad suspend ubuntu

我使用的是 HP ProBook 440 G6 笔记本电脑,在暂停之前,触摸板工作正常。但是在暂停之后它变得不那么敏感并且非常懒惰。

这是 xinput list 命令的输出:

Virtual core pointer                       id=2
 - Virtual core XTEST pointer                 id=4
 - SYNA3082:00 06CB:8265 Touchpad             id=10
 - SynPS/2 Synaptics TouchPad                 id=12
Run Code Online (Sandbox Code Playgroud)

暂停后,SynPS/2 Synaptics TouchPad条目消失并且 modprobe 没有帮助。

我怎样才能解决这个问题?

小智 5

我最近在我的 HP ProBook 430 G6 上解决了这个问题。一种解决方案是在从挂起状态恢复后重新加载i2c_hid内核模块。

modprobe -r i2c_hid # remove the i2c_hid kernel module
modprobe i2c_hid # add the i2c_hid kernel module
Run Code Online (Sandbox Code Playgroud)

这可以自动化。例如,在使用 systemd 的系统上,可以将脚本添加到目录 /lib/systemd/system-sleep/。下面是我使用的脚本内容(/lib/systemd/system-sleep/touchpad-fix.sh):

#!/bin/sh
if [ "$1" = 'post' ]; then
    modprobe -r i2c_hid && modprobe i2c_hid
fi
Run Code Online (Sandbox Code Playgroud)

您可能需要以root身份将脚本写入此位置。另外确保脚本是可执行的:

chmod +x /lib/systemd/system-sleep/touchpad-fix.sh
Run Code Online (Sandbox Code Playgroud)