Archive for July, 2010

Thinkpad TrackPoint Scrolling in Ubuntu Lucid/10.04

July 10th, 2010 No comments

From Phil Sung:

Another Ubuntu release, another set of shakeups.

Some things in X changed in Lucid (xorg 1:7.5+5 and higher), breaking existing Thinkpad TrackPoint scrolling configurations that modify files in /etc/hal/fdi/policy (like those you may have seen in this previous post). You can use gpointing-device-settings to apply the same policy, but I found that even that stops working after a suspend/resume cycle.

Samson Yeung pointed out to me the following fix which can be applied on Ubuntu Lucid/10.04:

Create a new file /usr/lib/X11/xorg.conf.d/20-thinkpad.conf with the following contents:

Section “InputClass”
Identifier “Trackpoint Wheel Emulation”
MatchProduct “TrackPoint”
MatchDevicePath “/dev/input/event*”
Driver “evdev”
Option “EmulateWheel” “true”
Option “EmulateWheelButton” “2”
Option “Emulate3Buttons” “false”
Option “XAxisMapping” “6 7”
Option “YAxisMapping” “4 5”
Then restart X.

The configuration above works for both Thinkpad laptops with TrackPoints and the Thinkpad TrackPoint keyboard.

Ruby / MySQL 5.1 Problem

July 1st, 2010 No comments

Not sure why, but Ruby and the MySQL 5.1 client library don’t play well together.
Fortunately the the solution is simple: download an older MySQL client library from (libmySQL.dll) or (libmySQL.dll) and copy it to your Rubybin folder.

This worked for me with: Windows 7, MySQL 5.1.47, Ruby 1.9.1 and rubygems: sequel 3.13.0, mysql (2.8.1 x86-mingw32).

Categories: Uncategorized Tags: