You are not logged in.
Pages: 1
Topic closed
Hi,
I'm new to Arch but have some knowledge of Linux in general. I'm wanting to use Arch as a way of getting more clued up on how Linux works 'under-the-hood'.
I have an issue with ALSA which, after reading up on it in the Arch Wiki, I'm not sure how to solve. I'm hoping that someone can point me in the right direction.
ALSA itself seems to be working fine. I can run 'alsamixer', press F6 to select my soundcard and un-mute and increase the volume and I get sound. I've saved the settings to ~/.asoundrc.
If I reboot or log off and back on, however, the ALSA settings are reset.
If I run:
amixer -c 0 sset 'Master' 50% unmute &> /dev/nullI get sound again. I've tried adding the above line to rc.local but sound is still muted and 0% volume after a reboot.
Could anyone suggest why this might be?
Last edited by roguewolf (2012-06-04 06:56:59)
Offline
Install "alsa-utils":
sudo pacman -S alsa-utilsThen set your volumes to where you would like them using whatever mixer, then do:
sudo alsactl storeThen made sure that "alsa" is in your DAEMONS array in /etc/rc.conf
That should do the trick. ![]()
Offline
-Set the desired volume in alsamixer
-Use the command
alsactl store
open /etc/rc.conf and add alsa to the daemons.
This is from the wiki page https://wiki.archlinux.org/index.php/Alsa and it worked for me.
Last edited by tkdncty2 (2012-05-29 08:55:03)
Offline
Also, "alsa" in your DAEMONS array should be as far left as possible. Here is mine for reference:
DAEMONS=(syslog-ng dbus hwclock alsa network crond slim)Don't worry about the stuff you don't need, just make sure that alsa is at least before your login manager.
Offline
Wow, thanks for the very quick replies ![]()
I made sure to read through the ALSA Wiki page after installation (and before posting here) so should already have done as you have suggested but, just to be sure:
I double-checked and I already have alsa-utils installed.
I re-ran:
sudo alsactl storeI've also double-checked to make sure that 'alsa' is in my DAEMONS array and it is:
DAEMONS=(syslog-ng dbus network crond alsa gdm)But still no sound after logoff/on ![]()
Offline
Thanks headkase, just rebooting after moving 'alsa' in front of 'network' in my DAEMONS array...
Last edited by roguewolf (2012-05-29 09:10:51)
Offline
...but still no sound.
Could it be something like Pulse Audio over-riding the ALSA settings?
Last edited by roguewolf (2012-05-29 09:10:34)
Offline
Try removing or renaming your ~/.asoundrc file. What mixer are you using? I use "xfce4-mixer" as my desktop environment is Xfce 4.10. That one I select the sound hardware in, I have more than one, then after doing that do the alsactl store command.
Edit: also, logoff/login isn't enough for the ALSA daemon: you have to reboot. All that daemon does is store the volume on shutdown and restore it on bootup.
Edit2: do alsactl store right after setting everything up in amixer. If that doesn't work perhaps try another mixer?
Last edited by headkase (2012-05-29 09:18:13)
Offline
Thanks again headkase.
I've renamed the ~/.asoundrc to ~/.asoundrc_bak and done a full reboot but still no sound.
I'm not sure what mixer I'm using? I'm just right-clicking on the gnome volume control and selecting 'Sound Preferences'. I do have PulseAudio Volume Control installed and that shows movement on the 'volume bar' when I do something which should make a sound (e.g. pressing left arrow in terminal). But no sound is actually emitted (unless I run the amixer command from my original post).
Offline
Yeah, I'm sorry I don't know what to suggest from here. I'm, as said, using Xfce 4.10 and I am using just ALSA with that and the given instructions do work for myself. Now, I do know like you say that GNOME uses Pulse Audio. So the best place to start for yourself from here would be that page on the Wiki:
I'm unfamiliar with Pulse, and don't use it, so hopefully if nothing stands-out to you on the Wiki then perhaps someone else will be able to help.
Offline
No need to apologise, I really appreciate the help.
I am reasonably sure that it's some sort of conflict between ALSA and Pulse Audio. It seems odd that adding the alsamixer line to rc.local isn't working as it works when running manually and, if I understand correctly from the Wiki, rc.local is the last thing to run after login. That's makes me suspect that Pulse is overwriting the ALSA settings.
I have read through the Pulse Audio Wiki entry and there's a section specifically dealing with Pulse overwriting the ALSA settings but I've added the suggested code to .xinitrc but to no avail. I even thought about removing Pulse Audio altogether but it seems that GNOME requires it.
I'm not tied to the GNOME interface so, if I can't sort this out I might have a look at the other options. XFCE seems pretty cool so I might give that a try ![]()
Thanks again for your help, glad to see that my problem doesn't seem to be due to any stupid newbie error on my part (hopefully!).
Last edited by roguewolf (2012-05-29 09:50:08)
Offline
You're welcome, sorry I couldn't get it resolved with you. Xfce is a very light desktop environment - I use it mostly because it is compatible with Compiz. If you do go with it check that out too! Lot's of pretty bell's 'n whistles.. ![]()
Offline
try removing pulseaudio if thats installed...
Offline
Thanks debdj. Is that possible with GNOME? If I try to remove pulseaudio I get a message advising that 'gnome-setting-daemon requires pulseaudio'.
Offline
Sorry, I didnt notice you're using gnome.
Have you tried this?
https://wiki.archlinux.org/index.php/Pu … A_settings
Offline
No worries.
I had noticed that section of the PulseAudio Wiki and tried what was suggested but unfortunately that didn't work.
Offline
@headkase
I've removed GNOME and Pulse Audio and installed Xfce and guess what, I have persistent sound!
Thanks again for your help ![]()
Offline
Right on, you're welcome! ![]()
Offline
Had the same problem on Gnome. Installing alsa-utils fixed it.
Offline
archie0, see the wiki article for ALSA and Forum Etiquette: Old Threads / Necro-Bumping. Closing.
aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies
Offline
Pages: 1
Topic closed