LoginSignup
2
2

More than 5 years have passed since last update.

ThinkpadX41 with CrunchBang環境でのトラックポイント設定

Last updated at Posted at 2014-02-21

ThinkPadX41にCrunchBangを入れたときに設定したトラックポイントまわりの設定メモ。

実施環境

CrunchBangのバージョンは以下の通り。

$ uname -a
Linux crunchbang 3.2.0-4-686-pae #1 SMP Debian 3.2.41-2 i686 GNU/Linux

設定

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

次のファイルを置いて再ログイン。

/usr/share/X11/xorg.conf.d/20-thinkpad.conf
 Section "InputClass"
     Identifier "Trackpoint Wheel Emulation"
     MatchProduct       "TPPS/2 IBM TrackPoint|DualPoint Stick|Synaptics Inc. Composite TouchPad / TrackPoint|ThinkPad USB Keyboard with TrackPoint|USB Trackpoint pointing device"
     MatchDevicePath    "/dev/input/event*"
     Option             "EmulateWheel"          "true"
     Option             "EmulateWheelButton"    "2"
     Option             "Emulate3Buttons"       "false"
     Option             "XAxisMapping"          "6 7"
     Option             "YAxisMapping"          "4 5"
 EndSection

トラックポイントの速度と感度を変える

速度はspeed、感度はsensitivityファイルの値で決まる。

$ sudo sh -c "echo -n 120 > /sys/devices/platform/i8042/serio1/speed"
$ sudo sh -c "echo -n 120 > /sys/devices/platform/i8042/serio1/sensitivity"

この方法で変えた値はログアウトするまで有効なので、rc.loclに次の2行を追加して起動時に実行されるようにする。exit 0より前に追加する点だけ注意。

/etc/rc.local
echo -n 120 > /sys/devices/platform/i8042/serio1/speed
echo -n 255 > /sys/devices/platform/i8042/serio1/sensitivity

ちなみにsh -cを付けないと権限が足りない言われ失敗した。(なんでだろ?)

$ sudo echo -n 120 > /sys/devices/platform/i8042/serio1/speed
bash: /sys/devices/platform/i8042/serio1/speed: 許可がありません

[20140625追記]
上記挙動の理由を教えていただいた。

sudoでrootになれているのがecho -n 120までで、リダイレクト以降は元の権限に戻ってしまっているため。

ということでした。スッキリ。

参考サイト

https://wiki.debian.org/InstallingDebianOn/Thinkpad/Trackpoint
http://thinkwiki.org/wiki/How_to_configure_the_TrackPoint#Sensitivity_.26_Speed

2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2