Difference between revisions of "Talk:Advanced Linux Sound Architecture"

From ArchWiki
Jump to: navigation, search
(Make sure snd_pcsp gets loaded last)
m (user in audio group: closing)
(20 intermediate revisions by 14 users not shown)
Line 1: Line 1:
does this page ever get used??
+
== Adding udev rules for usb sound cards? ==
i'd like to add a paragraph to the Troubleshooting section that acknowledges the ALSA driver's limitations about Audio: Intel Corp. 82801G (ICH7 Family) (rev 02), SigmaTel STAC9228 - see http://bbs.archlinux.org/viewtopic.php?id=46552
+
I used this udev rule to allow for hotplugging of my usb card and defaulting to the system card if the usb card is not present.
does this make sense?
+
http://kitenet.net/~joey/blog/entry/random_tip_redirecting_alsa_to_usb_sound_card/
 +
Someone might want to add this to the wiki. I don't have time now but if I get it I will. [[User:Lmn123|Lmn123]] 01:26, 24 January 2012 (EST)
  
= Make sure snd_pcsp gets loaded last =
+
== Modified HDMI Does Not work. ==
  
I think the module is called <tt>pcspkr</tt>, right? [[User:Aku|Aku]]
+
I added the line that included just restarting alsa.
:No they're different you can read output of "modinfo snd_pcsp" and "modinfo pcspkr" --[[User:Ras0ir|Ras0ir]] 09:37, 15 February 2009 (EST)
+
It seemed weird that the only method offered was to restart the entire system.
 +
If this causes any harm please correct me.  I have tried this myself and it seems to work just fine.--[[User:Shoeunited|Shoe]] 04:54, 16 August 2011 (EDT)
  
----
+
== EDIROL UA-1A and Intel HDA: What worked for me ==
 +
I will put this here as I have not yet understood the magic of ~/.asoundrc and because I am not sure if it were a good addition to the article.
  
I don't want to change this howto with my ugly hack.
+
After trying countless of configurations, I found one that allows me to 1) set the default sound card, 2) play multiple sounds simultaneously for both devices, 3) still use alsamixer (many configs gave me "cannot open mixer: Invalid argument").
'''This is about Flashplugin:'''
+
  
if no sound is playing an if I start the flashplugin(youtube...).
+
{{hc|/etc/modprobe.d/alsa.conf|
the sound device is always blocked.
+
2=options snd-hda-intel index=0
 +
options snd-usb-audio index=1}}
  
So the trick is just start kdm/gdm/xdm with '''"-dmS name_of_screen aplay"'''
+
{{hc|~/.asoundrc|
There is many way to do it.
+
defaults.pcm.!card 0  # set to 1 for snd-usb-audio
 +
defaults.ctl.!card 0  # set to 1 for snd-usb-audio
 +
defaults.pcm.!device 0
 +
defaults.ctl.!device 0}}
 +
-- [[User:Markus00000|Markus00000]] 10:26, 24 November 2011 (EST)
  
add "-dmS name_of_screen aplay" to /etc/rc.conf #will start aplay right after starting the daemons
+
Thanks I was looking for this, maybe it's a good idea to add it to the wiki?
gdm: just add start script
+
--[[User:Jordz|jordz]] ([[User talk:Jordz|talk]]) 09:24, 15 June 2012 (UTC)
kdm: sucks
+
  
I use KDE4
+
== <s>user in audio group</s> ==
 +
 
 +
Hi,
 +
 
 +
the wiki page says:
 +
 
 +
''Users with a local login (at a virtual terminal or a display manager) have permission to play audio and change mixer levels. To allow this for a remote login, the user has to be added to the audio group.''
 +
 
 +
But once my sound had disappeared (I believe after trying to install gnome / I use fluxbox). The sound was actually working, but only when logged as root. The way I solved the problem was by adding my user to the group audio. Besides the sound, the alsamixer run by the user had also much less controls that before the pane, but the controls came back after I put the user in the audio group.
 +
 
 +
Therefore, I believe this page should encourage people to add the user to the audio group to avoid such problems. Would it be this correct? Would it be OK?
 +
 
 +
:Please add a signature by typing four tildes ({{ic|<nowiki>~~~~</nowiki>}}) next time.
 +
:It's not necessary to add the user to audio group, see [[systemd#Supplementary information]].
 +
:-- [[User:Lahwaacz|Lahwaacz]] ([[User talk:Lahwaacz|talk]]) 13:17, 2 July 2013 (UTC)
 +
 
 +
::Closing. -- [[User:Lahwaacz|Lahwaacz]] ([[User talk:Lahwaacz|talk]]) 17:04, 29 August 2013 (UTC)
 +
 
 +
== Manually reloading settings from ~/.asoundrc ==
 +
 
 +
Since the old "sudo rc.d restart alsa" and "sudo alsa force-reload" commands don't work anymore, it took me a bit of time the other day to figure out how to restart alsa without restarting the whole machine. Sometimes I make changes to ~/.asoundrc and want to make them effective without rebooting and this was the only command I found that could acheive this:
 +
alsactl kill rescan
 +
This should probably be added to the wiki somewhere but I wasn't sure where the best spot for it would be. Should it be a new section? There's a few areas of the alsa wiki that just say to "restart alsa" without specifying how to do so. These could probably be updated as well.
 +
 
 +
[[User:Mynis|Mynis]] ([[User talk:Mynis|talk]]) 10:04, 14 May 2013 (UTC) mynis

Revision as of 17:04, 29 August 2013

Adding udev rules for usb sound cards?

I used this udev rule to allow for hotplugging of my usb card and defaulting to the system card if the usb card is not present. http://kitenet.net/~joey/blog/entry/random_tip_redirecting_alsa_to_usb_sound_card/ Someone might want to add this to the wiki. I don't have time now but if I get it I will. Lmn123 01:26, 24 January 2012 (EST)

Modified HDMI Does Not work.

I added the line that included just restarting alsa. It seemed weird that the only method offered was to restart the entire system. If this causes any harm please correct me. I have tried this myself and it seems to work just fine.--Shoe 04:54, 16 August 2011 (EDT)

EDIROL UA-1A and Intel HDA: What worked for me

I will put this here as I have not yet understood the magic of ~/.asoundrc and because I am not sure if it were a good addition to the article.

After trying countless of configurations, I found one that allows me to 1) set the default sound card, 2) play multiple sounds simultaneously for both devices, 3) still use alsamixer (many configs gave me "cannot open mixer: Invalid argument").

/etc/modprobe.d/alsa.conf
options snd-hda-intel index=0
options snd-usb-audio index=1
~/.asoundrc
defaults.pcm.!card 0  # set to 1 for snd-usb-audio
defaults.ctl.!card 0  # set to 1 for snd-usb-audio
defaults.pcm.!device 0
defaults.ctl.!device 0

-- Markus00000 10:26, 24 November 2011 (EST)

Thanks I was looking for this, maybe it's a good idea to add it to the wiki? --jordz (talk) 09:24, 15 June 2012 (UTC)

user in audio group

Hi,

the wiki page says:

Users with a local login (at a virtual terminal or a display manager) have permission to play audio and change mixer levels. To allow this for a remote login, the user has to be added to the audio group.

But once my sound had disappeared (I believe after trying to install gnome / I use fluxbox). The sound was actually working, but only when logged as root. The way I solved the problem was by adding my user to the group audio. Besides the sound, the alsamixer run by the user had also much less controls that before the pane, but the controls came back after I put the user in the audio group.

Therefore, I believe this page should encourage people to add the user to the audio group to avoid such problems. Would it be this correct? Would it be OK?

Please add a signature by typing four tildes (~~~~) next time.
It's not necessary to add the user to audio group, see systemd#Supplementary information.
-- Lahwaacz (talk) 13:17, 2 July 2013 (UTC)
Closing. -- Lahwaacz (talk) 17:04, 29 August 2013 (UTC)

Manually reloading settings from ~/.asoundrc

Since the old "sudo rc.d restart alsa" and "sudo alsa force-reload" commands don't work anymore, it took me a bit of time the other day to figure out how to restart alsa without restarting the whole machine. Sometimes I make changes to ~/.asoundrc and want to make them effective without rebooting and this was the only command I found that could acheive this:

alsactl kill rescan

This should probably be added to the wiki somewhere but I wasn't sure where the best spot for it would be. Should it be a new section? There's a few areas of the alsa wiki that just say to "restart alsa" without specifying how to do so. These could probably be updated as well.

Mynis (talk) 10:04, 14 May 2013 (UTC) mynis