In Ubuntu10.04, the vertical scroll setting of the middle key of ThinkPadX61

Source: Internet
Author: User
Friends who use ThinkPad should have used the vertical scroll function of the middle key, that is, holding and holding the middle key to scroll up and down the red dot to scroll up and down the scroll bar. In Windows, leveno has a driver that can be directly set, but there is no relevant driver in Ubuntu. Ubuntu10.04 by default, the key is the paste function, but the paste function is not very useful, so I found the relevant information and changed it to scroll. I am an X61 machine, and it is estimated that other models should also be used. Just back up the machine before the change. The system uses

Friends who use ThinkPad should have used the vertical scroll function of the middle key, that is, holding and holding the middle key to scroll up and down the red dot to scroll up and down the scroll bar. In Windows, leveno has a driver that can be directly set, but there is no relevant driver in Ubuntu. By default, the key type in Ubuntu 10.04 is the pasting function, but the pasting function is not very useful, so I found the relevant information and changed it to scroll.

I am an X61 machine, and it is estimated that other models should also be used. Just back up the machine before the change. The system uses Ubuntu 10.04.

Use the root user to create the/usr/lib/X11/xorg. conf. d/20-thinkpad.conf file. The file content is:

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 exit, restart the system, and then check the effect. There should be no problem.

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

I also posted the original text. If you haven't set it successfully, you can check it again, but the original text is in English.

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 shoshould 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).

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.