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 Xzeintel
      Hi have been searching for an unlocked vbios for a while now, does anyone have a link?
      MSI GE72 2qf 4720hq version 

    • By Rimzi
      Hey everyone
      I want to flash the bios of my barebone MSI laptop (ms-1762 gt70-0nc) with a modified bios (link:
      ) so is there anything I had to watch for? And how do I flash it(does I think right?
       
      LG Rimzi
    • By Sarafan
      Hey guys,
       
      I have a MSI 16F4 with a 970m GTX and an i7 4800MQ. I get around 80C on my GPU and CPU if I play a game like Darksiders Warmastered, but 90C on my CPU if I play a CPU heavy game like Dota 2. 
       
      So I applied some thermal grizzly conductonaut liquid metal paste on my CPU and GPU about 2 months ago. After I applied it, I noticed that there weren't any changes in the termperature, so I applied a little more paste again and still noticed no changes. I decided to let it be and give it time to settle in. 2 months later, still the same.
       
      Well, last week I thought I'd have another look at it, so I opened it up and sure enough the paste was still liquid and not dried up. I added a tiny droplet more just in case, and yet again I see NO CHANGES in temperatures. I'm fairly sure the paste has been applied correctly, as I've had a look at how several other people have done it on youtube.
       
      Can someone help me with why my CPU is heating up so much? The vents are clean, my laptop is dustless. Sure, I turn up the turbo boost on the fan, but that's just so noisy.
       
    • By chuwengsoon
      Is the MSI Dragon Edition 2 can be upgraded from GTX780M to GTX1070?
    • By SpirtofFreedom
      Hello people of Tech Inferno!
       
      I was wondering if I could install a custom vBios on my MSI GE72 2QC Apache Laptop
      But I'm also wondering if it could brick your system like a normal bios flash.
       
      It's for the GTX 960M 2gb version.
       
      Thanks!
×

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.