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

Way to turn screen off #1129

Closed
airstep opened this issue Mar 19, 2017 · 4 comments
Closed

Way to turn screen off #1129

airstep opened this issue Mar 19, 2017 · 4 comments

Comments

@airstep
Copy link

airstep commented Mar 19, 2017

Early I've used this method to make screen off:

sleep 1 && xset dpms force off

... but now I get an issue:

X Error of failed request: BadMatch (invalid parameter attributes)
Major opcode of failed request: 147 (DPMS)
Minor opcode of failed request: 6 (DPMSForceLevel)
Serial number of failed request: 12
Current serial number in output stream: 14

The question is how to make it possible. For now I just need to switch to tty(n) and it works by default. Why I can't do this in wayland? And I read in some place that it is not yet possible... But my tty(n) is also in KMS mode (like wayland)... So how tty(n) can off screen? What you think?

And tnx for this project!

@ddevault
Copy link
Contributor

xset is an x tool, not a wayland tool. See #541

@Un1Gfn
Copy link

Un1Gfn commented Feb 22, 2020

@airstep swaymsg "output * dpms off"

@MedievalSteel
Copy link

MedievalSteel commented Dec 14, 2022

How to turn on screen?

@bl4ckb0ne
Copy link
Contributor

man 5 sway-output

@swaywm swaywm locked as resolved and limited conversation to collaborators Dec 14, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

5 participants