Do you have idea what to try please?
I would like to turn off the display after 1 or 2 minutes of inactivity and also lock the screen so password is required to unlock the session.
Manual session locking works via GUI button or via command “loginctl lock-session --output=verbose”
The cause of the issue where the screen was not locked & display was not turned off, was an AppImage. Try to run:
systemd-inhibit --list|grep -E "WHAT|block"
consider killing a PID from the output, where the “WHAT” column contains “idle”:
/usr/bin/kill -SIGTERM PIDhere
It started turning off the screen automatically after defined minute/s.
App does not have any display related setting so I do not know better workaround than launching the AppImage using bash script, which contains following lines:
The screen is turned off but the session is not locked. Journal does not show any log line around the event, but there are still some events at different time regarding screenlocker: