Summary: | Plasma 5: Hibernation (and brightness adjustment?) only working after restarting kded5 and plasmashell with consolekit | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Nowa Ammerlaan <nowa> |
Component: | Current packages | Assignee: | Gentoo KDE team <kde> |
Status: | RESOLVED TEST-REQUEST | ||
Severity: | normal | CC: | asturm, dilfridge, doron.fediuck, gentoo, krinpaus, nowa, z23 |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://bugs.gentoo.org/show_bug.cgi?id=580994 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Nowa Ammerlaan
2016-04-11 07:04:17 UTC
Thanks. Same for me. I was going nuts :) I had followed the Gentoo Plasma 5 guide to the letter but I was still missing Suspend & Hibernate in all my machines. These two commands as a regular user bring them back: killall kded5 && kded5& killall plasmashell && plasmashell& Brightness worked fine here from the beginning. Suspend only after the workaround from comment 1. Brightness works fine for me, but I am having the same issues hibernate on Plasma5 and I think I have narrowed it down to being caused by ConsoleKit 1.0.1 or higher. Downgrading to ConsoleKit 0.4.6 and also installing the required upower-pm-utils brings back hibernation. Upgrading back to 1.0.1, 1.1.0, or 1.1.0-r1 all remove hibernation even with upower-pm-utils. As with comment 1 above, ConsoleKit >1.0.1 works if you kill & restart kded5 & plasmashell. I also tried copying /etc/polkit-1/localauthority/10-vendor.d/40-org.freedesktop.consolekit.system.suspend-multiple-users.pkla -> 50-org.freedesktop.consolekit.system.hibernate-multiple-users.plka and changing references to 'suspend' to 'hibernate', but this does not appear to fix it. (In reply to Dan H from comment #3) > Brightness works fine for me, but I am having the same issues hibernate on > Plasma5 and I think I have narrowed it down to being caused by ConsoleKit > 1.0.1 or higher. > > Downgrading to ConsoleKit 0.4.6 and also installing the required > upower-pm-utils brings back hibernation. Upgrading back to 1.0.1, 1.1.0, or > 1.1.0-r1 all remove hibernation even with upower-pm-utils. > > As with comment 1 above, ConsoleKit >1.0.1 works if you kill & restart kded5 > & plasmashell. > > I also tried copying > /etc/polkit-1/localauthority/10-vendor.d/40-org.freedesktop.consolekit. > system.suspend-multiple-users.pkla -> > 50-org.freedesktop.consolekit.system.hibernate-multiple-users.plka and > changing references to 'suspend' to 'hibernate', but this does not appear to > fix it. On a second look at this, adding the following contents to /etc/polkit-1/localauthority/10-vendor.d/50-org.freedesktop.consolekit.system.hibernate-multiple-users.pkla does seem to put hibernate into my system menu: [Allow all users to hibernate with Conesolekit2] Identity=unix-group:users Action=org.freedesktop.consolekit.system.hibernate-multiple-users;org.freedesktop.consolekit.system.hibernate ResultAny=yes ResultInactive=no ResultActive=yes I have added the hibernation pkla file in bug #580994, I hope this resolves the issue for you. I don't see how this could be the fix. OP says he doesn't have suspend nor hibernate. Seems like this would fix the other bug only that appears to be hibernate missing but no suspend. I don't have hibernate or suspend, unless I invoke workaround of Comment 1 (which produces other unfortunate side effects) I tried adding the file in comment 4, however this does not fix the issue with hibernation for me. I've run a tail -f on /var/log/messages to see what actually happens when plasmashell and kde5 are restarted: Sep 11 15:26:22 Andrew-Gentoo su[6608]: Successful su for root by andrew Sep 11 15:26:22 Andrew-Gentoo su[6608]: + /dev/pts/1 andrew:root Sep 11 15:26:22 Andrew-Gentoo su[6608]: pam_unix(su:session): session opened for user root by andrew(uid=1000) Sep 11 15:30:01 Andrew-Gentoo CROND[6676]: (root) CMD ([ ! -x /etc/cron.hourly/0anacron ] && { test -x /usr/sbin/run-crons && /usr/sbin/run-crons ; }) Sep 11 15:31:47 Andrew-Gentoo su[6726]: Successful su for root by andrew Sep 11 15:31:47 Andrew-Gentoo su[6726]: + /dev/pts/2 andrew:root Sep 11 15:31:47 Andrew-Gentoo su[6726]: pam_unix(su:session): session opened for user root by andrew(uid=1000) Sep 11 15:32:58 Andrew-Gentoo dbus[4033]: [system] Activating service name='org.kde.powerdevil.backlighthelper' (using servicehelper) [<-- this is when I ran a script that restarts kde5 and plasmashell] Sep 11 15:32:58 Andrew-Gentoo dbus[4033]: [system] Successfully activated service 'org.kde.powerdevil.backlighthelper' For some reason the backlighthelper service is only started after a plasmashell and kde5 restart. I'm unsure why the file from comment 4 does not solve the issue with hibernation for me, but I'm pretty sure it is not related to the backlighthelper service. |