Jump to content
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

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Similar Content

    • By Sarafan
       
      Does anyone have experience with this?

      Some threads I've seen have done it on a 17 inch laptop, I was wondering if it was possible on the 15 inch version as well.

      What issues will I face? I read about having to have a custom BIOS and vBIOS..but also HDMI/audio issues.

      I guess I should also upgrade my CPU, which runs really hot (i7 4800MQ), but not sure another Haswell chip will run any cooler.

      I've used liquid metal and even that hasn't changed temperatures much, it still reaches 93C pretty easily.
    • By fs7halkx2
      Hi,
       
      I own gx740 with i5-430m, 4GB RAM, and I planned to do some upgrades.
       
      Currently I did:
      - upgrade SSD, move HDD to dvd drive space
      - have some unlocked bios (but didn't found usage for it currently)
      - have modified vbios but not sure if the values I've used are good
       
      I was thinking about:
      - upgrading CPU to i7-640M
      - upgrading RAM (not sure which will fit)
       
       
      I would like to also:
      - fix broken/cracked frame around screen, but it wont be easy and cheap I guess?
      - replace screen to something brighter (?) but this will probably not be worth the cost
       
      1) What do you guys think about it? Is it even worth?
      2) I've also see something like 'grain effect' moving grey stripes on same page elements (long time I remember it could be related to faulty bios/vbios)?
    • By zepvalue
      Hello guys,
      Thanks for this incredible forum, I hope I will learn a lot from the gurus ! 

      I am trying to make my eGpu MSI GT X970 work on my laptop   with K1100M integrated GPU. 
       
      This are my specs:
      CPU: 2.7GHz Intel Core i7-4800MQ (quad-core, 6MB cache, up to 3.7GHz with Turbo Boost) PSU : ??? Graphics: NVIDIA Quadro K1100M / Intel HD Graphics 4600 RAM: 32 GB Storage: 1TB

      I got a V8.0 EXP GDC Laptop External Independent Video Card Dock  with the express card version ( I am not really hw savy) and I am looking for a good psu to power my MSI GTX 970 4G  
      Could you kindly suggest a good PSU that i could use to power this GPU ? I am also willing to do as many experiments needed
       
      Thanks for reading my post
      -zepvalue
       
       
       
    • By Ehm-Oh-Tea
      As the title says; is it possible to upgrade the old MSI 16f2 with any pascal card?
       
      Or is the 980M the highest possible?
       
      Looking forward to your answers. Thanks
    • By Xzeintel
      Hi have been searching for an unlocked vbios for a while now, does anyone have a link?
      MSI GE72 2qf 4720hq version 

×

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.