When I suspend my 9.3 installation using swsusp, when the box comes back up, everything seems OK except for the audio. /var/log/messages contains: Jun 2 17:44:00 linux kernel: ALSA sound/pci/ens1370.c:630: codec write timeout at 0xe814 [0x40000000] Jun 2 17:44:00 linux kernel: ALSA sound/pci/ens1370.c:630: codec write timeout at 0xe814 [0x40000000] Jun 2 17:44:00 linux kernel: ALSA sound/pci/ens1370.c:630: codec write timeout at 0xe814 [0x40000000] Jun 2 17:44:08 linux kernel: ALSA sound/core/pcm_lib.c:2410: capture read error (DMA or IRQ trouble?) Jun 2 17:44:10 linux kernel: ALSA sound/core/pcm_native.c:1433: playback drain error (DMA or IRQ trouble?) Is there some way I can free the sound resource and restart it ? I have tried to rmmod but I get the following: ERROR: Removing 'snd_ens1371': Device or resource busy Can anyone help with this - it is driving me up the wall :) Rich
The Thursday 2005-06-02 at 18:08 +0100, Richard Curtis wrote:
When I suspend my 9.3 installation using swsusp, when the box comes back up, everything seems OK except for the audio.
Mine crashes about 50% of the times I try suspending.
Is there some way I can free the sound resource and restart it ? I have tried to rmmod but I get the following: ERROR: Removing 'snd_ens1371': Device or resource busy
Try "rcalsa stop". -- Cheers, Carlos Robinson
Carlos E. R. wrote:
The Thursday 2005-06-02 at 18:08 +0100, Richard Curtis wrote:
When I suspend my 9.3 installation using swsusp, when the box comes back up, everything seems OK except for the audio.
Mine crashes about 50% of the times I try suspending.
Is there some way I can free the sound resource and restart it ? I have tried to rmmod but I get the following: ERROR: Removing 'snd_ens1371': Device or resource busy
Try "rcalsa stop".
My laptop has been suspending very well, but my sound also crashed for the first time today. It said it was due to a cpu overload. James W.
When I suspend my 9.3 installation using swsusp, when the box comes back up,
everything seems OK except for the audio.
Mine crashes about 50% of the times I try suspending.
Is there some way I can free the sound resource and restart it ? I have tried to rmmod but I get the following: ERROR: Removing 'snd_ens1371': Device or resource busy
Try "rcalsa stop".
My laptop has been suspending very well, but my sound also crashed for the first time today. It said it was due to a cpu overload.
Thanks for all of the advice. rcalsa isn't on my system, but rcalsasound was and rcalsasound restart fixed all my problems. Now, I want to make rcalsasound restart run automagically after the system resumes. Googling around, I found the homepage http://suspend2.net which has information about a file called /etc/hibernate and /proc/software_suspend. Neither of these exist on my SuSE 9.3 install - does anyone know of a way of making swsusp run a script upon resume ?
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Friday 2005-06-03 at 10:20 +0100, Richard Curtis wrote:
rcalsa isn't on my system, but rcalsasound was and rcalsasound restart fixed all my problems.
Whatever, I didn't check spelling :-)
Now, I want to make rcalsasound restart run automagically after the system resumes. Googling around, I found the homepage http://suspend2.net which has information about a file called /etc/hibernate and /proc/software_suspend. Neither of these exist on my SuSE 9.3 install - does anyone know of a way of making swsusp run a script upon resume ?
Try: APMD_STOP_SOUND_BEFORE_SUSPEND="yes" in "/etc/sysconfig/powermanagement" and report here ;-) Else, check "/etc/sysconfig/powersave/*", there might be something. Another way, what I do, is create your own script that calls whatever is needed, including swsusp in the middle. - -- Cheers, Carlos Robinson -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFCoDz/tTMYHG2NR9URAmHIAJwP+H8rzGxuQDsinKPz8v3g5LWrywCfad2L XLG4zaIblCSaeVDnk8fIpQs= =4qr5 -----END PGP SIGNATURE-----
rcalsa isn't on my system, but rcalsasound was and rcalsasound restart fixed all my problems.
Whatever, I didn't check spelling :-)
Now, I want to make rcalsasound restart run automagically after the
system
resumes. Googling around, I found the homepage http://suspend2.net which has information about a file called /etc/hibernate and /proc/software_suspend. Neither of these exist on my SuSE 9.3 install - does anyone know of a way of making swsusp run a script upon resume ?
Try:
APMD_STOP_SOUND_BEFORE_SUSPEND="yes"
in "/etc/sysconfig/powermanagement" and report here ;-)
Else, check "/etc/sysconfig/powersave/*", there might be something.
Another way, what I do, is create your own script that calls whatever is needed, including swsusp in the middle.
APMD_STOP_SOUND_BEFORE_SUSPECT="yes" didnt seem to have any effect whatsoever I couldnt find anything in /etc/sysconfig/powersave/* that was related to either forcing an unload and reload of modules, nor anything to let me call a script. If I could somehow call a script when the pc has resumed, I am laughing because I can get a script to stop and then reload the sound, and I can do some other housekeeping etc. Is there any other means of automatically calling a script once the resume is complete ? I.e., do any events occur to signal that the resume is complete ?
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Friday 2005-06-03 at 14:08 +0100, Richard Curtis wrote:
is complete ? I.e., do any events occur to signal that the resume is complete ?
I don't know that. What I do is using my own script to call swsusp. - -- Cheers, Carlos Robinson -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFCoGw1tTMYHG2NR9URAhGgAJ9XfPa6+ZGAKQd7QgFdbEGNBkKttACdEI3V cakgXLWFluqc6qZGozexgLc= =r2Tr -----END PGP SIGNATURE-----
participants (3)
-
Carlos E. R.
-
James Wright
-
Richard Curtis