Page 1 of 2
[Bug] fullscreen doesn't prevent powersaving settings
Posted: 19 Feb 2019, 00:02
by Barbouze
Hi!
When using Maniaplanet/Trackmania(any title) in fullscreen mode and if I don't touch the mouse or keyboard (I use a gamepad), screensaver or the monitor powersave mode will kick in anyway, as they do with any windowed application but don't with other games or media played in fullscreen (VLC, Youtube, etc.)
How to reproduce it:
- set the screensaver to 1mn
- launch maniaplanet in fullscreen mode
- wait 1mn without doing anything... There is the screensaver!
As Written
here, I've deleted Config/Default.SystemConfig.Gbx but the problem is still there.
For investigation if needed, I attacheded my DxDiag.txt and if needed, I would gladly send any other relevant info for debugging this.
Re: [Bug] fullscreen doesn't prevent powersaving settings
Posted: 19 Feb 2019, 10:28
by Miss
Looks like Nadeo is not disabling the screensaver in game.. Nadeo, here's how to do it on Windows:
https://github.com/spurious/SDL-mirror/ ... .c#L66-L73 (Just checked real quick,
that function is not getting called anywhere in the code as far as I can tell.)
Re: [Bug] fullscreen doesn't prevent powersaving settings
Posted: 19 Feb 2019, 21:49
by Barbouze
This is what I thought but as I'm not proficient in debugging it would have been a shot in the dark. Thanks for investigating!
Stupid question, then:
if Nadeo has done this intentionally for whatever reason, would a mod/script have enough leverage from inside Maniaplanet to periodically call SetThreadExecutionState(ES_DISPLAY_REQUIRED); and prevent any powersave method?
For the now I'll continue to use my (first and stupid) AutoHotKey script that fakes mouse clicks.

Re: [Bug] fullscreen doesn't prevent powersaving settings
Posted: 20 Feb 2019, 09:25
by Miss
Yep, I could add it with Openplanet, but I'm not sure I should be the one implementing this..

Re: [Bug] fullscreen doesn't prevent powersaving settings
Posted: 20 Feb 2019, 22:03
by Barbouze
Miss wrote: ↑20 Feb 2019, 09:25
Yep, I could add it with Openplanet, but I'm not sure I should be the one implementing this..
Of course you shouldn't, let's wait for Nadeo's stance on that matter.

Re: [Bug] fullscreen doesn't prevent powersaving settings
Posted: 04 Mar 2019, 23:21
by Barbouze
Still happening with the latest update

Re: [Bug] fullscreen doesn't prevent powersaving settings
Posted: 04 Apr 2019, 20:12
by Barbouze
Gentle bump, nothing has changed with the latest update.

Re: [Bug] fullscreen doesn't prevent powersaving settings
Posted: 05 Apr 2019, 09:04
by Alinoa
Hi Barbouze,
First ot all thank you for your report
There is currently no option for disabling the screensaver in game. However your report raised the question of adding a feature for disabling it or not. So the AutoHotKey script that fakes mouse clicks is a good option for the moment. Does this option works for you as well:
https://support.microsoft.com/en-gb/hel ... is-running?
Re: [Bug] fullscreen doesn't prevent powersaving settings
Posted: 05 Apr 2019, 21:02
by Barbouze
Hi!
Thanks a lot for this answer!
I don't use hibernate (which is what your fix refers to) but suspend-to-ram (after 30mn). Before that, my screen goes to sleep (after 10mn) and this is the later that bugs me.
A powercfg based script could work too though in the meantime so I'll have a look at it, thanks for the reminder

Re: [Bug] fullscreen doesn't prevent powersaving settings
Posted: 06 Apr 2019, 10:30
by Miss
I added an option for this in the next Openplanet update:
