搜索此博客

显示标签为“Thinkpad”的博文。显示所有博文
显示标签为“Thinkpad”的博文。显示所有博文

2011年7月17日星期日

X41任务之Reloaded

草稿
1. dock/undock
  ultrabase
    /sys/module/acpi/parameters/immediate_undock
    /etc/modprobe.d/myfilename.conf - options dock immediate_undock=0
  ultrabay
usb devices
2. suspend to disk
dock/undock when suspended
3. wireless sometimes assign to eth0 (done)
 udev rules
4. xdg-open
5. picasa 3.8 for linux (done)
 use wine version
6. ... ...

2009年7月26日星期日

X41任务2——充电控制和HDAPS(内核模块编译)

一、编译内核模块:

下载tp-smapi-source,Jaunty源里的比较旧了,俺用karmic的包。然后编译:

sudo apt-get install module-assistant
export HDAPS=1
sudo m-a -t a-i tp-smapi
sudo modprobe tp_smapi
sudo modprobe hdaps

这时候看syslog应该能看到有关smapi和hdaps的内容了。


二、电池阀


下面的命令需要root权限。
echo 50 > /sys/devices/platform/smapi/BAT0/start_charge_thresh
echo 80 > /sys/devices/platform/smapi/BAT0/stop_charge_thresh

还是sysfs,我爱sysfs。


三、HDAPS


sudo apt-get install hdaps-utils hdapsd

hdaps-utils用来看加速传感器是否工作了,运行“$ hdaps-gl”可以看到动画效果。然后就是启动hdapsd,结果他说什么什么unload_head文件不能写?研究中。要调整一些参数的话,可以以root身份编辑/etc/default/hdapsd。


三、下一个任务


下一个任务是“底座热插拔”。

2009年7月21日星期二

X41任务1——Track Point(HAL与sysfs)

一、滚动


新的发行版,比如说Ubuntu 8.10和Fedora 10已经开始使用udev和HAL来配置输入设备了,不再需要修改xorg.conf了。以root身份创建“/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.Emulate3Buttons" type="string">true</merge>
<merge key="input.x11_options.EmulateWheelTimeout" type="string">200</merge>
</match>

立即生效,重启就没了。装了sysfsutils的话就可以每次重启都配置一次。其他的设定:






















































































Name Type Default Notes
sensitivityInteger128Sensitivity
speedInteger97Cursor speed
inertiaInteger6Described as "negative inertia." It acts more like friction. High values cause the cursor to snap backward when the Trackpoint is released
reachInteger10Backup for Z-axis press
draghysInteger255Drag hysteresis (how hard it is to drag with Z-axis pressed)
mindragInteger20Minimum amount of force needed to trigger dragging
threshInteger8Minimum value for a Z-axis press
upthreshInteger255Used to generate a 'click' on Z-axis
ztimeInteger38How sharp of a press
jenksInteger135Minimum curvature for double click
press_to_selectBoolean0Press to select
skipbackBoolean0Supress movement after drag release
ext_devBoolean0Disable external device

2009年7月19日星期日

X41任务0——搬回家

终于拥有Thinkpad了,兴奋!30000日元入手X41一台,Dothan 1.5的,1G内存。英文键盘,带底座。成色还行,顶面有些划痕,锁扣那有粘过的痕迹。电池8芯的,显示能用3.5小时,估计不能这么抗用,有时间校准一下。现在正在TX线电车打字,键盘手感很好(输入法太别扭)。果然,现在直接跳到1个小时了。原计划是要买X40来着,可是怎么都找不到Dothan版的,就选了这台。据说X41比较费电啊。打算今晚回去装Ubuntu了。不知道Ubuntu对Thinkpad支持怎么样,这些特色功能还能不能用了,比如说电池校准啥的。

X41,真漂亮啊,薄薄的机身。现在是放在腿上,感觉底下温温的(汗,到站了)。

到家了,电池校准中,怕装了Ubuntu不能校准了。不知道写点什么了,总之很兴奋,听着键盘的声音,看着硬盘灯在闪。

我的辐射2装上了不能运行,难道欺负日文系统?

晚上开始整Ubuntu!

2009年7月14日星期二

Thinkpad X40 CPU电压/板载内存一览

Banias

型号 CPU电压 板载内存
11J ULV 256MB
13J ULV 256MB
15J ULV 256MB
1CJ ULV 256MB
1EE ULV 256MB
1EJ ULV 256MB
1EW ? ?
3EJ ULV 256MB
4VJ ULV 256MB
4WJ ULV 256MB
5FJ LV 256MB
5ZJ LV 256MB
67J LV 256MB
6EJ LV 256MB
71J ULV 512MB
7FJ LV 256MB
7FW ? ?
7VE ? ?
7VJ ? ?
7VW ? ?
A1I ULV 256MB
A3J ULV 256MB
A6J ULV 256MB
AEJ ULV 256MB
AFE ULV 256MB
AFJ ULV 256MB
AJ1 ? ?
BJ1 ULV 256MB
E8J ? ?
KJ1 ? ?

Dothan

型号 CPU电压 板载内存
11I ULV 256MB
12I ULV 256MB
13I ULV 256MB
14I ULV 256MB
15I ULV 256MB
16I ULV 256MB
17I ULV 256MB
21I ULV 256MB
22I ULV 256MB
23I ULV 256MB
24I ULV 256MB
25I ULV 256MB
26I ULV 256MB
27I ULV 256MB
A2I LV 512MB
B4J ULV 256MB
BBJ ULV 256MB
BRE ULV 256MB
BRJ ULV 256MB
BTJ ULV 256MB
G1J LV 512MB
GDE LV 512MB
GDJ LV 512MB
GGJ LV 512MB
K5J LV 512MB
K9J LV 512MB
KCE LV 512MB
KCJ LV 512MB
KFJ LV 512MB
M4J ULV 256MB
M5E ULV 256MB
M5J ULV 256MB
M7J ULV 256MB
MAJ ULV 256MB
Q2J LV 512MB
Q3E LV 512MB
Q3J LV 512MB
Q5J LV 512MB
Q6J LV 512MB