Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
FWIW: can't build KDE without one of elogind or consolekit
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Goverp
Veteran
Veteran


Joined: 07 Mar 2007
Posts: 1995

PostPosted: Mon Oct 15, 2018 8:09 am    Post subject: FWIW: can't build KDE without one of elogind or consolekit Reply with quote

I find KDE's "Switch user" is half-broken. I can do it once, and have one session on tty7 and another (different user) on tty8. But If I log out of either, I can't log back in again; SDDM says everything's OK, but KDE won't start. I suspect it's something in elogind. Also, if I shutdown from either session, it just does it, rather than telling me about other sessions still running (like it used to). So I thought I try getting rid of SDDM and just logging in from the line-mode tty.

I could get that to work OK, using startx and adding "startkde" to .xinitrc. Fine, but in that case is elogind doing anything for me? Probably not, and I like to remove as much systemd as possible, I thought I'd try removing it too, but cleanly, i.e. using emerge --deplclean. Turns out it's not possible - KDE requires sys-apps/accountsservice and that requires one of elogind or consolekit. Which is annoying. (I was hoping to work towards Neddy's Olde-worlde-gentooe but for KDE.)
_________________
Greybeard
Back to top
View user's profile Send private message
Fitzcarraldo
Advocate
Advocate


Joined: 30 Aug 2008
Posts: 2034
Location: United Kingdom

PostPosted: Mon Oct 15, 2018 10:00 am    Post subject: Reply with quote

On my main laptop (amd64, OpenRC, elogind, LightDM, nvidia-drivers, KDE) I can log out of either session (different users) and log back in again (I can do this as many times as I want). If I shutdown from either session the greeter does show me that another session is active but then the system proceeds to shut down anyway. On my older laptop (~amd64, OpenRC, elogind, SDDM, xf86-video-ati, KDE) I see the same behaviour as you see.
_________________
Clevo W230SS: amd64, VIDEO_CARDS="intel modesetting nvidia".
Compal NBLB2: ~amd64, xf86-video-ati. Dual boot Win 7 Pro 64-bit.
OpenRC udev elogind & KDE on both.

Fitzcarraldo's blog
Back to top
View user's profile Send private message
Yamakuzure
Advocate
Advocate


Joined: 21 Jun 2006
Posts: 2283
Location: Adendorf, Germany

PostPosted: Mon Oct 15, 2018 10:14 am    Post subject: Reply with quote

Plasma simply checks whether anything provides org.freedesktop.login1 via dbus. If anything does, like systemd-login and elogind, user privilege checking is enabled. And that is needed for hotplugging of external devices, power management and whether you are allowed to switch users, power down the machine, restart it, and so on.

That you can shut down the machine while another user is logged in, is intentional. Log in as root somewhere and try again as a normal user. Powering of the machine is blocked then.

I haven't tried the Plasma "Switch User" feature in a while. But as I am extensively testing elogind prior the next releases anyway, I'll add this to my todo list.

Please feel free to open issues on https://github.com/elogind/elogind/issues whenever you think some glitch might have to do with elogind. That way I'll see it for sure.
_________________
Important German:
  1. "Aha" - German reaction to pretend that you are really interested while giving no f*ck.
  2. "Tja" - German reaction to the apocalypse, nuclear war, an alien invasion or no bread in the house.
Back to top
View user's profile Send private message
Yamakuzure
Advocate
Advocate


Joined: 21 Jun 2006
Posts: 2283
Location: Adendorf, Germany

PostPosted: Mon Oct 15, 2018 4:19 pm    Post subject: Reply with quote

@Gover : I have just tested the switch user feature, and everything is working as expected. I can open a new session and then switch between the users at will.

However, I tested this with elogind-239.9999 (from seden overlay via layman) *after* I fixed https://github.com/elogind/elogind/issues/82 -> maybe that issue is causing the misbehaviour on your system.
_________________
Important German:
  1. "Aha" - German reaction to pretend that you are really interested while giving no f*ck.
  2. "Tja" - German reaction to the apocalypse, nuclear war, an alien invasion or no bread in the house.
Back to top
View user's profile Send private message
Fitzcarraldo
Advocate
Advocate


Joined: 30 Aug 2008
Posts: 2034
Location: United Kingdom

PostPosted: Tue Oct 16, 2018 1:58 pm    Post subject: Reply with quote

Yamakuzure,

Is your installation using SDDM or a different Display Manager?
_________________
Clevo W230SS: amd64, VIDEO_CARDS="intel modesetting nvidia".
Compal NBLB2: ~amd64, xf86-video-ati. Dual boot Win 7 Pro 64-bit.
OpenRC udev elogind & KDE on both.

Fitzcarraldo's blog
Back to top
View user's profile Send private message
Yamakuzure
Advocate
Advocate


Joined: 21 Jun 2006
Posts: 2283
Location: Adendorf, Germany

PostPosted: Tue Oct 16, 2018 4:17 pm    Post subject: Reply with quote

Fitzcarraldo wrote:
Yamakuzure,

Is your installation using SDDM or a different Display Manager?
I am using SDDM.
_________________
Important German:
  1. "Aha" - German reaction to pretend that you are really interested while giving no f*ck.
  2. "Tja" - German reaction to the apocalypse, nuclear war, an alien invasion or no bread in the house.
Back to top
View user's profile Send private message
Goverp
Veteran
Veteran


Joined: 07 Mar 2007
Posts: 1995

PostPosted: Wed Oct 17, 2018 2:44 pm    Post subject: Reply with quote

Yamakuzure wrote:
...
However, I tested this with elogind-239.9999 (from seden overlay via layman) *after* I fixed https://github.com/elogind/elogind/issues/82 -> maybe that issue is causing the misbehaviour on your system.

That's better! Now (a) I can log out and back in to the same user, and (b) swap parallel sessions using the KDE Switch user gizmo - before I had to use CtlAltF7/F8, which wasn't right.
Ta muchly.

As far as I can see, KDE doesn't now tell me about sessions open in parallel if I try to shut down. I'm sure it used to. (I was mis-describing when I said it would/would not let me; what I meant was it doesn't warn me I'm about to kill someone else's session. I doubt that's elogind's fault; looks more like KDE not bothering to check.)
_________________
Greybeard
Back to top
View user's profile Send private message
asturm
Developer
Developer


Joined: 05 Apr 2007
Posts: 8935

PostPosted: Wed Oct 17, 2018 2:56 pm    Post subject: Reply with quote

Goverp wrote:
As far as I can see, KDE doesn't now tell me about sessions open in parallel if I try to shut down. I'm sure it used to. (I was mis-describing when I said it would/would not let me; what I meant was it doesn't warn me I'm about to kill someone else's session. I doubt that's elogind's fault; looks more like KDE not bothering to check.)

IIRC this is either fixed in Plasma 5.14 or Frameworks 5.52 (to be released H1Nov).
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum