Skip to content

Support for NZXT H1 V2 case Smart Device#451

Merged
jonasmalacofilho merged 10 commits intomainfrom
unknown repository
May 5, 2022
Merged

Support for NZXT H1 V2 case Smart Device#451
jonasmalacofilho merged 10 commits intomainfrom
unknown repository

Conversation

@ghost
Copy link

@ghost ghost commented Apr 13, 2022

This adds support for the smart device that is currently supplied within the new NZXT H1 V2 case. It does behave the same as a Smart Device V2 with the addition of a pump reading for the included AIO minus LED controls. I've managed to get it working by extending the smart_device driver.

Fixes: #449
Closes:
Related:


Checklist:

  • Adhere to the development process
  • Conform to the style guide
  • Verify that the changes work as expected on real hardware
  • Add automated tests cases
  • Verify that all (other) automated tests (still) pass
  • Update the README and other applicable documentation pages
  • Update the liquidctl.8 Linux/Unix/Mac OS man page
  • Update or add applicable docs/*guide.md device guides
  • Submit relevant data, scripts or dissectors to https://github.com/liquidctl/collected-device-data

New CLI flag? No

New device?

  • Regenerate extra/linux/71-liquidctl.rules (instructions in the file header)
  • Add entry to the README's supported device list with applicable notes (at least en)

New driver? No

@ghost ghost marked this pull request as draft April 13, 2022 21:26
@ghost ghost marked this pull request as ready for review April 15, 2022 10:36
@ghost ghost changed the title [WIP] Support for the smart device supplied in the NZXT H1 V2 case Support for NZXT H1 V2 case Smart Device Apr 15, 2022
@amezin
Copy link
Member

amezin commented Apr 23, 2022

BTW, @jonasmalacofilho liquidctl could use a more declarative approach to parsing HID reports, like kernel drivers: Python's ctypes can even handle non-native byte order. See https://github.com/amezin/amdgpu-pptable/

(It's a suggestion to Jonas, @thecosmonad you don't have to do anything)

I won't add support for H1 fan controller to the kernel driver myself, since this change can't be trivially converted to the kernel driver, and I don't have the corresponding hardware to verify it.

@ghost
Copy link
Author

ghost commented Apr 24, 2022

Hi @amezin, if I'll have some spare time to look at the kernel dirver sources I'll see if I can figure it out, that's probably the best thing as I do have the hardware indeed.

@jonasmalacofilho have you managed to take a look at the pull? What do you think? I was wondering whether this could end up in a v1.9.2 or not?

@jonasmalacofilho
Copy link
Member

jonasmalacofilho commented Apr 24, 2022

@thecosmonad,

@jonasmalacofilho have you managed to take a look at the pull? What do you think?

Sorry, not yet had the time to do it.

I was wondering whether this could end up in a v1.9.2 or not?

Since it's support for a new device and it's not just enabling a VID/PID, it needs to go into 1.10.0 (we use semantic versioning). That's scheduled for early July.

@jonasmalacofilho
Copy link
Member

@amezin,

BTW, @jonasmalacofilho liquidctl could use a more declarative approach to parsing HID reports, like kernel drivers: Python's ctypes can even handle non-native byte order. See https://github.com/amezin/amdgpu-pptable/

Acknowledged, thanks.

Copy link
Member

@jonasmalacofilho jonasmalacofilho left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @thecosmonad ,

Sorry it took me so long to review this short PR.

Can you take a look at my comments?

Thanks again!

@ghost
Copy link
Author

ghost commented May 5, 2022

Hi @jonasmalacofilho,

Don't worry, I'm glad you've provided so many hints and help!

I think it should be fine now... Hopefully 🤞🏻

I mean, apparently the case hasn't blown up. Yet.

@jonasmalacofilho jonasmalacofilho merged commit b66268e into liquidctl:main May 5, 2022
@jonasmalacofilho
Copy link
Member

LGTM, merged.

Thanks again!

@ghost ghost deleted the h1-smart-device branch May 5, 2022 13:27
@ghost
Copy link
Author

ghost commented May 5, 2022

Glad to hear that.

Thank you too for the massive work that went into this project, contributing has been a super fun experience!

As a new device (even on the market), if something goes wrong with other H1 V2 owners don't heistate pinging me, I'll see if I can help.

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

Successfully merging this pull request may close these issues.

NZXT H1 V2

2 participants