Re: Sound problem after suspend. Kernel version 2.3.99-pre3

From: HvR (hvrietsc@yahoo.com)
Date: Tue Mar 28 2000 - 00:51:36 EST


i had the same problems with 2.2.15 i needed the
following presuspend script:

#!/bin/sh
# need to unload sound modules before suspend
# kill any sound makers
killall -9 xmms
killall -9 mpg123
killall -9 mixer_applet
#/usr/bin/esdplay /etc/sysconfig/sounds/presuspend.wav
# kill mouse to quiet sound, seriously
killall -9 gpm
# save soundlevels
/usr/bin/aumix -f /etc/.aumixrc -S
/sbin/ifdown eth0 # free card
/sbin/cardctl eject
/sbin/rmmod opl3
/sbin/rmmod opl3sa2
/sbin/rmmod mpu401
/sbin/rmmod ad1848
/sbin/rmmod sound
/sbin/rmmod soundcore
/sbin/rmmod soundlow
/sbin/rmmod -as

the gpm killing is really necessary without this the
sound module will not unload!!!

then my postsuspend script is:
#!/bin/sh
# what we do after we get back from suspend
/sbin/cardctl insert
/sbin/rmmod opl3 2>/dev/null
/sbin/rmmod opl3sa2 2>/dev/null
/sbin/rmmod mpu401 2>/dev/null
/sbin/rmmod ad1848 2>/dev/null
/sbin/rmmod sound 2>/dev/null
/sbin/rmmod soundcore 2>/dev/null
/sbin/rmmod soundlow 2>/dev/null
# ok now put sound back
modprobe sound
/usr/bin/aumix -f /etc/.aumixrc -L > /dev/null
#/usr/bin/esdplay
/etc/sysconfig/sounds/postsuspend.wav
# restart at daemon it might have lost time
/etc/rc.d/init.d/atd restart
# put 2 button mouse back
/usr/sbin/gpm -t ps/2

good luck...
--- Dave Caswell <davec@apocalypse.org> wrote:
> With kernel version 2.3.99-pre3 sound words until I
> suspend my Toshiba
> Satellite Pro 445CDX, but after resuming it will
> produce no sound.
> This problem came in with the sound clean-ups after
> version 2.3.49.
>
> I've appended what sound related information I've
> got to the end of
> this message.
>
> Thanks,
> davec
>
> Append line in lilo.conf:
> append = "ppa=0x378 parport=0x378,7,3
> opl3sa2=0x370,5,1,0,0x530,0x330 "
>
> Log entries:
>
> Mar 26 14:17:52 krypton kernel: ad1848/cs4248 codec
> driver Copyright (C) by Hannu Savolainen 1993-1996
> Mar 26 14:17:52 krypton kernel: Found OPL3-SA3
> (YMF715)
> Mar 26 14:17:52 krypton kernel: <MS Sound System
> (CS4231)> at 0x534 irq 5 dma 1,0
> Mar 26 14:17:52 krypton kernel: <MPU-401 0.0 Midi
> interface #1> at 0x330 irq 5 dma 1,0
>
>
> Config File set-up
> #
> # Sound
> #
> CONFIG_SOUND=y
> # CONFIG_SOUND_CMPCI is not set
> # CONFIG_SOUND_ES1370 is not set
> # CONFIG_SOUND_ES1371 is not set
> # CONFIG_SOUND_ESSSOLO1 is not set
> # CONFIG_SOUND_MAESTRO is not set
> # CONFIG_SOUND_SONICVIBES is not set
> # CONFIG_SOUND_TRIDENT is not set
> # CONFIG_SOUND_MSNDCLAS is not set
> # CONFIG_SOUND_MSNDPIN is not set
> CONFIG_SOUND_OSS=y
> CONFIG_SOUND_TRACEINIT=y
> CONFIG_SOUND_DMAP=y
> # CONFIG_SOUND_AD1816 is not set
> # CONFIG_SOUND_SGALAXY is not set
> # CONFIG_SOUND_ADLIB is not set
> # CONFIG_SOUND_ACI_MIXER is not set
> # CONFIG_SOUND_CS4232 is not set
> # CONFIG_SOUND_SSCAPE is not set
> # CONFIG_SOUND_GUS is not set
> # CONFIG_SOUND_VMIDI is not set
> # CONFIG_SOUND_TRIX is not set
> # CONFIG_SOUND_MSS is not set
> # CONFIG_SOUND_MPU401 is not set
> # CONFIG_SOUND_NM256 is not set
> # CONFIG_SOUND_MAD16 is not set
> # CONFIG_SOUND_PAS is not set
> # CONFIG_PAS_JOYSTICK is not set
> # CONFIG_SOUND_PSS is not set
> # CONFIG_SOUND_SOFTOSS is not set
> # CONFIG_SOUND_SB is not set
> # CONFIG_SOUND_AWE32_SYNTH is not set
> # CONFIG_SOUND_WAVEFRONT is not set
> # CONFIG_SOUND_MAUI is not set
> # CONFIG_SOUND_VIA82CXXX is not set
> # CONFIG_SOUND_YM3812 is not set
> # CONFIG_SOUND_OPL3SA1 is not set
> CONFIG_SOUND_OPL3SA2=y
> # CONFIG_SOUND_UART6850 is not set
> # CONFIG_SOUND_AEDSP16 is not set
>
>

__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Mar 31 2000 - 21:00:21 EST