← All posts

Fixing ARGB Lighting on an ASUS Z690 with OpenRGB and PowerShell

RGB lighting is fun until you want it off. On my build (an ASUS ROG Strix Z690-A Gaming WiFi D4), getting the ARGB lighting to do what I wanted turned into a bigger project than it should have been. Here's the fix that finally worked: OpenRGB plus a tiny PowerShell toggle script.

The problem

I wasn't able to control all the argb lights in the case. 

The vendor route usually means installing a manufacturer's control suite. Those suites tend to be heavy, install background services, and sometimes fight with other vendors' software when you mix fans, coolers and RAM from different brands.

The tool: OpenRGB

OpenRGB is a free, open-source RGB controller that works across many brands (motherboards, RAM, GPUs, fans, coolers) from a single app, with no vendor bloat. Most importantly for me, it has a command-line interface, which means it can be scripted.

Setup

  1. Download OpenRGB from the official site and extract it somewhere permanent (for example C:\Tools\OpenRGB).
  2. Uninstall or disable conflicting vendor RGB software. Two programs writing to the same controller is the most common cause of weird behavior.
  3. Run OpenRGB once as Administrator so it can access the SMBus devices (RAM, some motherboard controllers).
  4. Confirm your devices show up. If the motherboard's ARGB header doesn't appear, check the OpenRGB docs for your board. Some controllers need a specific setting or a newer build.
  5. Set up the lighting you want, then save it as a profile (for example on.orp). Make a second profile with everything off (for example off.orp).

The toggle script

I wanted one double-click to flip the lights between on and off. OpenRGB's CLI can load a saved profile with --profile, so the script just keeps track of the current state and loads the other profile.

# Toggle-RGB.ps1 - switch OpenRGB between two saved profiles
$openrgb   = "C:\Tools\OpenRGB\OpenRGB.exe"
$stateFile = "$env:LOCALAPPDATA\rgb-state.txt"

$current = if (Test-Path $stateFile) { Get-Content $stateFile } else { "on" }
$next    = if ($current -eq "on") { "off" } else { "on" }

& $openrgb --profile $next | Out-Null
Set-Content -Path $stateFile -Value $next

Write-Host "RGB is now $next"

Make it one click

  • Create a desktop shortcut with the target: powershell.exe -ExecutionPolicy Bypass -WindowStyle Hidden -File "C:\Tools\Toggle-RGB.ps1"
  • Optionally assign it a keyboard shortcut in the shortcut's Properties.

Apply a profile at startup

If your lights reset on reboot, add a scheduled task (Task Scheduler → At log on) that runs:

"C:\Tools\OpenRGB\OpenRGB.exe" --profile on

Tick Run with highest privileges so it can reach every device.

Troubleshooting

  • Device not detected: run as Administrator, close all vendor RGB apps, and check that your BIOS isn't overriding the lighting.
  • Profile loads, but lights don't change: make sure you saved the profile after configuring every device, and that the file name matches exactly.
  • Works, then stops after an update: vendor software or a BIOS update may have reclaimed the controller. Re-check for conflicts.

Wrap-up

It's a small fix, but it's one of those quality-of-life wins that makes a build feel finished. No vendor suite, no background bloat, and one click to go dark.