Score:0

Disable Screen Saver for PyVirtualDisplay with xephyr

gb flag

How do I disable the screen saver for PyVirtualDisplay and xephyr?

The closest I've found is https://unix.stackexchange.com/questions/608187/xephyr-server-does-not-have-extension-for-dpms-option which says call “xset s off” from the command line. I'm running Python within an IDE so not sure how to call xset with my Python program.

I'm using CentOS 7, Python 3.9.7, and latest version of rest of packages (e.g., all updates to CentOS and updates to python packages).

My code looks like:

disp=Display(visible=1, ).start()
#selenium tests
… 
 
Score:0
gb flag

Add the "-s 0" to the xephyr command line.
In Python: disp=Display(visible=1, extra_args=['-s', '0']).start()

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.