Suspend not available in Cinnamon after upgrade to Ubuntu 15.04

Bug #1446276 reported by Jose Gómez
46
This bug affects 10 people
Affects Status Importance Assigned to Milestone
cinnamon-session (Ubuntu)
Fix Released
High
Unassigned

Bug Description

After the upgrade to Ubuntu 15.04, the suspend option is not available in Cinnamon.

The Cinnamon team states that some Systemd library may be missing in Ubuntu: https://github.com/linuxmint/Cinnamon/issues/4060

I have tried to boot using Upstart (using advanced boot) and the suspend option is not available either, so there may be a separate issue affecting Upstart.

ProblemType: Bug
DistroRelease: Ubuntu 15.04
Package: udev 219-7ubuntu3
ProcVersionSignature: Ubuntu 3.19.0-15.15-generic 3.19.3
Uname: Linux 3.19.0-15-generic x86_64
ApportVersion: 2.17.2-0ubuntu1
Architecture: amd64
CurrentDesktop: X-Cinnamon
CustomUdevRuleFiles: 60-ssd-scheduler.rules
Date: Mon Apr 20 16:09:05 2015
InstallationDate: Installed on 2014-02-04 (440 days ago)
InstallationMedia: Ubuntu-GNOME 14.04 "Trusty Tahr" - Alpha amd64 (20140203)
MachineType: Dell Inc. XPS 15 9530
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.19.0-15-generic.efi.signed root=UUID=d7bcaffd-60e1-4fef-93fb-3d73a8d18907 ro quiet splash vt.handoff=7
SourcePackage: systemd
UpgradeStatus: Upgraded to vivid on 2015-02-26 (52 days ago)
dmi.bios.date: 10/15/2014
dmi.bios.vendor: Dell Inc.
dmi.bios.version: A07
dmi.board.name: XPS 15 9530
dmi.board.vendor: Dell Inc.
dmi.board.version: A07
dmi.chassis.type: 8
dmi.chassis.vendor: Dell Inc.
dmi.chassis.version: Not Specified
dmi.modalias: dmi:bvnDellInc.:bvrA07:bd10/15/2014:svnDellInc.:pnXPS159530:pvrA07:rvnDellInc.:rnXPS159530:rvrA07:cvnDellInc.:ct8:cvrNotSpecified:
dmi.product.name: XPS 15 9530
dmi.product.version: A07
dmi.sys.vendor: Dell Inc.

Revision history for this message
Jose Gómez (adler-dreamcoder) wrote :
Changed in systemd (Ubuntu):
importance: Undecided → High
milestone: none → vivid-updates
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in systemd (Ubuntu):
status: New → Confirmed
Revision history for this message
Martin Pitt (pitti) wrote :

suspend happens through logind since Ubuntu 13.10. The package depends on libsystemd-login-dev, and according to the build log (https://launchpadlibrarian.net/188689398/buildlog_ubuntu-vivid-amd64.cinnamon-session_2.2.2-5build1_UPLOADING.txt.gz) it uses systemd for session tracking. Our systemd package ships all libraries, we didn't disable any.

So I suggest debugging what cinnamon-session tries to call when it determines whether suspend is available, there's obviously some bug there.

affects: systemd (Ubuntu) → cinnamon-session (Ubuntu)
Revision history for this message
Jose Gómez (adler-dreamcoder) wrote :

As indicated in https://github.com/linuxmint/Cinnamon/issues/4060#issuecomment-93941975, Cinnamon tests for systemd-logind or old upower:

https://github.com/linuxmint/cinnamon-session/blob/master/cinnamon-session/csm-logout-dialog.c#L190

Apparently, the new systemd-login is still not supported.

Revision history for this message
Jose Gómez (adler-dreamcoder) wrote :
Revision history for this message
Jon Bakker (xc-racer2) wrote :

I also had this bug but by setting three different keys to true as seen under the "cinnamon-desktop, cinnamon-session, cinnamon-settings-daemon, cinnamon-screensaver" section at http://segfault.linuxmint.com/2015/05/cinnamon-2-6-updates-romeo/ brought the suspend button back. See comment #2 by clem for the full keys to change.

I don't think this matters, but I am on a fresh install of 15.04.

By the way, these three keys are only available in Cinnamon 2.6 - I'm not sure what other previous versions used

Revision history for this message
Jose Gómez (adler-dreamcoder) wrote :

Confirmed. Updating to Cinnamon 2.6 (using the PPA ppa:moorkai/cinnamon), and executing the commands below, solved the issue for me (after a restart).

gsettings set org.cinnamon.desktop.session settings-daemon-uses-logind true
gsettings set org.cinnamon.desktop.session session-manager-uses-logind true
gsettings set org.cinnamon.desktop.session screensaver-uses-logind false

Revision history for this message
Fantu (fantonifabio) wrote :

Official cinnamon packages (sync from debian) have already systemd enabled by default and should be ok.
The only cases where this is not working FWIK is upgrade from unofficial repo/ppa that not have systemd support and keys enabled by default.

Mathew Hodson (mhodson)
Changed in cinnamon-session (Ubuntu):
milestone: vivid-updates → none
Fantu (fantonifabio)
Changed in cinnamon-session (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.