PCem disabling host's screen saver/power saving

Support and general discussion.
Post Reply
User avatar
VileR
Posts: 10
Joined: Sun 23 Dec, 2018 6:18 pm

PCem disabling host's screen saver/power saving

Post by VileR »

In Windows 10, if I happen to have PCem running, it prevents the screen saver (which also locks the machine) from kicking in:

Code: Select all

The program has made a request to prevent the display from automatically entering a low-power mode.

Requesting Process 	\Device\HarddiskVolume8\emulators\PCem_v17\PCem.exe
This happens even if PCem isn't currently in the foreground, which is kinda silly. Could that be fixed in the future? Or made controllable via a config option?
User avatar
leilei
Posts: 1039
Joined: Fri 25 Apr, 2014 4:47 pm

Re: PCem disabling host's screen saver/power saving

Post by leilei »

SDL2 does have a screensaver-disabling function and disables screensavers by default.
User avatar
VileR
Posts: 10
Joined: Sun 23 Dec, 2018 6:18 pm

Re: PCem disabling host's screen saver/power saving

Post by VileR »

Yup, thanks for the wiki link - I set an environment variable SDL_VIDEO_ALLOW_SCREENSAVER=1, and problem solved.

It'd still make sense for PCem set the desired behavior explicitly... but at least there's a workaround.
Post Reply