Thinkpad中间按钮滚动

我在Thinkpad T60上运行Ubuntu。 有没有办法让中间按钮像运行Windows时的滚动一样?

我希望能够按住中间按钮并使用红色按钮向下滚动网页。

http://www.eastwoodzhao.com/thinkpad-middle-button-scroll-ubuntu-linux-10-04-lucid-lynx/

简而言之,运行以下命令: gksu gedit /usr/lib/X11/xorg.conf.d/20-thinkpad.conf并将其放在文件中:

 Section "InputClass" Identifier "Trackpoint Wheel Emulation" MatchProduct "TPPS/2 IBM TrackPoint|DualPoint Stick|Synaptics Inc. Composite TouchPad / TrackPoint" MatchDevicePath "/dev/input/event*" Option "EmulateWheel" "true" Option "EmulateWheelButton" "2" Option "Emulate3Buttons" "false" Option "XAxisMapping" "6 7" Option "YAxisMapping" "4 5" EndSection 

保存并重新启动。

安装包“gpointing-device-settings”设置选项如下:

 check "Use middle button emulation" check "Use wheel emulation" select button "2" check "Enable vertical scroll" 

截图

ThinkWiki有关于如何执行此操作的说明 。 具体来说,如何使用xinput(1)配置TrackPoint。

(总而言之, ThinkWiki是一个很好的资源。它几乎可以解决在Thinkpad上运行Linux的任何问题。)

Gpointing是gnome桌面的图形应用程序,可以达到相同的效果;)

使用Ubuntu将其安装在终端中

 sudo apt-get install gpointing-device-settings 

或通过软件中心“gpointing-device-settings”

我在我的AwesomeWM自动启动文件中使用以下内容:

 # make the mouse work right on my thinkpad in lucid xinput set-prop 'TPPS/2 IBM TrackPoint' "Evdev Wheel Emulation" 1 xinput set-prop 'TPPS/2 IBM TrackPoint' "Evdev Wheel Emulation Button" 2 xinput set-prop 'TPPS/2 IBM TrackPoint' "Evdev Wheel Emulation Timeout" 200 

在默认的Gnome安装中,您可以编写一个在启动时运行的脚本,或者检查是否使用了.xinitrc或.Xresources。 (我不记得哪个被使用了)

在Ubuntu 14.04中,这些设置位于/usr/share/X11/xorg.conf.d/11-evdev-trackpoint.conf中。 它看起来像这样:

  # trackpoint users want wheel emulation Section "InputClass" Identifier "trackpoint catchall" MatchIsPointer "true" MatchProduct "TrackPoint|DualPoint Stick" MatchDevicePath "/dev/input/event*" Option "Emulate3Buttons" "true" Option "EmulateWheel" "true" Option "EmulateWheelButton" "2" Option "XAxisMapping" "6 7" Option "YAxisMapping" "4 5" EndSection 

要获得“自然滚动”,即向指针方向滚动,可以将YAxisMapping值替换为“5 4”。 我交换了我之后重新开始,它工作正常。