I logged into the pseudo-terminal (tty2) locally by ctl-alt-F2 switching away from the login screen, so I was locally logged in, and "LightDM" still showed up.
ck-list-sessions is just not sufficient to distinguish the possible cases of someone logged in vs no one logged in.
If we are going to convert this to a wish list, I'd rather have cron updated so that it takes control of the wake timer and handles the waking and auto-shutdown itself.
I would think that there are many applications besides just MythTV where it would be useful to have a computer that wakes to run a scheduled task, and shuts itself down when there is no one using the computer, and no scheduled tasks in the near future.
This does not mean I think that a reliable way to determine if a user is logged in is not necessary, in fact it would be required to properly implement an updated chron tool.
I logged into the pseudo-terminal (tty2) locally by ctl-alt-F2 switching away from the login screen, so I was locally logged in, and "LightDM" still showed up.
ck-list-sessions is just not sufficient to distinguish the possible cases of someone logged in vs no one logged in.
If we are going to convert this to a wish list, I'd rather have cron updated so that it takes control of the wake timer and handles the waking and auto-shutdown itself.
I would think that there are many applications besides just MythTV where it would be useful to have a computer that wakes to run a scheduled task, and shuts itself down when there is no one using the computer, and no scheduled tasks in the near future.
This does not mean I think that a reliable way to determine if a user is logged in is not necessary, in fact it would be required to properly implement an updated chron tool.