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 How-to

  1. Keyboard Software Guide
  2. Swap Control Alt Keys
  3. Set F2 F3 F4 to Cut Copy Paste
  4. CapsLock → Escape
  5. CapsLock → Home
  6. Shift Lock
  7. Key to Switch App
  8. Key Repeat Rate
  9. System Keyboard Layout
  10. Switch Keyboard Layout
  11. Change Volume
  12. xmodmap
  13. xbindkeys
  14. xvkbd
  15. Find Keyboard Key Scancode
  16. X11 Keyboard Key Names
  17. 2 Layouts for 2 Keyboards
  18. Chinese Input Setup


  1. Mouse Hover to Auto-Raise Window
  2. Mouse Hover-Click
  3. Set Mouse Single-Click to Open File
  4. How to Set Mouse Speed
  5. How to Swap Mouse Buttons
  6. Set Trackball/Mouse Do Scroll
  7. Setup Accelerated Scroll and AutoScroll
  8. X11 Mouse Button Numbering

If you have a question, put $5 at patreon and message me.