歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> Ubuntu 10.04下ThinkPad X61中鍵垂直滾動設置

Ubuntu 10.04下ThinkPad X61中鍵垂直滾動設置

日期:2017/2/28 16:30:51   编辑:Linux教程

用ThinkPad的朋友應該都使用過中鍵垂直滾動的功能吧,就是按住中鍵,上下滾動小紅點,起到滾動條上下滾動的作用。在Windows下leveno有驅動可以直接設置,但在Ubuntu下就沒有相關驅動程序了,Ubuntu 10.04默認情況下中鍵是粘貼功能,但粘貼實際上用處不太大,所以我查找了相關資料把他改成了滾動。

我是X61的機器,估計其它機型也應該適用,反正改動之前做好備份就行了,系統使用的是Ubuntu 10.04.

用root用戶創建/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|ThinkPad USB Keyboard with TrackPoint|USB Trackpoint pointing device"
MatchDevicePath "/dev/input/event*"
Option "EmulateWheel" "true" Option "EmulateWheelButton" "2"
Option "Emulate3Buttons" "false"
Option "XAxisMapping" "6 7"
Option "YAxisMapping" "4 5"

EndSection

保存退出,重新啟動系統,然後看看效果。應該就沒有問題了。

----------------------------------

我把原文也貼出來,如果大家沒設置成功的話,也可以再看看原文,不過原文是英文的。

http://www.thinkwiki.org/wiki/How_to_configure_the_TrackPoint

Scrolling
By default the middle mouse button is that, a middle mouse button, which in Linux is used for the Paste operation.

But you can configure it to act in the same way as in Windows, such that you can use it for vertical scrolling (keep the button pressed and move the TrackPoint up and down to scroll).

xorg.conf.d
Some distributions now support the new Xorg hotplug configuration method via xorg.conf.d directories (in Ubuntu 10.04 Lucid Lynx) instead of hal. In contrast to the udev method below, (www.linuxidc.com)it should be around for some time, so it might be the best way to “statically” configure scrolling.

Create the file /usr/lib/X11/xorg.conf.d/20-thinkpad.conf as root with the following content:

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

EndSection

Save and restart Xorg (or it'll be enabled at next reboot). a

Copyright © Linux教程網 All Rights Reserved