I just figured out a wordaround. It seems that the stable version of ALSA (0.5.12a) doesn't have the problem.
On Mon, 7 Jan 2002, Erik Mouw wrote: > On Sun, Jan 06, 2002 at 08:27:51PM -0800, Dmitriy L. Kogan wrote: > > Thanks for the reply. It doesn't solve the problem, though. I already had > > that variable set. The problem is that in order to remove the modules, the > > daemon has to know that the system is about to be put in suspend mode. > > The ALSA card modules does something to prevent the APM daemon from > > receiving the suspend notification. So instead of removing the modules, > > the system just tries going to sleep, which causes a crash. > > AFAIK apmd is called first upon sleep, and only after apmd "OK's" the > switch, the system really goes to sleep and calls all hardware to shut > down. You could enable the ALSA_KILL_MODE hack in > /etc/alsa/alsa-base.conf so all sound programs will be killed before > shutdown. If that still doesn't work, it looks to me like your system > doesn't have /etc/apm/event.d/alsa. > > > Erik > > > On Sun, 6 Jan 2002, Erik Mouw wrote: > > > On Sat, Jan 05, 2002 at 06:36:29PM -0800, Dmitriy L. Kogan wrote: > > > > Hello, all. I'm running Debian on a laptop (Fujitsu C-Series) with a > > > > YMF743 AC'97 card (accessed through the 440MX chipset so the intel8x0 > > > > driver is used). With the newest ALSA driver (0.9.0beta10) the sound works > > > > fine but another issue emerges. When I try to put the laptop in suspend > > > > mode with the card module loaded (snd-card-intel8x0) the apmd daemon > > > > doesn't register the suspend event, so it doesn't execute its suspend > > > > scripts (which in this case are supposed to unload the sound driver). If > > > > the laptop goes to sleep with the sound drivers still loaded, the kernel > > > > oopses. > > > > > > Known problem, don't know if it's already fixed in CVS. > > > > > > If you're using debian-testing, it's very easy to fix it: edit > > > /etc/alsa/alsa-base.conf and set force_stop_modules_before_suspend to > > > true. > > -- > J.A.K. (Erik) Mouw, Information and Communication Theory Group, Faculty > of Information Technology and Systems, Delft University of Technology, > PO BOX 5031, 2600 GA Delft, The Netherlands Phone: +31-15-2783635 > Fax: +31-15-2781843 Email: [EMAIL PROTECTED] > WWW: http://www-ict.its.tudelft.nl/~erik/ > _______________________________________________ Alsa-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-user