sddm-greeter and IdleHint? #445

Open
dirteat opened this Issue Jul 29, 2015 · 7 comments

Comments

Projects
None yet
4 participants

dirteat commented Jul 29, 2015

Hi there,
got an issue with sddm-greeter running. It seems that the session it opens always return an active state thereby preventing systemd-logind to detect an Idle state (which I use to put the system automatically in suspend). Any chance this could be fixed?

Thanks.

Owner

plfiorini commented Jul 29, 2015

This is something that the desktop you are using should deal with.

@plfiorini plfiorini closed this Aug 20, 2015

@plfiorini plfiorini added the wontfix label Aug 20, 2015

eatdust commented Aug 20, 2015

Thanks for your comment, but I would have said that this cannot be related to the desktop, but to the system as it is a systemd feature. Not logging in into any DE, sddm running as "sddm" user and not reporting idle prevent systemd to do its suspending job.
Cheers.

Owner

plfiorini commented Aug 20, 2015

Ah sorry I didn't understand the issue completely and having seen no answer for 22 days I decided to close.

That being said I'm not sure how to handle this without involving too much external libraries, so I will leave this open until a good solution can be found.

@plfiorini plfiorini reopened this Aug 20, 2015

@plfiorini plfiorini removed the wontfix label Aug 20, 2015

@plfiorini plfiorini added this to the New 1.0 milestone Aug 20, 2015

eatdust commented Oct 27, 2015

Ok, thanks!
I'll have a look too in the meantime, that is important to us (@mageia) as this feature used to work with kdm. With the plasma move, the next mga6 release will certainly have its main dm as sddm!
cheers.

dirteat commented Nov 18, 2016

I am bouncing on this old issue first because it still there and then because I suspect it is more profound than just preventing the system to suspend.
The fact that sddm opens a user session is bad. More precisely, it opens an user session which, as far as I understand, is undifferentiated from a standard user. So all systemd --user services are also triggered by the sddm user's slice. I have no idea how this could be improved, but that causes a lot of troubles at various levels.
Any ideas would be welcome,
Cheers.

Owner

davidedmundson commented Nov 18, 2016

because I suspect it is more profound than just preventing the system to suspend.
Based on what?

The fact that sddm opens a user session is bad.
I understand, is undifferentiated from a standard user
We do report to pam_systemd that this is a special greeter session as the XDG_SESSION_CLASS.
Both of these are as described in https://www.freedesktop.org/wiki/Software/systemd/writing-display-managers/

dirteat commented Nov 19, 2016

If I reverse engineer you very short answer, you are trying to say that the fact that sddm beaks systemd autosuspend and automatically triggers all systemd user services as a real user is not the sddm problem but some underlying bug within systemd/pam_systemd?

I am happy to report such a problem upstream, if that so (although I thought you were a bit upstream already). Sorry to have assumed that you were actually understanding systemd better than I do...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment