Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 266010 - sound dies after s2ram is run as lid driven event by acpid
Summary: sound dies after s2ram is run as lid driven event by acpid
Status: VERIFIED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-13 14:57 UTC by pier
Modified: 2009-04-22 11:44 UTC (History)
0 users

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 pier 2009-04-13 14:57:08 UTC
Suspending to ram via lid driven event by acpid fails to restart sound unless a new boot is performed.
Repeating the same giving s2ram via terminal doesn't affect sound behaviour.

Reproducible: Always

Steps to Reproduce:
1.put in /etc/acpi/default.sh: 
// -------- snip ---------------
case "$group" in
        button)
                case "$action" in
                        power)
                                #/sbin/init 0
                                ;;            
                        lid)
                                logger "Evento LID $action ricevuto"
                                if [ $(cat /proc/acpi/button/lid/LID0/state | awk '{print $2}') = "open" ]; then
                                    logger "Il LID e stato aperto"
                                    /etc/init.d/bluetooth start
                                    /etc/init.d/alsasound start
                                    /etc/init.d/pommed start
                                else
                                    logger "Il LID e stato chiuso"
                                    logger "A nanna...."
                                    /etc/init.d/pommed stop
                                    /etc/init.d/alsasound stop
                                    /etc/init.d/bluetooth stop
                                    /usr/sbin/s2ram -f
                                fi
                                ;;
                        *)      log_unhandled $* ;;
                esac
                ;;
// -------------- snip -----------------------
2. Restart acpid
Actual Results:  
When s2ram is called via acpi lid event no sound is audible. 
/etc/init.d/alsasound restart gives:

pier@localhost ~ $ sudo /etc/init.d/alsasound restart
 * WARNING:  you are stopping a boot service.
 * Stopping pommed daemon ...                                                                                                              [ ok ]
 * Storing ALSA Mixer Levels ...                                                                                                           [ ok ]
 * Killing processes using ALSA ...                                                                                                        [ ok ]
 * Unloading ALSA modules ...                                                                                                              [ ok ]
 * Loading ALSA modules ...
 *   Could not detect custom ALSA settings.  Loading all detected alsa drivers.
 *   Loading: snd_hda_intel ...                                                                                                            [ ok ]
 *   Loading: snd-pcm-oss ...                                                                                                              [ ok ]
 *   Loading: snd-seq-oss ...                                                                                                              [ ok ]
 * Restoring Mixer Levels ...                                                                                                              [ ok ]
 * Running pommed daemon ...                                                                                                               [ ok ]

yet no sound unless a reboot is performed.
At reboot several warnings messages are delivered about several sound device files not found. Yet sound is up and running after boot.

Expected Results:  
Giving s2ram via command line and resuming afterwards doesn't affect the sound. behaviour
Comment 1 pier 2009-04-13 14:58:45 UTC
pier@localhost ~ $ emerge -info 
usage: emerge [options]

emerge: error: no such option: -i
pier@localhost ~ $ emerge --info
Portage 2.1.6.7 (default/linux/x86/2008.0, gcc-4.1.2, glibc-2.8_p20080602-r1, 2.6.27-gentoo-r8 i686)
=================================================================
System uname: Linux-2.6.27-gentoo-r8-i686-Intel-R-_Core-TM-2_Duo_CPU_T8300_@_2.40GHz-with-glibc2.0
Timestamp of tree: Mon, 13 Apr 2009 09:00:01 +0000
app-shells/bash:     3.2_p39
dev-java/java-config: 2.1.7
dev-lang/python:     2.4.4-r13
dev-python/pycrypto: 2.0.1-r6
dev-util/cmake:      2.6.2-r1
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.4_p6, 1.5, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=x86-64 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /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=x86-64 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="ccache distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS=" http://distfiles.gentoo.org http://gentoo.cites.uiuc.edu/pub/gentoo/ http://gentoo.osuosl.org/ http://gentoo.chem.wisc.edu/gentoo/ ftp://trumpetti.atm.tut.fi/gentoo/ ftp://ftp.linux.ee/pub/gentoo/distfiles/"
LDFLAGS="-Wl,-O1"
LINGUAS="it en"
MAKEOPTS="-j3"
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"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl aiglx alsa amr apache2 apm arts avi berkdb bluetooth bzip2 cairo caps ccache cddb cdparanoia cdr cdrom cli cracklib crypt css cups curl dga directfb dri dvd dvdr dvdread encode expat fbcon fbdev ffmpeg fortran gdbm gif gimpprint glitz glut glx gpm gs gtk hddtemp httpd iconv ipv6 isdnlog java jpeg libwww lm_sensors logitech-mouse mad midi mp3 mpeg mplayer mudflap mysql ncurses nls nptl nptlonly nsplugin objc objc++ objc-gc ogg oggvorbis openal opengl openmp oss pam pcre perl png postscript ppds pppd python quicktime readline reflection reiserfs samba scanner sensord session slang sound sox spl ssl stream svg svga sysfs tcltk tcpd tetex tiff tk unicode usb v4l v4l2 vcd vesa vidix vorbis wavpack wifi win32codecs wma wma123 wmf wxwindows x264 x86 xorg xplanet xulrunner xv xvid zlib" ALSA_CARDS="hda-intel" 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="keyboard mouse synaptics evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="it en" USERLAND="GNU" VIDEO_CARDS="intel"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2009-04-16 04:23:27 UTC
Please attach a (redacted) file with the relevant dmesg output. Also, tell us which specific "hda-intel" sound card you have. And then reopen this bug report.
Comment 3 pier 2009-04-18 14:02:37 UTC
Sorry for the delay in replying but after emerging sync and world, now s2ram from command line suspends but resumes with lcd back light  completely dimmed with no way of getting it back to work (you can hardly see what's on screen but it is unusable). From remote ssh:

localhost backlight # macbook-backlight -p
0
localhost backlight # macbook-backlight -s 100
localhost backlight # macbook-backlight -p
0


Audio device:
00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio Controller (rev 04)
Comment 4 pier 2009-04-22 09:30:19 UTC
Apologies as this wasn't a gentoo bug as I reported.
All seems to be sorted out after tuning kernel video parameters and re-emerging xorg, mesa and xf86-video-intel. S2ram works and sound doesn't rise problem unless it is stopped or restarted. Alsa unloading is impossible and to get sound back alsaconf is needed. Furthermore system shutdown hangs waiting for alsa being unloaded.
Comment 5 pier 2009-04-22 11:44:06 UTC
> Alsa unloading is impossible and to get
> sound back alsaconf is needed. Furthermore system shutdown hangs waiting for
> alsa being unloaded.
> 
To close this for good alsa problem sorted out applying patch in:

bug 232875