Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not mess with DPMS/blanking #139

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

vincentbernat
Copy link
Contributor

This is the job of the DPMS setting. We only stop children when Xss
blanks the screen or when DPMS blanks the screen. The last part is a
bit inefficient as there is no event associated.

This has been discussed in #84.

Also, I am adding another related commit to optionally not kill saver when DPMS kicks in. I can submit it separately if needed (but the code is highly related to this one).

I would prefer to merge #138 first, then rebase (since this is the code that I am actually running).

This is the job of the DPMS setting. We only stop children when Xss
blanks the screen or when DPMS blanks the screen. The last part is a
bit inefficient as there is no event associated.
@vincentbernat
Copy link
Contributor Author

I have force pushed an update to match current master. Unfortunately, I think it means it may break #120 (not sure if we can wake up from DPMS without explicit call to DPMS).

@divVerent
Copy link
Contributor

divVerent commented Aug 14, 2022 via email

@vincentbernat
Copy link
Contributor Author

This has been discussed a bit in #84. However, when using xss-lock, because suspending Xss also suspends DPMS timer, it does not seem possible to have DPMS on while the screen is not locked (unless XSecureLock did not start). But I understand that for other use cases, it may be preferable to let XSecureLock handle all the blanking.

I can put an environment flag if you are OK with it.

@divVerent
Copy link
Contributor

divVerent commented Oct 11, 2022 via email

@vincentbernat
Copy link
Contributor Author

Humm, it seems this setting already exists. XSECURE_BLANK_TIMEOUT could be set to -1. So, no patch needed I think. Looking at the various code paths, I think it does the job.

It still quite an unexpected default and I think this unclear what the goal was. I suppose we could emphasize in the README that the default setup expects XScreenSaver/DPMS to not be enabled by default (in X configuration) and that xsecurelock will handle them. Then, the default setting makes sense.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants