tdakhran/razer-ctl

Clarify README, add support for Razer Blade 14 2022

Opened this issue · 1 comments

Thanks for doing this. I had a few more packages to install on WSL Ubuntu 22.04.

First, install rustup. Then,

sudo apt install libudev-dev libxdo-dev gcc-mingw-w64
rustup target add x86_64-pc-windows-gnu

Then build as usual. Compiled versions are kept in target/x86_64-pc-windows-gnu/release/.

(This info was valuable to me, who's never used Rust before)

Testing on a Razer Blade 14 2022, 3070Ti, mercury, PID 0x028c I get the following:

PS > .\razer-cli.exe enumerate
RazerDevice { vid: 0x1532, pid: 0x028c, manufacturer: Razer, product: Razer Blade }
RazerDevice { vid: 0x1532, pid: 0x028c, manufacturer: Razer, product: Razer Blade }
RazerDevice { vid: 0x1532, pid: 0x028c, manufacturer: Razer, product: Razer Blade }
RazerDevice { vid: 0x1532, pid: 0x028c, manufacturer: Razer, product: Razer Blade }
RazerDevice { vid: 0x1532, pid: 0x028c, manufacturer: Razer, product: Razer Blade }
RazerDevice { vid: 0x1532, pid: 0x028c, manufacturer: Razer, product: Razer Blade }
RazerDevice { vid: 0x1532, pid: 0x028c, manufacturer: , product:  }
RazerDevice { vid: 0x1532, pid: 0x028c, manufacturer: Razer, product: Razer Blade }
PS > .\razer-cli.exe -p 0x028c info
Error: hidapi error: HidD_SetFeature: (0x00000001) Incorrect function.

At some point I'll get around to installing wireshark and checking the output of the USB, but making this issue for now for other Razer blade 14 2022 owners.

Thanks for reporting the issue @sampollard. Incorrect function was fixed in #2 but has not yet been released. If you can build HEAD and try it, that would be helpful.

Otherwise, you can wait for the release, I'll do it after #10 functionality is merged.

Contributions to README.md are welcome, however, keep in mind that different types of OS might have different instructions. That was one of the reasons I didn't add anything beyond cargo build.