wayfire icon indicating copy to clipboard operation
wayfire copied to clipboard

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

Open mark-herbert42 opened this issue 1 year ago • 2 comments

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

mark-herbert42 avatar Mar 09 '24 15:03 mark-herbert42

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 avatar Apr 16 '24 14:04 ammen99

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

mark-herbert42 avatar Apr 16 '24 15:04 mark-herbert42