Bug 340172 - No way to suspend to ram from GUI
Summary: No way to suspend to ram from GUI
Status: RESOLVED FIXED
Alias: None
Product: plasmashell
Classification: Plasma
Component: general (other bugs)
Version First Reported In: 5.1.0
Platform: Arch Linux Linux
: NOR major
Target Milestone: 1.0
Assignee: Sebastian Kügler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-20 20:03 UTC by Martin Rotter
Modified: 2015-03-12 21:42 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
No "Suspend" item in kickoff menu. (269.09 KB, image/png)
2014-10-21 15:06 UTC, Martin Rotter
Details
journalctl stuff (619 bytes, text/plain)
2014-10-22 13:49 UTC, Martin Rotter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Rotter 2014-10-20 20:03:11 UTC
Attaching screenshot. All dependencies of plasma-workspace and plasma-desktop are installed. Swap is disabled. Yet, "Suspend" option is not shown anywhere in GUI, not on lock screen not anywhere else.

Affects 5.1.0 of desktop/workspace.

Reproducible: Always

Steps to Reproduce:
1. Run plasma-workspace 5.1.0.
2. See the hell.

Actual Results:  
No "Suspend" item anywhere.

Expected Results:  
Visible "Suspend" item in kickoff and lock menu.

Archlinux, up-to-date.
Comment 1 Martin Rotter 2014-10-21 04:47:03 UTC
I forgot to provide screenshot. I will do it today afternoon.
Comment 2 Martin Rotter 2014-10-21 15:06:07 UTC
Created attachment 89235 [details]
No "Suspend" item in kickoff menu.
Comment 3 Martin Bříza 2014-10-22 12:42:09 UTC
Hey,
could be caused by using a wrong PAM config. Please try overwriting your /etc/pam/sddm-* with their equivalents from some other DM.
Comment 4 Martin Bříza 2014-10-22 12:42:37 UTC
Correct path is  /etc/pam.d/sddm-*
Comment 5 Martin Rotter 2014-10-22 13:38:43 UTC
The are identical with lightdm for example and with kdm. The only little differenece is in *-autologin files, but I do not use autologin.
Comment 6 Martin Rotter 2014-10-22 13:49:31 UTC
Created attachment 89256 [details]
journalctl stuff
Comment 7 Martin Rotter 2014-10-23 13:53:04 UTC
I can suspend with systemd without problems (systemctl suspend).
Comment 8 Gandalf Lechner 2014-10-24 08:09:35 UTC
same problem here, using the kubuntu 14.10 packages. no suspend icon anywhere, closing the lid of the laptop does also not suspend (although configured to do so in the energy saving settings), but sudo pm-suspend works fine.
Comment 9 Martin Rotter 2014-10-24 14:25:56 UTC
Suspend works with systemctl suspend command, and pm-suspend too here. But no GUI items. :(
Comment 10 Martin Rotter 2014-10-24 15:20:04 UTC
Issue is also present in clean virtualbox guest kde 5 archlinux installation.
Comment 11 David Edmundson 2014-11-17 13:23:32 UTC
I can reproduce in my Kubuntu CI.

Plasma code comes from Solid::PowerManagement::supportedSleepStates()

according to solid maintainer, the bug is probably specific to Kubuntu as this has a some "if upstart {}" code, but now kubuntu has the logind shim and we're probably not updated.

Currently this is in kdelibs4support and destined to be replaced with a new API... but that's not moving forward slowly.
Comment 12 David Edmundson 2014-12-19 12:07:49 UTC
Exists in the latest Kubuntu CI ISO for me.

Seems fixed with what will be frameworks 5.6
Comment 13 Johannes Hirte 2015-02-09 16:41:23 UTC
(In reply to David Edmundson from comment #12)
> Exists in the latest Kubuntu CI ISO for me.
> 
> Seems fixed with what will be frameworks 5.6

It's not fixed. I'm using latest git version (Gentoo, live-ebuilds), so it's post 5.6, and I still don't have the suspend button.
Comment 14 David Edmundson 2015-02-09 16:53:08 UTC
Can you give me the result of 
qdbus --system org.freedesktop.login1 /org/freedesktop/login1 org.freedesktop.login1.Manager.CanSuspend
Comment 15 Johannes Hirte 2015-02-11 20:05:10 UTC
(In reply to David Edmundson from comment #14)
> Can you give me the result of 
> qdbus --system org.freedesktop.login1 /org/freedesktop/login1
> org.freedesktop.login1.Manager.CanSuspend

Service 'org.freedesktop.login1' does not exist.
Comment 16 Johannes Hirte 2015-03-12 21:42:05 UTC
Switched to systemd for testing and suspend is possible from GUI now. Seems KDE gets more and more systemd dependent too. :(