Corsair Vengeance Disable RGB on suspend Linux

I have a new setup with a Ryzen 9900X and 4x16gb Corsair Vengeance Dominator DDR5. It comes with RGB lights, which are nice, but they do not turn off when you suspend your Linux machine.

On Ubuntu 24.10, I did the following to turn them off when entering sleep mode:

  • Install OpenRGB from https://gitlab.com/CalcProgrammer1/OpenRGB/-/releases
  • For Ubuntu 24.x You’ll need Debian BookWorm version.
  • Install using:
    • sudo dpkg -i your.deb
    • sudo apt-get install -f (to fix dependencies, probably a better way exists but I don’t know)
  • You can start openrgb and fiddle a bit around, to see if it supports your devices
  • Add a script to /lib/systemd/system-sleep dir:
#!/bin/sh

case "${1}" in
   pre)
	openrgb --color 000000
      ;;
   post)
	openrgb --color ff9900
      ;;
esac

The pre part will run when suspend starts, the post part will run when it resumes again.

Make sure to make the script executable by running: sudo chmod +x your-script.sh

So this scripts calls openrgb with the color 00000 which is black, which is interpreted as turn off leds. It will apply to all led devices openrgb supports. When it resumes it sets the leds to orange. You can ofcourse change that in the script, target specific devices etc.

Unfortunately I could not find a way to restore the original wave function that is the default for Corsair. I guess openrgb doesn’t support that. I’ll fiddle a bit more, maybe there is a way to reset to default that i haven’t found yet.

Anyway, happy turning off your leds!

Scroll to Top