Limit scroll sensitivity for Logitech G502 - CS2

Logitech G502 Scroll Sensitivity

After moving from Windows to Zorin OS I experienced issues in CS2 when scrolling through items with my Logitech G502 mouse. The mouse has physical scroll "locks" which enables me to carefully scroll one step at a time, but this was not respected when running the game on Zorin OS 18. I didn't find a solution in the forums and figured someone else might come across the same issue when migrating so I collected the solution in this document.

Solution

Prerequisites

  • Run Xorg rather than Wayland

Steps

1. Identify Your Mouse Device ID

First, list all input devices to find your Logitech G502:

xinput list

Look for your Logitech G502 in the output. It will appear something like:

⎜   ↳ Logitech G502 HERO Gaming Mouse                id=12   [slave  pointer  (2)]

Note the id number (in this example, 12).

2. Check Available Properties

View all properties for your device:

xinput list-props <id>

Replace <id> with your device ID (e.g., xinput list-props 12).

Look for the High Resolution Wheel Scroll property:

libinput High Resolution Wheel Scroll Enabled (123):   1

3. Disable High Resolution Wheel Scroll

Disable the feature using:

xinput set-prop <id> "libinput High Resolution Wheel Scroll Enabled" 0

For example, with device ID 12:

xinput set-prop 12 "libinput High Resolution Wheel Scroll Enabled" 0

4. Make It Persistent (Optional)

To apply this setting automatically on login, add the command to your .xprofile:

echo 'xinput set-prop "$(xinput list | grep -i "Logitech G502.*pointer" | grep -oP '\''id=\K[0-9]+'\'')" "libinput High Resolution Wheel Scroll Enabled" 0' >> ~/.xprofile

This command automatically detects your G502's device ID, so you don't need to hardcode it. The setting will be applied automatically when you log in to your X session.

1 Like