啟用ThinkPad T420 HDAPS硬碟防震 - Linux

By Belly
at 2012-02-14T01:11
at 2012-02-14T01:11
Table of Contents
※ [本文轉錄自 Notebook 看板 #1EpUvDRQ ]
作者: vindex (陳小狼) 看板: Notebook
標題: [心得] 啟用ThinkPad T420 HDAPS硬碟防震
時間: Thu Nov 24 15:12:10 2011
歡迎轉載,請註明作者blog
BLOG:http://vindex1986.blogspot.com/2011/11/thinkpad-t420-hdaps.html
我的筆電是Thinkpad T420
不過我想W520 、X220都可以適用
安裝的linux版本是Ubuntu 11.04(kenerl 2.6.38-12)
首先要下載tp-smapi_0.41.orig.tar.gz
網站https://launchpad.net/ubuntu/+source/tp-smapi/0.41-1
其他版本的tp-smapi也可以在下面這網站找到
http://tpctl.sourceforge.net/#download
指令:
tar zxf tp-smapi_0.41.orig.tar.gz
cd tp_smapi-0.41/
make
sudo su
insmod thinkpad_ec.ko
insmod tp_smapi.ko
另外下載面板gnome-hdaps-applet-20081204.tar.gz
指令:
tar zxf gnome-hdaps-applet-20081204.tar.gz
gcc $(pkg-config --cflags --libs libpanelapplet-2.0) -o gnome-hdaps-applet
gnome-hdaps-applet.c
cp gnome-hdaps-applet /usr/bin/
mkdir /usr/share/pixmaps/gnome-hdaps-applet
cp *.png /usr/share/pixmaps/gnome-hdaps-applet/
cp GNOME_HDAPS_StatusApplet.server /usr/lib/bonobo/servers/
登出ubuntu
在加入面板內就可以看到HDAPS Status Applet
指令:
find /
移動筆電,如果上面的圖片有變、搜尋會停止就成功了
開機直接執行
指令:
cd tp_smapi-0.41/
sudo su
mkdir /lib/modules/2.6.38-12-generic/kernel/drivers/hdaps
mv thinkpad_ec.ko /lib/modules/2.6.38-12-generic/kernel/drivers/hdaps
mv tp_smapi.ko /lib/modules/2.6.38-12-generic/kernel/drivers/hdaps
vi /etc/rc.local
新增這三行,儲存離開
insmod /lib/modules/2.6.38-12-generic/kernel/drivers/hdaps/thinkpad_ec.ko
insmod /lib/modules/2.6.38-12-generic/kernel/drivers/hdaps/tp_smapi.ko
sudo /etc/init.d/hdapsd start
這樣開機時就會載入這兩個模組和執行hdapsd
thinkpad_ec.ko
tp_smapi.ko
--
作者: vindex (陳小狼) 看板: Notebook
標題: [心得] 啟用ThinkPad T420 HDAPS硬碟防震
時間: Thu Nov 24 15:12:10 2011
歡迎轉載,請註明作者blog
BLOG:http://vindex1986.blogspot.com/2011/11/thinkpad-t420-hdaps.html
我的筆電是Thinkpad T420
不過我想W520 、X220都可以適用
安裝的linux版本是Ubuntu 11.04(kenerl 2.6.38-12)
首先要下載tp-smapi_0.41.orig.tar.gz
網站https://launchpad.net/ubuntu/+source/tp-smapi/0.41-1
其他版本的tp-smapi也可以在下面這網站找到
http://tpctl.sourceforge.net/#download
指令:
tar zxf tp-smapi_0.41.orig.tar.gz
cd tp_smapi-0.41/
make
sudo su
insmod thinkpad_ec.ko
insmod tp_smapi.ko
另外下載面板gnome-hdaps-applet-20081204.tar.gz
指令:
tar zxf gnome-hdaps-applet-20081204.tar.gz
gcc $(pkg-config --cflags --libs libpanelapplet-2.0) -o gnome-hdaps-applet
gnome-hdaps-applet.c
cp gnome-hdaps-applet /usr/bin/
mkdir /usr/share/pixmaps/gnome-hdaps-applet
cp *.png /usr/share/pixmaps/gnome-hdaps-applet/
cp GNOME_HDAPS_StatusApplet.server /usr/lib/bonobo/servers/
登出ubuntu
在加入面板內就可以看到HDAPS Status Applet
指令:
find /
移動筆電,如果上面的圖片有變、搜尋會停止就成功了
開機直接執行
指令:
cd tp_smapi-0.41/
sudo su
mkdir /lib/modules/2.6.38-12-generic/kernel/drivers/hdaps
mv thinkpad_ec.ko /lib/modules/2.6.38-12-generic/kernel/drivers/hdaps
mv tp_smapi.ko /lib/modules/2.6.38-12-generic/kernel/drivers/hdaps
vi /etc/rc.local
新增這三行,儲存離開
insmod /lib/modules/2.6.38-12-generic/kernel/drivers/hdaps/thinkpad_ec.ko
insmod /lib/modules/2.6.38-12-generic/kernel/drivers/hdaps/tp_smapi.ko
sudo /etc/init.d/hdapsd start
這樣開機時就會載入這兩個模組和執行hdapsd
thinkpad_ec.ko
tp_smapi.ko
--
Tags:
Linux
All Comments

By Yuri
at 2012-02-16T11:10
at 2012-02-16T11:10

By Tom
at 2012-02-20T12:06
at 2012-02-20T12:06

By Puput
at 2012-02-23T18:36
at 2012-02-23T18:36
Related Posts
Qt 4.7.3

By Xanthe
at 2012-02-13T23:01
at 2012-02-13T23:01
求救 mail server 問題

By Kyle
at 2012-02-13T22:23
at 2012-02-13T22:23
VirtualBox中撥號取得固定IP一問

By Connor
at 2012-02-13T20:31
at 2012-02-13T20:31
HIME 之 Big5 補完計劃

By Poppy
at 2012-02-13T17:10
at 2012-02-13T17:10
Centos XDMCP連線設定問題

By Edward Lewis
at 2012-02-13T15:21
at 2012-02-13T15:21