View previous topic :: View next topic |
Author |
Message |
kernelOfTruth Watchman
Joined: 20 Dec 2005 Posts: 6111 Location: Vienna, Austria; Germany; hello world :)
|
|
Back to top |
|
|
audiodef Watchman
Joined: 06 Jul 2005 Posts: 6639 Location: The soundosphere
|
|
Back to top |
|
|
kernelOfTruth Watchman
Joined: 20 Dec 2005 Posts: 6111 Location: Vienna, Austria; Germany; hello world :)
|
Posted: Sun Sep 15, 2013 3:54 pm Post subject: |
|
|
audiodef wrote: | The two things that come immediately to my mind are:
1. /etc/init.d/alsasound restart
and
2. Instead of setting the pulseaudio and alsa use flags universally, set the alsa use flag universally and the pulseaudio use flag only for those programs that absolutely require it in /etc/portage/package/keywords. |
thanks !
I'll give that a try next time it happens (alsasound restart & setting flags up now gradually)
though it happens rarely it's pretty annoying since I have to restart the box since no other way/approach has proven successful to get sound output again but rebooting _________________ https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa
Hardcore Gentoo Linux user since 2004 |
|
Back to top |
|
|
PaulBredbury Watchman
Joined: 14 Jul 2005 Posts: 7310
|
Posted: Sun Sep 15, 2013 4:11 pm Post subject: |
|
|
Here's a clever little script to unload the ALSA modules, taking care of their dependencies:
Code: | for ((i=1; i<=8; i++)) ; do
modlist=$(lsmod | grep ^snd | awk '($3 == "0") {print $1}')
[ -z "$modlist" ] && break
for onemod in $modlist ; do
busybox rmmod -w $onemod
done
done |
Reloading the kernel modules is much simpler, e.g.:
Code: | modprobe snd-hda-intel && modprobe snd-seq && modprobe snd-hrtimer |
And then set volumes. _________________ Improve your font rendering and ALSA sound |
|
Back to top |
|
|
kernelOfTruth Watchman
Joined: 20 Dec 2005 Posts: 6111 Location: Vienna, Austria; Germany; hello world :)
|
|
Back to top |
|
|
kernelOfTruth Watchman
Joined: 20 Dec 2005 Posts: 6111 Location: Vienna, Austria; Germany; hello world :)
|
Posted: Tue Sep 24, 2013 9:47 pm Post subject: |
|
|
hm,
it just happened again
and sound suddenly just went completely silent
I closed all X apps and reloaded the sound modules from VT
but still no sound output
added:
modprobe snd-pcm-oss
to the list, that /dev/dsp is available
did an
alsactl -F init
but nothing
even disabled automute (maybe that prevents it next time, even though I only had speakers connected when it happened)
there is a silent "click" noise from headphones/speakers
when muting pcm, master, headphones
and unmuting them
short description of behavior before sound modules are reloaded (right after the incident):
- songs, stuff - is played back faster (at least the timer moves faster in e.g. audacious)
short description of behavior after sound modules were reloaded:
- aplay message.wav
Playing WAVE 'message.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
^CAborted by signal Interrupt...
^Caplay: pcm_write:1939: write error: Interrupted system call
<-- hangs
- cat Kopete_Event.wav > /dev/dsp
cat: write error: Input/output error
pulseaudio was NOT loaded
haven't found out yet what triggers it and how to avoid having to reboot the box
thanks for reading _________________ https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.9.0
https://github.com/kernelOfTruth/pulseaudio-equalizer-ladspa
Hardcore Gentoo Linux user since 2004 |
|
Back to top |
|
|
valibz n00b
Joined: 07 Nov 2013 Posts: 1
|
Posted: Thu Nov 07, 2013 8:49 am Post subject: |
|
|
I had the same issue on HP elitebook.
"pcm_write:1939: write error: Interrupted system call".
One day the sound refused to work even after reboots. Got it replaced by warranty.
You may have a faulty sound card. |
|
Back to top |
|
|
|