Repository navigation
Description
Summary
OpenMouse Desktop 1.2.0 cannot connect to a Razer DeathAdder V2 Pro over its 2.4 GHz receiver (USB 1532:007d). Every attempt ends with:
RazerHidClient: Class 0x00 command 0x81 returned status 0x00.
[device] connect failed: No driver answered on this interface.
and eventually "The mouse stayed busy — it may be asleep or out of range."
The mouse and receiver are healthy. The receiver answers the exact same 90-byte get-firmware request correctly (status 0x02, firmware 1.0) when the request is written only to interface 0. OpenMouse fails because it fans the request out to every HID interface of the receiver.
Environment
-
OpenMouse Desktop 1.2.0, Linux x86_64 (Omarchy 4.6.0 / Arch)
-
Razer DeathAdder V2 Pro wireless receiver,
1532:007d,bcdDevice 1.00, 5 HID interfaces -
Interfaces (confirmed from
/sys/class/hidraw/*/device/report_descriptor):hidraw USB interface Contents hidraw100Generic Desktop Mouse + 90-byte vendor Feature report, id 0 hidraw201keyboard, no Feature reports hidraw302keyboard, no Feature reports hidraw404usage page 0x0059, 63-byte Feature reports ids 1–7hidraw503usage page 0x0059, 63-byte Feature reports ids 1–7 -
Normal mouse input works throughout (
/dev/input/event2), so the 2.4 GHz link is alive. -
No Bluetooth adapter on this machine, so Bluetooth mode is not an option.
-
No OpenRazer daemon / kernel modules, no ratbagd/openrgb/solaar running.
Root cause
hid_send_feature_report() in crates/openmouse-hid/src/lib.rs calls send_each(..., fan_out = vendor_id == RAZER_VENDOR_ID && !declaring_only, declaring_only). For every Razer device except the Viper 8KHz, declaring_only is false, so a Razer feature report is written to all splits (all HID interfaces of the VID/PID group).
This receiver keeps one pending-command buffer. Writing the request to interface 0 and then to interfaces 1–4 replaces the pending command, and the next read returns the request echoed back with status 0x00 (Razer "new / not processed"). The driver correctly interprets that as "queued", retries, and never gets past get-firmware.
Only interface 0 declares the 90-byte id-0 Feature report; interfaces 1–4 declare no Feature reports or unrelated ids.
Reproduction (raw hidraw, no OpenMouse)
Same 90-byte get-firmware request (class 0x00, cmd 0x81, transaction id 0x3f), written to the listed interfaces, then read back from interface 0:
| Writes | Read-back |
|---|---|
| interface 0 only | status 0x02, args 01 00 (firmware 1.0), CRC valid |
| interface 0, then interface 1 | status 0x00, exact echo of the request |
| interface 0, then interface 2 | status 0x00, exact echo |
| interface 0, then interface 3 | status 0x00, exact echo |
| interface 0, then interface 4 | status 0x00 most of the time (6/10 success over 10 runs) |
| interfaces 1–4 first, interface 0 last | status 0x02, correct firmware |
| interface 0 twice | status 0x01 (busy) |
Reads are not the problem: after a single write to interface 0, reading any interface returns the correct status 0x02 answer. Only the extra writes corrupt the pending command.
This is also why OpenRazer works with this model — it only ever writes interface 0 for the DeathAdder V2 Pro wireless.
Proposed fix
Add the DeathAdder V2 Pro wireless receiver (0x007d) to the existing declaring-only routing already used for the Viper 8KHz (0x0091). Because only interface 0 declares the 90-byte id-0 report, this sends writes and reads to interface 0 only.
--- a/crates/openmouse-hid/src/lib.rs
+++ b/crates/openmouse-hid/src/lib.rs
@@ -289,12 +289,28 @@
/// command of every connect. OpenRazer only ever uses wIndex 0 for this model.
const RAZER_VIPER_8K_PRODUCT_ID: u16 = 0x0091;
+/// Razer DeathAdder V2 Pro wireless receiver. Interface 0 is the only one that
+/// declares the 90-byte vendor feature report (report id 0); the others declare
+/// nothing, or different report ids. The receiver keeps one pending-command
+/// buffer: fanning a SET_REPORT(Feature) out to interfaces 1-4 *after* interface
+/// 0 replaces the pending command, and every read then returns the request
+/// echoed back with status 0x00. CONFIRMED by writing this model's own 90-byte
+/// get-firmware request over hidraw: interface 0 alone answers status 0x02 /
+/// firmware 1.0, while interface 0 followed by any of 1, 2, 3 answers status
+/// 0x00. OpenRazer only ever uses interface 0 for it.
+const RAZER_DEATHADDER_V2_PRO_WIRELESS_PRODUCT_ID: u16 = 0x007d;
+
/// Devices whose feature reports must go *only* to an interface whose
/// descriptor declares the report, never to a sibling, for writes and reads
/// alike: no Razer fan-out and no falling through to the other interfaces.
-/// Deliberately a single model: every other device keeps its existing routing.
+/// Each is here because its siblings echo the request back or drop it; every
+/// other device keeps its existing routing.
fn feature_reports_declaring_only(vendor_id: u16, product_id: u16) -> bool {
- (vendor_id, product_id) == (RAZER_VENDOR_ID, RAZER_VIPER_8K_PRODUCT_ID)
+ vendor_id == RAZER_VENDOR_ID
+ && matches!(
+ product_id,
+ RAZER_VIPER_8K_PRODUCT_ID | RAZER_DEATHADDER_V2_PRO_WIRELESS_PRODUCT_ID
+ )
}(Plus the corresponding assertion in the declaring_only_routing_is_limited_to_the_viper_8k unit test.)
Workaround (verified)
A udev rule that lets the desktop user open only interface 0 makes OpenMouse connect and read settings normally:
SUBSYSTEM=="hidraw", SUBSYSTEMS=="usb", ATTRS{idVendor}=="1532", ATTRS{idProduct}=="007d", ATTRS{bInterfaceNumber}=="0[1-4]", TAG-="uaccess", OWNER="root", GROUP="root", MODE="0600"
After applying it and restarting OpenMouse, the log shows [device] connected: Razer (RazerHidClient driver) and settings load. Mouse input over evdev is unaffected.
I have the full test scripts available if useful. Happy to open a PR with the change above.
Activity
snekxs commentedon Dec 5, 2026
Fixed in #80 (shipping in v1.3.1): added Razer DeathAdder V2 Pro wireless (\1532:007d) to \eature_reports_declaring_only\ so feature reports are only written to interface 0 and no longer overwrite the receiver's pending command buffer. Thanks for the thorough hidraw reproduction!
feat(wlmouse): full Beast X V2 dongle/macro/curve parity & fix OpenMo…