2008年7月15日 星期二

Trackpoint scroll with Fedora 9

http://vbraun.name/cms/node/7

Trackpoint scroll with Fedora 9

The trackpoint the red knob in the middle of Thinkpad keyboards, its one of the best mouse alternatives I've ever seen. You don't ever have to move your hand away from the home row!

One of the features of the windows driver is that you can hold the middle mouse button down and push the trackpoint up/down to scroll. This is really convenient, and of course I'd like to use it everywhere. But it is not a hardware function, and must be simulated by the driver.

Fortunately, the xorg "mouse" input driver supports this, and I have used this option happily over the years. But with Fedora 9 this suddenly stopped working. Further investigation revealed that the "evdev" driver was taking over, even though another driver is explicitly configured in xorg.conf. Talking about greedy. The correct solution is to disable this autodetection via the "AutoAddDevices" server flag. Here is my working configuration:

Section "ServerFlags" Option "AutoAddDevices" "false" EndSection Section "ServerLayout" Identifier "single head configuration" Screen 0 "Screen0" 0 0 InputDevice "Keyboard" "CoreKeyboard" InputDevice "Trackpoint" "CorePointer" InputDevice "BluetoothMouse" "SendCoreEvents" Option "AIGLX" "true" EndSection Section "InputDevice" Identifier "Keyboard" Driver "kbd" Option "XkbModel" "pc105" Option "XkbLayout" "us" Option "XkbVariant" "dvorak" EndSection Section "InputDevice" Identifier "Trackpoint" Driver "mouse" Option "CorePointer" Option "Device" "/dev/input/mice" Option "Protocol" "ExplorerPS/2" Option "Emulate3Buttons" "off" Option "EmulateWheel" "on" Option "EmulateWheelTimeOut" "200" Option "EmulateWheelButton" "2" Option "YAxisMapping" "4 5" # Option "XAxisMapping" "6 7" Option "ZAxisMapping" "4 5" EndSection Section "InputDevice" Identifier "BluetoothMouse" Driver "evdev" Option "Name" "Logitech MX900 Mouse" Option "Buttons" "1 6 3 4 5 2 7 8 9 10" EndSection Section "Device" Identifier "Videocard0" Driver "intel" Option "DRI" "true" Option "AccelMethod" "EXA" Option "ExaNoComposite" "false" Option "MigrationHeuristic" "greedy" EndSection Section "Screen" Identifier "Screen0" Device "Videocard0" DefaultDepth 24 SubSection "Display" Viewport 0 0 Depth 24 EndSubSection EndSection Section "DRI" Group "video" Mode 0660 EndSection Section "Extensions" Option "Composite" "Enable" EndSection

Note that I only enable middle mouse button + up/down to scroll, not left/right. The left/right option is interpreted as backwards/forwards in firefox, which gets annoying quickly. Now it is possible to reassign the keys in firefox, but in the end I noticed that I never use the left/right scrolling functions anywhere.

http://www.mobile01.com/topicdetail.php?f=240&t=425441&p=1

編輯/etc/X11/Xmodmap. 貼在最後面 keycode 234 = XF86Back keycode 233 = XF86Forward #以上是方向鍵旁邊的上下一頁 #也可改成pgUp,pgDn #keycode 234 = Prior #keycode 233 = Next keycode 159 = XF86Start keycode 162 = XF86AudioPlay keycode 164 = XF86AudioStop keycode 153 = XF86AudioNext keycode 144 = XF86AudioPrev keycode 227 = XF86LaunchF keycode 249 = XF86ZoomIn

http://racklin.blogspot.com/2008/04/ubuntu-804-thinkpad-t61.html

The trackpoint the red knob in the middle of Thinkpad keyboards, its one of the best mouse alternatives I've ever seen. You don't ever have to move your hand away from the home row!

One of the features of the windows driver is that you can hold the middle mouse button down and push the trackpoint up/down to scroll. This is really convenient, and of course I'd like to use it everywhere. But it is not a hardware function, and must be simulated by the driver.

Fortunately, the xorg "mouse" input driver supports this, and I have used this option happily over the years. But with Fedora 9 this suddenly stopped working. Further investigation revealed that the "evdev" driver was taking over, even though another driver is explicitly configured in xorg.conf. Talking about greedy. The correct solution is to disable this autodetection via the "AutoAddDevices" server flag. Here is my working configuration:

Section "ServerFlags" Option "AutoAddDevices" "false" EndSection Section "ServerLayout" Identifier "single head configuration" Screen 0 "Screen0" 0 0 InputDevice "Keyboard" "CoreKeyboard" InputDevice "Trackpoint" "CorePointer" InputDevice "BluetoothMouse" "SendCoreEvents" Option "AIGLX" "true" EndSection Section "InputDevice" Identifier "Keyboard" Driver "kbd" Option "XkbModel" "pc105" Option "XkbLayout" "us" Option "XkbVariant" "dvorak" EndSection Section "InputDevice" Identifier "Trackpoint" Driver "mouse" Option "CorePointer" Option "Device" "/dev/input/mice" Option "Protocol" "ExplorerPS/2" Option "Emulate3Buttons" "off" Option "EmulateWheel" "on" Option "EmulateWheelTimeOut" "200" Option "EmulateWheelButton" "2" Option "YAxisMapping" "4 5" # Option "XAxisMapping" "6 7" Option "ZAxisMapping" "4 5" EndSection Section "InputDevice" Identifier "BluetoothMouse" Driver "evdev" Option "Name" "Logitech MX900 Mouse" Option "Buttons" "1 6 3 4 5 2 7 8 9 10" EndSection Section "Device" Identifier "Videocard0" Driver "intel" Option "DRI" "true" Option "AccelMethod" "EXA" Option "ExaNoComposite" "false" Option "MigrationHeuristic" "greedy" EndSection Section "Screen" Identifier "Screen0" Device "Videocard0" DefaultDepth 24 SubSection "Display" Viewport 0 0 Depth 24 EndSubSection EndSection Section "DRI" Group "video" Mode 0660 EndSection Section "Extensions" Option "Composite" "Enable" EndSection

Note that I only enable middle mouse button + up/down to scroll, not left/right. The left/right option is interpreted as backwards/forwards in firefox, which gets annoying quickly. Now it is possible to reassign the keys in firefox, but in the end I noticed that I never use the left/right scrolling functions anywhere.

http://www.mobile01.com/topicdetail.php?f=240&t=425441&p=1

編輯/etc/X11/Xmodmap. 貼在最後面 keycode 234 = XF86Back keycode 233 = XF86Forward #以上是方向鍵旁邊的上下一頁 #也可改成pgUp,pgDn #keycode 234 = Prior #keycode 233 = Next keycode 159 = XF86Start keycode 162 = XF86AudioPlay keycode 164 = XF86AudioStop keycode 153 = XF86AudioNext keycode 144 = XF86AudioPrev keycode 227 = XF86LaunchF keycode 249 = XF86ZoomIn

http://racklin.blogspot.com/2008/04/ubuntu-804-thinkpad-t61.html

沒有留言: