FreeBSDでのコンソールのキーボードあれこれ

諸事情で退役寸前のThinkpad T41にFreeBSDを入れて遊んでるんですが、このT41はキーボードが壊れていて、Shiftが効かない。
そこで、いろいろ試行錯誤した結果の記録。
FreeBSD QandA 365を参考にいじった結果以下のような感じ。

--- jp.106x.kbd 2011-02-18 10:51:45.000000000 +0900
+++ jp.106x2.kbd        2011-11-23 12:40:59.000000000 +0900
@@ -34,7 +34,7 @@
026   '@'    '`'    nul    nul    '@'    '`'    nul    nul     O
027   '['    '{'    esc    esc    '['    '{'    esc    esc     O
028   cr     cr     nl     nl     cr     cr     nl     nl      O
-  029   clock  clock  clock  clock  clock  clock  clock  clock   O
+  029   lctrl  lctrl  lctrl  lctrl  lctrl  lctrl  lctrl  lctrl   O
030   'a'    'A'    soh    soh    'a'    'A'    soh    soh     C
031   's'    'S'    dc3    dc3    's'    'S'    dc3    dc3     C
032   'd'    'D'    eot    eot    'd'    'D'    eot    eot     C
@@ -115,6 +115,6 @@
107   fkey64 fkey64 fkey64 fkey64 fkey64 fkey64 fkey64 fkey64  O
108   nop    nop    nop    nop    nop    nop    nop    nop     O
115   '\'    '_'    fs     us     '\'    '_'    fs     us      O
-  121   ' '    ' '    nul    ' '    ' '    ' '    susp   ' '     O
-  123   ' '    ' '    nul    ' '    ' '    ' '    susp   ' '     O
+  121   lshift lshift lshift lshift lshift lshift lshift lshift  O
+  123   lshift lshift lshift lshift lshift lshift lshift lshift  O
125   '\'    '|'    fs     fs     '\'    '|'    fs     fs      O

これで、CapsLockを左Ctrlに。無変換キーと変換キーを左Shiftに割り当ててある。
いやはや、こういう事が簡単に出来るからUNIX系なOSって楽ですなぁ。

スポンサーリンク

コメントをお待ちしております

HTMLタグはご利用いただけません。