Skip to content

Instantly share code, notes, and snippets.

@jfeilbach
Last active December 2, 2019 18:58
Show Gist options
  • Save jfeilbach/6b56a5a6f98d2971aca12690bec8a64d to your computer and use it in GitHub Desktop.
Save jfeilbach/6b56a5a6f98d2971aca12690bec8a64d to your computer and use it in GitHub Desktop.
Enable Natural Scolling or Reversing mouse scroll inside an Ubuntu VM on a Windows host with both OS natural scroll enabled

Natural Scrolling

I avoid Windows at all cost however someone in need asked for help on this topic. Changing to Natural Scroll in Windows for a mouse is a royal pain in the ass. It is trivial to fix for a track pad but not for a the scroll wheel of a mouse. You must do things the Mircosoft way. If you have a Linux VM on top of Windows fixing this can ve confusing.

Windows

  • On a Windows 10 host to reverse the mouse scroll direction from stupid Windows default to "natural" scroll direction. Natural scroll simply means you are scrolling the content instead of the view. Find your mouse hardware ID. In this case it is for a Razer mamba Wireless mouse.
  • Find hardware ID in Windows;
    • Go to the Mouse control panel advanced page, then
    • Hardware
    • Details
    • Hardware IDs
    • copy your device ID e.g. HID\VID_1532&PID_0073&MI_00
  • Edit the registry (C:\Windows\regedit.exe)
    • Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\HID\VID_1532&PID_0073&MI_00\d&19144405&0&0000\Device Parameters
    • Change FlipFlopHScroll key REG_DWORD value from 0 to 1
  • You may have multiple Device IDs to edit, especially if you have muktiple mice instlled or third party drivers.
  • Unplug your mouse or reboot your Windows OS
  • Plug your mouse in

Ubunbtu VM

  • Inside the Ubuntu desktop (Gnome)
    • Go to Settings then,
    • Devices then,
    • Mouse then,
    • Uncheck "Natual Scrolling" (You reversed it in the host OS so it is now backwards in the Ubuntu VM)
  • All done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment