ibm thinkpad附带了一些windows下的软件,像音量调节、fn键的一些功能时会在屏幕上提示。下面这个软件能在linux实现这些。
软件说明:
What is TPB
http://www.nongnu.org/tpb/
TPB is a little program that enables you to use the IBM ThinkPad(tm) special keys.
With TPB it is possible to bind a program to the ThinkPad, Mail, Home and Search button. TPB can also run a callback program on each state change with the changed state and the new state as options. So it is possible to trigger several actions on different events. TPB has a on-screen display (OSD) to show volume, mute, brightness and some other informations. Furthermore TPB supports a software mixer, as the R series ThinkPads have no hardware mixer to change the volume.
机器配置: ibm thinkpad R50e
操作系统: fc3 kernel:2.6.9-1.667
所需rpm包:
xosd-2.2.14-1.i386.rpm
tpb-0.6.3-3.1.fc3.rf.i386.rpm
安装上面两个rpm包
测试: tpb --osd=on --verbose --thinkpad="xterm -T ntpctl -e ntpctl"
成功的话,按音量按钮, 及调节屏幕亮度时会有提示
tpt -h 查看一些选项
tpb的配置文件一般在/etc/tpbrc,$HOME/.tpbrc中
开机自动运行:
/etc/X11/xinit/xinitrc.d 下建立tpd.sh
内容
chmod 755 /dev/nvram %让普通用户也可使用
/usr/bin/tpb -d
详细见该软件网站http://www.nongnu.org/tpb
------------------------------------------------------------------
在我的fc3下通过上面的设置,没有自动运行,可以试试下面的方法:
将tpb.sh中都注释掉,
然后 application--peference-more preferences--sesions--start program添加
/usr/bin/tpb -d
注销即可