Open etrigan63 opened 5 years ago
hey @etrigan63 , you need to type 'npm install' before attempting to run. the dependency you're lacking is 'command-line-args' but it's in the package.json, so you must have not run 'npm install'. Let me know if there's any other issues.
OK, that worked. Next questions: How does one modify the udev rules to allow the user to run the app without sudo? How do you save the settings so that I don't have to leave a terminal running all of the time? When I quit the fans turn off.
@etrigan63 Try this as a udev rule, I placed mine in /etc/udev/rules.d/85-corsair.rules, but I am using ubuntu and I'm not sure if there's any differences in what you're using:
SUBSYSTEM=="usb", ATTR{idVendor}=="1b1c", ATTR{idProduct}=="0c0b", MODE="0666"
As far as "save the settings" goes. This is not possible with these fans, you either are constantly pushing a color or animation, or it's off or in the default "rainbow wave" state. It should be very low CPU, but the process would have to remain running to keep your color/animation scheme. It's the same way in Windows if you sniffed the USB traffic, you'd be constantly seeing it sending. As a workaround, you could always toss it in systemd/sysv init to start at boot.
Hope you find what you're looking for.
Thanks again. The udev rule worked and I have added the node command to my autostart.sh (I use Awesome WM on Arcolinux (Arch)) and hopefully it should launch at next boot. I am still running it out of git folders, perhaps you can suggest a more stable way to deploy it. This is my first experience with node.js and I am not familiar with it.
I wrote it more as a proof-of-concept more than any sort of serious system service, and because I couldn't stand that it could not be controlled or turned off (from rainbow wave) in Linux, so I think this is as good as it's going to get without someone else contributing some legwork.
I think it'd be great if someone worked through the various models of controllers/fans and unified a display/animation system for it, but I doubt I'd be able to carry that torch.
I'm glad it worked for you though!
I cloned the project and attempted to run it from my Arcolinux system and got the following error:
I am obviously missing some component to enable it to run. What it is, I do not know.