Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 468686 - gnome-base/gdm-3.8: suspend doesn't work
Summary: gnome-base/gdm-3.8: suspend doesn't work
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL: https://bugzilla.gnome.org/show_bug.c...
Whiteboard:
Keywords:
Depends on:
Blocks: gnome-3.8
  Show dependency tree
 
Reported: 2013-05-05 18:21 UTC by Mark R. Pariente
Modified: 2013-08-02 13:14 UTC (History)
3 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 Mark R. Pariente 2013-05-05 18:21:42 UTC
Just upgraded from GNOME 3.6 to 3.8 using the masked packages in portage. Among one of the regressions is that clicking "suspend" in gdm doesn't do anything. Using power off or reboot from gdm works. Using suspend from within the GNOME session by opening the user menu and clicking ALT to make the suspend option visible works (system is suspended), so the issue seems specific to gdm.

I'm using systemd, so the issue might be specific to this combination.

Reproducible: Always




# emerge --info
Portage 2.1.11.63 (default/linux/amd64/13.0/desktop/gnome, gcc-4.7.2, glibc-2.17, 3.9.0-gentoo x86_64)
=================================================================
System uname: Linux-3.9.0-gentoo-x86_64-Intel-R-_Core-TM-_i7_CPU_950_@_3.07GHz-with-gentoo-2.2
KiB Mem:    12281476 total,   9196944 free
KiB Swap:   16787888 total,  16787888 free
Timestamp of tree: Sun, 05 May 2013 18:00:01 +0000
ld GNU ld (GNU Binutils) 2.23.1
app-shells/bash:          4.2_p45
dev-java/java-config:     2.2.0::java-overlay
dev-lang/python:          2.7.4, 3.2.4
dev-util/cmake:           2.8.10.2-r2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.4_p6-r1, 1.9.6-r3, 1.10.3, 1.11.6, 1.13.1
sys-devel/binutils:       2.23.1
sys-devel/gcc:            4.7.2-r1
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r5::gnome
sys-kernel/linux-headers: 3.9 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo vmware megacoffee java-overlay mrpdaemon systemd multimedia steam-overlay infinality gnome Mark-s-local-portage-overlay
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O3 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.0/conf"
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"
CXXFLAGS="-march=native -O3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=n"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirror.usu.edu/mirrors/gentoo/ http://gentoo.llarian.net/ http://gentoo.mirrors.easynews.com/linux/gentoo/ http://gentoo.gossamerhost.com http://gentoo.mirrors.hoobly.com/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j9"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/vmware /var/lib/layman/megacoffee /var/lib/layman/java-overlay /var/lib/layman/mrpdaemon /var/lib/layman/systemd /var/lib/layman/multimedia /var/lib/layman/steam /var/lib/layman/infinality /var/lib/layman/gnome /usr/local/portage"
SYNC="rsync://magpie.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 artworkextra avahi bash-completion berkdb bluray branding bzip2 cairo cdda cdr cleartype cli clutter colord consolekit cracklib crypt cscope cups cxx dbus devhelp device-mapper dri dts dv dvd dvdr eds emboss encode evo exif faac fam ffmpeg firefox flac fortran fuse gdbm gdu geoloc gif git glade glitz gnome gnome-keyring gnome-online-accounts gnutls gphoto2 gpm gstreamer gtk gtk2 gtk3 hostip iconv id3tag ipv6 jabber jpeg lame lcms libnotify libsecret mad map mmx mmxext mng modules mp3 mp4 mpeg msn mudflap multilib nautilus ncurses networkmanager nls nptl ogg opengl openmp pam pango pcre pdf png policykit ppds pulseaudio python qt3support qt4 quicktime readline rtmp sdl session socialweb spell sse sse2 sse3 ssl ssse3 startup-notification svg systemd tcpd theora threads tiff tracker truetype udev udisks unicode upower usb v4l v4l2 vala vdpau vim-syntax vorbis vpx wav wxwidgets x264 xcb xcomposite xml xv xvid xvmc zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" 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 access_compat" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="*" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" 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 ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="nvidia" 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:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Mark R. Pariente 2013-05-08 18:07:06 UTC
Upgraded to systemd-203 (was using 202) and now suspend doesn't work neither in gdm nor in the user menu from within the session. Suspending with pm-suspend works fine, and with GNOME 3.6 both gdm and the user menu suspend worked.
Comment 2 Pacho Ramos gentoo-dev 2013-05-08 18:26:30 UTC
(In reply to comment #1)
> Upgraded to systemd-203 (was using 202) and now suspend doesn't work neither
> in gdm nor in the user menu from within the session. Suspending with
> pm-suspend works fine, and with GNOME 3.6 both gdm and the user menu suspend
> worked.

No idea if something changed in 203 causing that regression :(
Comment 3 poncho 2013-05-08 18:31:47 UTC
(In reply to comment #1)
> Upgraded to systemd-203 (was using 202) and now suspend doesn't work neither
> in gdm nor in the user menu from within the session.

probably bug 468998
Comment 4 Mark R. Pariente 2013-05-09 01:58:39 UTC
So, upgrading to systemd-203-r1 did fix the suspend issue from the user menu, but even with 203-r1 suspend from gdm doesn't work.

I noticed that upower has a "deprecated" use flag that was set in my case which makes it use pm-utils instead of systemd for suspending, so I emerged upower with -deprecated hoping that would solve my issue. Unfortunately it doesn't seem to matter, I still can't suspend the system from gdm by clicking the top right power icon and then selecting suspend. Power off / restart works though. Any pointers on how to go about debugging what is going on?
Comment 5 Mark R. Pariente 2013-05-09 06:37:53 UTC
Upgraded to gdm-3.8.1.1 to see if upstream fixed anything but still no dice, can't suspend stuff from gdm.

I think the problem might be with upower. I'm trying to get upower suspend stuff working from the cmdline with dbus-send and I'm having trouble. Let me see if I can figure out what is going on here.
Comment 6 Mark R. Pariente 2013-05-09 07:23:45 UTC
It looks like this might be the same issue as bug 462476.
Comment 7 Mark R. Pariente 2013-05-09 07:39:05 UTC
So the weird thing is, manually triggering a suspend into upower works:

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

(system is suspended)

So it looks like the issue is NOT upower related, but somehow related to the way gdm is using upower.
Comment 8 crabbed halo ablution 2013-05-10 15:08:20 UTC
(In reply to comment #7)
> So the weird thing is, manually triggering a suspend into upower works:
> 
> # dbus-send --print-reply --system --dest=org.freedesktop.UPower
> /org/freedesktop/UPower org.freedesktop.UPower.Suspend
> 
> (system is suspended)
> 
> So it looks like the issue is NOT upower related, but somehow related to the
> way gdm is using upower.

The issue with systemd-203 is fixed in systemd-204 according to upstream private mail.
They added a new configuration file to control what "suspend" "hybrid-sleep" and "hibernate" would do, but defaulted to doing nothing if that file didn't exist.
Comment 9 Mark R. Pariente 2013-05-16 08:53:36 UTC
Upgraded to systemd-204 and gnome 3.8.2 but still can't suspend from GDM. I'm guessing this is a gdm issue (not fixed as of 3.8.1.1).
Comment 10 Mark R. Pariente 2013-08-02 09:06:44 UTC
BTW, this has been fixed, suspecting gdm-3.8.4 upgrade fixed it.
Comment 11 Alexandre Rostovtsev (RETIRED) gentoo-dev 2013-08-02 13:14:48 UTC
(In reply to Mark R. Pariente from comment #10)
> BTW, this has been fixed, suspecting gdm-3.8.4 upgrade fixed it.

Good to hear.