IBM X60 安装8.10后中间滚轮键无法使用的解决办法(对其他型号Thinkpad的型号可能也有帮助)

笔记本/便携移动设备,手机平板等软硬件
头像
hy1984427
帖子: 18
注册时间: 2007-05-18 14:47

IBM X60 安装8.10后中间滚轮键无法使用的解决办法(对其他型号Thinkpad的型号可能也有帮助)

#1

帖子 hy1984427 » 2008-11-05 16:53

最近安装了8.10,除了中间的滚轮键(就是以前那个蓝色的按键)没有反应外一切正常。
用以前的EmulateWheel的方法也不能正常使用(只有中键点击的效果,还只能对文件进行操作)。
不甘心,昨天Google了一下,找到了解决办法,不敢独享,给黑友们分享一下。
注意:仅针对X60,其他型号可能设置有所不同。
Scrolling with the Thinkpad's TrackPoint in Ubuntu 8.10 Intrepid

Ubuntu Intrepid (8.10) switches to evdev for X server input, which has the unfortunate side effect of breaking old EmulateWheel configurations. So scrolling using the middle button + TrackPoint (which I absolutely love) was broken for a while. However, the version of evdev in Intrepid has now caught up and supports these features. Instead of modifying your xorg.conf, create a new file called /etc/hal/fdi/policy/mouse-wheel.fdi with the following contents:

<match key="info.product" string="TPPS/2 IBM TrackPoint">
<merge key="input.x11_options.EmulateWheel" type="string">true</merge>
<merge key="input.x11_options.EmulateWheelButton" type="string">2</merge>
<merge key="input.x11_options.XAxisMapping" type="string">6 7</merge>
<merge key="input.x11_options.YAxisMapping" type="string">4 5</merge>
<merge key="input.x11_options.ZAxsisMapping" type="string">4 5</merge>
<merge key="input.x11_options.Emulate3Buttons" type="string">true</merge>
</match>

(Based on code from Michael Vogt and adapted to support both vertical and horizontal scrolling.)

In only tangentially related news, Lenovo recently announced the Thinkpads X200 and (more recently) X200s. The general consensus among reviewers is that if you love the X61, you'll love the X200. It's basically an update of the X61 with newer Intel chips and a widescreen display (with better pixel density); consequently, it is a bit wider and not as deep and has a full size keyboard. Shame I'm nowhere near the end of an upgrade cycle.

Update: by the way, you'll have to restart hal and gdm for the changes to take effect.

Update, 29 Oct 2008: I tested the above code on an X61s. The X200 (and possibly other new Thinkpads?) seems to have a different hardware configuration, so the config above doesn't work. Furthermore, an update to Ubuntu Intrepid (subsequent to my original post) breaks TrackPoint scrolling either completely or only after suspending and resuming. See Ubuntu bug 282387 for instructions on compiling and installing upstream's fixed version.
大概翻译一下:
Ubuntu 8.10 转向用evdev作为X server的输入,所以以前用EmulateWheel设置的方式使用中间滚轮键的方法就失效了。但是现在的evdev也支持更改设置来使用滚轮键(不然Ubuntu岂不是越出越差了:P)。
解决办法很简单,只需要先新建一个文件 /etc/hal/fdi/policy/mouse-wheel.fdi, 并添加以下内容就可以了:

<match key="info.product" string="TPPS/2 IBM TrackPoint">
<merge key="input.x11_options.EmulateWheel" type="string">true</merge>
<merge key="input.x11_options.EmulateWheelButton" type="string">2</merge>
<merge key="input.x11_options.XAxisMapping" type="string">6 7</merge>
<merge key="input.x11_options.YAxisMapping" type="string">4 5</merge>
<merge key="input.x11_options.ZAxsisMapping" type="string">4 5</merge>
<merge key="input.x11_options.Emulate3Buttons" type="string">true</merge>
</match>

*提醒一下刚接触Ubuntu的新手,这个文件夹需要root权限才能修改,所以

代码: 全选

sudo touch /etc/hal/fdi/policy/mouse-wheel.fdi
然后输入你的root密码,再用

代码: 全选

sudo gedit 
sudo touch /etc/hal/fdi/policy/mouse-wheel.fdi
编辑这个文件,把上面的内容粘贴进去,保存一下就好了。
别忘了重新启动hal和gdm服务(实在不会就restart一下吧)。

再次登录进系统,滚轮键就可以使用了。

由于本人只有X60,此方法在X60上经测试没有问题,其他型号Thinkpad可能要改一些设置,需要的话可以参考一下原文:http://psung.blogspot.com/2008/09/scrol ... nt-in.html

Hope it can help.
Have fun with Ubuntu! :em01
FinalBoy
帖子: 39
注册时间: 2007-11-16 21:55

Re: IBM X60 安装8.10后中间滚轮键无法使用的解决办法(对其他型号Thinkpad的型号可能也有帮助)

#4

帖子 FinalBoy » 2008-12-03 14:25

休眠再启动后,scrollkey+小红点 还是无效。
头像
flymousedj
帖子: 313
注册时间: 2008-12-26 16:06

Re: IBM X60 安装8.10后中间滚轮键无法使用的解决办法(对其他型号Thinkpad的型号可能也有帮助)

#5

帖子 flymousedj » 2008-12-31 16:21

R61通过,你们是不是按住中键才能拖动的?我的是这样。
在XP下是,可以按一次中键,放开还可以拖的.
THINKPAD R61i 7650-9SC
jiajun
帖子: 40
注册时间: 2008-11-13 2:31

Re: IBM X60 安装8.10后中间滚轮键无法使用的解决办法(对其他型号Thinkpad的型号可能也有帮助)

#8

帖子 jiajun » 2009-01-14 22:39

救命啊....照楼主意思去做,,,最后重启gdm后,一直在控制台,按Ctrl+Alt+F7进不回图形界面了,请问该怎么办啊??????????????
feiyangb
帖子: 27
注册时间: 2009-01-28 23:02

Re: IBM X60 安装8.10后中间滚轮键无法使用的解决办法(对其他型号Thinkpad的型号可能也有帮助)

#9

帖子 feiyangb » 2009-01-29 14:49

楼主的x60安装ubuntu后显示器的分辨率最高能调到多少?我的只能到1024*768 这不是最佳的分辨率,所以有点模糊。请楼主多帮助阿,我是第一次用ubuntu。
头像
allarem
帖子: 1025
注册时间: 2008-05-31 17:27
来自: SUES
联系:

Re: IBM X60 安装8.10后中间滚轮键无法使用的解决办法(对其他型号Thinkpad的型号可能也有帮助)

#10

帖子 allarem » 2009-01-30 11:35

可以一条命令解决创建和权限等问题

代码: 全选

sudo gedit /etc/hal/fdi/policy/mouse-wheel.fdi
:em11X41T也可以这样用
grissom
帖子: 5
注册时间: 2007-03-09 0:13

Re: IBM X60 安装8.10后中间滚轮键无法使用的解决办法(对其他型号Thinkpad的型号可能也有帮助)

#11

帖子 grissom » 2009-04-09 16:51

x61下好用。谢谢LZ分享。。 :em11
snowolf20000
帖子: 8
注册时间: 2009-04-05 18:59

Re: IBM X60 安装8.10后中间滚轮键无法使用的解决办法(对其他型号Thinkpad的型号可能也有帮助)

#12

帖子 snowolf20000 » 2009-04-10 20:39

T43 可用
然后是以下步骤:
11。重新启动hal和gdm服务
sudo /etc/init.d/hal restart
sudo /etc/init.d/gdm restart

2。重启后会进入纯终端界面,按下“Ctrl+Alt+F1”,输入用户名密码

3。启动图形界面:
sudo /etc/init.d/gdm start
6wings.k
帖子: 386
注册时间: 2009-01-30 20:54

Re: IBM X60 安装8.10后中间滚轮键无法使用的解决办法(对其他型号Thinkpad的型号可能也有帮助)

#15

帖子 6wings.k » 2009-05-03 15:02

ubuntu 9.04 + thinkpad R61i dvc
测试成功!
回复