Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 164773 - sys-power/hibernate-script-1.94-r3 - vbetool broken
Summary: sys-power/hibernate-script-1.94-r3 - vbetool broken
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High critical (vote)
Assignee: Alon Bar-Lev (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-01 03:31 UTC by Raymond Lewis Rebbeck
Modified: 2007-02-10 10:10 UTC (History)
3 users (show)

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


Attachments
hibernate-ram stdout (hibernate.out,1.63 KB, text/plain)
2007-02-01 14:16 UTC, Raymond Lewis Rebbeck
Details
hibernate-ram stderr (hibernate.err,62.75 KB, text/plain)
2007-02-01 14:18 UTC, Raymond Lewis Rebbeck
Details
hibernate-ram stdout (reverted vbetool scriptlet) (hibernate.out,1.63 KB, text/plain)
2007-02-02 00:05 UTC, Raymond Lewis Rebbeck
Details
hibernate-ram stderr (reverted vbetool scriptlet) (hibernate.err,62.67 KB, text/plain)
2007-02-02 00:05 UTC, Raymond Lewis Rebbeck
Details
Fixes the vbetool bug. (fix-sigpipe.diff,372 bytes, patch)
2007-02-10 00:42 UTC, Bernard Blackham
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Raymond Lewis Rebbeck 2007-02-01 03:31:57 UTC
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 Nick Bolten 2007-02-01 03:43:07 UTC
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 Nick Bolten 2007-02-01 03:52:05 UTC
Also, this issue still occurs outside of X
Comment 3 Alon Bar-Lev (RETIRED) gentoo-dev 2007-02-01 11:55:59 UTC
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 Raymond Lewis Rebbeck 2007-02-01 13:04:13 UTC
(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 Nick Bolten 2007-02-01 13:21:06 UTC
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 Alon Bar-Lev (RETIRED) gentoo-dev 2007-02-01 13:24:32 UTC
(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 Alon Bar-Lev (RETIRED) gentoo-dev 2007-02-01 13:31:44 UTC
(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 Raymond Lewis Rebbeck 2007-02-01 13:41:18 UTC
(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 Alon Bar-Lev (RETIRED) gentoo-dev 2007-02-01 13:44:35 UTC
I am glad!
Comment 10 Raymond Lewis Rebbeck 2007-02-01 14:13:30 UTC
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 Raymond Lewis Rebbeck 2007-02-01 14:16:47 UTC
Created attachment 108857 [details]
hibernate-ram stdout
Comment 12 Raymond Lewis Rebbeck 2007-02-01 14:18:35 UTC
Created attachment 108861 [details]
hibernate-ram stderr
Comment 13 Nick Bolten 2007-02-01 14:23:40 UTC
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 Raymond Lewis Rebbeck 2007-02-01 14:39:26 UTC
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 Alon Bar-Lev (RETIRED) gentoo-dev 2007-02-01 15:59:45 UTC
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 Raymond Lewis Rebbeck 2007-02-02 00:04:40 UTC
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 Raymond Lewis Rebbeck 2007-02-02 00:05:12 UTC
Created attachment 108900 [details]
hibernate-ram stdout (reverted vbetool scriptlet)
Comment 18 Raymond Lewis Rebbeck 2007-02-02 00:05:38 UTC
Created attachment 108901 [details]
hibernate-ram stderr (reverted vbetool scriptlet)
Comment 19 Nick Bolten 2007-02-02 00:38:05 UTC
Using the old vbetool script works here, too.
Comment 20 Alon Bar-Lev (RETIRED) gentoo-dev 2007-02-02 07:31:29 UTC
Thanks!
Sent a question to upstream.
Comment 21 Alon Bar-Lev (RETIRED) gentoo-dev 2007-02-02 16:45:33 UTC
Added sys-power/hibernate-script-1.94-r4 for the mean time, reverting vbetool stuff until I get a response.
Comment 22 Bernard Blackham 2007-02-10 00:42:41 UTC
Created attachment 109682 [details, diff]
Fixes the vbetool bug.

vbetool was getting a sigpipe and thus not saving state. This patch should fix it.
Comment 23 Raymond Lewis Rebbeck 2007-02-10 06:58:05 UTC
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 Alon Bar-Lev (RETIRED) gentoo-dev 2007-02-10 10:10:50 UTC
OK.
Added hibernate-script-1.94-r5 with Bernard fixed.
Thanks for testing this!
Reopen if it does not work for you.