win32ss / supermium

Chromium fork for Windows XP/2003 and up
https://win32subsystem.live/supermium/
BSD 3-Clause "New" or "Revised" License
1.9k stars 62 forks source link

Windows XP - Prevent Screensaver When Watching Youtube #574

Open dribgnikcom opened 2 months ago

dribgnikcom commented 2 months ago

On Windows XP, when a YouTube video is playing (or any HTML5 Video on any site), the screensaver initializes.

The expected behavior is that the screensaver should not load.

Please see Thorium-XP - Prevent Screensaver When Watching Youtube #70

IDA-RE-things commented 2 months ago

Hello, my alternative DLL for this browsers for XP has this feature recently added. (and now in testing stage). You can try if it works fine. https://github.com/IDA-RE-things/Chrome-xp-api-adapter/releases

dribgnikcom commented 2 months ago

@IDA-RE-things - thanks for the quick reply. Unfortunately, I get this error when trying to open Thorium:

"The procedure entry point AcquireSRWLockExclusive could not be located in the dynamic link library progwrp.dll"

progwrp

win32ss commented 2 months ago

I am also testing a fix in progwrp. I will release it when it has passed my tests.

IDA-RE-things commented 2 months ago

@dribgnikcom , Its impossible, because it works 100%, with Supermium and with Thorium (I have checked again) If you appered this error, then you renamed files improperly. read readme file inside archive.

dribgnikcom commented 2 months ago

@IDA-RE-things - Yes, I am a moron. I renamed the wrong file in the archive to progwrp.dll. I apologize, and I will test it and report back. Thanks!

dribgnikcom commented 2 months ago

@IDA-RE-things - Ok, I tested with YouTube, but unfortunately the screensaver still activates... Mind you, I'm referring to the screensaver, not the power saving feature which shuts off the screen. I have the screensaver set for 10 minutes and the monitor shut off set for half an hour.

win32ss commented 2 months ago

Try this: progwrp_32.zip

dribgnikcom commented 2 months ago

@win32ss - yes! This one fixes it. Thanks!!!

IDA-RE-things commented 2 months ago

Power*Request functions implemented; registry-based supplement for screensaver blocking as SetThreadExecutionState is insufficient on XP

Previously was only empty stubs in progwrp, returning errors.

I also updated my alternative. It was only initial approach for this. Works now same.