#1632·OpenLogi

[Bug]: Linux: wheel scroll does nothing with smooth scrolling off (hook drops REL_WHEEL on hi-res devices)

Author: ThePurpleJediCreated Sep 30, 2026Updated Sep 30, 2026
Labelstype: bugneeds: triage

Pre-flight checklist

  • I searched existing issues and this is not a duplicate.
  • I am on the latest release or a recent master build.
  • I quit Logi Options+ before running OpenLogi (the two apps fight over HID++ access and only one can own a receiver at a time).

Which part of OpenLogi?

Both

OpenLogi version

0.8.9

Operating system

Linux

OS version & architecture

Ubuntu 22.04, GNOME 42.9 (mutter 42) on Wayland, libinput 1.20.0, kernel 6.8

Device model

MX Master 3S

How is the device connected?

Bluetooth (direct, no receiver)

Affected area(s)

  • Device discovery / detection
  • Button remapping
  • DPI control
  • SmartShift
  • Per-application profiles
  • Battery status
  • Settings / configuration (TOML)
  • Auto-update
  • Menu bar / tray
  • Other

What happened?

With capture_mouse_events = true, smooth_scroll = false, and on the default vertical scroll sensitivity (14), the main wheel does not scroll at all in any scroll_resolution mode. With smooth scrolling on it works.

Workaround: Change sensitivity to 13 or 15, and it starts working again!

Probable cause: (disclosure: used a coding agent to troubleshoot) ScrollWorker::try_hook_scroll intercepts and re-injects the scroll (through the injector, which emits REL_WHEEL correctly) when smooth scrolling is on, or when vertical_scroll_sensitivity is not the default 14 (1×). With smooth scrolling off and default sensitivity, it returns false and the grabbed event passes through the hook with its REL_WHEEL stripped. Evidence for this is pasted in the "logs" section.

In crates/openlogi-hook/src/linux.rs, when the grabbed device supports REL_WHEEL_HI_RES, the hook always suppresses the low-res REL_WHEEL/REL_HWHEEL companions ("passing them through would double the scroll distance"). In pass-through mode the hi-res events are forwarded unchanged, so the virtual mouse emits REL_WHEEL_HI_RES with no REL_WHEEL ever. Unfortunately, mutter 42 reads wheel scroll with libinput_event_pointer_get_axis_value_discrete(), which libinput derives from the low-res REL_WHEEL count. With no REL_WHEEL, every event has a discrete value of 0 and nothing scrolls. Newer mutter reads the v120 values instead, which probably hides this on newer distros.

Forwarding the companion doesn't double scroll: libinput ignores REL_WHEEL when the device has hi-res and a hi-res event is present. The suppression is only needed when the hi-res event itself was suppressed (the smooth-scroll path, which re-injects through the action injector, correctly emitting REL_WHEEL alongside REL_WHEEL_HI_RES).

Steps to reproduce

  1. Connect mouse normally
  2. Turn off smooth scrolling in the device settings
  3. Ensure vertical scroll sensitivity is at 14 (default)
  4. Try scrolling anywhere

Diagnostics report

markdown
### OpenLogi Diagnostics

**App**
- OpenLogi (GUI): v0.8.9 (release)
- Agent: v0.8.9 (connected)
- IPC protocol: GUI 31 / agent 31
- Inventory: ready
- OS: Linux (x86_64)
- Locale: en-GB (UI: follow system)
- Accessibility: granted · Input hook: installed
- Launch at login: yes · Menu bar: yes · Update check: on
- Running from: source build (dev)
- Config: schema 7 · 2 configured device(s) · thumbwheel 14

**Assets**
- Source: user cache · Index: loaded (210 models) · User cache: present
- Cache path: ~/.local/share/openlogi/assets · Bundle assets: absent

**Devices (2)**
- Wireless Keyboard K230 — keyboard (codename: Wireless Keyboard K230)
  - Connection: Logi Unifying receiver · Online: yes · Battery: 90% (discharging, full)
  - Capabilities: buttons=yes, pointer=no, lighting=no
  - Model: 00000 (wpid: 400d, model-ids: 0000/0000/0000, ext-model: 00)
  - Transports: none
  - Render: ⚠️ none (silhouette) · Slot 2
- MX Master 3S — mouse (codename: MX Master 3S)
  - Connection: Bluetooth (direct) · Online: yes · Battery: 65% (discharging, full)
  - Capabilities: buttons=yes, pointer=yes, lighting=no
  - DPI: 1800 dpi (range 200–8000, 157 steps)
  - Model: ab034 (model-ids: b034/0000/0000, ext-model: 0a)
  - Transports: BTLE
  - Render: mx_master_3s · direct

**Receivers (1)**
- Unifying Receiver (VID 046d / PID c52b)

openlogi list output

(inventory read from the running agent)
Logitech MX Master 3S (—, vid=046d pid=b034)
  └─ slot 255 ● MX Master 3S (mouse, wpid=?, battery=65% full (discharging))
          model_ids=[b034,0000,0000] ext=0a serial=2601ZEL4LRL8 unit_id=95645bdb transports=btle

Unifying Receiver (2CDF9D57, vid=046d pid=c52b)
  └─ slot 2 ● Wireless Keyboard K230 (keyboard, wpid=400d, battery=90% full (discharging))
          model_ids=[0000,0000,0000] ext=00 serial=— unit_id=00000000 transports=—

Logs

bash
(evdev capture of the virtual devices)
Smooth scrolling off, OpenLogi virtual mouse: (notice the lack of WHEEL)

virt  WHEEL_HI_RES   -16
virt  SYN_REPORT     0
virt  WHEEL_HI_RES   -24
virt  SYN_REPORT     0
virt  WHEEL_HI_RES   -32
virt  SYN_REPORT     0
virt  WHEEL_HI_RES   -24
virt  SYN_REPORT     0

Smooth scrolling on, OpenLogi action injector: REL_WHEEL emitted each time hi-res crosses 120

inj   WHEEL_HI_RES   7
inj   SYN_REPORT     0
inj   WHEEL_HI_RES   9
inj   WHEEL          1
inj   SYN_REPORT     0
inj   WHEEL_HI_RES   10
inj   SYN_REPORT     0

macOS permissions (if applicable)

  • OpenLogi has Accessibility permission (needed to remap buttons via the event tap).
  • OpenLogi has Input Monitoring permission (needed for Bluetooth-direct devices and capture).