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

DPMS #541

Closed
crondog opened this issue Mar 25, 2016 · 13 comments
Closed

DPMS #541

crondog opened this issue Mar 25, 2016 · 13 comments

Comments

@crondog
Copy link
Contributor

crondog commented Mar 25, 2016

Would it be possible for sway to handle turning on and off the monitor? Orbment currently has https://github.com/Cloudef/orbment/blob/master/plugins/core-dpms/core-dpms.c to handle this.

Could something like this be implemented inside sway with a config option or maybe with swaylock?

@ddevault
Copy link
Contributor

I'd like to see a protocol extension written for this, and then a seperate daemon to manage it.

@crondog
Copy link
Contributor Author

crondog commented Mar 25, 2016

Hmm interesting. That sounds like a better idea. I'll need to look into protocol extensions over the weekend and report back

@ddevault
Copy link
Contributor

https://github.com/SirCmpwn/sway/tree/master/protocols

They're pretty straightfoward. Write an XML file describing the interface, add it to CMakeLists.txt, and you'll end up with a header to include.

@ddevault
Copy link
Contributor

@crondog
Copy link
Contributor Author

crondog commented Mar 25, 2016

Thanks for the tip

@Fale
Copy link
Contributor

Fale commented Aug 21, 2016

any news on this?

@ddevault
Copy link
Contributor

Nope.

@Cloudef
Copy link

Cloudef commented Jan 4, 2017

While orbment's core-dpms implements this using own timer and wlc's set_sleep. I think drm has dpms api too actually.

@hosaka
Copy link

hosaka commented Feb 6, 2017

Looking at DRM docs, there is an api for setting dpms on drm_connector, but no way of getting current state. Would using wlc set_sleep approach be preferable?

@airstep
Copy link

airstep commented Mar 19, 2017

The question is how to make it possible?

For now I can advice to switch to tty(n) and it works by default - screen is going off by some time. Why I can't do this in wayland?

My tty(n) is also in KMS mode (like wayland)...

So how tty(n) can turn screen off, but wayland can't - if them both in KMS mode?

What do you think?

@Fale
Copy link
Contributor

Fale commented Mar 19, 2017

I think the situation around this could/should/will change very soon due to #1076

@flounders
Copy link

I see on the status issue for for wlroots (wlroots/#9) that DPMS is checked off. I also see that DPMS is an unaddressed bounty problem as well. In a general, overview type answer, given the support in wlroots what needs to happen to bring this to Sway? This question is coming from someone not too familiar with the project or Wayland compositors. If it's not too far beyond my skill set, I wouldn't mind working on this as I am able.

@ddevault
Copy link
Contributor

ddevault commented Jan 2, 2018

It's not currently a priority in the wlroots port. Let's swing back to it later.

snaggen pushed a commit to snaggen/sway that referenced this issue May 2, 2018
Swayidle handles idle events and allows
for dpms and lockscreen handling. It also
handles systemd sleep events, and can
raise a lockscreen on sleep

Fixes swaywm#541
snaggen pushed a commit to snaggen/sway that referenced this issue May 2, 2018
Swayidle handles idle events and allows
for dpms and lockscreen handling. It also
handles systemd sleep events, and can
raise a lockscreen on sleep

Fixes swaywm#541
snaggen pushed a commit to snaggen/sway that referenced this issue May 2, 2018
Swayidle handles idle events and allows
for dpms and lockscreen handling. It also
handles systemd sleep events, and can
raise a lockscreen on sleep

Fixes swaywm#541
snaggen pushed a commit to snaggen/sway that referenced this issue May 7, 2018
Swayidle handles idle events and allows
for dpms and lockscreen handling. It also
handles systemd sleep events, and can
raise a lockscreen on sleep

Fixes swaywm#541
snaggen pushed a commit to snaggen/sway that referenced this issue May 10, 2018
Swayidle handles idle events and allows
for dpms and lockscreen handling. It also
handles systemd sleep events, and can
raise a lockscreen on sleep

Fixes swaywm#541
snaggen pushed a commit to snaggen/sway that referenced this issue May 10, 2018
Swayidle handles idle events and allows
for dpms and lockscreen handling. It also
handles systemd sleep events, and can
raise a lockscreen on sleep

Fixes swaywm#541
snaggen pushed a commit to snaggen/sway that referenced this issue May 10, 2018
Swayidle handles idle events and allows
for dpms and lockscreen handling. It also
handles systemd sleep events, and can
raise a lockscreen on sleep

Fixes swaywm#541
snaggen pushed a commit to snaggen/sway that referenced this issue May 10, 2018
Swayidle handles idle events and allows
for dpms and lockscreen handling. It also
handles systemd sleep events, and can
raise a lockscreen on sleep

Fixes swaywm#541
snaggen pushed a commit to snaggen/sway that referenced this issue May 12, 2018
Swayidle handles idle events and allows
for dpms and lockscreen handling. It also
handles systemd sleep events, and can
raise a lockscreen on sleep

Fixes swaywm#541
snaggen pushed a commit to snaggen/sway that referenced this issue May 12, 2018
Swayidle handles idle events and allows
for dpms and lockscreen handling. It also
handles systemd sleep events, and can
raise a lockscreen on sleep

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

Successfully merging a pull request may close this issue.

7 participants