努力了半天搞定了本子的几个东西。
指纹识别
以前看到Linux on T60的文章,说fingerprint的软件不是很成熟,所以当时都没有怎么看。今天到thinkwiki上看了看,发现有两个驱动:thinkfinger和BioAPI。前者是开源的,而后者是闭源的。我在编译BioAPI的时候,出现错误,所以我用thinkfinger,一切顺利。希望它能早点进入debian的官方源。
现在我可以用thinkfinger和unix两种pam方式,所以在gdm和su登录的时候,会出现两种方式,例如su:
如果想要用指纹的话,可以在系统提示“Password or swipe finger”的时候,扫一下指纹;如果不想用指纹,可以在系统提示“Password or swipe finger”的时候,按一下回车,系统会提示“Password:”,这个时候输入密码就好了。例如:
marvel@mvision:~$ su –
Password or swipe finger:
Password:
指点杆
系统默认指点杆中键和鼠标的中键一样,都是粘贴,这个在看书看网页的时候不太方便。如果内核以前,需要找一个patch,而在内核以后,这个功能需要在X系统中实现。只要修改一下X的配置文件:
Section “InputDevice”
Identifier “Configured Mouse”
Driver “mouse”
Option “CorePointer”
Option “Device” “/dev/input/mice”
Option “Protocol” “ImPS/2”
Option “Emulate3Buttons” “on”
Option “Emulate3TimeOut” “50”
Option “EmulateWheel” “on”
Option “EmulateWheelTimeOut” “200”
Option “EmulateWheelButton” “2”
Option “YAxisMapping” “4 5”
Option “XAxisMapping” “6 7”
Option “ZAxisMapping” “4 5”
EndSection
重启X。
之后可以更改鼠标的灵敏度和速度:
echo -n 140 > /sys/devices/platform/i8042/serio1/serio2/speed
echo -n 250 > /sys/devices/platform/i8042/serio1/serio2/sensitivity
以上的serio1/serio2目录与具体的内核有关:
- With kernels 2.6.19 and above config files for this driver are located in /sys/devices/platform/i8042/serio1.
- With kernels 2.6.13 (inclusive) to 2.6.19 (exclusive) config files for this driver are located in /sys/devices/platform/i8042/serio0/serio2.
- With kernels 2.6.11 (inclusive) to 2.6.13 (exclusive) config files for this driver are located in /sys/devices/platform/i8042/serio0.
- With kernels 2.6.9 (inclusive) to 2.6.11 (exclusive) config files for this driver are located in /proc/trackpoint.
- Prior to kernel 2.6.9, configuration was not done through files but through command-line options to the psmouse module. (Note this means you must compile psmouse as a module!)
CPU频率调节
在内核 2.6.10以前,需要加一个patch才可以支持dothan,不过我用的最新的内核2.6.20可以直接支持了。我在acpi中,编译了以下模块:
ac.ko container.ko hotkey.ko processor.ko video.ko battery.ko dock.ko i2c_ec.ko sbs.ko button.ko fan.ko ibm_acpi.ko thermal.ko
acpi-cpufreq.ko
在/etc/modules中添加这些模块即可,重启,选择新内核。
然后,安装 cpufreqd,启动之。安装gnome-applets,在gnome的任务栏中添加CPU Frequecy Scaling Monitor。之后运行:
chmod +s /usr/bin/cpufreq-selector
这样,就可以使用CPU Frequecy Scaling Monitor调节频率了。
tpb
tpb是用于fn键控制的,其实apt-get安装之后就基本上OK了。但是还要记得编译的内核中需要包含nvram的支持,然后把当前的用户加到nvram组中。 这样用户才能读/dev/nvram设备。
你好强啊,小而强大~~~~
……我不小啊