Title

Message

Confirm

Want to earn a free DisplayFusion Pro license? We're looking for DisplayFusion translators!
<< DiscussionsReply

Screen fading on a schedule

Toff's profile on WallpaperFusion.com
Hi,

I'm delighted to see the inclusion of screen fading GUI in the latest release of DF.
(which is great, the only bug so far is the dimming flickers when Windows system notifications appear).

I work in a conservatory, so my monitors need to be full brightness during the day, gradually fading as it turns to dusk.

I've been using a piece of software called "Pangolin Screen Brightness" to control this for years. Its a very simple app, so I had to string together batch scripts which altered the registry entry for the dimming value. This was a belts & braces approach but it worked.

Now I'm looking to replicate this in DF. I have seen there are a few functions already scripted (such as "Fade Selected Monitor to Black" by BF's very own Keith Lammers) which presumably could be altered to dim all screens. Its the scheduling I need some advice on please:

SIMPLE APPROACH:
Is it possible to schedule the dimming level to change at set times of the day using functions?

ADVANCED APPROACH:
I use a Z-Wave multi sensor to detect the light level in my conservatory (this alters sporadically due to the cloud cover, rain etc). I use Event Ghost to perform actions when the light levels rise / fall above certain thresholds*. Can I somehow make a procedure call (or command line call etc) to trigger a function to change the dimming level?

Thanks in advance for any advice.

Regards
Al

* For anybody who's interested; I use a SmartApp within the Samsung SmartThings IDE to automatically make a HTTP call to Event Ghost on my PC when the light sensor reaches certain levels. EvenGhost can then run a batch / call or whatever's needed to interface with Display Fusion.
Oct 26, 2017  • #1
Toff's profile on WallpaperFusion.com
PS: It would be great to see some scheduling options in the Fading GUI (and perhaps even some ability to link it to the sunset / sunrise data from weather.com based on your nearest city)

I wish I was clever enough to write a function for this, alas I'm not; so it's a suggestion for a future release :)
Oct 26, 2017 (modified Oct 26, 2017)  • #2
Avatar from Gravatar.com
Michael M
1 discussion post
It sounds like similar functionality to F.lux (scheduled fade times / duration), though not as advanced as what you have set up (kudos on that, btw!) What you are requesting would be a great feature, then I could stop using F.lux and Palingo.

I would also like to add upon this request - It would be nice to have a quick control for changing the dimming percentage, like Palingo does, in the taskbar (fader or a list of values would be nice), since at times, during the faded period, it is necessary to disable / adjust the fade quickly.

Finally, a quick fade from brightness levels (from 100% to 50%, for example) in increments of 10% over 5 seconds would be much nicer on the eyes, rather than a quick 'bam' from 100% to 50%. This is most noticeable when fading the non-active window and switching between them.
Oct 26, 2017 (modified Oct 26, 2017)  • #3
Keith Lammers (BFS)'s profile on WallpaperFusion.com
Thanks for the feedback, guys! Scheduling will be coming hopefully in the next major version. In the meantime, you could duplicate my script, change the fading level in it, and then call whichever one you need via DisplayFusionCommand.exe like so:

"C:\Program Files (x86)\DisplayFusion\DisplayFusionCommand" -functionrun "ScriptedFunctionName"

Hope that helps!
Oct 28, 2017  • #4
Toff's profile on WallpaperFusion.com
Hi Keith,

Please could you point out exactly where i need to change the transparency value and how to remove the screen chooser (as i always want all the monitors to fade.

Code



Many thanks in advance

Al
Oct 10, 2018  • #5
Toff's profile on WallpaperFusion.com
Just a thought...

Would it be easy to get the script to read the previous transparency value and increase or decrease it by a set increment?

That way, I could have just two scripts to tun the brightness up & down

One that has a hotkey of something like
CTRL SHIFT -

and another that has a hotkey of
CTRL SHIFT +

Any guidance appreciated
Al
Oct 10, 2018  • #6
Keith Lammers (BFS)'s profile on WallpaperFusion.com
I'll pass this over to Thomas to answer, as he was the original author of this script
Oct 11, 2018  • #7
Thomas Malloch (BFS)'s profile on WallpaperFusion.com

Sorry for the late response!

I was able to modify the script to be able to listen for the change of transparency value. The only downside is that you'll now need 3 scripts. One to toggle the dimming functionality and listen, another to increase the transparency value, and another to decrease it.

Here's the first script:

Code

Here's the second that will increase the value:

Code

Here's the third that will decrease the value:

Code

I hope this works for you!

15 days ago (modified 15 days ago)  • #8
Was this helpful?  Login to Vote(1)  Login to Vote
<< DiscussionsReply