Xubuntu でタッチパッドのスクロール反転の設定が変更できない
症状
Xubuntu で「マウスとタッチパッド」の設定で「スクロール方向を反転する」のチェックを外しても保存されず(再度設定を開くと元に戻っている)、タッチパッドのスクロール反転の設定が変更できない場合があります。
対処方法
タッチパッドのデバイス名を確認します。MacBook Air なのですが bcm5974 という名前です。
$ xinput --list
⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ bcm5974 id=11 [slave pointer (2)]
⎣ Virtual core keyboard id=3 [master keyboard (2)]
↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
↳ Power Button id=6 [slave keyboard (3)]
↳ Video Bus id=7 [slave keyboard (3)]
↳ Power Button id=8 [slave keyboard (3)]
↳ Sleep Button id=9 [slave keyboard (3)]
↳ Apple Inc. Apple Internal Keyboard / Trackpad id=10 [slave keyboard (3)]
次に bcm5974 の設定を確認します。「libinput Natural Scrolling Enabled」がスクロールの方向を定義する設定であり、値が 1 の場合は反転スクロールの設定となります。
$ xinput --list-props bcm5974
Device 'bcm5974':
Device Enabled (176): 1
Coordinate Transformation Matrix (178): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
libinput Tapping Enabled (325): 1
libinput Tapping Enabled Default (326): 0
libinput Tapping Drag Enabled (327): 1
libinput Tapping Drag Enabled Default (328): 1
libinput Tapping Drag Lock Enabled (329): 0
libinput Tapping Drag Lock Enabled Default (330): 0
libinput Tapping Button Mapping Enabled (331): 1, 0
libinput Tapping Button Mapping Default (332): 1, 0
libinput Natural Scrolling Enabled (333): 1
libinput Natural Scrolling Enabled Default (334): 1
libinput Disable While Typing Enabled (335): 1
libinput Disable While Typing Enabled Default (336): 1
libinput Scroll Methods Available (337): 1, 1, 0
libinput Scroll Method Enabled (338): 1, 0, 0
libinput Scroll Method Enabled Default (339): 1, 0, 0
libinput Click Methods Available (340): 1, 1
libinput Click Method Enabled (341): 0, 1
libinput Click Method Enabled Default (342): 0, 1
libinput Middle Emulation Enabled (343): 0
libinput Middle Emulation Enabled Default (344): 0
libinput Accel Speed (345): 0.000000
libinput Accel Speed Default (346): 0.000000
libinput Accel Profiles Available (347): 1, 1, 1
libinput Accel Profile Enabled (348): 1, 0, 0
libinput Accel Profile Enabled Default (349): 1, 0, 0
libinput Accel Custom Fallback Points (350):
libinput Accel Custom Fallback Step (351): 0.000000
libinput Accel Custom Motion Points (352):
libinput Accel Custom Motion Step (353): 0.000000
libinput Accel Custom Scroll Points (354):
libinput Accel Custom Scroll Step (355): 0.000000
libinput Left Handed Enabled (356): 0
libinput Left Handed Enabled Default (357): 0
libinput Send Events Modes Available (310): 1, 1
libinput Send Events Mode Enabled (311): 0, 0
libinput Send Events Mode Enabled Default (312): 0, 0
Device Node (313): "/dev/input/event7"
Device Product ID (314): 1452, 587
libinput Drag Lock Buttons (358):
libinput Horizontal Scroll Enabled (359): 1
libinput Scrolling Pixel Distance (360): 15
libinput Scrolling Pixel Distance Default (361): 15
libinput High Resolution Wheel Scroll Enabled (362): 1
下記コマンドで「libinput Natural Scrolling Enabled」の値を 0 に変更すれば反転は解除されます。
$ xinput --set-prop bcm5974 "libinput Natural Scrolling Enabled" 0
参考 Reverse UI-scrolling in Unity Ubuntu 16.04 with libinput
公開日:2025年05月16日
最終更新日:2025年05月16日





