[PATCH v2 0/5] HID: add battery driver for the UNCTRL RAGE Wireless Mouse

From: Bishwa Bhusan Saha via B4 Relay

Date: Mon Oct 12 2026 - 17:14:10 EST


This patchset adds battery reporting for the UNCTRL RAGE Wireless Mouse.
Parts of the driver are inspired by the Kysona HID driver
(drivers/hid/hid-kysona.c).

It was tested on an UNCTRL RAGE Wireless Mouse.

Signed-off-by: Bishwa Bhusan Saha <contact@xxxxxxxxxxxxxx>
---
Changes in v2:
- restructure the battery handover to fix the races found in review
- register the replacement supply before the previous owner is torn down,
so a failed registration cannot leave the mouse batteryless
- deliver the probe-time query reply with hid_device_io_start()
- schedule the polling on the freezable workqueue, no CPU wake during
suspend
- Link to v1: https://patch.msgid.link/20261013-b4-unctrl-m1-battery-v1-0-4a50203b7177@xxxxxxxxxxxxxx

To: Jiri Kosina <jikos@xxxxxxxxxx>
To: Benjamin Tissoires <bentiss@xxxxxxxxxx>
Cc: linux-input@xxxxxxxxxxxxxxx
Cc: linux-kernel@xxxxxxxxxxxxxxx

---
Bishwa Bhusan Saha (5):
HID: add IDs for UNCTRL RAGE Mouse
HID: UNCTRL: add basic battery reporting for UNCTRL RAGE Mouse
HID: UNCTRL: add periodic battery reporting using a workqueue
HID: UNCTRL: keep a single battery when a mouse has multiple connections
HID: UNCTRL: only report to userspace on battery changes

drivers/hid/Kconfig | 8 +
drivers/hid/Makefile | 1 +
drivers/hid/hid-ids.h | 2 +
drivers/hid/hid-unctrl-m1.c | 436 ++++++++++++++++++++++++++++++++++++++++++++
4 files changed, 447 insertions(+)
---
base-commit: 145c2b2e9a5c0f794fb4009bcb072ab19f8ccfcd
change-id: 20261013-b4-unctrl-m1-battery-4afbaf17c0ea

Best regards,
--
Bishwa Bhusan Saha <contact@xxxxxxxxxxxxxx>