nagisa / msi-rgb

Linux utility for controlling RGB header on select MSI motherboards
ISC License
418 stars 40 forks source link

works for MSI B450M MORTAR MAX #92

Open Ka-lua opened 4 years ago

Ka-lua commented 4 years ago

All examples work for the board in the title. Finally I can disable the lights ;)

sukerman commented 4 years ago

It doesn't really, it only reacts if you invert the colours, and It pulses if you invert all 3, so here's a fudge :

msi-rgb 0 0 0 -ig -ib # gives red msi-rgb 0 0 0 -ir -ig # gives blue msi-rgb 0 0 0 -ir -ig # gives green

Just inverting two values causes it to set max for the other and doesn't then pulse.

sukerman commented 4 years ago

Here's a script to call every minute via cron to change the colours red/green/blue. Make sure you move the msi-rgb binary to /usr/local/bin so cron can find it

#!/usr/bin/php <?php $m = date("i") % 3; if ($m == 0) { system('/usr/local/bin/msi-rgb 0 0 0 -ig -ib # gives red'); } if ($m == 1) { system('/usr/local/bin/msi-rgb 0 0 0 -ir -ig # gives green'); } if ($m == 2) { system('/usr/local/bin/msi-rgb 0 0 0 -ir -ib # gives blue'); }

sukerman commented 4 years ago

Even better change the 0 to 11111111 to get it cycling between colours

msi-rgb 0 0 11111111 -ig -ib

macgherl57 commented 4 years ago

Is there a way to reduce light intensity? Or to cicle between other colours as well, like cyan, magenta etc.? Also, what is the logic behind putting 0 0 0 for r,g,b values when using -i switch (meaning, what could I achieve by changing those values to some different than 0?)? My mainbord is tomahawk B450, but all that has been said in here applies to it as well. That's why I'd like, if possible, to get answers to my previous questions. Thanks!

bpiero commented 4 years ago

102