Missing kernel driver corsair-cpro?

v1ad

Cadet
Joined
Apr 13, 2022
Messages
3
Trying to use Corsair iCUE Commander PRO to control fans but no driver, is there a reason its not included? Anyway to build it?
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
is there a reason its not included?
Nobody would expect that to be there on the hardware for which this software is expected to run (which is server hardware, typically with an IPMI controller for FAN control onboard).

If you want to control fans via a corsair controller, you may have some success with OpenCorsairLink and a script I've done some work with (although I'm focused on the Commander Pro... prior to iCUE, so have no idea about the model you're talking about)...
 

Kris Moore

SVP of Engineering
Administrator
Moderator
iXsystems
Joined
Nov 12, 2015
Messages
1,471
Wonder if this can be run via Container so its easy to download an app to control it.
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
Wonder if this can be run via Container so its easy to download an app to control it.
It's a standalone binary... just put it in /root or whatever, it runs fine (using USB/HID from libusb).

All the mess to make a container run it feels like more work than needed compared to dropping 1 binary and a perl script with an init task to run it.

I suppose it would be possible though.
 

Kris Moore

SVP of Engineering
Administrator
Moderator
iXsystems
Joined
Nov 12, 2015
Messages
1,471
A single container with a binary in it is fine also :)

But agreed, if its just a single binary / script you can just as easily toss it on /root or even your /mnt/<pool> somewhere and run it from there when needed.
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
A single container with a binary in it is fine also :)
But access to USB is key, so likely to be the complication with a container.

Anyway, all options are available for folks to explore.
 

v1ad

Cadet
Joined
Apr 13, 2022
Messages
3
Looks like only one option to get this working is get USB card and passthrough to VM. Then need another way(another VM or TrueNAS API?) to pass hard drive, system and cpu temp readings, the complexity is going through the roof here.

On Debian/Ubuntu all you have to do is apt install fancontrol and edit /etc/fancontrol file.
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
Looks like only one option to get this working is get USB card and passthrough to VM
That's total rubbish... did you read the thread I linked you to?

Start by putting the OpenCorsairLink binary in /root then run it from shell... you can immediately use it to see the status and set speed of fans, etc.

The linked script provides a method to control the fans dynamically according to disk temps, etc.

None of that requires a VM at all.
 

v1ad

Cadet
Joined
Apr 13, 2022
Messages
3
That's total rubbish... did you read the thread I linked you to?

Start by putting the OpenCorsairLink binary in /root then run it from shell... you can immediately use it to see the status and set speed of fans, etc.

The linked script provides a method to control the fans dynamically according to disk temps, etc.

None of that requires a VM at all.

Yes, didn't like hacky approach, it works but trust and long support issue with binaries, no offense.

I think proper way would be to build kernel module and put it in to docker image along with one of "fan control" solutions from github which utilize kernel drivers to control fans and read sensors.

Very basically without builtin module Truenas becomes a snowflake for me, so I moving on to other solution.

Thank you.
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
I think proper way would be to build kernel module and put it in to docker image along with one of "fan control" solutions from github which utilize kernel drivers to control fans and read sensors.
OpenCorsirLink is on github and is exactly a fan control solution.

The kernel driver isn't something that's needed since the Commander Pro is a USB HID device for which there are already drivers in the build.

If you don't like anything other than the solution you think is "proper", then it's your loss, I wish you good luck finding something that satisfies you.
 
Top