[Bug]: SmartShift mode switched with the DPI button (ToggleSmartShift) reverts to the saved mode after the mouse reconnects (MX Master 4)

Open
#2,738 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
68/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
rust
Domain
backend, desktop

Research direction

Start by tracing the ToggleSmartShift binding and the reconnect path that reapplies volatile settings; the issue names reapply_volatile_settings as a related entry point. Check how runtime mode changes are handled compared with choosing Ratchet in the SmartShift panel, then add or update coverage for toggling and reconnecting. Done when the chosen mode survives reconnect and the config behavior matches the expected result.

Written by the indexing model from the issue text.

Description

Pre-flight checklist
  • I searched existing issues and this is not a duplicate. Related but different: #2195 (DPI Toggle resets to free spin via profile switch), #1543 (ratchet sensitivity does not persist), #2642 (config lost after hibernation on Windows).
  • I am on the latest release or a recent master build.
  • I quit Logi Options+ before running OpenLogi.
Which part of OpenLogi?

GUI (desktop app)

OpenLogi version

0.9.0

Operating system

macOS

OS version & architecture

macOS 27.2.1 (arm64)

Device model

MX Master 4

How is the device connected?

Logi Bolt receiver

Affected area(s)
  • SmartShift
  • Settings / configuration (TOML)
What happened?

I bind the DPI button to ToggleSmartShift:

[devices."serial:<redacted>".bindings]
DpiToggle = "ToggleSmartShift"

Pressing it switches the wheel between ratchet and free spin as expected. But the new mode is not written to config.toml. The stored value stays at:

[devices."serial:<redacted>".smartshift]
mode = "free"

Whenever the mouse reconnects, OpenLogi re-applies the stored SmartShift settings (as described in #1543, reapply_volatile_settings). The wheel goes back to free spin, even though I had switched it to ratchet. Turning the mouse off and on is enough to trigger it. I first noticed it after locking the Mac for a long time: the mouse sleeps and reconnects when I log back in. A short lock does not trigger it, because the mouse stays connected.

config.toml and all five config.toml.backup.* files were rewritten about 45 seconds after the display woke, and all of them still say mode = "free".

Expected: after a reconnect, the wheel keeps the mode I last chose, whether I chose it in the app or with the ToggleSmartShift button. Either of these would fix it:

  1. Persist the mode to config.toml when ToggleSmartShift fires, or
  2. On reconnect, do not overwrite a mode the user changed at runtime.

Workaround: choosing Ratchet in the app's SmartShift panel persists it and survives reconnects.

Steps to reproduce
  1. In the app, set SmartShift to Free spin.
  2. Bind the DPI button to ToggleSmartShift.
  3. Press the DPI button once. The wheel is now in ratchet mode.
  4. Check config.toml: smartshift.mode is still "free".
  5. Turn the mouse off and on again.
  6. The wheel is in free spin again.

The same happens after locking the Mac long enough for the mouse to sleep.

Diagnostics report
OpenLogi Diagnostics

App

  • OpenLogi (GUI): v0.9.0 (release)
  • Agent: v0.9.0 (connected)
  • IPC protocol: GUI 45 / agent 45
  • Inventory: ready
  • OS: macOS 27.2.1 (arm64)
  • Locale: en-VN (UI: en)
  • Accessibility: granted · Input hook: installed
  • Virtual keyboard: active
  • Launch at login: yes · Menu bar: yes · Update check: on · Update channel: stable
  • Running from: source build (dev)
  • Config: schema 11 · 3 configured device(s) · thumbwheel 14

Assets

  • Source: user cache · Index: loaded (286 models) · User cache: present
  • Cache path: ~/.local/share/openlogi/assets · Bundle assets: absent

Devices (1)

  • MX Master 4 — mouse (codename: MX Master 4)
    • Connection: Logi Bolt receiver · Online: yes · Battery: 60% (discharging, full)
    • Capabilities: buttons=yes, pointer=yes, pointer_scaling=no, lighting=no, force_sensing=yes
    • Model: 0b042 (wpid: b042, model-ids: b042/0000/0000, ext-model: 00)
    • Transports: BTLE
    • Render: mx_master_4 · Slot 2

Receivers (1)

  • Logi Bolt Receiver (VID 046d / PID c548)
openlogi list output
(inventory read from the running agent)
Logi Bolt Receiver (<redacted>, vid=046d pid=c548)
  └─ slot 2 ● MX Master 4 (mouse, wpid=b042, battery=60% full (discharging))
          model_ids=[b042,0000,0000] ext=00 serial=<redacted> unit_id=<redacted> transports=btle
Logs
macOS permissions (if applicable)
  • OpenLogi has Accessibility permission.
Dominant language
Rust
Stars
26.4k
Forks
1k
Avg merge
3d 9h
Merged PRs (30d)
103

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from AprilNEA/OpenLogi

All issues in AprilNEA/OpenLogi

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.