xinputは1つではなく2つのトラックポイントを表示します(そのうちの1つはlibinputです)。

xinputは1つではなく2つのトラックポイントを表示します(そのうちの1つはlibinputです)。

私は何年もの間Trackpointを設定するためにスクリプトを使用してきました。 Gentooを使用している現在Lenovo x230ノートブックで動作しますが、ソフトウェアアップデートによっては動作が停止している可能性があります。

#!/bin/bash
trackpoint="TPPS/2 IBM TrackPoint"

xinput set-prop "$trackpoint" "Device Accel Profile" 3
xinput set-prop "$trackpoint" "Device Accel Velocity Scaling" 30
xinput set-prop "$trackpoint" "Evdev Wheel Emulation" 1
xinput set-prop "$trackpoint" "Evdev Wheel Emulation Button" 2
xinput set-prop "$trackpoint" "Evdev Wheel Emulation Timeout" 200
xinput set-prop "$trackpoint" "Evdev Wheel Emulation Axes" 6 7 4 5

エラーメッセージは非常に明確です。

Warning: There are multiple devices matching 'TPPS/2 IBM TrackPoint'.
To ensure the correct one is selected, please use the device ID, or prefix the
device name with 'pointer:' or 'keyboard:' as appropriate.

unable to find device TPPS/2 IBM TrackPoint

エラーメッセージが正しいことを確認するのは簡単です。

$ xinput
⎡ Virtual core pointer                      id=2    [master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
⎜   ↳ TPPS/2 IBM TrackPoint                     id=11   [slave  pointer  (2)]
⎜   ↳ TPPS/2 IBM TrackPoint                     id=12   [slave  pointer  (2)]
⎜   ↳ SynPS/2 Synaptics TouchPad                id=10   [slave  pointer  (2)]

それで問題は、(1)なぜ今記録されたトラックポイントが2つなのか、(2)これをどのように修正するのかということです。過去には、xinputは単一のトラックポイントしか見ることができず、すべてがうまくいきました。

代わりに、デバイス名を使用する解決策がありますが、12IDが安定しているという保証はありません。特にバグのために存在する場合はさらにそうです。

オンラインで役に立つ資料が見つかりませんでした。

私は2つの異なるXorg入力ドライバがあることに気づきました。一つはevdev、もう一つは呼び出されますライブラリ入力。私はそれを使用していますevdevGentooは他の入力ドライバをコンパイルしていません。カーネルデバイスのリストを正しく確認する方法と方法がわかりません。evdevそしてライブラリ入力それらを治す。

Lenovo x260でもこれが起こります。しかし、残念ながら、2つのトラックポイントレコードをコピーしていないようです。 :(

> xinput --list-props 11
Device 'SynPS/2 Synaptics TouchPad':
    Device Enabled (169):   1
    Coordinate Transformation Matrix (171): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
    Device Accel Profile (297): 1
    Device Accel Constant Deceleration (298):   2.500000
    Device Accel Adaptive Deceleration (299):   1.000000
    Device Accel Velocity Scaling (300):    12.500000
    Synaptics Edges (301):  1545, 5399, 1333, 4521
    Synaptics Finger (302): 25, 30, 0
    Synaptics Tap Time (303):   180
    Synaptics Tap Move (304):   255
    Synaptics Tap Durations (305):  180, 180, 100
    Synaptics ClickPad (306):   1
    Synaptics Middle Button Timeout (307):  0
    Synaptics Two-Finger Pressure (308):    282
    Synaptics Two-Finger Width (309):   7
    Synaptics Scrolling Distance (310): 116, 116
    Synaptics Edge Scrolling (311): 0, 0, 0
    Synaptics Two-Finger Scrolling (312):   1, 0
    Synaptics Move Speed (313): 1.000000, 1.750000, 0.034400, 0.000000
    Synaptics Off (314):    0
    Synaptics Locked Drags (315):   0
    Synaptics Locked Drags Timeout (316):   5000
    Synaptics Tap Action (317): 0, 0, 0, 0, 1, 3, 2
    Synaptics Click Action (318):   1, 3, 2
    Synaptics Circular Scrolling (319): 0
    Synaptics Circular Scrolling Distance (320):    0.100000
    Synaptics Circular Scrolling Trigger (321): 0
    Synaptics Circular Pad (322):   0
    Synaptics Palm Detection (323): 0
    Synaptics Palm Dimensions (324):    10, 200
    Synaptics Coasting Speed (325): 20.000000, 50.000000
    Synaptics Pressure Motion (326):    30, 160
    Synaptics Pressure Motion Factor (327): 1.000000, 1.000000
    Synaptics Grab Event Device (328):  0
    Synaptics Gestures (329):   1
    Synaptics Capabilities (330):   1, 0, 0, 1, 1, 1, 1
    Synaptics Pad Resolution (331): 73, 53
    Synaptics Area (332):   0, 0, 0, 0
    Synaptics Soft Button Areas (333):  3472, 0, 4112, 0, 0, 0, 0, 0
    Synaptics Noise Cancellation (334): 29, 29
    Device Product ID (293):    2, 7
    Device Node (292):  "/dev/input/event1"

> xinput --list-props 12
Device 'TPPS/2 IBM TrackPoint':
    Device Enabled (169):   1
    Coordinate Transformation Matrix (171): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
    libinput Natural Scrolling Enabled (339):   0
    libinput Natural Scrolling Enabled Default (340):   0
    libinput Scroll Methods Available (341):    0, 0, 1
    libinput Scroll Method Enabled (342):   0, 0, 1
    libinput Scroll Method Enabled Default (343):   0, 0, 1
    libinput Button Scrolling Button (344): 2
    libinput Button Scrolling Button Default (345): 2
    libinput Middle Emulation Enabled (346):    0
    libinput Middle Emulation Enabled Default (347):    0
    libinput Accel Speed (348): 0.000000
    libinput Accel Speed Default (349): 0.000000
    libinput Accel Profiles Available (350):    1, 1
    libinput Accel Profile Enabled (351):   1, 0
    libinput Accel Profile Enabled Default (352):   1, 0
    libinput Left Handed Enabled (353): 0
    libinput Left Handed Enabled Default (354): 0
    libinput Send Events Modes Available (289): 1, 0
    libinput Send Events Mode Enabled (290):    0, 0
    libinput Send Events Mode Enabled Default (291):    0, 0
    Device Node (292):  "/dev/input/event3"
    Device Product ID (293):    2, 10
    libinput Drag Lock Buttons (355):   <no items>
    libinput Horizontal Scroll Enabled (356):   1

上記の出力は非常に異なるようです。また、出力が次の場合、TrackPointは機能しません。つまり、マウスは動かない。

関連リンク:

ベストアンサー1

おすすめ記事