Plugging a Logitech, Razer, or standard office USB mouse into Ubuntu only to find that spinning the scroll wheel creeps down Chrome, PDF readers, and code editors by half a centimetre at a time – with zero “Lines per scroll” slider inside Ubuntu Settings – is one of the quickest irritations users run into when switching from Windows. Fortunately, fixing mouse scroll speed takes two minutes depending on whether you run Wayland or Xorg, or need a quick browser tweak.
Step 1: Check Whether Ubuntu Is Using Wayland or Xorg
Scroll-wheel tuning tools differ between Ubuntu’s two display systems, so run one five-second command first:
- Open Terminal by pressing Ctrl + Alt + T.
- Run:
echo $XDG_SESSION_TYPE - Note whether it prints
wayland(the default on modern Ubuntu 22.04 and 24.04 LTS) orx11.
Fix 1: Speed Up Chrome, Firefox, and VS Code Scrolling Independently (Works on Both Wayland & X11)
If smooth scrolling feels most painful inside your web browser or code editor, you can fix both straight inside settings without installing third-party daemons:
- Mozilla Firefox: Open a tab, visit
about:config, click Accept the Risk and Continue, search formousewheel.default.delta_multiplier_y, click the edit pencil, and raise it from100to200or250(doubles or 2.5x scroll speed immediately!). - Google Chrome / Chromium / Edge: Search extensions for an open-source smooth-scroll customiser such as Chromium Wheel Smooth Scroller or launch Chrome with smoother scroll steps, and check
chrome://flagsfor Smooth Scrolling if vertical scrolling feels stuttery. - Visual Studio Code: Open Settings (Ctrl + ,), search
mouseWheelScrollSensitivity, and bump it from1to2or2.5.
Fix 2: Adjust System-Wide Mouse Scroll Speed on Ubuntu Xorg With imwheel
If you run an X11 (x11) session (or switch to Ubuntu on Xorg from the login screen gear icon), imwheel adjusts physical wheel notches globally across every desktop application.
- Install
imwheelin Terminal:sudo apt update && sudo apt install -y imwheel - Create a clean configuration file setting a multiplier of 3 lines per notch specifically for scroll up/down (Buttons 4 & 5, leaving thumb Back/Forward buttons untouched):
cat <<'EOF' > ~/.imwheelrc ".*" None, Up, Button4, 3 None, Down, Button5, 3 Control_L, Up, Control_L|Button4 Control_L, Down, Control_L|Button5 Shift_L, Up, Shift_L|Button4 Shift_L, Down, Shift_L|Button5 EOF - Start
imwheelrestricted solely to vertical wheel buttons so side thumb buttons keep working normally:imwheel -b "4 5" - Test scrolling across Files and Chrome (change the
3to2or4and rerunkillall imwheel; imwheel -b "4 5"until it feels right), then addimwheel -b "4 5"inside Ubuntu’s Startup Applications app so it runs automatically at login.
Fix 3: Check Wayland Libinput Mouse Options & Natural Scrolling
On Wayland sessions (wayland), Ubuntu 24.04 LTS and GNOME handle pointer speed and Natural Scrolling directly under Settings > Mouse & Touchpad (see also our guide on adjusting mouse and touchpad speed in Ubuntu). Remember that wireless Logitech mice featuring high-resolution smooth scroll wheels (such as MX Master series) work cleanly with Solaar (sudo apt install solaar), which lets you toggle smart-shift wheel resistance and high-res scrolling per mouse directly on Linux.