Re: [PATCH 2/2] HID: steelseries: Add Rival 3 Wireless battery reporting

From: Jiri Kosina

Date: Tue Dec 01 2026 - 07:06:59 EST


On Fri, 30 Oct 2026, Martin Oberleiter via B4 Relay wrote:

> From: Martin Oberleiter <martin.oberleiter@xxxxxxxxx>
>
> The Rival 3 Wireless mouse in 2.4 GHz mode (receiver 1038:1830) reports
> its battery level on request: an output report AA 01 on the vendor
> interface (interface 3) is answered through the receiver about 80 ms
> later by an input report holding the level in percent in the first
> byte and a charging flag in the third, followed by zero padding. While
> the mouse is off or asleep, the receiver does not answer. This is the
> protocol rivalcfg uses.
>
> Register a power supply on that interface and poll it from a delayed
> work: every 10 minutes while the mouse answers, every minute while it
> does not, and right after resume. As the reply carries no command echo,
> it is only accepted while one is awaited and if it has the expected
> shape. If the mouse does not answer within 500 ms, the status becomes
> unknown and the last level is kept. Until the first reply, report 100%
> with an unknown status, as the Arctis headset support does, to avoid a
> spurious low battery warning. The mouse's other interfaces are left
> closed until userspace opens them, as with hid-generic.
>
> The status polling in hid-steelseries-arctis is not reused: it is built
> around headsets with sync and async interfaces and a connection status,
> while the mouse needs a single request with a reply timeout.
>
> Userspace talking to interface 3 through hidraw at the same time (e.g.
> rivalcfg) can see the driver's replies, and a reply to its own command
> with the same shape would be taken as a battery reply.
>
> Tested on a Rival 3 Wireless with its 2.4 GHz receiver: the battery
> shows up with the level the mouse reports, the status becomes unknown
> while the mouse is off, and the level is back within a minute of
> switching it on. Mouse input is unaffected.
>
> The protocol was verified on the device and the driver and this
> changelog were written with the help of an AI coding assistant (Claude
> Code).
>
> Signed-off-by: Martin Oberleiter <martin.oberleiter@xxxxxxxxx>

Applied, thank you.

--
Jiri Kosina
SUSE Labs