Repository navigation
Description
Summary
Desktop 1.2.0 on a SteelSeries Prime Mini Wireless (1038:1848 dongle, SteelSeriesPrimeMiniWirelessHidClient) reports a false failure after every DPI or polling-rate write:
Could not apply: The device reports a different value for DPI. The page shows what it has.
The page then snaps back to 400 DPI, which reads as "DPI cannot be changed". The write itself is not rejected — setDpi completed and returned the value — but the driver has no DPI getter, and the post-write read-back compares the written value against the driver's fallback default.
Reporter
SteelSeries Prime Mini Wireless, "Wireless" connection, battery 85 %, app v1.2.0 (Windows). Picking any DPI preset other than 400 raises the message above.
Thread: https://discord.com/channels/1531814042421952644/1578337111847862373
Cause
The driver is write-only by design and says so:
mouse-protocolsrc/drivers/steelseries/prime-mini-wireless-hid.ts:119-122setsvaluesVerified: falseand apollingNoteexplaining the shown values are "the last written by this app, or assumed defaults".:62-65keeps that last-written value in an instance fieldlastWritten;readStatus()(:127-129) returnsthis.lastWritten.dpi ?? DEFAULT_DPIwithDEFAULT_DPI = 400.
The desktop creates a new client instance per action and closes it afterwards, so lastWritten never survives across calls:
gpui/js/native-hid/scan.ts:144-159—connectToInterfaceLocked()doescandidate.create(device)→readStatus()→client.close().gpui/js/native-hid/write.ts:280-307—withClient()does the same for every write.
So safety.rs:165-214 read_back() reconnects after SETTLE, gets a fresh client, and readStatus() answers the hard-coded fallback 400 regardless of what was written. mismatch() (safety.rs:374-393) only skips a value that is null ("A value the mouse does not report cannot be checked"), and this driver never returns null — it returns 400 — so the diff always fires for any DPI other than 400 (and any polling rate other than 1000).
Why the 1.2.0 localStorage fix does not cover this
#66 / 0c140c4 added a persistent localStorage shim for the Glorious drivers, which cache their write-only values there. The SteelSeries driver does not use localStorage; it caches on the client instance, and the desktop's one-shot client lifetime discards that cache. ui.valuesVerified is not read anywhere in the desktop (grep valuesVerified gpui/ = 0 on v1.2.0), so the driver's own "these values are not read back" flag has no effect.
Expected
A driver that reports ui.valuesVerified === false (or otherwise has no getter for a value) should not be diffed against its own fallback after a write. Either:
- skip the read-back diff for that value and keep showing what was sent (with the driver's note, which the desktop currently drops entirely —
pollingNotehas no field inDeviceReadout::from_status), or - carry
valuesVerifiedintoDeviceReadoutand letmismatch()returnNonewhen it is false.
Notes
- Same family question: mouse-protocol#284 shows the SteelSeries GG descriptors do declare
batch_get_resolution(0xA0), active level (0x96) and polling-rate (0x97) reads for the Rival 3 Wireless, so a real getter for the Prime Mini Wireless may exist and would remove the need for a fallback at all. That is a protocol-side follow-up, not this UI fix. setDpion this model replaces the DPI preset table with a single stage (documented atprime-mini-wireless-hid.ts:138-142), so the preset list is not preserved either way.
Activity
snekxs commentedon Dec 5, 2026
Fixed in #80 (shipping in v1.3.1): Desktop now honors \ui.valuesVerified === false\ on write-only drivers, skipping the post-write read-back diff and preserving written settings instead of snapping back to fallback defaults (e.g. 400 DPI).
feat(wlmouse): full Beast X V2 dongle/macro/curve parity & fix OpenMo…