Saturday, June 20, 2015

HID and MSI keyboards

MSI keyboards

I have a MSI GS60 Ghost Pro 2QE I’m very proud of. It’s sexy and powerful. It comes with a fancy and configurable backlit keyboard.

There’s a tool called SteelSeries Engine for Windows we can use to change the colors of the keyboard. It supports several features:

  • changing colors of three parts of the keyboard (left, middle and right) ;
  • changing modes (normal, breathe, wave, demo, gaming).

Unfortunately, that software doesn’t work on Linux, even with wine. I tried hard to make it work and never actually found a way to run it. Then, I decided to look for alternatives and… found nothing working.

Yesterday, I tried a node.js-powered tool called msi-keyboard. And it worked. However, the interface and user interface was not my cup of tea. I decided to dig in in order to understand how it works, and I decided to write my own tool with a decent interface.

HID access

The key idea is that such keyboards are just HID devices. As a Haskell programmer, I looked for something that would grant me access to such devices, but nothing was working. There’s a hidapi package, but it doesn’t work and has bugs.

I didn’t give up though. I wrote my own Haskell HID API binding, called hid. Several good things about it:

  • it does work ;
  • it’s simple ;
  • I lately wrote a software using it.

Feel free to install and use it!

msi-kb-backlit

Then, I wrote another Haskell package, msi-kb-backlit. It might require super user rights to work. If you’re not a Haskeller, you can find installation details here.

Note: if you use Archlinux, you can directly download msi-kb-backlit through the AUR! Search for msi-kb-backlit with yaourt, or download the tarball.

The software has an embedded documentation to help you tweak with colors and modes. ;)

Feel free to use all those pieces of software. I made them with love for you all!

Enjoy your week end, and keep the vibe!

28 comments:

  1. Useful information shared. I am very happy to read this article. Thanks for giving us nice info.
    gaming keyboard

    ReplyDelete
  2. Heh...I just knew someone would make a better answer for this...

    ReplyDelete
  3. hey do you think HID keyboard device can make my steelseries ps/2 keyboard didn't work. bc the light color won't change even I restart my laptop. can you help me?
    I'm using win 10

    ReplyDelete
  4. What a fantabulous post this has been. Never seen this kind of useful post. I am grateful to you and expect more number of posts like these. Thank you very much.
    top-5-best-gaming-keyboards

    ReplyDelete
  5. Great things put in this blog, thank you so much for sharing with us this informative blog. Visit Ogen Infosystem to get creative and responsive website designing services.
    SEO Service in Delhi

    ReplyDelete
  6. Amazing blog, thank you so much for sharing with us. Get the best Shipping Services by Y&H Cargo India.
    Shipping Company in India

    ReplyDelete
  7. Nice Information presented you by this blog, thank you so much for sharing this informative blog. Visit for Mutual Find Schemes and Advisors.
    Best Performing Mutual Fund

    ReplyDelete
  8. Nice Blog, Visit for the daily lifestyle activities and about Health, Wealth and Lifestyle Events by Lifestyle Magazine in India.
    Lifestyle Magazine India

    ReplyDelete
  9. Visit for the Commercial Vehicle Wrap and Vinyl Signage Printing Services by Kalakutir Pvt Ltd.
    Vinyl Signage Printing

    ReplyDelete
  10. Really appreciate this wonderful post that you have provided for us.Great site and a great topic as well i really get amazed to read this 토토

    ReplyDelete
  11. Admiring the time and energy you put into your site and in depth information you offer. It’s awesome to come across a blog every once in a while that isn’t the same outdated rehashed information. Excellent read! Feel free to visit my website; 카지노사이트

    ReplyDelete
  12. webgirls When it comes to battling candidiasis, patients often times have their operate cut out for these people. This is because candidiasis can easily grow to be persistent and on-going. Bearing that in mind, in this article, we are going to current a wide range of among the best confirmed candida albicans treatment and elimination suggestions about.

    ReplyDelete
  13. https://gameeffect.xyz A lot of people have loved this game of baseball for several years. There are actually fans around the world, from dedicated tiny-leaguers to die-challenging spectators. This information has suggestions to demonstrate how pleasant baseball is really.

    ReplyDelete
  14. https://gamezoom.xyz Finding a exercise spouse can drastically improve your muscles-creating effects. Your lover could be a important method to obtain determination for sticking with your exercise routine treatment, and driving anyone to increase your initiatives while you exercise. Having a reputable spouse to sort out with can also help make you stay risk-free since you will possess a spotter.

    ReplyDelete
  15. 仮想 通貨 カジノ You can see them on publications and so on Tv set, individuals who seem like their biceps and triceps and thighs will explode his or her muscles are extremely big! There is no need that you can acquire your system for that levels when you don't desire to, as the simple techniques on this page will assist you to create muscle within a wholesome approach.

    ReplyDelete
  16. I would recommend your website to everyone. You have a very good gloss. Write more high-quality articles. I support you. 텍사스홀덤사이트

    ReplyDelete
  17. This is a really very informative article, there is no doubt about it. Thanks for sharing this article with us. 스포츠토토

    ReplyDelete