cage icon indicating copy to clipboard operation
cage copied to clipboard

Add support for ext-session-lock-v1

Open emersion opened this issue 1 year ago • 9 comments

emersion avatar Jul 28 '23 15:07 emersion

This would be a great feature for touchscreen kiosks that turn their displays off after a period of inactivity

functionpointer avatar Aug 13 '23 09:08 functionpointer

ext-session-lock-v1 is not about turning displays off. It's about locking the session. See wlr-output-power-management-v1.

emersion avatar Aug 13 '23 11:08 emersion

Turning display off and on again is already possible, thanks to swayidle. Unfortunately when the display is off, touch inputs are still recognised. ext-session-lock-v1 could be used to disable this, no?

functionpointer avatar Aug 13 '23 11:08 functionpointer

swayidle doesn't turn displays on and off. No, ext-session-lock-v1 doesn't interact with ext-idle-notify.

emersion avatar Aug 13 '23 11:08 emersion

Swayidle allows running arbitrary commands on idle. This can easily be used to turn the display off.

Is there a command that can turn off touch processing in cage?

functionpointer avatar Aug 13 '23 12:08 functionpointer

This can easily be used to turn the display off.

No, because cage provides no way of doing so.

Is there a command that can turn off touch processing in cage?

No.

emersion avatar Aug 13 '23 12:08 emersion

This can easily be used to turn the display off.

No, because cage provides no way of doing so.

At least in my case (RPi w/ 7inch touchscreen) it is easy: swayidle timeout 120 "echo 1 > /sys/class/backlight/10-0045/bl_power"

With ext-session-lock-v1 i could use swaylock, which would disable touch processing (among other things).

functionpointer avatar Aug 14 '23 08:08 functionpointer

+1

jh-devv avatar Mar 14 '24 19:03 jh-devv

+1

CelestialCrafter avatar Apr 07 '24 22:04 CelestialCrafter