Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 451954 - KDE system shutdown/restart support with systemd-logind
Summary: KDE system shutdown/restart support with systemd-logind
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Gentoo KDE team
URL: https://projects.kde.org/projects/kde...
Whiteboard: fixed in 4.11
Keywords:
: 468916 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-01-14 01:56 UTC by Mike Gilbert
Modified: 2013-10-08 17:41 UTC (History)
7 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Gilbert gentoo-dev 2013-01-14 01:56:19 UTC
Elias suggested I file a Gentoo bug for this.

libkworkspace needs an adjustment to work with systemd-logind instead of consolekit. There is an upstream bug with a patch that is working for me.

https://bugs.kde.org/show_bug.cgi?id=293978
Comment 1 Elias Probst 2013-01-14 02:00:39 UTC
This patch should be applied to libkworkspace when USE="systemd".
It also requires MYCMAKEARGS="-DKWORKSPACE_USE_SYSTEMD=ON" to be set.

Which versions do we want to apply this to? 4.9.x? Or only 4.10.x?
Mike tested it against 4.9.5, could someone test this for 4.10.x?
Comment 2 Mike Gilbert gentoo-dev 2013-01-14 02:02:01 UTC
Sorry, upstream bug is here:

https://bugs.kde.org/show_bug.cgi?id=294714
Comment 3 Michael Palimaka (kensington) gentoo-dev 2013-02-08 16:08:10 UTC
Oops, this turns out not to have made it into 4.10.

I am assuming you want this backported?
Comment 4 Mike Gilbert gentoo-dev 2013-02-09 00:47:27 UTC
I'm in no particular hurry.
Comment 5 Michael Palimaka (kensington) gentoo-dev 2013-05-08 17:43:23 UTC
*** Bug 468916 has been marked as a duplicate of this bug. ***
Comment 6 Johannes Huber (RETIRED) gentoo-dev 2013-08-01 19:34:09 UTC
*** Bug 479426 has been marked as a duplicate of this bug. ***
Comment 7 Pavel Volkov 2013-08-15 15:52:34 UTC
I'm on 4.11 and it still fails to shutdown (reboot).
Comment 8 Mike Gilbert gentoo-dev 2013-08-16 00:46:21 UTC
Confirmed working for me; I now see the shutdown/restart options in the menu and I have successfully tested the restart option.
Comment 9 Pavel Volkov 2013-08-16 05:16:47 UTC
I could see shutdown and restart options in Kickoff even in 4.10.
But it still relies on /sbin/shutdown with 4.11 and /sbin/shutdown is missing. Maybe I have wrong USEs? kde-base/kdm is built with USE=systemd.
Comment 10 Pavel Volkov 2013-08-16 05:19:08 UTC
In /usr/share/config/kdm/kdmrc RebootCmd and HaltCmd are commented out.
Comment 11 Michael Palimaka (kensington) gentoo-dev 2013-08-16 13:32:35 UTC
(In reply to Pavel Volkov from comment #7)
> I'm on 4.11 and it still fails to shutdown (reboot).

Does it still fail with a new user/clean profile?
Comment 12 Pavel Volkov 2013-08-16 19:12:18 UTC
(In reply to Michael Palimaka (kensington) from comment #11)
> Does it still fail with a new user/clean profile?

Yes. Reboot can also be initiated from login screen without logging in. Both methods fail.
Comment 13 Mike Gilbert gentoo-dev 2013-08-16 19:15:52 UTC
In case it makes a difference, I'm logging in on the console with pam_systemd.so in /etc/pam.d/system-login, and using startx to load KDE.
Comment 14 Pavel Volkov 2013-08-16 19:18:13 UTC
I'm using KDM, logind is properly notified of the session:

$ loginctl 
   SESSION        UID USER             SEAT            
         1       1000 rondo            seat0
Comment 15 Johannes Huber (RETIRED) gentoo-dev 2013-09-26 18:39:08 UTC
systemd-logind works here.
Comment 16 Pavel Volkov 2013-10-08 15:12:18 UTC
I still have this error in 4.11:
kdm[12916]: Failed to execute shutdown command "/sbin/shutdown -r now"

(shutdown -r is the default reboot configured in kdmrc)
Comment 17 Michael Palimaka (kensington) gentoo-dev 2013-10-08 16:39:55 UTC
(In reply to Pavel Volkov from comment #16)
> I still have this error in 4.11:
> kdm[12916]: Failed to execute shutdown command "/sbin/shutdown -r now"
> 
> (shutdown -r is the default reboot configured in kdmrc)

Did you run etc-update or similar?
Comment 18 Pavel Volkov 2013-10-08 16:47:47 UTC
Yes.
Actually, I was wrong, HaltCmd= and RebootCmd= are empty and commented out.

[Shutdown]
# The command (subject to word splitting) to run to halt the system.
# Default is "/sbin/shutdown -h -P now"
#HaltCmd=
# The command (subject to word splitting) to run to reboot the system.
# Default is "/sbin/shutdown -r now"
#RebootCmd=
Comment 19 Pavel Volkov 2013-10-08 16:49:49 UTC
I have openrc and sysvinit uninstalled and there are no shutdown/halt/reboot/poweroff commands.
Comment 20 Mike Gilbert gentoo-dev 2013-10-08 17:11:15 UTC
The logind functionality clearly works for some (most?) people. I would recommend filing a separate bug rather than leaving comments here.
Comment 21 Pavel Volkov 2013-10-08 17:41:12 UTC
Reopened bug 479426 instead.