It is currently August 18th, 2019, 5:52 am
Get help with installing and using Rainmeter.
2 posts • Page 1 of 1
- Posts: 1
- Joined: June 6th, 2019, 8:01 pm
The visualizer is constantly triggering my audio driver that is preventing my PC to enter in sleep mode, anyone knows what I can do to maybe hide the visualizer after being not in use or whatever just to enable auto sleep again?
- Rainmeter Sage
- Posts: 8532
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
A first possibility is to deactivate the skin whenever it is not in use. This way you can avoid the problem, however next time you want to use it you have to reload it manually. If this solution will be good enough for you, later we can try to find a solution to this problem as well, so first please try it:
Identify the parent AudioLevel plugin measure in your code. That's probably the first plugin measure having the option set. All other this kind of measures have to have a option.
If you found the needed measure, add the following options to it:
These options will wait 5 seconds (due to the bang) then will deactivate (unload) the skin, when the audio level decays to zero.
Code: Select all
DynamicVariables=1 IfCondition=([#CURRENTSECTION#]=0) IfTrueAction=[!Delay "5000"][!DeactivateConfig]
You can modify the waiting time if you want, replacing the above value. It is expressed into milliseconds.
As I said, the disadvantage of this method is that once the skin unloaded, it is never reloaded, unless you're reloading it manually. It is unloaded even if you pause the music playing or there is a longer silence while playing. We'll try to avoid this cases a little bit later, but first please try what I've described here, to see if this is feasible way to achieve what you want.