Thinkpad T440トラックパッド/トラックパッドを使用してDebianを設定するには?

Thinkpad T440トラックパッド/トラックパッドを使用してDebianを設定するには?

Linuxオペレーティングシステムを使用してLenovo Thinkpad T440トラックパッド(「トラックパッド」)を構成する方法を見つけるのに問題があります。私はWindowsがラップトップのトラックパッドを構成する方法が好きで、これをDebianでエミュレートしたいと思いました。

以下はいくつかの仕様です。

オペレーティングシステムはDebian 7.7.0で、Gnomeを実行します。

私はこのガイドの一部に従いました。http://forums.debian.net/viewtopic.php?f=16&t=111298&p=528725&hilit=t440#p528725

そして、このコードを50-synapticconfにコピーしてください:

# Example xorg.conf.d snippet that assigns the touchpad driver
# to all touchpads. See xorg.conf.d(5) for more information on
# InputClass.
# DO NOT EDIT THIS FILE, your distribution will likely overwrite
# it when updating. Copy (and rename) this file into
# /etc/X11/xorg.conf.d first.
# Additional options may be added in the form of
#   Option "OptionName" "value"
#
Section "InputClass"
        Identifier "touchpad catchall"
        Driver "synaptics"
        MatchIsTouchpad "on"
    Option "TapButton1" "1"
        Option "TapButton 2" "3"
        # uncommenting this should make three finger click the middle button
        # Option "TapButton 3" "2"
# This option is recommend on all Linux systems using evdev, but cannot be
# enabled by default. See the following link for details:
# http://who-t.blogspot.com/2010/11/how-to-ignore-configuration-errors.html
        MatchDevicePath "/dev/input/event*"
EndSection

Section "InputClass"
        Identifier "touchpad ignore duplicates"
        MatchIsTouchpad "on"
        MatchOS "Linux"
        MatchDevicePath "/dev/input/mouse*"
        Option "Ignore" "on"
EndSection

# This option enables the bottom right corner to be a right button on
# non-synaptics clickpads.
# This option is only interpreted by clickpads.
Section "InputClass"
        Identifier "Default clickpad buttons"
        MatchDriver "synaptics"
        Option "SoftButtonAreas" "60% 0 0 5% 40% 60% 0 5%"
#       To disable the bottom edge area so the buttons only work as buttons,
#       not for movement, set the AreaBottomEdge
        Option "AreaTopEdge" "4%"
EndSection

# This option disables software buttons on Apple touchpads.
# This option is only interpreted by clickpads.
Section "InputClass"
        Identifier "Disable clickpad buttons on Apple touchpads"
        MatchProduct "Apple|bcm5974"
        MatchDriver "synaptics"
        Option "SoftButtonAreas" "0 0 0 0 0 0 0 0"
EndSection

ここに写真があります: ここに画像の説明を入力してください。

上記のコードで現在行われている操作:左上隅は機能しますが、右ボタンは機能しません。タッチパッドの左下隅が右と同じように機能します。また、赤い線の間の上部中央では、中央のクリッカーは機能しません。このボタン3つでポインティングスティックを使いたくてこれらのボタンが悩みです。

私がする計画:

|LLLLLL MMMM  RRRRR|
|                  |
|                  |
|                  |
|                  |
|                  |
|LLLLLL      RRRRRR|

ベストアンサー1

私のThinkpad X240(同じ世代、似ているが迷惑なトラックパッドではない)から次のシェルスクリプトを呼び出します~/.Xsession

#!/bin/sh

# Configure the X240 ClickPad

# 1 finger = left click, 2 finger = right click, 3 finger = middle click
synclient TapButton2=3
synclient TapButton3=2
synclient ClickFinger2=3
synclient ClickFinger3=2

# enable horizontal two-finger scrolling (vertical is enabled by default)
synclient HorizTwoFingerScroll=1
synclient VertTwoFingerScroll=1

# Where does the touch pad end to leave the remainder as real buttons
synclient AreaTopEdge=2000

# Areas must not overlap or it throws BadValue errors
synclient MiddleButtonAreaLeft=3000
synclient MiddleButtonAreaRight=4049
synclient MiddleButtonAreaTop=0
synclient MiddleButtonAreaBottom=2000

synclient RightButtonAreaLeft=4050
synclient RightButtonAreaRight=0
synclient RightButtonAreaTop=0
synclient RightButtonAreaBottom=2000

synclientDebianソフトウェアパッケージの一部ですxserver-xorg-input-synaptics

このスクリプトは上端にボタンを提供する必要があります。この方法で下端ボタンを追加することが可能かどうかはわかりませんが、SecondarySoftButtonAreasマニュアルページに記載されている内容をsynaptics(4)見るとこれがわかります。 (残念ながら、synaptics(4)このオプションはDebian 8 Jessieでのみ見つかり、Debian 7 Wheezyでは見つかりません。

トラックパッドが異なる座標を使用する場合、または異なるボタンの高さが必要な場合は、いくつかの値を調整する必要があります。

もともとT540モデルを使用している友人から同様のスクリプトを受け取ったので、このトラックパッドの設定方法はこの世代の他のThinkpadモデルでも機能すると確信しています。


注:Lenovoがついにそれを見つけたようです。 40世代ボタンのないトラックパッドは悪い考えでした。今春にリリースされる次世代のThinkpadには、実際の親指スティックマウスボタンがあります。 X240を使用してから1年が経ちませんでしたが、その世代の新しいThinkpad購入を確実に検討しています。 (IMHO これは問題に対する実際の解決策です; ;-)

おすすめ記事