Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 296642

Summary: sys-power/hibernate-script-2.0-r1:missing Display :0 handled as "user abort"
Product: Gentoo Linux Reporter: Michael Weber (RETIRED) <xmw>
Component: Current packagesAssignee: Krzysztof Pawlik (RETIRED) <nelchael>
Status: RESOLVED UPSTREAM    
Severity: normal CC: mobile+disabled
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
URL: http://bugzilla.tuxonice.net/show_bug.cgi?id=452
Whiteboard:
Package list:
Runtime testing required: ---

Description Michael Weber (RETIRED) gentoo-dev 2009-12-12 18:19:40 UTC
Usually, we have at leas one Xorg instance running by gdm, but we call hibernate thru a modified /sbin/shutdown. 
1. gnome user activates System->Shutdown
2. gnome terminates, x server restarts
2. /sbin/shutdown gets called by /usr/sbin/console-kit-daemon

=> the might not be a working Xorg DISPLAY :0 when hibernate tries to signal progress.

Reproducible: Always

Steps to Reproduce:
1. /etc/hibernate/common.conf
  LockXScreenSaver yes
  LockGnomeScreenSaver yes
  LockFreedesktop yes
  LockKDE yes
  LockXLock yes
  LockXAutoLock yes
  LockXtrLock yes
2. stop all Xorg instances (by /etc/init.d/xdm stop)
3. call hibernate

Actual Results:  
emo ~ # LANG="" hibernate
(zenity:23752): Gtk-WARNING **: cannot open display: :0
hibernate: Suspend aborted by user.
/usr/share/hibernate/scriptlets.d/xstatus: line 106: echo: write error: Broken pipe

Expected Results:  
-missing Xorg/broken pipe interpreted as no X based user interaction at all.
-hibernation!

emo ~ # emerge --info
Portage 2.1.6.13 (default/linux/amd64/10.0/desktop, gcc-4.3.4, glibc-2.10.1-r0, 2.6.32-gentoo-gauss.0 x86_64)
=================================================================
System uname: Linux-2.6.32-gentoo-gauss.0-x86_64-AMD_Phenom-tm-_II_X4_955_Processor-with-gentoo-2.0.1
Timestamp of tree: Thu, 10 Dec 2009 17:00:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
ccache version 2.4 [enabled]
app-shells/bash:     4.0_p35
dev-java/java-config: 2.1.9-r1
dev-lang/python:     2.6.4
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.5.3
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.7.9-r1, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=amdfam10 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /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 /etc/udev/rules.d"
CXXFLAGS="-O2 -march=amdfam10 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going --jobs 5"
FEATURES="ccache distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://nash.fs.lmu.de/gentoo/"
LANG="de_DE.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="en en_US en_GB de"
MAKEOPTS="-j12"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --ipv6"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/portage/layman/sunrise /usr/local/portage/layman/xmw /usr/local/portage/layman/scarabeus"
SYNC="rsync://nash.fs.lmu.de/gentoo-portage"
USE="3dnow 3dnowext 7zip X a52 aac acl acpi alsa amd64 bash-completion berkdb bluetooth branding bzip2 cairo cblas cdr cjk cli consolekit cracklib crypt cups cxx dbus dia djvu dri dts dv dvd dvdr dvi eds emacs emboss encode esd evo faad fam fbcon ffmpeg firefox flac fortran gcj gdbm gif gnome gpm gs gstreamer gtk hal iconv ipv6 java java5 java6 jpeg jpeg2k kde lame latex lcms ldap libnotify mad maps mikmod mmx mmxext modules mp3 mp4 mpeg mpi mplayer mudflap multilib nautilus ncurses new-login nls nodrm nptl nptlonly nsplugin ogg openal opengl openmp pam pcre pdf perl plotutils png postscript ppds pppd python qt3 qt3support qt4 quicktime rar readline reflection schroedinger sdl server session spell spl sse sse2 sse3 sse4a ssl startup-notification svg sysfs tcpd threads thunar tiff tk truetype unicode usb vim-syntax vorbis win32codec wmf x264 xml xorg xulrunner xv xvid zlib" 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="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 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" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US en_GB de" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Krzysztof Pawlik (RETIRED) gentoo-dev 2010-04-18 00:26:33 UTC
Have you reported this issue to upstream?
Comment 2 Michael Weber (RETIRED) gentoo-dev 2010-04-18 21:53:04 UTC
hereby done.
Comment 3 Krzysztof Pawlik (RETIRED) gentoo-dev 2010-04-18 22:06:19 UTC
Awesome! This should be in next hibernate-script version.