What is the output of swayidle -d and from loginctl?
You may not be running within an elogind session which could explain the unknown session error.
A forever lurker.
What is the output of swayidle -d and from loginctl?
You may not be running within an elogind session which could explain the unknown session error.
The Output from
swayidle -dshould be similar to the following lines2025-07-27 01:34:16 - [Line 1078] No config file found. 2025-07-27 01:34:16 - [Line 463] Using session: /org/freedesktop/login1/session/c4 2025-07-27 01:34:16 - [Line 1151] No command specified! Nothing to do, will exitand the ouput from
loginctlshould list the session from the second line of theswayidle -doutput.SESSION UID USER SEAT TTY STATE IDLE SINCE c4 1000 subm77 seat0 tty3 active no - 1 sessions listed.If that is not the case you could look into setting up a login manager like greetd.