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

Open lid to trigger resume #47

Open
palb91 opened this issue Nov 17, 2019 · 3 comments
Open

Open lid to trigger resume #47

palb91 opened this issue Nov 17, 2019 · 3 comments

Comments

@palb91
Copy link

palb91 commented Nov 17, 2019

Hi!

Setup:
My config is the most often an external monitor plugged on my laptop and the laptop lid closed.
The swayidle command I use is:

exec swayidle -w                                                 \
    timeout 120  'swaylock'                                      \
    timeout  20  'pgrep swaylock && swaymsg "output * dpms off"' \
         resume  'swaymsg "output * dpms on"'                    \
    before-sleep 'swaylock'

Expected:
This works almost great, if the output is off since few seconds, I can just type my password or move my mouse and everything goes back normaly.

Bug:
However if the output is off for more than few minutes (I don't know how long), the resume stuff is not triggered and I can't wake up my monitors. The only way I have is to open the laptop lid.

Versions:

  • sway: 1:1.2-5 (Arch Linux community)
  • swayidle: 1.5-1 (Arch Linux community)

I think that the external keyboard and mouse are disabled after dpms has been triggered (It does not append when I remove the dpms timeout/resume stuff), I just don't know why and if I can prevent them to

@ikalnytskyi
Copy link

I had a similar issue before. In my case, the issue was that swaylock was launched in non-demonized mode and that prevented resume coomand from being executed. Once I changed the swaylock command from swaylock to swaylock -f, everything went back to normal.

@palb91
Copy link
Author

palb91 commented Jan 26, 2020

Thanks for your reply @ikalnytskyi.
I use swaylock with a config file where daemonize is set up, it does not seem to be the problem here.

@palb91
Copy link
Author

palb91 commented Jan 26, 2020

However, I'll try swaylock without config file, directly with the flag.

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

No branches or pull requests

2 participants