Thinkpad x200にdebianを入れる。トラックポイントと無線LANの動作。

Debianは結構前に入れていたのだけど、wireless lanがつながらなくて困っていた。ようやく成功。
Debianを入れた経緯は、vistaが壊れたから。rescue and recoveryをしたら全て吹っ飛んだ。rescue and recoveryをもう一度行おうとしたら、そのパーティションも壊れたらしい。機動直後のF11で反応がない。
XPのリカバリというかダウングレード的なディスクがあったけど、fontとGUIの汚いXPには戻れません。

環境

thinkpad x200
Debian lenny (kernel 2.6.26)

Debian install

初めてDebianを見たとき、「ディバイン」と読んでおお格好いいなー、と思った。一体どこのエクスカリバーだよ。
ということでlenny netinst i386をインストール。特に問題無し。
stableを入れようとしたらネットワークカードすら検知出来なかった。これはいかん。ということでlennyに。

トラックポイントのスクロールを有効にする

/etc/X11/xorg.confのInputDevice/Configured Mouseが以下になるように変更する。

 Section "InputDevice"
       Identifier  "Configured Mouse"
       Driver      "mouse"
       Option      "CorePointer"
       Option      "Device"              "/dev/input/mice"
       Option      "Protocol"            "ExplorerPS/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


それまでは、ずっと以下を試していたために出来なかった。
/etc/hal/fdi/policy/mouse-wheel.fdiを作って以下を書き込む。


 true
 2
 4 5
 6 7
 true
 200

出来なかったのは当たり前で、でかでかとそのリンク先にもかいてあるのだけど。
xorg7.4以上でないとできない。
$ dpkg -l|grep xorg
で確認すると、7.3だった。そらできない。

無線LANを有効にする

以上を参考にカーネルをアップデート。thinkpad x200無線LANカードはIntel Wifi Link 5100なので。
書いてあるが、2.6.27以降にはiwlagnは組み込まれているらしいので必要はない。俺は2.6.26だったのでアップデートした。
一応引用。

The iwlagn driver is included in the mainline Linux kernel since 2.6.27. Linux 2.6.28 has better device support.

The following procedure is for testing and unstable systems only.

1. Acquire the microcode tarball:(tarballを得る)

$ wget http://intellinuxwireless.org/iwlwifi/downloads/iwlwifi-5000-ucode-5.4.A.11.tar.gz


2. Extract the microcode to /lib/firmware:(/lib/firmwareに展開する)

$ su
# tar xvf iwlwifi-5000-ucode-5.4.A.11.tar.gz --strip 1 -C /lib/firmware iwlwifi-5000-ucode-5.4.A.11/iwlwifi-5000-1.ucode


3. Add the Debian Kernel Snapshots repository to /etc/apt/sources.list:(debian kernel snapshotのリポジトリを/etc/apt/sources.listにvi等使って加える)

# Debian Kernel Snapshots (experimental!)
deb http://kernel-archive.buildserver.net/debian-kernel trunk main


4. Add the Debian Kernel Snapshots repository key:(リポジトリの公開鍵を取得する)

# wget -q -O - http://kernel-archive.buildserver.net/key | apt-key add -


5. Install a 2.6.28 (or later) kernel image appropriate for your system, along with the wireless-tools package. For example: (2.6.28のカーネルイメージと、wireless-toolsをインストールする)

# aptitude update
# aptitude install linux-image-2.6.28-1-686 wireless-tools


6. Restart your system and boot with the newly installed kernel.(新しいカーネルで再起動する)

7. Verify your device has an available interface:(利用可能かどうか確認する)

$ su
# iwconfig


8. Raise the interface to activate the radio, for example:(wlan0を起動する)

# ifconfig wlan0 up


9. Configure your wireless interface as appropriate. (適切に無線LANの設定をする)

この情報を探し当てるのに結構かかった。正確な情報を探しにいくのはなかなか難しいね。
ぐぐって先にヒットするブログより、当然公式ページの方が正確なわけだけど、こういうページはgoogleでもyahooでもなかなか拾えないよな。そうするとどこに正確な情報があるか先に知っておく必要がある。ブログに載せる人がソースを書いてくれるといいのだけど。


ここの情報によると、kerel2.6.27を採用したUbuntu8.10 日本語 remixではデフォルトで動くらしい。
だからこの情報はすぐに必要なくなるだろう。