This forum is deprecated. Please visit https://github.com/smplayer-dev/smplayer/discussions

Screensaver disabling

Forum to talk about the development of SMPlayer (code, patches...).

Screensaver disabling

Postby Vavooon » Fri May 15, 2015 9:39 am

Hi.
Today i desired to fix SPPlayer's screensaver disable logic.
Currently it sets thread execution state to ES_DISPLAY_REQUIRED when playback starts and returns to ES_CONTINUOUS only after stop, so monitor keeps work in pause.
I wanted to rewrite it in order to avoid such layout.
But i noticed that mpv.exe also requests ES_DISPLAY_REQUIRED and does it better: does not stay in this state during pause.

So i think it would be better to remove screensaver disable logic from SMPlayer and let mpv do this work.
I investigated this issue only in Windows but it looks like mpv disables screensaver in all other OSs: https://github.com/mpv-player/mpv/searc ... CREENSAVER .
Vavooon
 
Posts: 4
Joined: Sat Sep 28, 2013 7:00 pm

Return to Development

Who is online

Users browsing this forum: No registered users and 7 guests