Jump to content
EwinRacing Flash Series Gaming Chairs
TechLab

MSI LED Controller - Linux - Windows - Mac | MSI KLM alternative

Recommended Posts

Hello all,

A developer recently created a node.js project to control the MSI Steelseries Keyboards with javascript.

Since it uses node.js it should be cross OS (windows, mac, linux).

The github repo is here: https://github.com/wearefractal/msi-keyboard

I installed and am successfully controlling my keyboard in Linux Mint 15 64bit :)

Requirements:

Node.js

npm

Here are the instructions: (Linux or mac, windows is similar)

Make a folder called msi-klm (or similar)

now use a text editor to create two files inside the folder. package.json and server.js

in package.json put this minimal code:

{    "name": "led-manager",
"dependencies": {
"msi-keyboard":"*"
}
}

Save the file.

Open the folder in a terminal and run this command:

npm install

That will install the needed module.

Edit server.js

Put this (minimal) code:

var keyboard = require('msi-keyboard');


keyboard.color('left',{color: 'red', intensity: 'med'});
keyboard.color('middle',{color: 'blue', intensity: 'med'});
keyboard.color('right',{color: 'green', intensity: 'med'});

Save the file.

Refer to https://github.com/wearefractal/msi-keyboard for the many other options.

Use the same terminal to run:

sudo node server.js

(on linux or *nix. Open the terminal as Admin in windows)

Your keyboard should be now lit up!

Cheers

  • Thumbs Up 2

Share this post


Link to post
Share on other sites

This is excellent. What a great thought.

Is there any overhead? what kind of system resource usage vs the MSI KLM ?

Share this post


Link to post
Share on other sites
This is excellent. What a great thought.

Is there any overhead? what kind of system resource usage vs the MSI KLM ?

I noticed that in windows 7 the official KLM was using 20k of memory.

This alternative is quite different. It only runs Once when you change a color, pattern, etc. making it much more efficient. (Running once means that as soon as the javascript changes the color it finishes and ends, like javascript on a browser)

Since it uses the node v8 runtime engine, it uses so little memory that when I ran the top command in linux, the ram percentage used on start of the program was 0.0% :D

Cheers

Share this post


Link to post
Share on other sites

Thanks very much for the feedback.

Definately going to look into this as soon as I have my fan control sorted.... :)

Share this post


Link to post
Share on other sites
Confirmed it works, I don't use Linux but could be useful in the future.

Nice, can you post your setup with node? I assume you are using windows

Share this post


Link to post
Share on other sites

I have no idea what I am doing wrong. Build went fine. Followed instructions to the T. When I ran the last command, got this:demented msi-klm # node server.js

Went back to terminal and nothing happened. Keyboard stayed the default color of blue. Any ideas? Here's a pastee of everything I did: MSi LED manager forLinux - Pastebin.com

Thanks

Share this post


Link to post
Share on other sites

This works on a GT-70 under Ubuntu 12.04.4 64 bit. The only trouble I had was getting the correct version of npm and node.js. I had to use the chris-lea repository

Code:

apt-get update

apt-get install -y python-software-properties python g++ make

add-apt-repository ppa:chris-lea/node.js

apt-get update

apt-get install nodejs

After that, following the instructions above, I have a lighted keybord.

Next project, getting it to work on startup

Thanks TechLab

Share this post


Link to post
Share on other sites

Ah, the joy of Arch Linux - I installed node.js via the easy method of "pacman -S node.js"

I have the keyboard automatically colorize on startup via a bash script and xinitrc, but you could do the same with Gnome or KDE Autostart commands.

I also found a Plasma widget text launcher to launch any bash script. As a result, I made 7 different profiles for the keyboard using such scripts. One for off, white, green red, red-hot (intensity to the max), rainbow - Red Green Blue, rainbow2 - Red Yellow Blue. Here's my post on G+ showing what it looks like on my desktop: https://plus.google.com/+JeffHatfield/posts/7PgHE4SVdaP

Now that I think about it, I could link the bash scripts to the QuickLauncher widget and use custom color icons to indicate which keyboard theme I wanted...

I would like to get keyboard mapping much like the Sager laptops have so that I could use my Fn key to cycle through the colors, but have not discovered how to do that yet. My system also has the softkey for eject and I'd like to get that working, but I resorted to mapping it into the text widget using the ">" symbol to indicate eject.

cheers!

Share this post


Link to post
Share on other sites

Thank you Very much for this.. I was wondering on how to change backlit colours on Linux (Scientific Linux)

Share this post


Link to post
Share on other sites

I can't get it working, getting the following error:

post-29256-14494998257876_thumb.png

I tried the steps from MasterMWF aswell and then from the first post, but still getting this, any help?

Share this post


Link to post
Share on other sites

I can't get it working, getting the following error:

[ATTACH=CONFIG]12392[/ATTACH]

I tried the steps from MasterMWF aswell and then from the first post, but still getting this, any help?

Linux Mint 17 cinnamon

Share this post


Link to post
Share on other sites

Hello, I'm working on getting this to work with my MSI - GE60 2PE Apache Pro.

I'm running CentOS 7 on my machine.

So far, I've had to install a couple of extra packages.

npm.noarch

libusbx-devel.x86_84

The follow I'm unsure if they were needed or not.

libusb-devel.x86_64 // running npm install with just this gave me a error, missing an libusb.h

hidapi-devel.x86_64 // installed this as well because libusb-devel.x86_64 was not adequate.

Will update more as I progress.

Share this post


Link to post
Share on other sites

I cannot get past the npm install. I keep getting an error saying something is wrong with node-hid.

Share this post


Link to post
Share on other sites
I cannot get past the npm install. I keep getting an error saying something is wrong with node-hid.

I got the same, cannot get through 'npm install'. It says "npm ERR! weird error 127", and "This is most likely a problem with the node-hid package,

npm ERR! not with npm itself". I`ll be greatfull lfor any help. Thx.

---

Also want to mention, that Im on Ubuntu 14.04 64bit.

Another edit-----------

After few days, I finally ran LEDs on my keyboard - Just follow this steps HERE , and then from the msi-keyboard folder run npm install :) Also I sugested to follow scrpts from THIS site.

Share this post


Link to post
Share on other sites

This works great! I'm so happy to finally be able to control the colors of my keyboard in Linux! I can't seem to get the modes to work though, the node keyboard just goes dark. Has anyone gotten the modes to work for them on Linux? I have a GT70 and I'm running Gentoo Linux. Thanks!

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Similar Content

    • By -GP
      I got a msi ge60 2pf Apache pro & its specs :
       
      Processor-i7 4710MQ
      Ram-16GB 
      VGA- GTX 860M 2GB Maxwell 
       
      Could anyone tell me the best overclock that I could use on this GPU?
      Please keep in mind that the voltage cannot be changed as this is a laptop
       
      Thank you
    • By jonasmsi
      Hey i have an idea to change my old msi gx720 laptop Motherboard to one from a msi gx740 they look to have the same cutouts to screws and both laptops chassis look to be the same with outputs and that so my question is do you guys think it is possible to do it
       
       
      msi gx720 motherboard – Google Søgning                    msi gx740 motherboard – Google Søgning
    • By Hax
      I have tried to update nvidia drivers of my notebook ge72vr6rf apache pro. The only drivers that works are the ones provided by the msi. The problem is that they haven't updated those since 2016 and I can't play newer games. 
       
      Some say you need to mod your 1060 drivers, which I have no idea how to some says you need to update the flags in ini files. So please help me
       
      Thanks for your time.
    • By fibul
      Hello Everyone,
      I am an owner of MSI GT70-20C and my GTX770m gpu i now dead.
      I have a question and i hope someone will help.
       
      I have ordered GTX 970m 6GB DDR5 and i cannot find the exact vBios for that graphic card.
      My current bios version is: E1763IMS.51B
       
      Thanks in advance,
    • By Malik Fasihullah
      Dear modders,
       
      Hope you all are doing well. I wished to ask if someone could guide me for flashing a vbios to the GTX 970M 6GB for to be installed on the MSI GT-683 laptop (with modded GTX 560M heatsink). I need to know how to get a display to be able to flash (also, flash with what software?) if the gtx 970m is of clevo (is the IGPU supposed to work? do i need an unlocked laptop bios?) I intend to buy this GTX 970M : https://www.aliexpress.com/item/4000264805962.html?spm=a2g0o.productlist.0.0.62d77e93DGQl5O&algo_pvid=bccc80d9-9944-4dc3-a1e6-ef3d45bda0e3&algo_expid=bccc80d9-9944-4dc3-a1e6-ef3d45bda0e3-5&btsid=12b502b9-dbe1-4c35-be48-930446a31235&ws_ab_test=searchweb0_0,searchweb201602_3,searchweb201603_53 
       
      Please help it will be of great service to me.
       
      Regards- a new member.
      @Bloetschkopf your expertise please..
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.