I'd like to write a program on Linux / X11, that just displays some photos for several seconds. It displays one photo at a time, waits some seconds and then displays the next.
The whole program would be pointless if the screen saver or any power management would kick in.
I would expect there is any API / function call to achieve this, but I did not find any. From other programs I know that what I want is achievable: If I watch a long clip on YouTube, no screen saver comes in, if I pause the video, the screen saver gets activated after some time.
How can I disable any screen saver AND any power management related switch off of the monitor I use?
Is there any API in X11 or anywhere else for this? Would I need to emit fake keyboard presses?
Thanks for any hints.