---
title: "thinkpad 中键滚动 for Ubuntu 10.04"
author: "brucejiang"
date: "2010-10-09T14:59:17Z"
tags: []
categories: ["操作系统"]
slug: "thinkpad-for-ubuntu-10-04"
draft: false
lastmod: "2010-10-09T14:59:17Z"
id: 779584
url: "https://brucejiang.iteye.com/blog/779584"
---

让Ubuntu下的中键滚动像windows一样～

简单几步：  
编辑：

```
xinput set-prop 'TPPS/2 IBM TrackPoint' "Evdev Wheel Emulation" 1
xinput set-prop 'TPPS/2 IBM TrackPoint' "Evdev Wheel Emulation Button" 2
xinput set-prop 'TPPS/2 IBM TrackPoint' "Evdev Wheel Emulation Timeout" 200
xinput set-prop 'TPPS/2 IBM TrackPoint' "Evdev Wheel Emulation Axes" 6 7 4 5
```

保存为\\home\\Mouse\_Wheel.sh

在终端中输入

```
chmod +x Mouse_Wheel.sh
```

在system &gt; Preferences &gt; Startup Applications 点击“添加” name:输入“Mouse Whell”,Command Box输入“/home/Mouse\_Wheel.sh”

创建新文件：/etc/hal/fdi/policy/mouse-wheel.fdi

```
sudo gedit /etc/hal/fdi/policy/mouse-wheel.fdi
```

代码如下：

```
<?xml version="1.0" encoding="UTF-8"?>
 <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>
```

重启 done