<note tip>里面会装一个windows或者用来捣鼓的linux</note>


这个音乐播放器可以通过修改配置文件可以使用GB18030的mp3 标签编码,解决很多时候MP3的乱码问题。(当然可以去转换 谁会转换方法来写一下?)







Thinkpad 中键模拟滚轮


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>

(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.


这个脚本在我的机器(R61i-7742A23)上是正常的,而其中的'TPPS/2 IBM TrackPoint'这个设备名称可能随机型改变。
# To enable vertical scrolling
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
# To enable horizontal scrolling in addition to vertical scrolling
xinput set-prop 'TPPS/2 IBM TrackPoint' "Evdev Wheel Emulation Axes" 6 7 4 5
# To enable middle button emulation (using left- and right-click simultaneously)
#xinput set-prop 'TPPS/2 IBM TrackPoint' "Evdev Middle Button Emulation" 1
#xinput set-prop 'TPPS/2 IBM TrackPoint' "Evdev Middle Button Timeout" 50


xinput list


⎡ Virtual core pointer                          id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
⎜   ↳ Lenovo Optical Mouse                      id=9    [slave  pointer  (2)]
⎜   ↳ SynPS/2 Synaptics TouchPad                id=11   [slave  pointer  (2)]
⎜   ↳ TPPS/2 IBM TrackPoint                     id=12   [slave  pointer  (2)]
⎣ Virtual core keyboard                         id=3    [master keyboard (2)]
    ↳ Virtual core XTEST keyboard               id=5    [slave  keyboard (3)]
    ↳ Power Button                              id=6    [slave  keyboard (3)]
    ↳ Video Bus                                 id=7    [slave  keyboard (3)]
    ↳ Sleep Button                              id=8    [slave  keyboard (3)]
    ↳ AT Translated Set 2 keyboard              id=10   [slave  keyboard (3)]
    ↳ ThinkPad Extra Buttons                    id=13   [slave  keyboard (3)]

Enable Ctrl + Alt + BackSpace in Ubuntu Jaunty 原文:http://www.ubuntu.com/getubuntu/releasenotes/910#Enabling%20Ctrl-Alt-Backspace%20for%20Ubuntu Enabling Ctrl-Alt-Backspace for Ubuntu

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”.