This solution applies to Ubuntu LInux Natty Narwhal 11.04, Maverick Meerkat 10.10, and Lucid Lynx 10.04.
Update (Oct. 17, 2010): Thanks to the comments below for an updated solution for Ubuntu Maverick Meerkat 10.10. If you are upgrading from 10.04, insert the following into Terminal:
sudo mv /usr/lib/X11/xorg.conf.d/20-thinkpad.conf /usr/share/X11/xorg.conf.d/20-thinkpad.conf
If this sounds like news to you, then follow the detailed instructions below, except change step one as follows:
Step 1. Create a new file
sudo nano /usr/share/X11/xorg.conf.d/20-thinkpad.conf
***
It’s that special time of year again! I have just finished upgrading my trusty ThinkPad T61 to the latest version of Ubuntu Linux — 10.04 Lucid Lynx. This edition of the operating system no longer employs the udev method of emulating scrolling. With the following instructions, one will be able to scroll with the middle button both vertically and horizontally:
Step 1. Create a new file
sudo nano /usr/lib/X11/xorg.conf.d/20-thinkpad.conf
Step 2. Insert the following
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
Step 3. Save file, restart computer, and enjoy!
Please comment and let me know whether this solution worked for you, or if you have alternative methods.
By the way, I’m not able to get the fingerprint reader working. Has anyone had any luck with it? Any tips to share? *Update: Fingerprint GUI seems quite effective.
Thanks for this, saved me plenty of time working it out!
I can confirm this works on a T43.
Thank you for the fix!
This worked perfectly on my T60, thanks!
Good work. It works on my ThinkPad R61i. But it requires restart of X. Thank you very much.
It works perfectly on a X61 tablet! Thx, good work.
I’m new to Linux, and once i figured out how to login as the administrator, it worked. Thank you.
Works for my T61.
For some reason after upgrade from Karmic to Lucid middle button scroll worked and failed only with recent Lucid kernel update.
Found a temp workaround: log out after restart then log in again.
Thanks for the real solution.
This doesn’t work for me. I can’t create the file 20-thinkpad.conf and so I can’t save the file in nano…. am I doing something wrong?
Did you get an error message in terminal when you tried to create the file?
Thanks for this! Worked great on my T61.
I have a trackpoint on my usb keyboard, and it was not matched by the agove MatchProduct. I had to add “USB Trackpoint pointing device” to the list to make it work. See http://www.thinkwiki.org/wiki/How_to_configure_the_TrackPoint#xorg.conf.d for a many descriptions of how to configure trackpoint.
I used
echo /dev/input/event* | xargs -n1 | xargs -i udevadm info –attribute-walk –name={} | grep product | sort -u
to find the possible names for my keyboard mouse.
Worked great on my X200, thank you!
Working on a R40, thanx
However there’s a small annoying delay between the time i click and when i start scrolling. It is just me or it’s happening with everyone?
On my T400, its acting as a third mouse and doing some funky stuff when I click down on it.
For some reason, its interpreting the trackpoint middle button as the paste command (as in copy and paste).
Is there a way to disable this?
Also, I’m using an Xubuntu session if that makes a difference.
In my case:
Press down on middle button and then let go –> acts as paste
Press down on middle button but don’t immediately let go –> does not paste
Is this what you’re experiencing? If so, then that’s probably normal.
I do not think that is what he meant. I guess I am having the same problem as Andrew. In Ubuntu as in other linux distros, the middle mouse button pastes the selection. Since I exclusively rely on the middle-button to scroll documents, I often end up accidentally pasting texts. Especially when in a text environment I find it extremely disturbing as I am not used to this paste behavior and also it is pretty awkward. I wonder if there is any way to disable this paste feature.
What happens if you don’t let go of the middle button immediately right after pressing on it?
Thanks for the response Eastwood.
If I don’t let go of the button, as you previously said, it works as a scroll. But if I let it go by accident, which so frequently happens to me, it pastes some text that I happened to have highlighted before mostly without a purpose. There are several problems with this middle-button paste feature: 1) you need to always be careful at what you are highlighting, you must not do it idly. 2) when you’re using the scroll feature of the middle button, you need to make sure you don’t let go of it in, however, this happens a lot by accident or carelessness when you’re using the middle button to scroll on a laptop like x61(you have to use the trackpoint) 3) and when you do it by accident, you sometimes have to look for in the middle of the whole document some random text you pasted.
I’ve found this link though I am not sure if it breaks my current configuration(which is based on your above workaround): http://askubuntu.com/questions/4507/how-do-i-disable-middle-mouse-button-click-paste
Excellent! This worked for me on Linux Mint 9 the first time. I had already slogged around the Mint forums and tried lots of different things. Your’s worked great! thanks.
Well I tested the above config and my whole keyboard stops working!? I’m using R61. What could be the problem? Any ideas how to debug it?
Thank you in advance.
Worked great on my R61i. Thx.
Hey, works like a charm!!! On a x40 thinkpad
Thanx, thanx thanx!!!
Pingback: Half a Page of Scribbled Linux :: Thinkpad T60 Ubuntu Upgrade
Worked on a31p. Thanks!
Nope. Didn’t work on my X61S running ubuntu as a virtual machine using WMware Player.
Maybe it’s because Ubuntu doesn’t recognise the virtual machine as a Thinkpad?
I confirm that it works on a W500, thanks!
I can’t get this work, after the second command, which I paste the lines to nano, then tried to use ctl+o to save the file it said error in writing this file = no such file or directory.
So I’m wondering how to save it.
Thanks!
check out pages in orbit around here
http://www.krizka.net/2010/06/12/thinkpad-x61-tablet-and-ubuntu-lucid-lynx/
One of the pages talks about fingerprints.
The scanner works well. There are trouble with the way that PAM — the pluggable authentication module — integrates with fingerprints. I believe this is a PAM issue not an f/p issue.
~~~ 0;-Dan
It works perfectly on my ThinkPad X60, thanks!
Thanks. Works great on a Thinkpad T42 running Ubuntu 10.04.
Thank you very much!
It works on my ThinkPad T60!
Man! This actually worked! Thank you!
Oh by the way I’m using Linux Mint. Tried several methods before but they didn’t work.
Works like a charm! Bravo!
saved my day, works great.
- T42, Ubuntu 10.04
Just set it up on my T60, works like a charm!
Great post! Straight forward and works like a charm on my T61. Thanks a bunch! Just restarting X was sufficient for me.
Works great. I scrolled to the bottom of this page with it. I’m using a T42p. One weird thing was some bizarre screen distortion before auto-login. Hopefully it goes away.
Thanks!! it works on my thinkpad t61!
Works perfectly with my old T41
Thank a lot!
Works great on my T400. Thanks.
Scrolls left, right, up, and down. Clicking briefly does paste, while holding it down a little longer doesn’t paste.
Works on a Thinkpad R40 running Ubuntu 10.04
Thanks a lot
Thanks, saved a lot of time for me. Thinkpad SL510
Scroll works fine on my R51, but the middle button still pastes. I was hoping to get rid of that feature, because it annoys me. Still, I’m happy to have my scroll button back.
*** Update:
Okay, I’ve been playing with this for a while now, and I have figured out how to BOTH turn off the irritating paste function AND still be able to scroll with the third button. It’s really quite easy. Just insert a line to Eastwood’s 20-thinkpad.conf file shown above that says:
Option “ButtonMapping” “1 0 3 4 5 6 7″
I inserted it just above EndSection in mine. Then save and reboot.
Setting that second digit to 0 changes the button mapping for the center (2nd) button at startup. I was afraid it would completely disable the center button, but I was pleasantly surprised when I rebooted and had my R51′s buttons behaving exactly as they did under Windows. It scrolls, but there’s no more annoying paste!
(And yes, I know that paste function is normal. But the whole point of Linux is to be able to make my machine do what I want rather than what some huge corporation wants me to want. I want the center button to scroll without pasting, and now I have it.)
Thank you. It works well on T410s also.
This also works on Ubuntu 10.10 beta on a Lenovo X201s.
The configuration directory is /usr/share/X11/xorg.conf.d/
Thanks!
Pingback: ThinkPad middle button scroll Ubuntu 10.10 Maverick | Andreas
Working on dell e6400 with 2.6.32-24 Ubuntu 10.04 x86_64. Thanks
My T42 Doesn’t boot after this tick…
SHIT.
There’s a nice gui for that purpose:
sudo apt-get install gpointing-device-settings
The program is called Gpointing
Greets
Exelent tip. made my day in Studiobuntu 11.04.
works like acharm
On a Thinkpad T400 with Ubuntu 10.10, this is the solution that worked for me, not the gpointing-device-settings application. Except I had to change the path to:
/usr/share/X11/xorg.conf.d
Thanks for the post!
This worked on my T510 running Ubuntu 10.9. Like Mustafa and others, when I upgraded to 10.10, I had to move the file to the following directory:
/usr/share/X11/xorg.conf.d
Thanks a lot!
Worked like a charm. Seems complicated but it isn’t.
Excellent thank you
Enable Restart X server (Ctrl-Alt-BackSpace)
Enabling Ctrl-Alt-Backspace for Ubuntu 10.10
* Select “System”->”Preferences”->”Keyboard”
* Select the “Layouts” tab and click on the “Layout Options” button.
* Select “Key sequence to kill the X server” and enable “Control + Alt + Backspace”.
Enabling Ctrl-Alt-Backspace for Kubuntu 10.10
* Click on the Application launcher and select “System Settings”
* Click on “Regional & Language”.
* Select “Keyboard Layout”.
* Click on “Enable keyboard layouts” (in the Layout tab).
* Select the “Advanced” tab. Then select “Key sequence to kill the X server” and enable “Control + Alt + Backspace”.
Works a charm here. Thinkpad X61 – Ubuntu 10.10
Works on Ubuntu 10.10 with Xfce, thanks.
Works on ThinkPad X61 tablet.
works on x201
works great on my T41. anyone know how to change the sensitivity?
Thx, works on Z61m !
Excelente, muchas gracias. Work at Thinkpad R61
Work on Thinkpad Edge 14, thanks!
Thank you, it worked immediately on my Lenovo X60s with 10.10.
Just copied and pasted.
Thanks again!
Hi!
Perfect solution! It is working on my T60 very well!
thx a lot
Goooooood~
It’s perfect solution!! R51, Xubuntu 10.10
This works for me on a ThinkPad T400, running Ubuntu 11.04. Thanks a lot again!
Works on ThinkPad X220 running Ubuntu 11.04. Thanks a lot.
Thanks alot!
Works well on my old R40.
Works wonderfully great. Thank you
First off, thank you!
for t400 users using 11.04 I also needed to move the file to:
/usr/share/X11/xorg.conf.d/20-thinkpad.conf
best of luck
Worked great on x200 on 11.04, thanks!
Worked for T61p, Ubuntu 11.04
Thanks
I just tried it on my Thinkpad T43, with ubuntu 11.04 and … yeah! great!!!!! HUGE THANKS!
Looks like it works on lenovo T520!
Thank you!!!
Works like a charm on X61s and T500 with Mint 11. Thank you for a very easy and straightforward tutorial. It has saved me many times.
Works perfectly on the lenovo T420 & X-ubuntu 11.4. Thanks a lot!
Worked on R50e with Ubuntu 11.04! Thnx
Thank you for this advice!
Great, thank you!
Thanks, works like a charm. I’ve copied the relevant part to my installation blog, with a ref link to your post.
http://www.epr.ch/brb/wiki/blog/thinkpad_middle_mouse_scrolling
thanks!!!
works on a x220 and 11.04 very well!!!
Works on my X60 Tablet. Wonderful. Just upgraded from 10.0.4 to 11.04 and…wow, 20min overall install time, great look, everything works out of the box, this little tweak was the only I noticed was necessary…they even fixed the button problem of by wacom pen (button on pen was mapped to middle instead right button).
I love you!
Works on ThinkPad T520, Ubuntu 11.04. Thanks a lot
Excellent!! Worked like a charm. Ubuntu 11.04 for an X60. Going to link to my blog. Thanks again!!
Thanks! Worked for my T60p just fine.
A small tip – you don’t need to restart your computer, just log out and back in again or reload the x-11 common from init.d.
Thanks guys, Works on my T410 after an upgrade from 9 to 10.04
Works great for 11.04 on my T500. Thanks mate.
Thanks! Works great!
works perfectly on R500 under xubuntu 11.04! thanks!!!
Ubuntu 11.04 – worked perfect. thank you so much
Confirm this works on a W500 w. ubuntu/gnome 10.04 LTS
thanks!!
I have recently switched to 11.10 (fresh install) and I am able to use the middle scroll button on my X61s without making the above changes to my system. Just wanted to report that.
Worked like charm on my ThinkPad Edge 15. Ubuntu 11.04/Gnome 2. Thanks a lot!