Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
alsa force-reload n.a., need to force-reload intel HDA mod
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6111
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Sun Sep 15, 2013 3:36 pm    Post subject: alsa force-reload n.a., need to force-reload intel HDA mod Reply with quote

Hi,


anyone knows why the tools/binary alsa with the option of force-reload the kernel-modules isn't available on Gentoo as mentioned at

http://forums.bodhilinux.com/index.php?/topic/3800-solved-how-does-a-user-restart-alsa-without-rebooting/

?


from time to time pulseaudio or alsa seem to "go stupid" and go completely silent/muted even though everything seems to be in order

I'm not 100% sure but it seems to be caused by pulseaudio (which is needed by many programs :x ) and I'd like to try out to

reload the sound kernel-modules but last time I tried to do it manually the kernel hardlocked :lol:


might be more lucky with the alsa force-reload command - but for this it first has to be available :wink:


the soundcard in question is a intel HDA

Quote:
Audio device: Intel Corporation 5 Series/3400 Series Chipset High Definition Audio (rev 05)

_________________
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 :D
Back to top
View user's profile Send private message
audiodef
Watchman
Watchman


Joined: 06 Jul 2005
Posts: 6639
Location: The soundosphere

PostPosted: Sun Sep 15, 2013 3:40 pm    Post subject: Reply with quote

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.
_________________
decibel Linux: https://decibellinux.org
Github: https://github.com/Gentoo-Music-and-Audio-Technology
Facebook: https://www.facebook.com/decibellinux
Discord: https://discord.gg/73XV24dNPN
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6111
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Sun Sep 15, 2013 3:54 pm    Post subject: Reply with quote

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 :D
Back to top
View user's profile Send private message
PaulBredbury
Watchman
Watchman


Joined: 14 Jul 2005
Posts: 7310

PostPosted: Sun Sep 15, 2013 4:11 pm    Post subject: Reply with quote

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
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6111
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Sun Sep 15, 2013 4:25 pm    Post subject: Reply with quote

thanks a ton PaulBredbury :)
_________________
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 :D
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 6111
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Tue Sep 24, 2013 9:47 pm    Post subject: Reply with quote

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 :D
Back to top
View user's profile Send private message
valibz
n00b
n00b


Joined: 07 Nov 2013
Posts: 1

PostPosted: Thu Nov 07, 2013 8:49 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum