Linux で Logicool Trackman を使う

2022年2月23日

はじめに

Ubuntu 20.04 で Logicool Trackman Marble TM-150R を使いたい。

設定

ボタンの番号の確認。

$ xev | grep button

出てきたウインドウをクリックしてボタンの番号を調べる。左右の小さなボタンは 8、9 となっている。

/usr/share/X11/xorg.conf.d/10-libinput.conf に以下のように設定を追加。

/usr/share/X11/xorg.conf.d/10-libinput.conf

Section "InputClass"
        Identifier "Marble Mouse"
        MatchProduct "Logitech USB Trackball"
        MatchIsPointer "on"
        MatchDevicePath "/dev/input/event*"
        Driver "libinput"

        #Option "ButtonMapping" "1 2 3 4 5 6 7 8 9"
        #Option "ButtonMapping" "1 8 3 4 5 6 7 2 9"
        Option "ButtonMapping" "1 9 3 4 5 6 7 8 2"

        Option "ScrollMethod" "button"
        Option "ScrollButton" "8"
EndSection

ButtonMapping で 8 番を中央ボタンクリック (2 番) にしたかったが、ホイールエミュレート (トラックボールをホイールに見立てる) に使ったほうが便利そうだったので、EmulateWheelButton を 8 に設定。ButtonMapping で 9 番を 2 番と入れ替えている。

古い