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

Screen is black when I close and open the lid. Turns back on only bu switchig to text console and back. #2190

Open
mark-herbert42 opened this issue Mar 9, 2024 · 2 comments
Labels
easy Issues that do not require knowledge about the whole codebase enhancement PRs-welcome Issues which are unlikely to be fixed unless someone sends a PR

Comments

@mark-herbert42
Copy link

Mos likely this is because of my laptop hadware - partially. Because it switch screen black without asking OS unlike all my previous ones. (OLED screen ). But here is the thing - I implemeneted the lid workaround suggested here.

  1. Autostart: swayidle timeout 0 'output-power-management -d' resume 'output-power-management -e'
  2. On acpid lid action I call pkill -USR1 swayidle.

With this setting when I open the lid I can wage up just touching any key or even touchpad. But - only in the case when I did not inhibit idle using Alt-B in idle plugin.

Not sure if it is an issue with wayfire, wlroots or even wayland itself - with Xorg/compiz things were working fine.

Also thinking about workaround - like change behvavior of idle plugin instead of inhibiting idle (or as additional shortcut maybe) add a possibity to increase DPMS timeout for some signifficant value. Maybe even ipc script - not sure if there is a dpms timeout set in ipc protocol

@ammen99
Copy link
Member

ammen99 commented Apr 16, 2024

I wouldn't say this is a bug because when you inhibit idle, then swayidle will not work properly. We probably could add an ipc command to query the state of idle inhibition so that you can workaround it in your scripts.

@ammen99 ammen99 added enhancement easy Issues that do not require knowledge about the whole codebase PRs-welcome Issues which are unlikely to be fixed unless someone sends a PR and removed bug labels Apr 16, 2024
@mark-herbert42
Copy link
Author

Just query the inhibit state will not help without the ipc command to control the inhibition.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
easy Issues that do not require knowledge about the whole codebase enhancement PRs-welcome Issues which are unlikely to be fixed unless someone sends a PR
Projects
None yet
Development

No branches or pull requests

2 participants