こんばんは。
Linuxで使えるマウスチャタリング対策OSS
推奨1:libinput(標準のデバウンス機能)
・名称:libinput
・公開場所:freedesktop.org(GitLab: https://gitlab.freedesktop.org/libinput/libinput)
・ポイント:Wayland/Xorgで広く採用。ボタンのデバウンス(チャタリング対策)が標準で有効。
手順(quirksで強化)
・デバイス名とVID/PIDを確認
例:sudo libinput list-devices や lsusb
・ルールファイルを作成
/etc/libinput/local-overrides.quirks を新規作成
・エントリを追加
例:
[Mouse Button Debounce]
MatchUdevType=mouse
MatchVendor=0x1234
MatchProduct=0x5678
AttrButtonDebounce=1
/dev/input/eventX)
・再起動またはセッション再ログインで反映
推奨2:interception-tools(ユーザー空間フィルタ)
・名称:interception-tools + マウスボタン用プラグイン(例:自作/
コミュニティ製の“debounce”フィルタ)
・公開場所:GitHub(https://github.com/oblitum/interception-tools)
・ポイント:evdevイベントを挟み込み、一定時間内の重複クリックを
無効化可能。
手順(概要)
・interception-toolsをインストール
・対象マウスのeventデバイスを特定(
・debounceプラグイン(スクリプト/バイナリ)を設定し、閾値(ms)を
調整
・udevルールまたはsystemdで常時起動
補助:libratbag+piper(ゲーミング向け)
・名称:libratbag / piper
・公開場所:GitHub(https://github.com/libratbag/libratbag, https://github.com/libratbag/piper)
・ポイント:一部マウスでファーム設定やボタン動作の調整が可能
(機種依存)。
まず試す順序
・libinputの標準デバウンスを確認・quirksで強化
・改善が不十分なら、interception-toolsでユーザー空間デバウンス
・対応機種ならpiperでデバイス側設定も検討