Log In  
Log In  

PICO-8 seems to disable the OS screensaver all the time, not just when playing a cart, which is the only time it really needs to, as far as I would guess for most use-cases.

This means if I am using the editor tools to work on a cart, and I walk away for a while, my monitor stays on the whole time, using way more precious electrons than it needs to :O

So feature request: either a config-file option to never disable screensaver, or (ideally) have it only disable the screensaver when running a cart or something :)

P#53748 2018-06-23 19:11 ( Edited 2018-06-24 16:10)

I don't know what OS you're using, but I had this problem myself with Windows and found that it happens because PICO-8 is actively using the computer's audio device and many audio drivers are set to prevent the computer from sleeping when they're in use.

Obviously the ideal solution would be for PICO-8 to stop using the audio device when your not using the sound effects or music editor, but you can override the audio driver's request to stay awake in Windows by using the command line.

To list everything that is requesting that Windows stays awake type:

powercfg -requests

You should see something like this:

[DRIVER] Realtek High Definition Audio (HDAUDIO\FUNC_01&VEN_10EC&DEV_0892&SUBSYS_1043860B&REV_1003\4&165326bb&0&0001)
An audio stream is currently in use.

Then to override it you use the name of the driver like so:

powercfg -REQUESTSOVERRIDE DRIVER "Realtek High Definition Audio" SYSTEM
P#53755 2018-06-24 10:52 ( Edited 2018-06-24 14:54)

oh interesting. I don't know if audio keeps it awake in Linux (I use Ubuntu 18.04); I just assumed PICO-8 was using the SDL DisableScreensaver call, on purpose. I do heavily use the SFX and Music editors though, and use an external text editor for the code, so if screensaver was only disabled when the SFX editor is up, it wouldn't do me any good since I pretty much always have that up :p

P#53760 2018-06-24 12:10 ( Edited 2018-06-24 16:12)

[Please log in to post a comment]

About | Contact | Updates | Terms of Use
Follow Lexaloffle:        
Generated 2019-05-25 18:14 | 0.013s | 2097k | Q:14