libinputを使ってトラックポイントスクロールを無効にするには?

libinputを使ってトラックポイントスクロールを無効にするには?

修正する:これで、中央クリックシミュレーションはもう機能しなくなり、これまで以上に強くなりませんでした。ボタン1と3を押すと、中央のボタンを押すのと同じようにスクロールホイールとして機能します。

トラックポイント付きのLenovoキーボードがありますが、マウスの中央ボタンをクリックしてドラッグできる必要があります。ほとんどの記事では、スクロールホイールシミュレーションを有効にする方法について説明していますが、反対の問題に直面しました。スクロール機能はデフォルトでオンになっており、オフにすることはできません。この問題は中間シミュレーションで解決できますが、両手を使用する必要があるため厄介です。報告された属性は次のとおりです。

$ xinput list-props 'pointer:Lenovo ThinkPad Compact USB Keyboard with TrackPoint'
Device 'Lenovo ThinkPad Compact USB Keyboard with TrackPoint':
        Device Enabled (155):   1
        Coordinate Transformation Matrix (157): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
        libinput Natural Scrolling Enabled (290):       0
        libinput Natural Scrolling Enabled Default (291):       0
        libinput Scroll Methods Available (292):        0, 0, 1
        libinput Scroll Method Enabled (293):   0, 0, 0
        libinput Scroll Method Enabled Default (294):   0, 0, 1
        libinput Button Scrolling Button (295): 2
        libinput Button Scrolling Button Default (296): 2
        libinput Middle Emulation Enabled (297):        0
        libinput Middle Emulation Enabled Default (298):        0
        libinput Accel Speed (299):     0.000000
        libinput Accel Speed Default (300):     0.000000
        libinput Accel Profiles Available (301):        1, 1
        libinput Accel Profile Enabled (302):   1, 0
        libinput Accel Profile Enabled Default (303):   1, 0
        libinput Left Handed Enabled (304):     0
        libinput Left Handed Enabled Default (305):     0
        libinput Send Events Modes Available (275):     1, 0
        libinput Send Events Mode Enabled (276):        0, 0
        libinput Send Events Mode Enabled Default (277):        0, 0
        Device Node (278):      "/dev/input/event24"
        Device Product ID (279):        6127, 24647
        libinput Drag Lock Buttons (306):       <no items>
        libinput Horizontal Scroll Enabled (307):       0
        Evdev Wheel Emulation (391):    0

利用可能なスクロール方法と水平スクロールが無効になっていることがわかります。 Evdevプロパティも追加されました。それでも役立つ唯一の確実な方法は、スクロールボタン(プロパティ295)を変更することです。しかし、動作させることはできません。

$ xinput set-int-prop 'pointer:Lenovo ThinkPad Compact USB Keyboard with TrackPoint' 295 8 3
X Error of failed request:  BadMatch (invalid parameter attributes)
  Major opcode of failed request:  131 (XInputExtension)
  Minor opcode of failed request:  57 ()
  Serial number of failed request:  19
  Current serial number in output stream:  20

私はアーチLinuxを使用しています。理想的な世界では、シェルスクリプトを使用してスクロールホイールを自由に有効または無効にする動的なソリューションを見つけることができます。しかし、必然的にxorg.confまたはホイールを有効または無効にするためにXサーバーを再起動する必要がある他の方法に関連するソリューションにも興味があります。

ベストアンサー1

この試み:

xinput set-prop <device> 295 3

これはint小道具ではないようです。

おすすめ記事