Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 314903 - gnome-extra/gnome-screensaver-2.28.3 : resume doesn't work with it
Summary: gnome-extra/gnome-screensaver-2.28.3 : resume doesn't work with it
Status: RESOLVED TEST-REQUEST
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL: https://bugzilla.gnome.org/show_bug.c...
Whiteboard:
Keywords:
: 347505 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-04-12 23:09 UTC by rg b
Modified: 2011-01-31 18:24 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
80xgamma (80xgamma.txt,81 bytes, text/plain)
2010-12-02 12:59 UTC, Pacho Ramos
Details

Note You need to log in before you can comment on or make changes to this bug.
Description rg b 2010-04-12 23:09:21 UTC
If gnome-extra/gnome-screensaver is installed I cant resume from sleep anymore; giving me a black screen with cursor but nothing else, the cursor can move.



Reproducible: Always

Steps to Reproduce:
1.Install gnome-extra/gnome-screensaver
2.Suspend the computer
3.Resume

Actual Results:  
Black screen, unable to waking up correctly.

Expected Results:  
Should ask a password then coming back into the previous session
Comment 1 Pacho Ramos gentoo-dev 2010-04-13 15:57:09 UTC
Are you sure is it a gnome-screensaver problem? Do you have special 3D effects (compiz and similar) enabled? 

Maybe this could be related with:
http://bbs.archlinux.org/viewtopic.php?id=90971

To try to verify it's caused by gnome-screensaver, you can try to kill it before suspending and look if resume succeeds 
Comment 2 Pacho Ramos gentoo-dev 2010-04-13 16:04:41 UTC
Also seems like:
http://www.mail-archive.com/debian-x@lists.debian.org/msg93567.html

It could maybe be caused by your X driver, what driver do you have? Maybe try a newer xorg (bug 308521) could help you...
Comment 3 rg b 2010-04-14 03:47:42 UTC
For sure it's a gnome-screensaver problem, withtout it, resuming works fine.

But now, the problem is a little bit different than last time I tried it :

When resuming, I get a black screen without cursor this time; switching tty then the lock screen appears.

There is no special effect beside compositing but no compiz.

It is better than previously, maybe a nouveau problem.
Comment 4 Yang Zhao 2010-04-14 09:07:33 UTC
xorg-server version?  Seeing similar symptoms with gnome-screensaver-2.26 after updating X to current stable candidates; DDX is radeonhd.
Comment 5 Raffaello D. Di Napoli 2010-04-15 14:17:19 UTC
I have a similar, possibly same, problem.
I’m using:
- Intel GMA965
- sys-kernel/gentoo-sources-2.6.32-r7 with KMS
- x11-base/xorg-server-1.7.6
- x11-drivers/xf86-video-intel-2.9.1
- GNOME 2.26
- gnome-screensaver-2.26.1-r1 (or 2.28.3, it doesn’t matter)
- metacity or compiz, it doesn’t matter

If the “screen saver locks screen” feature is enabled, resuming from GNOME-initiated suspend-to-disk/memory will invariably result in a black screen, with no possibility to switch to a different vt (keyboard and mouse apparently dead).

The first few tries, I assumed I was facing an X crash, so I recovered it ssh’ing to the computer, and restarting gdm.
Then one guy on #archlinux told me he had had the same problem, which he solved by disabling the screen saver locking feature, and that did work.

So I kept on trying, focusing on gnome-screensaver: using a shell in X reading from a pipe, with the other end being fed commands through ssh, I run from another box:

gnome-screensaver-command -l
sudo pm-suspend

obtaining the very same black screen upon resuming.

Then I found this:
http://www.mail-archive.com/debian-x@lists.debian.org/msg94904.html
where I got the idea to try the xgamma workaround, and it worked: after resuming, I blindly entered my password, hit Win+T (shortcut to gnome-terminal on my computer), then entered 'xgamma -gamma 1', and the screen was restored!

Then I also found this bug, confirming that Debian #565344 must be related to this one.

Now, as a workaround, I created a keyboard shortcut from within the window manager, bound to executing 'xgamma -gamma 1', which works just fine. Of course I’d rather not have to do that every time I resume my computer :)

Please tell me if I can help anyhow. In case that isn’t clear, I have another fully working Gentoo box, so I can engage in remote debugging.
Comment 6 Pacho Ramos gentoo-dev 2010-04-15 21:10:55 UTC
It's good to know this is not a regression over gnome-screensaver-2.26, thanks a lot

I will CC X11 team as I am not sure if this could be a problem with some X11 drivers, kernel suspend... :-/
Comment 7 Rémi Cardona (RETIRED) gentoo-dev 2010-04-16 05:42:28 UTC
@Zhao and Raffaello, I think you guys are having driver issues. Please file separate bugs to get this looked at.

@Pacho, the original poster is indeed having GDM issues, which he confirmed are not related to X since he manages to suspend just fine manually.

Removing X11 from CC, as we'll try to figure out the other 2 bugs once they're reported.

Thanks
Comment 8 Pacho Ramos gentoo-dev 2010-05-08 08:04:08 UTC
@rg b: does workaround suggested in comment #5 ?

Other, did you opened different bugs for your problems as suggested in comment #7 ?
Comment 9 Pacho Ramos gentoo-dev 2010-06-13 19:52:25 UTC
(In reply to comment #8)
> @rg b: does workaround suggested in comment #5 ?
> 
> Other, did you opened different bugs for your problems as suggested in comment
> #7 ?
> 

Comment 10 Anton Bolshakov 2010-12-02 04:34:36 UTC
(In reply to comment #5)
> where I got the idea to try the xgamma workaround, and it worked: after

Thank you Fernando for the hint. I've automated the workaround in the bug #347505
Comment 11 Pacho Ramos gentoo-dev 2010-12-02 12:57:48 UTC
*** Bug 347505 has been marked as a duplicate of this bug. ***
Comment 12 Pacho Ramos gentoo-dev 2010-12-02 12:59:02 UTC
Created attachment 256153 [details]
80xgamma

Workaround from http://bugs.gentoo.org/show_bug.cgi?id=347505#c1
Comment 13 Pacho Ramos gentoo-dev 2010-12-02 13:01:29 UTC
Reopening since information was provided, but I need someone else to check if this is properly assigned since, after reading the other reports, this looks more like a X drivers issue than a gnome one :-/
Comment 14 Anton Bolshakov 2010-12-02 13:09:22 UTC
Just for a record, I'm using a different driver: x11-drivers/xf86-video-ati-6.13.2/x11-base/xorg-server-1.9.2 and tried both r300 gallium and classic (via mesa-7.9). The stable version is affected too.


Comment 15 Pacho Ramos gentoo-dev 2010-12-02 13:46:30 UTC
Anton, could you try to report this directly to gnome-screensaver upstream?
https://bugzilla.gnome.org/enter_bug.cgi?product=gnome-screensaver

Thanks
Comment 16 Anton Bolshakov 2010-12-02 14:03:05 UTC
https://bugzilla.gnome.org/show_bug.cgi?id=636297
Comment 17 Raffaello D. Di Napoli 2010-12-02 15:42:45 UTC
Sorry for this long wait, I’m back, with few news.

The workaround I discovered still works, and it’s probably why I haven’t given the issue much thought recently.

The bug is still there, even though I updated pretty much every single package involved. I must say it seems much less frequent since I updated to GNOME 2.30; before that, the frequency was 100%, while now I even manage to forget once in a while that the issue is still there, as it happens about once every other week.

Just some more thoughts into actually fixing the bug, rather than working around it: I came up with the idea that it may be related to the fade-out screen saver/locking feature, since I don’t remember the screen fading to black in versions of gnome-screen-saver before the bug appeared (i.e. 2.24 and earlier).

In short, my idea is that the screen is gradually faded to black when gnome-screen-saver kicks in, but upon resuming from standby, the function in gnome-screen-saver that restores the gamma somehow fails, and that goes (seemingly) completely unnoticed. Other than the screen staying black, that is :)

@Rémi, @Pacho: sorry, I haven’t yet filed a separate driver bug. I’ll do that soon (hopefully), and I’ll link to it here.



emerge --info sys-kernel/gentoo-sources x11-base/xorg-server x11-drivers/xf86-video-intel gnome-screensaver
Portage 2.1.9.24 (default/linux/x86/10.0, gcc-4.4.4, glibc-2.11.2-r3, 2.6.34-gentoo-r12 i686)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.34-gentoo-r12-i686-Intel-R-_Core-TM-2_Duo_CPU_T5550_@_1.83GHz-with-gentoo-2.0.1
Timestamp of tree: Mon, 29 Nov 2010 14:45:01 +0000
distcc 3.1 i686-pc-linux-gnu [disabled]
app-shells/bash:     4.1_p7
dev-java/java-config: 2.1.11-r1
dev-lang/python:     2.6.5-r3, 3.1.2-r4
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 2.0.1-r1
sys-apps/openrc:     0.6.5
sys-apps/sandbox:    2.3-r1
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.4-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.30-r1 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA AdobeFlash-10.1 dlj-1.1 PUEL skype-eula"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=core2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php4/ext-active/ /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php4/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php4/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=core2 -pipe"
DISTDIR="/depot/portage/distfiles"
FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="   ftp://lug.mtu.edu/gentoo/   ftp://mirror.switch.ch/mirror/gentoo "
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="it"
MAKEOPTS="-j4"
PKGDIR="/depot/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/rsync.exclude"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/var/lib/portage/tree"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X acl acpi aio alsa bash-completion branding bzip2 cairo cdda cddb cdr cli consolekit crypt cups cxx dbus dga dri eds encode exif fat fbcon ffmpeg flac fontconfig ftp fuse gconf gd gif gnome gnome-keyring gphoto2 gpm gstreamer gtk hddtemp iconv ieee1394 jpeg jpeg2k lcms libnotify lm_sensors lzma midi mmap mmx mng modules mp3 mpeg mudflap nautilus ncurses nls nptl nptlonly nsplugin ntfs offensive ogg opengl openmp pam pch pcre pdf png policykit posix pppd qt3support samba session smp sockets spell sqlite sqlite3 sse sse2 sse3 ssl ssse3 startup-notification svg symlink sysfs syslog system-sqlite sysvipc tcpd theora threads thumbnail tiff truetype udev unicode v4l v4l2 vaapi vorbis wifi x86 xattr xorg xpm xulrunner xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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="   actions alias asis auth_basic authz_host autoindex   cgi cgid   dir   env   headers   ident include   log_config   mime mime_magic   negotiation   rewrite   version " APACHE2_MPMS="worker" 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="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="it" PHP_TARGETS="php5-2" QEMU_SOFTMMU_TARGETS="i386 ppc x86_64" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel" 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, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS

=================================================================
                        Package Settings
=================================================================

sys-kernel/gentoo-sources-2.6.34-r12 was built with the following:
USE="symlink -build -deblob"


x11-base/xorg-server-1.7.7-r1 was built with the following:
USE="hal nptl xorg -debug -dmx -ipv6 -kdrive -minimal -sdl -tslib"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,lazy"


x11-drivers/xf86-video-intel-2.9.1 was built with the following:
USE="dri -debug"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,lazy"


gnome-extra/gnome-screensaver-2.30.0 was built with the following:
USE="branding libnotify opengl pam -debug -doc"
Comment 18 Pacho Ramos gentoo-dev 2011-01-31 12:43:47 UTC
Is this still valid with Gnome 2.32 and latest X?
Comment 19 Raffaello D. Di Napoli 2011-01-31 15:07:09 UTC
(In reply to comment #18)
> Is this still valid with Gnome 2.32 and latest X?
 
Now that you call my attention on it, the issue hasn’t occurred in quite a long time now. I’m still with stable GNOME 2.30, but everything else has been updated, (and I finally got rid of hal).

I don’t know if I consider the issue solved yet, but if this is its new occurrence frequency, then it has become a lot harder to debug :)




emerge --info sys-kernel/gentoo-sources x11-base/xorg-server x11-drivers/xf86-video-intel gnome-screensaver
Portage 2.1.9.25 (default/linux/x86/10.0, gcc-4.4.4, glibc-2.11.2-r3, 2.6.36-gentoo-r5 i686)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.36-gentoo-r5-i686-Intel-R-_Core-TM-2_Duo_CPU_T5550_@_1.83GHz-with-gentoo-2.0.1
Timestamp of tree: Mon, 31 Jan 2011 04:45:03 +0000
distcc 3.1 i686-pc-linux-gnu [disabled]
app-shells/bash:     4.1_p9
dev-java/java-config: 2.1.11-r3
dev-lang/python:     2.6.6-r1, 3.1.2-r4
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 2.0.1-r1
sys-apps/openrc:     0.7.0
sys-apps/sandbox:    2.4
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.4.4-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.30-r1 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA AdobeFlash-10.1 dlj-1.1 PUEL skype-eula"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=core2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php4/ext-active/ /etc/php/apache2-php5.2/ext-active/ /etc/php/cgi-php4/ext-active/ /etc/php/cgi-php5.2/ext-active/ /etc/php/cli-php4/ext-active/ /etc/php/cli-php5.2/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=core2 -pipe"
DISTDIR="/depot/portage/distfiles"
EMERGE_DEFAULT_OPTS="--quiet-unmerge-warn"
FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch usersync"
GENTOO_MIRRORS="   ftp://lug.mtu.edu/gentoo/   ftp://mirror.switch.ch/mirror/gentoo "
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="it"
MAKEOPTS="-j4"
PKGDIR="/depot/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/rsync.exclude"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/var/lib/portage/tree"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="X acl acpi aio alsa bash-completion branding bzip2 cairo cdda cddb cdr cli consolekit crypt cups cxx dbus dga dri eds encode exif fat fbcon ffmpeg flac fontconfig ftp fuse gconf gd gif gnome gnome-keyring gphoto2 gpm gstreamer gtk hddtemp iconv ieee1394 jpeg jpeg2k lcms libnotify lm_sensors lzma midi mmap mmx mng modules mp3 mpeg mudflap nautilus ncurses nls nptl nptlonly nsplugin ntfs offensive ogg opengl openmp pam pch pcre pdf png policykit posix pppd qt3support samba session smp sockets sqlite sqlite3 sse sse2 sse3 ssl ssse3 startup-notification svg symlink sysfs syslog system-sqlite sysvipc tcpd theora threads thumbnail tiff truetype udev unicode v4l v4l2 vaapi vorbis wifi x86 xattr xorg xpm xulrunner xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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="actions alias asis auth_basic authz_host autoindex cgi cgid dir env headers ident include log_config mime mime_magic negotiation rewrite version" APACHE2_MPMS="worker" 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="evdev keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="it" PHP_TARGETS="php5-3" QEMU_SOFTMMU_TARGETS="i386 ppc x86_64" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="intel" 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, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS

=================================================================
                        Package Settings
=================================================================

sys-kernel/gentoo-sources-2.6.36-r5 was built with the following:
USE="symlink -build -deblob"


x11-base/xorg-server-1.9.2 was built with the following:
USE="nptl udev xorg -dmx -doc -ipv6 -kdrive -minimal -static-libs -tslib"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,lazy"


x11-drivers/xf86-video-intel-2.13.0 was built with the following:
USE="dri"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,lazy"


gnome-extra/gnome-screensaver-2.30.2 was built with the following:
USE="branding libnotify opengl pam -debug -doc"
Comment 20 Pacho Ramos gentoo-dev 2011-01-31 18:24:25 UTC
Well ask other people to test as I think that maybe Xorg update could be the cause of the fixing for you