![]() When watching a YouTube Video, 1minute after the video ends, is when the screensaver will turn on, regardless of how long the youtube video is, even if it's e.g. ![]() Is there no way to do this in modern versions of MacOSX? Chromium currently exhibits the exact feature that I desire. But, if no frame gets rendered in a 1minute interval, the screensaver should be displayed. Because, the timer should be reset every single time a framebuffer gets rendered. I need to simply reset the 1min screensaver timer. Often it's said that IOPMAssertionRelease should only be called after the screen no longer wants to be held awake, but I don't think that's the functionality I need. When I set my screensaver to 1minute, but run the above code in a loop at 60FPS, the screensaver still turns on eventually. However, neither of these in my testing appear to actually reset the MacOSX Screensaver timer. IOPMAssertionRelease(power_assertion_id) Or IOReturn result = IOPMAssertionCreateWithName( KIOPMUserActiveLocal, &activity_assertion_id) IOReturn r = IOPMAssertionDeclareUserActivity(CFSTR("FractalUserActivity"), In modern versions of MacOSX, the most commonly recommended solution is: static IOPMAssertionID activity_assertion_id = kIOPMNullAssertionID ![]() In older versions of MacOSX, one would use UpdateSystemActivity(UsrActivity)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |