Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 560372 - Plasma 5.4 + openrc will not suspend or shutdown
Summary: Plasma 5.4 + openrc will not suspend or shutdown
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: plasma-5.5.5-stable
  Show dependency tree
 
Reported: 2015-09-13 20:11 UTC by Derek Dolney
Modified: 2016-03-28 14:06 UTC (History)
2 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 Derek Dolney 2015-09-13 20:11:46 UTC
Not sure if this is related to bug #529186 or not.

Version info:
plasma-meta-5.4.1 (also problem in 5.4.0, don't know about earlier versions)
powerdevil-5.4.1
upower-pm-utils-0.9.23-r2
consolekit-1.0.0
lightdm-1.15.3

I can suspend by execing:

dbus-send --system --print-reply --dest="org.freedesktop.UPower" /org/freedesktop/UPower org.freedesktop.UPower.Suspend

My user is in the users group.

Portage 2.2.20.1 (python 2.7.10-final-0, default/linux/amd64/13.0/desktop/plasma, gcc-4.9.3, glibc-2.21-r1, 4.2.0-gentoo-r1 x86_64)
=================================================================
System uname: Linux-4.2.0-gentoo-r1-x86_64-Intel-R-_Core-TM-_i7-3520M_CPU_@_2.90GHz-with-gentoo-2.2
KiB Mem:    16175644 total,  13489808 free
KiB Swap:    2097148 total,   2097148 free
Timestamp of repository gentoo: Sun, 13 Sep 2015 19:15:02 +0000
sh bash 4.3_p42
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:          4.3_p42::gentoo
dev-java/java-config:     2.2.0::gentoo
dev-lang/perl:            5.22.0::gentoo
dev-lang/python:          2.7.10::gentoo, 3.4.3::gentoo
dev-util/cmake:           3.3.1-r1::gentoo
dev-util/pkgconfig:       0.28-r3::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.17::gentoo
sys-apps/sandbox:         2.7::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r1::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.9.3::gentoo
sys-devel/gcc-config:     1.8::gentoo
sys-devel/libtool:        2.4.6-r1::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.2::gentoo (virtual/os-headers)
sys-libs/glibc:           2.21-r1::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.namerica.gentoo.org/gentoo-portage
    priority: -1000

local
    location: /usr/local/portage
    masters: gentoo

Installed sets: @system
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA AdobeFlash-10 AdobeFlash-10.1 AdobeFlash-10.3 AdobeFlash-11.x Oracle-BCLA-JavaSE skype-4.0.0.7-copyright"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -ggdb -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y --quiet-build n"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://gentoo.osuosl.org/ http://gentoo.netnitco.net http://gentoo.mirrors.tds.net/gentoo http://distro.ibiblio.org/pub/linux/distributions/gentoo/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi aes alsa amd64 atlavx bash-completion berkdb bluetooth bzip2 cairo cdda cddb cdparanoia cdr cli consolekit cracklib crypt cups cxx dbus declarative dri dts dvd dvdr eds emacs emboss encode evo exif fam firefox flac fortran gdbm gif glamor gphoto2 gpm gtk iconv ios ipod ipv6 jpeg kde kipi latex lcms ldap libnotify mad midi mmx mmxext mng modules mp3 mp4 mpeg multilib musicbrainz ncurses networkmanager nls nptl ogg opengl openmp pam pango pcre pdf phonon plasma png policykit popcnt ppds qml qt3support qt4 qt5 quicktime rdesktop readline sdl seccomp semantic-desktop session sna spell sse sse2 sse3 sse4_1 sse4_2 ssl ssse3 startup-notification svg tcpd tiff truetype udev udisks unicode upower usb vhosts vorbis widgets wifi wxwidgets x264 xcb xcomposite xinerama xml xscreensaver xv xvid zlib" ABI_X86="64" ALSA_CARDS="hda-intel usb-audio" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="canon ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en_US en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby20 ruby21" USERLAND="GNU" VIDEO_CARDS="intel i965" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Michael Palimaka (kensington) gentoo-dev 2015-09-13 20:15:07 UTC
Are the options present in the menu?
Comment 2 Derek Dolney 2015-09-13 20:47:11 UTC
Sorry, I should have been more clear about the problem symptoms. In the plasma menu there is logout, lock, and switch user. I would expect suspend, reboot, shutdown options but do not have those. Also my suspend shortcut (Thinkpad, so Fn+F4) only causes screen lock.
Comment 3 Derek Dolney 2015-09-13 20:48:30 UTC
Also in system settings->Power Management->When laptop lid closed the only options are do nothing, shutdown, lock screen, and turn off screen. I would expect suspend to be an option here too.
Comment 4 Michael Palimaka (kensington) gentoo-dev 2015-09-24 18:28:36 UTC
Does it work if you temporarily edit /usr/bin/startkde:

-kwrapper5 ksmserver $KDEWM $KSMSERVEROPTION
+ksmserver $KDEWM $KSMSERVEROPTION

and relogin?
Comment 5 Derek Dolney 2015-09-25 15:22:54 UTC
Sorry, I can't test this because I just downgraded back to KDE4 last night.
Comment 6 Andreas Sturmlechner gentoo-dev 2015-12-29 21:00:59 UTC
Please don't forget to report back if you tried again, in the meantime there is Plasma 5.5.1 in tree and there have been pam and caps related fixes.
Comment 7 Jakob Kummerow 2016-01-19 19:40:14 UTC
I'm seeing this since the update to kde-frameworks 5.18 (IIRC; it may also have been the plasma-desktop-5.5.3 update two days later). Shutdown and reboot entries are missing from the menu, and Ctrl+Alt+Shift+PgDown does nothing.

The /usr/bin/startkde edit from comment #4 does not help.

I followed the tips in https://wiki.gentoo.org/wiki/KDE/Plasma_5_upgrade#Missing_shutdown.2C_reboot.2C_suspend_and_hibernate_buttons_when_using_OpenRC. upower-pm-utils was indeed not installed and installing it brought a "Suspend" option, but "Shutdown" is still missing.
I also tried using lightdm instead of sddm, as well as an empty user profile, neither made any difference.
Comment 8 Michael Palimaka (kensington) gentoo-dev 2016-01-20 05:30:29 UTC
Which version of consolekit is installed?
Comment 9 Jakob Kummerow 2016-01-20 19:34:08 UTC
#8: I have ACCEPT_KEYWORDS="~amd64", so it's consolekit-1.0.1 currently.

Thanks for this hint! Downgrading to consolekit-1.0.0-r1 brings back the Shutdown/Reboot options. Updating to consolekit-1.0.1 lets them disappear again, so it wasn't just some weirdness that went away by recompiling.

Looks like consolekit-1.0.1 is either buggy or at least incompatible with Plasma 5.5.
Comment 10 Michael Palimaka (kensington) gentoo-dev 2016-01-20 19:37:12 UTC
That one is bug #571974.
Comment 11 Michael Palimaka (kensington) gentoo-dev 2016-02-09 05:25:52 UTC
Please also check if sys-power/pm-utils is installed?
Comment 12 Johannes Huber (RETIRED) gentoo-dev 2016-03-11 13:28:08 UTC
(In reply to Michael Palimaka (kensington) from comment #10)
> That one is bug #571974.

Mark as duplicate?
Comment 13 Jakob Kummerow 2016-03-13 12:29:18 UTC
Not sure if you were waiting to hear back from me? My issue was clearly bug #571974 (and adding "nox11" to the pam_ck_connector.so line in /etc/pam.d/system-login as pointed out there allowed me to update to consolekit-1.0.1). As the OP hasn't commented in a while, I can't tell if there's any other, non-duplicate aspect to this bug. As far as I'm concerned, feel free to close it.

re #11, I installed sys-power/pm-utils when the problem initially showed up, but it didn't make a difference. It's been installed ever since.