Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Razer Huntsman V2 (not Analog) #482

Closed
marcel151 opened this issue Nov 7, 2021 · 13 comments
Closed

Add support for Razer Huntsman V2 (not Analog) #482

marcel151 opened this issue Nov 7, 2021 · 13 comments

Comments

@marcel151
Copy link

Hi,

I got a new Razer Huntsman V2 with Purple Switches. Unfortunately, Razer-macos does not recognize it. Adding support for it would be great!

@WrathofthePast
Copy link
Collaborator

I can add support, but Openrazer hasn't acquired a pcap yet, so they don't know the transaction id. I inquired about it & they said we can try assuming that it's the same as the Huntsman V2 Analog. Are you up to testing it? If it's not the same, we can brute force guess it. Lmk if you want to do that or wait till Openrazer gets a pcap.

@marcel151
Copy link
Author

marcel151 commented Nov 9, 2021

Sure. If you tell me what I have to to do I will test it.

EDIT: Ok I can see that you can add a new .json file under the devices folder. But I think that has to be compiled again for a test if I'm correct. That's what I can't, unfortunately.

@WrathofthePast
Copy link
Collaborator

Your job is really simple: download it using this link & tell me if it works... that's right, I did it that fast.

@marcel151
Copy link
Author

Yes, that worked. Thank you very much!
Bildschirmfoto 2021-11-09 um 21 06 32

I can see you added the Huntsman V2 with ID "0x026c", was that just a guess? Since the V2 Analog got "0x0266".

@WrathofthePast
Copy link
Collaborator

I can see you added the Huntsman V2 with ID "0x026c", was that just a guess? Since the V2 Analog got "0x0266".

No, it wasn't... that's the Product ID (PID) which openrazer already found. The transaction id was needed for ~/librazermacos/src/lib/razerkbd_driver.c. My guess was 0x1F since that's the Huntsman V2 Analog transaction id.

Yes, that worked. Thank you very much!

You're welcome. Can you confirm that you can change the light effects, brightness, etc? It'd appear even if I got the transaction id wrong as 3/4 files would still be correct (razerdevice.c, razerkbd_driver.h, & huntsman_v2.json).

@marcel151
Copy link
Author

marcel151 commented Nov 9, 2021

No, it wasn't... that's the Product ID (PID) which openrazer already found. The transaction id was needed for ~/librazermacos/src/lib/razerkbd_driver.c. My guess was 0x1F since that's the Huntsman V2 Analog transaction id.

Thanks for the explanation.

You're welcome. Can you confirm that you can change the light effects, brightness, etc? It'd appear even if I got the transaction id wrong as 3/4 files would still be correct (razerdevice.c, razerkbd_driver.h, & huntsman_v2.json).

Yes, that works. I can set the brightness only to 0 or 100%, but I think that's normal?

@WrathofthePast
Copy link
Collaborator

Yes, that works. I can set the brightness only to 0 or 100%, but I think that's normal?

I don't think so, but can you go in-between 0 & 100% via FN + F11 & F12? Note: you have to have "Use F1, F2, etc. keys as standard function keys on external keyboard" enabled in /Systems\ Preferences/Keyboard/Keyboard.

If you can't, then the issue isn't on the razer-macos side or at least isn't the only issue.

@dhobi
Copy link
Collaborator

dhobi commented Nov 10, 2021

In addition: You should be able to change the brightness of your keyboard when you open the specific device settings window. You do this by clicking on the device name itself.
In this window you should have a range slider which changes the brightness of your keyboard while moving the range slider handle.

@WrathofthePast
Copy link
Collaborator

@marcel151, here's an updated version. The prior version had 9 instead of 6 rows for the ripple and wheel effects and used the image url for the Huntsman V2 Analog. Both are fixed in this new version.

@dhobi, do you think the former could have caused issue?

@dhobi
Copy link
Collaborator

dhobi commented Nov 10, 2021

@WrathofthePast if you are talking about the rows: most probably not, no. Razer hardware is pretty forgivable about sending wrong values. At least this was the case for me so far 😄

With your change the wheel effect should be correctly centered now. With 9 rows the center point was between row 4/5 so far while it should be on row 3 now (6)

@marcel151
Copy link
Author

Yes, that works. I can set the brightness only to 0 or 100%, but I think that's normal?

I don't think so, but can you go in-between 0 & 100% via FN + F11 & F12? Note: you have to have "Use F1, F2, etc. keys as standard function keys on external keyboard" enabled in /Systems\ Preferences/Keyboard/Keyboard.

If you can't, then the issue isn't on the razer-macos side or at least isn't the only issue.

Yes, I knew that and it's working this way. Just wanted to mention that it only shows 0 and 100% there.

In addition: You should be able to change the brightness of your keyboard when you open the specific device settings window. You do this by clicking on the device name itself.
In this window you should have a range slider which changes the brightness of your keyboard while moving the range slider handle.

Ah thank you, that's working. Nevertheless, I mostly set the brightness with fn+F11 or F12.

@WrathofthePast
Copy link
Collaborator

@marcel151, can this issue be closed? v0.4.6 added official support.

@marcel151
Copy link
Author

Sorry, yes it can be closed now.

JCKodel pushed a commit to JCKodel/razer-macos that referenced this issue Dec 7, 2022
* Huntsman V2 Support

* Update librazermacos

* Update Readme

Confirmed working in [1kc#482](1kc#482)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants