MSIKLM
MSIKLM copied to clipboard
Install on Fedora
Hello, Thanks for your software. Is there any way to install it on Fedora / RedHat based systems ? Thanks.
Hello, I think it should work without any problem. You only need to install the libsub package (called something like libusb-dev-*) download the repo and compile it by running 'make'. If something is missing or incorrectly configured, simply post the error message here and I'll try to help to fix the error.
I get this error on Fedora
make
gcc -m64 -pipe -O3 -Wall -W -D_REENTRANT -c src/main.c -o .obj/main.o
In file included from src/main.c:10:
src/msiklm.h:15:10: fatal error: hidapi/hidapi.h: No such file or directory
15 | #include <hidapi/hidapi.h>
| ^~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:38: .obj/main.o] Error 1
The error occurs because the libusb package is either not installed or its install path is missing in the makefile's include directory. So first make sure that the libusb-dev equivalent package is installed (it's important to also install the header files and not only the libraries, i.e. the '-dev' package is required) and if the error still occurs, adjust the makefile's include directory accordingly.
Having the same issue and I installed libusb and libusb-devel
localhost MSIKLM]$ make gcc -m64 -pipe -O3 -Wall -W -D_REENTRANT -c src/main.c -o .obj/main.o In file included from src/main.c:10: src/msiklm.h:15:10: fatal error: hidapi/hidapi.h: No such file or directory 15 | #include <hidapi/hidapi.h> | ^~~~~~~~~~~~~~~~~ compilation terminated. make: *** [Makefile:38: .obj/main.o] Error 1
Fixed it.
sudo dnf install -y hidapi hidapi-devel
I only get the three colours across my keyboard when I do sky, yellow, purple orange. Red, Blue, Green, don't work and none of the breathe or wave effects work.
I have a GT70 running fedora 31
First of all it's good to know that it is at least partially working. You should try to add the intensity argument (i.e. 'sudo msiklm green high' instead of 'sudo msiklm green') because the explicit intensity argument will use a different command structure - maybe this one is working on your notebook. Check out the readme or the set_color function in msiklm.c for more information about it.
The intensity works and I get what seems to be all the colours working now. I still have not gotten the modes like wave or breathe to work so not sure if this requires some fixes or it just won't work on fedora. It used to work with the factory OS.
I would also like to say thank you for your efforts in putting this repo together and sharing it. Let me know if there is something I can do to help in the future.
Honestly, I don't know why they should work on one distro but not on the other - the hardware supports it and my code is obviously the same - maybe the libusb/hiapi package does something differently? But this is only spectaculating... But of course, combine it with the intensity if you also set the color and still it might be worth a try to do it in two calls: First set the color (sudo msiklm green high or whatever color configuration you want to use) and thereafter only set the mode in a second call (sudo wave).
@Gibtnix Thanks for your help. So I tried that and read through the help and everything but for some reason modes won't work properly on the GT70. Not sure if this is something that can come in a later update but it would be cool if we could 1. add dnf support and 2. potential fix what the issue is with getting modes to work on GT70 and/or similar model.
Great work with this and thank you again for being active and responding.
No problem, you're welcome. For the modes it might be possible to verify whether or not it works on Windows using the SteelSeries Engine (in case you are on a dual-boot setup) and if so, maybe try to analyse the communication with the keyboard with tools like Wireshark. Still, this can also be slightly complicated. Alternatively, the mode argument is only a single byte. Thus, it is possible to explicitly test all 255 values (maybe with a 5 seconds pausing in between or so) and check if any of them work. However, I don't know if that can somehow cause any damage if you send nonsense commands....
It works on windows with every mode and colour combination.
I will try to play around with some things and see. I will also set up wireshark and see. Been busy this week so I might get around to it later on.
So modes are working now but I am not entirely sure what made it work. I reinstalled fedora and I used the ./install.sh this time around install of building manually. I have tested WAVE and BREATHE and both work. Thank you @Gibtnix
Alright, glad that it was something that could be fixed :+1:
@Gibtnix Can we add support in `install.sh``` for Fedora and Redhat/Centos 7/8 I tried committing a few short lines for this but I don't have permission to.
Sure, you're welcome to extend the functionality. You can either create a pull request or alternatively adjust the file accordingly and attach it here. Thereafter, I will update the file in the repository.