Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 164773
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Alon Bar-Lev (RETIRED) <alonbl@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Raymond Lewis Rebbeck <dystopianray@gmail.com>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
hibernate.out hibernate-ram stdout text/plain Raymond Lewis Rebbeck 2007-02-01 14:16 0000 1.63 KB Details
hibernate.err hibernate-ram stderr text/plain Raymond Lewis Rebbeck 2007-02-01 14:18 0000 62.75 KB Details
hibernate.out hibernate-ram stdout (reverted vbetool scriptlet) text/plain Raymond Lewis Rebbeck 2007-02-02 00:05 0000 1.63 KB Details
hibernate.err hibernate-ram stderr (reverted vbetool scriptlet) text/plain Raymond Lewis Rebbeck 2007-02-02 00:05 0000 62.67 KB Details
fix-sigpipe.diff Fixes the vbetool bug. patch Bernard Blackham 2007-02-10 00:42 0000 372 bytes Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 164773 depends on: Show dependency tree
Bug 164773 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2007-02-01 03:31 0000
After upgrading to sys-power/hibernate-script-1.94-r3 my laptop is no longer
able to wake up properly from suspend. I am using the i810 driver with i915
hardware. I am left with a black screen with no cursor or any other indication
of activity. Downgrading to the previous version
sys-power/hibernate-script-1.93-r6 allows the machine to wake up from suspend
with no problems. I also tried deleting all configuration files
/etc/hibernate/* and re-emerging, although it did not help.

Gentoo Base System version 1.12.6
Portage 2.1.1-r2 (default-linux/x86/2006.1/desktop, gcc-4.1.1, glibc-2.4-r4,
2.6.18-gentoo-r6 i686)
=================================================================
System uname: 2.6.18-gentoo-r6 i686 Intel(R) Pentium(R) M processor 1.73GHz
Last Sync: Thu, 01 Feb 2007 01:50:01 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.31
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium-m -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config
/usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf
/etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -march=pentium-m -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ymir/gentoo http://distfiles.gentoo.org
http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="en_AU.UTF-8"
LINGUAS="en"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress
--force --whole-file --delete --delete-after --stats --timeout=180
--exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://ymir/gentoo-portage"
USE="x86 X a52 aac acpi alsa alsa_cards_ali5451 alsa_cards_als4000
alsa_cards_atiixp alsa_cards_atiixp-modem alsa_cards_bt87x alsa_cards_ca0106
alsa_cards_cmipci alsa_cards_emu10k1x alsa_cards_ens1370 alsa_cards_ens1371
alsa_cards_es1938 alsa_cards_es1968 alsa_cards_fm801 alsa_cards_hda-intel
alsa_cards_intel8x0 alsa_cards_intel8x0m alsa_cards_maestro3 alsa_cards_trident
alsa_cards_usb-audio alsa_cards_via82xx alsa_cards_via82xx-modem
alsa_cards_ymfpci alsa_pcm_plugins_adpcm alsa_pcm_plugins_alaw
alsa_pcm_plugins_asym alsa_pcm_plugins_copy alsa_pcm_plugins_dmix
alsa_pcm_plugins_dshare alsa_pcm_plugins_dsnoop alsa_pcm_plugins_empty
alsa_pcm_plugins_extplug alsa_pcm_plugins_file alsa_pcm_plugins_hooks
alsa_pcm_plugins_iec958 alsa_pcm_plugins_ioplug alsa_pcm_plugins_ladspa
alsa_pcm_plugins_lfloat alsa_pcm_plugins_linear alsa_pcm_plugins_meter
alsa_pcm_plugins_mulaw alsa_pcm_plugins_multi alsa_pcm_plugins_null
alsa_pcm_plugins_plug alsa_pcm_plugins_rate alsa_pcm_plugins_route
alsa_pcm_plugins_share alsa_pcm_plugins_shm alsa_pcm_plugins_softvol
bash-completion berkdb bitmap-fonts bzip2 cairo caps cdr cjk cli cracklib crypt
dbus dlloader dri dts dvd dvdr elibc_glibc emboss encode exif fam ffmpeg
firefox flac fortran gdbm gif gpm gtk hal iconv idn ieee1394
input_devices_keyboard input_devices_mouse input_devices_synaptics ipod ipv6
isdnlog java jpeg kde kdeenablefinal kdehiddenvisibility kernel_linux
lcd_devices_bayrad lcd_devices_cfontz lcd_devices_cfontz633 lcd_devices_glk
lcd_devices_hd44780 lcd_devices_lb216 lcd_devices_lcdm001 lcd_devices_mtxorb
lcd_devices_ncurses lcd_devices_text libg++ linguas_en mad midi mikmod mmx mp3
mpeg ncurses nls nptl nptlonly nsplugin ogg opengl pam pcmcia pcre perl png
ppds pppd python qt3 quicktime readline reflection samba sasl sdl session spell
spl sse sse2 ssl svg tcpd truetype truetype-fonts type1-fonts udev unicode usb
userland_GNU vcd video_cards_i810 vorbis wifi xml xorg xv xvid zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS,
PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

Reproducible: Always

Steps to Reproduce:
1. emerge =sys-power/hibernate-script-1.94-r3
2. # hibernate-ram
3. attempt to wake up machine

Actual Results:  
The machine will awake and you'll be left with a black screen.

Expected Results:  
The machine should wake up and be usable like with earlier hibernate-script
versions.

------- Comment #1 From Nick Bolten 2007-02-01 03:43:07 0000 -------
Confirmed with similar hardware, same version of hibernate-script but latest
stable kernel.

Portage 2.1.1-r2 (default-linux/x86/2006.1/desktop, gcc-4.1.1, glibc-2.4-r4,
2.6.19-gentoo-r5 i686)
=================================================================
System uname: 2.6.19-gentoo-r5 i686 Intel(R) Celeron(R) M processor        
1.40GHz
Gentoo Base System version 1.12.6
Last Sync: Wed, 31 Jan 2007 10:30:01 +0000
ccache version 2.4 [enabled]
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.31
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r6
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium-m -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config
/usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf
/etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -march=pentium-m -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer parallel-fetch sandbox
sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_US.UTF-8"
LINGUAS="en ja de"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress
--force --whole-file --delete --delete-after --stats --timeout=180
--exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X a52 aac acpi aiglx alsa alsa_cards_hda-intel alsa_pcm_plugins_adpcm
alsa_pcm_plugins_alaw alsa_pcm_plugins_asym alsa_pcm_plugins_copy
alsa_pcm_plugins_dmix alsa_pcm_plugins_dshare alsa_pcm_plugins_dsnoop
alsa_pcm_plugins_empty alsa_pcm_plugins_extplug alsa_pcm_plugins_file
alsa_pcm_plugins_hooks alsa_pcm_plugins_iec958 alsa_pcm_plugins_ioplug
alsa_pcm_plugins_ladspa alsa_pcm_plugins_lfloat alsa_pcm_plugins_linear
alsa_pcm_plugins_meter alsa_pcm_plugins_mulaw alsa_pcm_plugins_multi
alsa_pcm_plugins_null alsa_pcm_plugins_plug alsa_pcm_plugins_rate
alsa_pcm_plugins_route alsa_pcm_plugins_share alsa_pcm_plugins_shm
alsa_pcm_plugins_softvol anthy asf berkdb bitmap-fonts bzip2 cairo cdr cjk cli
cracklib crypt cups dbus dlloader dri dvd dvdr elibc_glibc emboss encode fam
ffmpeg firefox flac foomaticdb fortran gdbm gif gpm hal iconv imagemagick imlib
immqt-bc input_devices_evdev input_devices_keyboard input_devices_mouse
input_devices_synaptics ipv6 isdnlog java jpeg kde kernel_linux
lcd_devices_bayrad lcd_devices_cfontz lcd_devices_cfontz633 lcd_devices_glk
lcd_devices_hd44780 lcd_devices_lb216 lcd_devices_lcdm001 lcd_devices_mtxorb
lcd_devices_ncurses lcd_devices_text ldap libg++ linguas_de linguas_en
linguas_ja mad matroska midi mikmod mmx mp3 mpeg mplayer ncurses nls nptl
nptlonly offensive ogg opengl oss pam pcre pdf perl png ppds pppd python qt qt3
qt4 quicktime readline reflection sdl session spell spl sse sse2 ssl svg svga
tcpd theora truetype truetype-fonts type1-fonts udev unicode usb userland_GNU
video_cards_i810 video_cards_i915 video_cards_vesa vorbis win32codecs xine xml
xorg xscreensaver xv yahoo zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS,
PORTAGE_RSYNC_EXTRA_OPTS

------- Comment #2 From Nick Bolten 2007-02-01 03:52:05 0000 -------
Also, this issue still occurs outside of X

------- Comment #3 From Alon Bar-Lev (RETIRED) 2007-02-01 11:55:59 0000 -------
Uncomment the following in /etc/hibernate/common.conf:
# Runi915resolution yes

It was changed from 810 to 915.
I guess you should also need to up grade sys-apps/855resolution to
sys-apps/915resolution.

But it is strange that without X... Do you have sys-apps/vbetool installed?

Are you trying suspend-to-ram or suspend-to-disk?
If you are trying suspend-to-disk, have you tried to uncomment the following
from common.conf:
# EnableVbetool yes
And optionally:
# VbetoolPost yes

------- Comment #4 From Raymond Lewis Rebbeck 2007-02-01 13:04:13 0000 -------
(In reply to comment #3)
> Uncomment the following in /etc/hibernate/common.conf:
> # Runi915resolution yes
> 
> It was changed from 810 to 915.
> I guess you should also need to up grade sys-apps/855resolution to
> sys-apps/915resolution.

I was never using 855resolution to begin with, so I'm not sure how that would
change anything.

> 
> But it is strange that without X... Do you have sys-apps/vbetool installed?

I can confirm that it also fails without X running for me. I do have vbetool
installed.

> 
> Are you trying suspend-to-ram or suspend-to-disk?

I am doing suspend to ram. It works perfectly with
=sys-power/hibernate-script-1.93-r6

> If you are trying suspend-to-disk, have you tried to uncomment the following
> from common.conf:
> # EnableVbetool yes
> And optionally:
> # VbetoolPost yes
> 

------- Comment #5 From Nick Bolten 2007-02-01 13:21:06 0000 -------
I've been using 915resolution before this as well.  I'm using the hibernate-ram
command and resume freezes the screen with the built-in 915resolution option, a
manual 915resolution command added in, and with both removed.  This appears to
affect only the screen, as I can still type the 'poweroff' command (when X
isn't running) and it shuts down just fine.
My Vbetool options haven't changed since upgrade, and when I use hibernate-ram
from X/KDE, resume gives me a frozen screen with artifacts - if it was just
vbetool failing, it would be black.

------- Comment #6 From Alon Bar-Lev (RETIRED) 2007-02-01 13:24:32 0000 -------
(In reply to comment #4)
> I was never using 855resolution to begin with, so I'm not sure how that would
> change anything.
No, you should not...

> > Are you trying suspend-to-ram or suspend-to-disk?
> 
> I am doing suspend to ram. It works perfectly with
> =sys-power/hibernate-script-1.93-r6

OK... So the issue is with vbetool not running correctly.
I need your help in order to find out why.

The only thing I can see was change in this regard is:
-    [ x"$VBETOOL_POST" = "x1" ] && vbetool post
+    [ x"$VBETOOL_POST" = "x1" ] && (vbetool post 2>&1 >&3 | vcat 2 >&2) 3>&1
<snip>
-    vbetool dpms on
+    (vbetool dpms on 2>&1 >&3 | vcat 2 >&2) 3>&1

So can you please run:
hibernate-ram --verbosity=4 > hibernate.out 2> hibernate.err
And attach the output.

Thanks!

------- Comment #7 From Alon Bar-Lev (RETIRED) 2007-02-01 13:31:44 0000 -------
(In reply to comment #5)
> My Vbetool options haven't changed since upgrade, and when I use hibernate-ram
> from X/KDE, resume gives me a frozen screen with artifacts - if it was just
> vbetool failing, it would be black.

OK... Another thought...
Can you please try to disable the ususpend from ram.conf:
#TryMethod ususpend-ram.conf

------- Comment #8 From Raymond Lewis Rebbeck 2007-02-01 13:41:18 0000 -------
(In reply to comment #7)
> OK... Another thought...
> Can you please try to disable the ususpend from ram.conf:
> #TryMethod ususpend-ram.conf

Commenting that line fixed it! Now it is suspending and resuming perfectly
fine. I didn't realise it'd changed suspend to ram methods in the newer
version. Thanks.

------- Comment #9 From Alon Bar-Lev (RETIRED) 2007-02-01 13:44:35 0000 -------
I am glad!

------- Comment #10 From Raymond Lewis Rebbeck 2007-02-01 14:13:30 0000 -------
Ah, I'm getting some very strange behaviour now. 'hibernate-ram -verbosity=4'
will work every time without issue, however as soon as I remove the
'-verbosity=4' it will fail every time. This is with the earlier suggested line
commented out. When it fails I can change vts and the screen will briefly have
blue/white blotches appear and then remain black, if that means anything. I'll
attach the output.

------- Comment #11 From Raymond Lewis Rebbeck 2007-02-01 14:16:47 0000 -------
Created an attachment (id=108857) [details]
hibernate-ram stdout

------- Comment #12 From Raymond Lewis Rebbeck 2007-02-01 14:18:35 0000 -------
Created an attachment (id=108861) [details]
hibernate-ram stderr

------- Comment #13 From Nick Bolten 2007-02-01 14:23:40 0000 -------
I forgot to add that I had removed the ususpend option from ram.conf while
troubleshooting, so that doesn't solve the issue

------- Comment #14 From Raymond Lewis Rebbeck 2007-02-01 14:39:26 0000 -------
Just thought I'd add that downgrading to the previous hibernate-script version
makes suspending and resuming work every time, as usual. Regardless of whatever
verbosity or other settings are used.

Also I meant '--verbosity' not '-verbosity' earlier.

------- Comment #15 From Alon Bar-Lev (RETIRED) 2007-02-01 15:59:45 0000 -------
Strange!
Let's try to revert vbetool to the original.

emerge the old hibernate script save /usr/share/hibernate/scriptlets.d/vbetool
somewhere.
emerge the new hibernate script restore
/usr/share/hibernate/scriptlets.d/vbetool

The only change in vbetool was the redirection...

------- Comment #16 From Raymond Lewis Rebbeck 2007-02-02 00:04:40 0000 -------
Reverting /usr/share/hibernate/scriptlets.d/vbetool to the one from the
previous hibernate-script version seems to have fixed it. I was able to suspend
and resume 4 times in succession without any problems. I'll attach the output.

------- Comment #17 From Raymond Lewis Rebbeck 2007-02-02 00:05:12 0000 -------
Created an attachment (id=108900) [details]
hibernate-ram stdout (reverted vbetool scriptlet)

------- Comment #18 From Raymond Lewis Rebbeck 2007-02-02 00:05:38 0000 -------
Created an attachment (id=108901) [details]
hibernate-ram stderr (reverted vbetool scriptlet)

------- Comment #19 From Nick Bolten 2007-02-02 00:38:05 0000 -------
Using the old vbetool script works here, too.

------- Comment #20 From Alon Bar-Lev (RETIRED) 2007-02-02 07:31:29 0000 -------
Thanks!
Sent a question to upstream.

------- Comment #21 From Alon Bar-Lev (RETIRED) 2007-02-02 16:45:33 0000 -------
Added sys-power/hibernate-script-1.94-r4 for the mean time, reverting vbetool
stuff until I get a response.

------- Comment #22 From Bernard Blackham 2007-02-10 00:42:41 0000 -------
Created an attachment (id=109682) [details]
Fixes the vbetool bug.

vbetool was getting a sigpipe and thus not saving state. This patch should fix
it.

------- Comment #23 From Raymond Lewis Rebbeck 2007-02-10 06:58:05 0000 -------
The patch works here. I deleted /etc/hibernate/, emerged
sys-power/hibernate-script-1.94-r3 and applied the patch to
/usr/sbin/hibernate. It seems to work without issue, I was able to successfully
suspend to ram and resume 5 times.

------- Comment #24 From Alon Bar-Lev (RETIRED) 2007-02-10 10:10:50 0000 -------
OK.
Added hibernate-script-1.94-r5 with Bernard fixed.
Thanks for testing this!
Reopen if it does not work for you.

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug