ste*_*esu 9 mouse touchpad 18.04
几个月前,我从 Ubuntu 16.04 升级到 18.04,这是尝试修复我的无线驱动程序的众多步骤之一。
然而,自从升级之后,自然滚动就被打破了。相反,它被卡住了。
当我去的Settings > Devices > Mouse & Touchpad
时候,无论我设置Natural Scrolling
为 on 还是 off都没有关系,它总是 on。当我用两根手指向上滚动时,页面会向下滚动。当我用两个手指向下滚动时,页面会上升。
更令人困惑的是,自然滚动不会影响水平滚动。因此,两指向右滚动将向右移动页面,向左两指滚动将向左移动页面。垂直和水平行为之间的这种差异使我无法适应并习惯新的鼠标机制。
我尝试卸载xserver-xorg-input-synaptics
(根据Ubuntu 17.10 自然滚动)但这并没有改变任何东西(除了释放 180 MB 的磁盘空间)
卸载 Synaptics 驱动程序可能会产生一些影响 - 但不是积极的。我开始注意到滚动会在某些应用程序或某些网页上随机停止工作,直到我重新启动应用程序。自然滚动仍然停留,但它被恼人的是完全无功能的触控板不滚动进入所有经过一段时间后。
我正在重新安装 Synaptics 驱动程序,我们将查看我的滚动是否保持一致。
xinput
{9:04}|~ >xinput
? Virtual core pointer id=2 [master pointer (3)]
? ? Virtual core XTEST pointer id=4 [slave pointer (2)]
? ? AlpsPS/2 ALPS DualPoint TouchPad id=13 [slave pointer (2)]
? ? AlpsPS/2 ALPS DualPoint Stick 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)]
? Video Bus id=7 [slave keyboard (3)]
? Power Button id=8 [slave keyboard (3)]
? Sleep Button id=9 [slave keyboard (3)]
? Integrated_Webcam_HD: Integrate id=10 [slave keyboard (3)]
? Dell WMI hotkeys id=11 [slave keyboard (3)]
? AT Translated Set 2 keyboard id=12 [slave keyboard (3)]
? DELL Wireless hotkeys id=15 [slave keyboard (3)]
Run Code Online (Sandbox Code Playgroud)
xinput list-props 13
{9:37}|~ >xinput list-props 13
Device 'AlpsPS/2 ALPS DualPoint TouchPad':
Device Enabled (142): 1
Coordinate Transformation Matrix (144): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
Device Accel Profile (269): 1
Device Accel Constant Deceleration (270): 2.500000
Device Accel Adaptive Deceleration (271): 1.000000
Device Accel Velocity Scaling (272): 12.500000
Synaptics Edges (273): 441, 2503, 230, 1306
Synaptics Finger (274): 12, 15, 0
Synaptics Tap Time (275): 0
Synaptics Tap Move (276): 146
Synaptics Tap Durations (277): 180, 180, 100
Synaptics ClickPad (278): 0
Synaptics Middle Button Timeout (279): 75
Synaptics Two-Finger Pressure (280): 141
Synaptics Two-Finger Width (281): 7
Synaptics Scrolling Distance (282): 66, 66
Synaptics Edge Scrolling (283): 0, 0, 0
Synaptics Two-Finger Scrolling (284): 1, 1
Synaptics Move Speed (285): 1.000000, 1.750000, 0.060241, 0.000000
Synaptics Off (286): 0
Synaptics Locked Drags (287): 0
Synaptics Locked Drags Timeout (288): 5000
Synaptics Tap Action (289): 0, 0, 0, 0, 1, 3, 2
Synaptics Click Action (290): 1, 3, 2
Synaptics Circular Scrolling (291): 0
Synaptics Circular Scrolling Distance (292): 0.100000
Synaptics Circular Scrolling Trigger (293): 0
Synaptics Circular Pad (294): 0
Synaptics Palm Detection (295): 1
Synaptics Palm Dimensions (296): 10, 100
Synaptics Coasting Speed (297): 20.000000, 50.000000
Synaptics Pressure Motion (298): 15, 80
Synaptics Pressure Motion Factor (299): 1.000000, 1.000000
Synaptics Resolution Detect (300): 1
Synaptics Grab Event Device (301): 0
Synaptics Gestures (302): 1
Synaptics Capabilities (303): 1, 1, 1, 1, 1, 1, 0
Synaptics Pad Resolution (304): 31, 31
Synaptics Area (305): 0, 0, 0, 0
Synaptics Noise Cancellation (306): 16, 16
Device Product ID (266): 2, 8
Device Node (265): "/dev/input/event7"
Run Code Online (Sandbox Code Playgroud)
ste*_*esu 14
所以在重新安装 Synaptics 驱动程序后,我又看了一遍我的设置,现在我觉得很愚蠢。我想到了。
我不记得 16.04 中有“鼠标”和“触摸板”的单独选项,或者如果有的话,我很久以前就正确设置了鼠标,当我更新到 18.04(并且它恢复了我的触摸板设置)时,我已经完全忘记了。
切换适当的设置按预期工作
关于水平滚动差异,对于那些想要保持自然滚动的人,这个问题有一个修复:Inverted Horizontal scrolling ubuntu 18.04
具体来说,我使用这个脚本和一个.xsessionrc
in 主目录在启动时运行脚本。
export id=`xinput list | grep -i touchpad | awk -F"=" '{ print $2 }' | awk '{ print $1 }'`
xinput list-props "${id}" | grep "Synaptics Scrolling Distance" | sed 's/[^0-9 \t-]//g' | while read a b c;
do
echo "${a} ${b} $((${c}*-1))";
xinput set-prop "${id}" "${a}" "${b}" "$((${c}*-1))"
done
Run Code Online (Sandbox Code Playgroud)