Skip to content

Desktop: write-only SteelSeries Prime Mini Wireless always fails the post-write DPI read-back against its own fallback default #77

Done

Description

@snekxs

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-protocol src/drivers/steelseries/prime-mini-wireless-hid.ts:119-122 sets valuesVerified: false and a pollingNote explaining the shown values are "the last written by this app, or assumed defaults".
  • :62-65 keeps that last-written value in an instance field lastWritten; readStatus() (:127-129) returns this.lastWritten.dpi ?? DEFAULT_DPI with DEFAULT_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() does candidate.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 — pollingNote has no field in DeviceReadout::from_status), or
  • carry valuesVerified into DeviceReadout and let mismatch() return None when 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.
  • setDpi on this model replaces the DPI preset table with a single stage (documented at prime-mini-wireless-hid.ts:138-142), so the preset list is not preserved either way.

Activity

  1. added
    bug
    area: ui
    on Dec 4, 2026
  2. snekxs commented on Dec 5, 2026

    @snekxs
    MemberAuthor

    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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: uibug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions