[Bug] fullscreen doesn't prevent powersaving settings

Moderator: English Moderator

Barbouze
Posts: 12
Joined: 15 Oct 2011, 16:27

[Bug] fullscreen doesn't prevent powersaving settings

Post 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! :teub:

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.
Attachments
DxDiag.txt
(43.64 KiB) Downloaded 103 times
User avatar
Miss
Posts: 2151
Joined: 05 Jan 2016, 11:34
Location: The Netherlands
Contact:

Re: [Bug] fullscreen doesn't prevent powersaving settings

Post 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.)
3080 RTX, Ryzen 3700X, 32GB RAM, Windows 11
Forum moderator, opinions are my own. :thx:
Check out Image openplanet, the alternative ManiaPlanet & Turbo scripting platform! (Openplanet subforum)
I also stream and tweet.
Barbouze
Posts: 12
Joined: 15 Oct 2011, 16:27

Re: [Bug] fullscreen doesn't prevent powersaving settings

Post by Barbouze »

Miss wrote: 19 Feb 2019, 10:28 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.)
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! :thx:

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. :pil
User avatar
Miss
Posts: 2151
Joined: 05 Jan 2016, 11:34
Location: The Netherlands
Contact:

Re: [Bug] fullscreen doesn't prevent powersaving settings

Post by Miss »

Yep, I could add it with Openplanet, but I'm not sure I should be the one implementing this.. :P
3080 RTX, Ryzen 3700X, 32GB RAM, Windows 11
Forum moderator, opinions are my own. :thx:
Check out Image openplanet, the alternative ManiaPlanet & Turbo scripting platform! (Openplanet subforum)
I also stream and tweet.
Barbouze
Posts: 12
Joined: 15 Oct 2011, 16:27

Re: [Bug] fullscreen doesn't prevent powersaving settings

Post 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.. :P
Of course you shouldn't, let's wait for Nadeo's stance on that matter. :-|
Barbouze
Posts: 12
Joined: 15 Oct 2011, 16:27

Re: [Bug] fullscreen doesn't prevent powersaving settings

Post by Barbouze »

Still happening with the latest update :!:
Barbouze
Posts: 12
Joined: 15 Oct 2011, 16:27

Re: [Bug] fullscreen doesn't prevent powersaving settings

Post by Barbouze »

Gentle bump, nothing has changed with the latest update. :!:
User avatar
Alinoa
Posts: 4582
Joined: 14 Jun 2010, 11:55
Location: France, Paris
Contact:

Re: [Bug] fullscreen doesn't prevent powersaving settings

Post by Alinoa »

Hi Barbouze,

First ot all thank you for your report :thumbsup:
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?
Ubisoft Support
Your Player Page

More information about maniaplanet, support, contents, community activities: useful links

ManiaPlanet technical documentation portal (Dedicated server, Mediatracker, ManiaLink, ManiaScript, Titles...)
Barbouze
Posts: 12
Joined: 15 Oct 2011, 16:27

Re: [Bug] fullscreen doesn't prevent powersaving settings

Post 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 :thumbsup:
User avatar
Miss
Posts: 2151
Joined: 05 Jan 2016, 11:34
Location: The Netherlands
Contact:

Re: [Bug] fullscreen doesn't prevent powersaving settings

Post by Miss »

I added an option for this in the next Openplanet update:

Image
3080 RTX, Ryzen 3700X, 32GB RAM, Windows 11
Forum moderator, opinions are my own. :thx:
Check out Image openplanet, the alternative ManiaPlanet & Turbo scripting platform! (Openplanet subforum)
I also stream and tweet.
Post Reply

Return to “MP4.1 REPORTS / BUGS / INFORMATION”

Who is online

Users browsing this forum: No registered users and 1 guest