• Stars
    star
    417
  • Rank 103,829 (Top 3 %)
  • Language
    Rust
  • License
    ISC License
  • Created over 7 years ago
  • Updated over 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Linux utility for controlling RGB header on select MSI motherboards

USE OpenRGB INSTEAD

This project is not actively maintained. No support for additional boards will be added.

At the time of writing OpenRGB is actively maintained and supports variety of devices, including MSI boards with code adapted from this project. Just use that. If it doesn’t work, this tool won’t work either. If it doesn’t support functionality this tool does, consider porting similar functionality to OpenRGB.


Utility for controlling RGB header on MSI boards

How this utility came to be

This utility not only works on any linux system you find around, it also is much more flexible than the 7 colours MSI’s own Gaming App. Futhermore, unlike the MSI’s utility, this does not make your system vulnerable to anybody who cares to fiddle around the system.

  • Linux (/dev/port, might work on WSL?) or FreeBSD (/dev/io);
  • Only MSI motherboards with NCT6795D super I/O chip;
    • Run a recent version of sensors-detect to check if you have this chip;
  • No warranty whatsoever (read the license);
    • If you find your board misbehaving, try clearing CMOS;

Reportedly Working boards

  • B350 MORTAR ARCTIC
  • B350 PC MATE
  • B350 TOMAHAWK
  • B360M GAMING PLUS
  • B450 GAMING PLUS AC
  • B450 MORTAR
  • B450 TOMAHAWK
  • H270 MORTAR ARCTIC
  • H270 TOMAHAWK ARCTIC
  • X470 GAMING PLUS
  • X470 GAMING PRO
  • Z270 GAMING M7
  • Z270 SLI PLUS
  • Z370 MORTAR
  • Z370 PC PRO
  • Z270 GAMING M6 AC (confirmed to correctly disable LEDs only)
  • B450M Mortar Titanium (with some caveats)
  • B360 gaming plus (colours inverted)
  • Z390 Gaming Plus (#116)
  • b450m pro-vdh max (#114, #109)
  • B450M GAMING PLUS (#112)

How to compile and run

To compile this project you’ll need rustc and cargo. Get them at your package manager or here.

Then:

git clone https://github.com/nagisa/msi-rgb
cd msi-rgb
cargo build --release

You’ll need root to run this program:

sudo ./target/release/msi-rgb 00000000 FFFFFFFF 00000000 # for green

The hexa numbers represent each color as a sequence in time per byte so 4 change of colors.

sudo ./target/release/msi-rgb FF000000 00FF0000 0000FF00 # this makes red then green then blue then off then red etc..

Run following for more options:

./target/release/msi-rgb -h

Examples

Heartbeat

sudo ./target/release/msi-rgb 206487a9 206487a9 10325476 -ir -ig -ib -d 5

animation of pulse

Police

sudo ./target/release/msi-rgb -d15 FF00FF00 0 00FF00FF

animation of police

Happy Easter

From colourlovers

sudo ./target/release/msi-rgb 58e01c0d 504fdcb9 e4aa75eb --blink 2 -d 32

animation of happyeaster

Hue wheel (t HUE, 0.9 SATURATION, 1.0 VALUE) (REQUIRES PYTHON)

animation of hue wheel

echo -e "import colorsys, time, subprocess\ni=0\nwhile True:\n  subprocess.call(['target/release/msi-rgb', '-d511'] + list(map(lambda x: ('{0:01x}'.format(int(15*x)))*8, colorsys.hsv_to_rgb((i % 96.0) / 96.0, 0.9, 1))))\n  time.sleep(0.1)\n  i+=1" | sudo python -

Implementation

For implementation details, including the registers used by super I/O and their meanings see the comment in the src/main.rs file.

License

Code is licensed under the permissive ISC license. If you create derivative works and/or nice RGB schemes, I would love to see them :)

More Repositories

1

rust_libloading

Bindings around the platform's dynamic library loading primitives with greatly improved memory safety.
Rust
1,222
star
2

rust_tracy_client

Tracy client libraries for Rust
C++
165
star
3

django-bfm

[Not really maintained anymore] BFM is an Apache Licenced server file manager for Django made with ease of use and new web technologies in mind.
Python
40
star
4

math.rs

Implementation of libm in rust
Rust
33
star
5

rust_rdrand

An implementation of random number generator based on rdrand instruction
Rust
25
star
6

Manga-Fox-Grabber

GUI to download manga from mangafox, make it into PDF, and maybe read in your EBook reader.
Python
11
star
7

tokio-periodic

Asynchronous, periodic, mostly zero cost cross-platform timers
Rust
9
star
8

unicodeblocks

Python module for unicode blocks.
Python
9
star
9

marksman_escape

HTML escaping and unescaping in Rust
Rust
7
star
10

psm

Portable stack manipulation and introspection routines
Assembly
7
star
11

e4rat-preload-lite

More efficient way to preload e4rat file lists.
C
5
star
12

s3-directory-listing

Static S3 directory listing generator
Python
4
star
13

gnome-shell-theme-min

A GNOME-Shell theme without bells or whistles
Shell
3
star
14

Feeds

Feed Reader for GNOME.
Python
3
star
15

llvm_build_utils.rs

LLVM build utils for cargo build scripts
Rust
2
star
16

kazlauskas.me

My website. Built with Hakyll, Nix and other good stuff.
Haskell
2
star
17

target_build_utils.rs

Utility crate to handle the `TARGET` environment variable passed into build.rs scripts
Rust
2
star
18

django-localflavor-lt

Country-specific Django helpers for Lithuania.
Python
1
star
19

obis

Work with OBIS codes as defined by the IEC 62056-61 standard
Rust
1
star
20

prefix-sum-vec

Rust library for compressed storage for highly repeating elements, with O(log n) lookups
Rust
1
star
21

QLCoverArtReimagined

Automatically fetch covers from Last.fm and MusicBrainz. Plugin for quodlibet.
Python
1
star
22

nixpkg-openhab

A no-frills automatically-updated package of OpenHAB for nix
Nix
1
star
23

node-red-dsmr

DSMR stream demux nodes for NodeRED
TypeScript
1
star