-
-
Notifications
You must be signed in to change notification settings - Fork 267
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dynamic Lighting Support #893
Comments
You can do it manually with scripts and powershell in the mean time, I have one like this for example below. The registry location for the devices is in The names of the devices aren't listed anywhere in the entries, and it seems that device entries stick around even if they're not active or they change or something, so you'll need to do some trial and error to figure out which is which. You can just do that by setting some specific brightness per device in the Dynamic Lighting menu and see which registry entry updates to that 'Brightness' property value. My script just purely changes the brightness but you could also have other commands that change color and stuff. Also since the YAML apparently can't have variables the best I could do to make it easier to edit the script was powershell variables, but that requires setting the variables twice, in both ArgsLight and ArgsDark, but it's just an extra copy paste. Maybe the devs could add support for creating custom variables in the yaml itself that get expanded before the commands are run, so they could be set in one place.
Edit: Optimized the script |
@ThioJoe Thank you! That was very helpful! I edited the script to this:
That worked perfectly. Can I also add another script to open OpenRGB (it's an app that control's my GPU's RGB) at night and close OpenRGB in the day? I'm a noob when it comes to scripting. |
Actually, I'm looking more at how OpenRGB works and I don't think just opening it and closing it will work for what I want. RGB is too complicated. |
@ThioJoe Ok. I figured it out. I've got OpenRGB opening at login and loading the rainbow profile for my GPU. WindowsAutoDarkMode can can close OpenRGB at sunset, then it will switch to my orange profile. Could you show me how to add that to my script? Just close the app OpenRGB at sunset. I'd really appreciate it! |
I think you could probably just add a line to the ArgsDark section using this:
So you could put it above the line that sets the registry value so those few lines now look like:
Basically the way I have the script is each line effectively chains together multiple powershell commands into one. The semicolon and space All that being said, I would try experimenting with whether you can get everything working purely with dynamic lighting instead of having to use OpenRGB at all. |
@ThioJoe Thanks! I tried it and it does indeed close OpenRGB. But for some reason, it doesn't load my orange preset when powershell closes it. If I exit the program myself, it loads my preset. Weird. Not sure there's gonna be any way to automate the GPU's RGB. |
If it's an Nvidia card then yea it doesn't detect mine either, I assume it's not supported yet by the dynamic lighting feature. As for why the colors aren't loading, it's hard to say for sure without sitting in front of it myself. By 'profile' you mean the windows dynamic lighting colors right? Or that when OpenRGB re-opens it doesn't load the profile? Either way yea seems weird, can't think of a reason for it doing that 🤔, maybe it takes time for OpenRGB to stop and release control. I would try adding a delay between stopping the process and updating the dynamic lighting like this. (I'd first try a long time like 10 seconds just to be sure it makes a difference, then shorten it as much as you can by trial and error):
You could also I would try messing around with different settings in the dynamic lighting like disabling "compatible apps in the foreground always control lighting" maybe. |
@ThioJoe I have 2 profiles set up in OpenRGB: rainbow and orange. OpenRGB starts when I boot up and loads rainbow. I've also enabled a setting that loads the orange profile when I close OpenRGB. Stop-Process wasn't correctly loading orange, but I found that taskkill does load the orange profile. Unfortunately, I can't seem to get AutoDarkMode to use taskkill when I restart my PC at night. For some reason, it just doesn't seem to actually do taskkill, whether I tell it to sleep first or not. At this point, I think I just need to hope that AutoDarkMode or OpenRGB will add some functionality for this. Thank you for all your help! |
Windows Personalization settings includes Dynamic Lighting, which controls your computer's RGB lights. Unfortunately, it doesn't link these settings to Themes, so theme switching can't change Dynamic Lighting settings.
I was wondering if Windows-Auto-Night-Mode could change Dynamic Lighting settings. For my use case, I just want the setting disabled during the day and enabled at night. Could that be added to your app?
Thanks!
The text was updated successfully, but these errors were encountered: