[Bug]: SmartShift mode switched with the DPI button (ToggleSmartShift) reverts to the saved mode after the mouse reconnects (MX Master 4)
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 68/100
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
masterbuild. - 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:
- Persist the mode to
config.tomlwhenToggleSmartShiftfires, or - 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
- In the app, set SmartShift to Free spin.
- Bind the DPI button to
ToggleSmartShift. - Press the DPI button once. The wheel is now in ratchet mode.
- Check
config.toml:smartshift.modeis still"free". - Turn the mouse off and on again.
- 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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from AprilNEA/OpenLogi
-
[Bug]: Installation source reads "Not identified" on the AUR openlogi-bin packagePossibly taken @stevie86 claimed this 1 day ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Maintainers usually reply within 1 day
-
area: hidpp needs: triage
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
macOS agent: camera watcher leaks autorelease-pool entries every second (no pool on its thread)Possibly taken @Zekuath claimed this 4 days ago. Openplatform: macos type: bug
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Maintainers usually reply within 1 day
-
area: assets needs: decision platform: all type: feature
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
AprilNEA/OpenLogi#2454 · 1 comment ·
Maintainers usually reply within 1 day
-
area: assets platform: all type: feature
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
AprilNEA/OpenLogi#2452 · 3 comments ·
Maintainers usually reply within 1 day
All issues in AprilNEA/OpenLogi
Similar issues
-
claim
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Nixitov/Riptide-Native#946 ·
Maintainers usually reply within 1 day
-
area: ai-assistants documentation help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
BetaBots-LLC/latticegate#17 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 94/100
storytold/craft-libs#5594 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
听歌识曲历史跳转后对应音源界面无法返回Open
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
LingyunStudio/RustMusic#16 ·