Added HyperX Cloud Stinger 2 Wireless support

This commit is contained in:
LennardKittner
2024-05-29 20:33:31 +02:00
parent a14f970c9c
commit 7e2c301091
2 changed files with 9 additions and 4 deletions

View File

@@ -4,10 +4,13 @@ A CLI and tray application to monitor HyperX Cloud II Wireless headset battery l
<img src=./screenshots/tray_app.png alt="tray_app" width="400"> <img src=./screenshots/tray_app.png alt="tray_app" width="400">
## Compatibility ## Compatibility
The CLI application is compatible with both Linux and MacOS operating systems. However, the tray application is only functional on Linux. Although it was only tested on Manjaro/KDE, it should also work on other distribution and desktop environments. The CLI application is compatible with both Linux and MacOS operating systems.
However, the tray application is only functional on Linux.
Although it was only tested on Manjaro/KDE, it should also work on other distribution and desktop environments.
Currently, only the HyperX Cloud II Wireless is supported. Currently, only the HyperX Cloud II Wireless and HyperX Cloud Stinger 2 Wireless.
However, the HyperX Cloud II Wireless comes in two versions: one produced before HP acquired HyperX and one after. The application has only been tested on the HyperX Cloud II Wireless with the HP vendorID. However, the HyperX Cloud II Wireless comes in two versions: one produced before HP acquired HyperX and one after.
The application has only been tested on the HyperX Cloud II Wireless with the HP vendorID.
## Prerequisites ## Prerequisites
@@ -50,7 +53,9 @@ Create a new file in /etc/udev/rules.d/99-hyperx-cloud-II.rules with the followi
``` ```
SUBSYSTEMS=="usb", ATTRS{idProduct}=="018b", ATTRS{idVendor}=="03f0", MODE="0666" SUBSYSTEMS=="usb", ATTRS{idProduct}=="018b", ATTRS{idVendor}=="03f0", MODE="0666"
SUBSYSTEMS=="usb", ATTRS{idProduct}=="1718", ATTRS{idVendor}=="0951", MODE="0666" SUBSYSTEMS=="usb", ATTRS{idProduct}=="1718", ATTRS{idVendor}=="0951", MODE="0666"
SUBSYSTEMS=="usb", ATTRS{idProduct}=="0d93", ATTRS{idVendor}=="03f0", MODE="0666"
KERNEL=="hidraw*", ATTRS{idProduct}=="0d93", ATTRS{idVendor}=="03f0", MODE="0666"
KERNEL=="hidraw*", ATTRS{idProduct}=="018b", ATTRS{idVendor}=="03f0", MODE="0666" KERNEL=="hidraw*", ATTRS{idProduct}=="018b", ATTRS{idVendor}=="03f0", MODE="0666"
KERNEL=="hidraw*", ATTRS{idProduct}=="1718", ATTRS{idVendor}=="0951", MODE="0666" KERNEL=="hidraw*", ATTRS{idProduct}=="1718", ATTRS{idVendor}=="0951", MODE="0666"
``` ```

View File

@@ -6,7 +6,7 @@ use thistermination::TerminationFull;
// Possible vendor IDs [hyperx , HP] // Possible vendor IDs [hyperx , HP]
const VENDOR_IDS: [u16; 2] = [0x0951, 0x03F0]; const VENDOR_IDS: [u16; 2] = [0x0951, 0x03F0];
// Possible Cloud II Wireless product IDs // Possible Cloud II Wireless product IDs
const PRODUCT_IDS: [u16; 2] = [0x1718, 0x018B]; const PRODUCT_IDS: [u16; 3] = [0x1718, 0x018B, 0x0D93];
const BATTERY_LEVEL_INDEX: usize = 7; const BATTERY_LEVEL_INDEX: usize = 7;
const CHARGING_PREAMBLE: [u8; 5] = [6, 255, 187, 2, 0]; const CHARGING_PREAMBLE: [u8; 5] = [6, 255, 187, 2, 0];