Summary: | KDE system shutdown/restart support with systemd-logind | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Mike Gilbert <floppym> |
Component: | [OLD] KDE | Assignee: | Gentoo KDE team <kde> |
Status: | RESOLVED FIXED | ||
Severity: | enhancement | CC: | ao, egorov_egor, lukas.schneiderbauer, lxnay, mail, nikoli, systemd |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | https://projects.kde.org/projects/kde/kde-workspace/repository/revisions/2b041abd0f35bfbca4f2aac0cd946bdadd6011d4 | ||
See Also: | https://bugs.kde.org/show_bug.cgi?id=294714 | ||
Whiteboard: | fixed in 4.11 | ||
Package list: | Runtime testing required: | --- |
Description
Mike Gilbert
2013-01-14 01:56:19 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? Sorry, upstream bug is here: https://bugs.kde.org/show_bug.cgi?id=294714 Oops, this turns out not to have made it into 4.10. I am assuming you want this backported? I'm in no particular hurry. *** Bug 468916 has been marked as a duplicate of this bug. *** *** Bug 479426 has been marked as a duplicate of this bug. *** I'm on 4.11 and it still fails to shutdown (reboot). Confirmed working for me; I now see the shutdown/restart options in the menu and I have successfully tested the restart option. 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. In /usr/share/config/kdm/kdmrc RebootCmd and HaltCmd are commented out. (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? (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. 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. I'm using KDM, logind is properly notified of the session: $ loginctl SESSION UID USER SEAT 1 1000 rondo seat0 systemd-logind works here. 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) (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? 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= I have openrc and sysvinit uninstalled and there are no shutdown/halt/reboot/poweroff commands. The logind functionality clearly works for some (most?) people. I would recommend filing a separate bug rather than leaving comments here. Reopened bug 479426 instead. |