Linux: Set Trackball/Mouse Do Scroll

By Xah Lee. Date: .

Here's how to make trackball do scroll.

Also works with mouse.

Make Trackball/Mouse as Scroll Wheel

# make mouse movement do scroll
xinput --set-prop "Logitech M570" "Evdev Wheel Emulation" 1
xinput --set-prop "Logitech M570" "Evdev Wheel Emulation Button" 0
xinput --set-prop "Logitech M570" "Evdev Wheel Emulation Axes" 6 7 4 5

Hold Right Button to Scroll

# hold right button to scroll
xinput --set-prop "Logitech USB Trackball" "Evdev Wheel Emulation" 1
xinput --set-prop "Logitech USB Trackball" "Evdev Wheel Emulation Button" 3
xinput --set-prop "Logitech USB Trackball" "Evdev Wheel Emulation Axes" 6 7 4 5

How to Use xinput

For how to use xinput and other detail, see Linux: How to Swap Mouse Buttons

Trackball as Dedicated Scrolling Device

Making trackball do scoll is great. You can get a cheap trackball, and have that trackball as dedicated scroll.

logitech g600 m570 marble trackball 201607

For Trackball Reviews, see Trackball Reviews

Linux Keybinding Howto


Linux Desktop keys