Ubuntu 11.04でHDD Active Protection Systemを使う
若干毛色の違うエントリーですが、最近余剰なThinkPad X61を入手したので
Linux Desktopマシンとして利用しようと思い立ち、Ubuntu Desktop 11.04を
インストールしてみた。
ThinkPadを利用するからには"HDD Active Protection System"というLenovo(旧IBM)の
加速度センサーを用いた、振動(衝撃)によるHDD障害を防ぐ機能を使用したいと思い
Linuxで利用可能かどうか調べてみた結果、Kernelモジュールで対応できるようだ
インストール手順
いろいろと調べた結果、TP SMAPIというKernelモジュールを導入することにより
利用可能なようで、Tp smapi - ThinkWikiを参考に以下の手順でインストールを行ってみた。
# apt-get install hdapsd # lsmod | grep hdaps hdaps 14062 0 input_polldev 14007 1 hdaps # apt-get install tp-smapi-source # rmmod hdaps # modprobe -a hdaps tp_smapi # lsmod | grep hdaps hdaps 19207 0 thinkpad_ec 14450 2 tp_smapi,hdaps ※正常にKernelモジュールがロードされたことを確認 # dmesg [ 1257.149709] hdaps: inverting axis (3) readings. [ 1257.149712] hdaps: LENOVO ThinkPad X61 detected. [ 1257.151298] input: hdaps as /devices/platform/hdaps/input/input7 [ 1257.151380] hdaps: driver successfully loaded. [ 1382.830373] hdaps: driver unloaded. [ 1417.814238] thinkpad_ec: thinkpad_ec 0.40 loaded. [ 1417.816537] hdaps: LENOVO ThinkPad X61 detected, setting orientation 6 [ 1417.817672] hdaps: initial mode latch is 0x05 [ 1417.817816] hdaps: setting ec_rate=250, filter_order=2 [ 1417.818038] hdaps: device successfully initialized. [ 1417.820640] input: ThinkPad HDAPS joystick emulation as /devices/virtual/input/input8 [ 1417.822413] input: ThinkPad HDAPS accelerometer data as /devices/virtual/input/input9 [ 1417.824002] hdaps: driver successfully loaded. [ 1417.825902] tp_smapi 0.40 loading... [ 1417.827913] tp_smapi successfully loaded (smapi_port=0xb2). # vi /etc/modules ※下記3行を追記 # ThinkPad ActiveProtection tp_smapi hdaps # /etc/init.d/hdapsd start
以上。