我已经在 ubuntu 17.04 上安装了 gnome-shell 并且它运行良好,但是我很难尝试使用触控板启用自然滚动。它在统一中完美地开箱即用,但在 gnome 中,尽管我在系统设置中激活了自然滚动,但它不起作用。我还在我的主文件夹中创建了文件“.Xmodmap”:
pointer = 1 2 3 5 4 6 7 8 9 10 11 12
Run Code Online (Sandbox Code Playgroud)
进而:
xmodmap .Xmodmap
Run Code Online (Sandbox Code Playgroud)
我也尝试注销/登录,但仍然禁用了自然滚动。最后,我尝试安装包“naturalscrolling”:
sudo add-apt-repository ppa:zedtux/naturalscrolling
sudo apt-get install naturalscrolling
Run Code Online (Sandbox Code Playgroud)
但我得到:
E: Unable to locate package naturalscrolling
Run Code Online (Sandbox Code Playgroud)
任何的想法?
ps:我的机器是戴尔 XPS 15' 9560
更新:
通过运行xinput list我看到这个:
? DLL07BE:01 06CB:7A13 Touchpad id=12 [slave pointer (2)]
? ? SynPS/2 Synaptics TouchPad id=15 [slave pointer (2)]
Run Code Online (Sandbox Code Playgroud)
为什么有两种不同的触摸板?
$ /usr/bin/xinput set-prop 15 "libinput Scroll Method Enabled" 0, 1, 0
property …Run Code Online (Sandbox Code Playgroud)