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

From ArchWiki
Jump to: navigation, search
m (user in audio group: closing)
(8 intermediate revisions by 8 users not shown)
Line 1: Line 1:
I've added an ALSA (English) category as this is a pretty large topic and will benefit from grouping pages together. I'll be working on hunting for more pages as I can. --[[User:Multiphrenic|Multiphrenic]] 13:57, 27 April 2011 (EDT)
+
== Adding udev rules for usb sound cards? ==
:I don't think this category is necessary; I doubt you'll find much else that belongs here. -- [[User:Pointone|pointone]] 22:35, 8 May 2011 (EDT)
+
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. [[User:Lmn123|Lmn123]] 01:26, 24 January 2012 (EST)
  
 
== Modified HDMI Does Not work. ==
 
== Modified HDMI Does Not work. ==
Line 6: Line 8:
 
I added the line that included just restarting alsa.
 
I added the line that included just restarting alsa.
 
It seemed weird that the only method offered was to restart the entire system.
 
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 - I like finding bugs. They make *Nix stronger.]] 04:54, 16 August 2011 (EDT)
+
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.
 +
 
 +
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").
 +
 
 +
{{hc|/etc/modprobe.d/alsa.conf|
 +
2=options snd-hda-intel index=0
 +
options snd-usb-audio index=1}}
 +
 
 +
{{hc|~/.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}}
 +
-- [[User:Markus00000|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?
 +
--[[User:Jordz|jordz]] ([[User talk:Jordz|talk]]) 09:24, 15 June 2012 (UTC)
 +
 
 +
== <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