Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 133918 - suspend2: ALSA broken after hibernation
Summary: suspend2: ALSA broken after hibernation
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Henrik Brix Andersen
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-20 21:18 UTC by georgia_tech_swagger
Modified: 2006-06-28 14:58 UTC (History)
1 user (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 georgia_tech_swagger 2006-05-20 21:18:52 UTC
After suspending to swap (# hibernate), all audio (and video with audio) is broken.   MPlayer will play the first one second of any audio/video file then lock up and require Ctrl + C to stop.   XMMS, etc, etc are also hosed.   This is fixed by simply issuing the following after coming back from hibernation: 

# /etc/init.d/alsasound restart



Using kernel ALSA (2.6.15-suspend2-r8).   Related ALSA packages installed:

media-sound/alsa-headers 1.0.11
media-sound/alsa-tools 1.0.11
media-sound/alsa-utils 1.0.11
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-05-21 03:19:32 UTC
Please try to reproduce with alsa-driver drivers. Kernel team is responsible for in-kernel alsa.
Comment 2 georgia_tech_swagger 2006-05-21 18:40:01 UTC
Problem reproduced using alsa-driver ... exactly the same as described using kernel ALSA.   Same fix worked as well.
Comment 3 Daniel Drake (RETIRED) gentoo-dev 2006-06-01 14:12:15 UTC
Please upgrade to the latest development kernel (currently 2.6.17-rc5), confirm that the bug still exists, and post "emerge --info" output here.
Comment 4 Daniel Drake (RETIRED) gentoo-dev 2006-06-09 15:32:52 UTC
Please reopen when the latest kernel has been tested
Comment 5 georgia_tech_swagger 2006-06-25 15:47:48 UTC
Sorry for delay;  was without internet on the box in question for some time.

I cannot find the 2.6.17-suspend2-rc5 (or later) kernel... looked here:
http://suspend2.net
http://dev.gentoo.org/~dsd/genpatches
Google :P

If you could point me in the direction of such an ebuild -- I'll try it as well.

I am seeing this bug on every single suspend2-sources in portage since the 2.6.15 kernel in my original bug report post.

# emerge --info

Portage 2.1.1_pre1-r1 (default-linux/x86/2005.1, gcc-3.4.6, glibc-2.3.6-r4, 2.6.16-suspend2-r9 i686)
=================================================================
System uname: 2.6.16-suspend2-r9 i686 Pentium III (Coppermine)
Gentoo Base System version 1.6.14
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
dev-lang/python:     2.3.5-r2, 2.4.2
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.3
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r2
sys-devel/gcc-config: 1.3.13-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium3 -Os -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo"
CXXFLAGS="-march=pentium3 -Os -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
MAKEOPTS="-j1"
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://rsync.gentoo.org/gentoo-portage"
USE="x86 X aac acpi aim alsa arts avi berkdb bitmap-fonts bzip2 bzlib clamav cli crypt cups dhcp divx4linux dri dts dvb dvd dvdread eds emboss encode ethereal ffmpeg foomaticdb fortran freetype gdbm gif gimp gkrellm gnome gpm gstreamer gtk gtk2 httpd icq imlib ipv6 isdnlog java jpeg kde kdeenablefinal libclamav libg++ libwww live mad matroska mikmod mmx motif mozilla mp3 mpeg mplayer msn ncurses nls nsplugin offensive ogg oggvorbis opengl oss pam pcmcia pcre pdf pdflib perl pmu png pppd python qt quicktime rar readline real reflection screen sdl session spell spl sse ssl stream svg tcltk tcpd theora truetype truetype-fonts type1-fonts unicode usb vlm vorbis wifi win32codecs wxwindows xml2 xmms xorg xv xvid yahoo zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux userland_GNU video_cards_savage video_cards_vesa video_cards_fbdev"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 6 Daniel Drake (RETIRED) gentoo-dev 2006-06-27 05:12:28 UTC
You need to use vanilla. There is currently no -rc so you need to reproduce it on vanilla-sources-2.6.17.

ALso, you should be using the in-kernel alsa. If you aren't, the bug should be reassigned elsewhere.
Comment 7 georgia_tech_swagger 2006-06-28 04:20:28 UTC
(In reply to comment #6)
> You need to use vanilla. There is currently no -rc so you need to reproduce it
> on vanilla-sources-2.6.17.
> 
> ALso, you should be using the in-kernel alsa. If you aren't, the bug should be
> reassigned elsewhere.
> 

Yes, using in kernel alsa.  Using vanilla 2.6.17 will not allow me to suspend (hibernate) which is what is causing the problem to show up in the first place.   Are you wanting me to patch vanilla 2.6.17 with the patches from suspend2.net?

Comment 8 Daniel Drake (RETIRED) gentoo-dev 2006-06-28 08:11:44 UTC
Ok - a suspend2 bug then
Comment 9 Henrik Brix Andersen 2006-06-28 14:58:02 UTC
(In reply to comment #8)
> Ok - a suspend2 bug then

Closing as UPSTREAM, then. Either test the in-kernel software suspend (there really shouldn't be any reason why gentoo-sources in-kernel suspend wont work when suspend2-sources works) or report this issue upstream at suspend2.net.