You are not logged in.
Hi all,
Run into a couple of things I can't seem to resolve on my Arch install.
Firstly, I've installed alsa-utils and alsa-plugins from the repo, run alfamixer and it seems that everything is in order, but when I run speaker-test I get:
#speaker-test
speaker-test 1.0.20
Playback device is default
Stream parameters are 48000Hz, S16_LE, 1 channels
Using 16 octaves of pink noise
ALSA lib pcm_dmix.c:1022:(snd_pcm_dmix_open) unable to open slave
Playback error: -2,No such file or directory
I've also run:
# cat /proc/asound/modules
0 snd_hda_intel
1 snd_hda_intel
Can anyone say what I'm doing wrong, or what else I need to edit?
--------------------
Secondly, I'm trying to find a xinitrc file to edit to get the startx command to open slim, and then fluxbox, but I don't have any files in /etc/skel/ ... Can I get it from anywhere else?
Many thanks all!
Last edited by OpenFerret (2014-10-20 20:13:38)
Offline
What's the output of "cat /proc/asound/cards"?
Simply create a .xinitrc file in your home directory and put your commands there.
Last edited by lucke (2014-10-20 18:55:32)
Offline
What's the output of "cat /proc/asound/cards"?
Simply create a .xinitrc file in your home directory and put your commands there.
Hi lucke,
The output is:
$ cat /proc/asound/cards
0 [HDMI ]: HDA-Intel - HDA Intel HDMI
HDA Intel HDMI at 0xf0510000 irq 61
1 [PCH ]: HDA-Intel - HDA Intel PCH
HDA Intel PCH at 0xf05140000 irq 60
In reference to putting the xinitrc file in the home directory, that isn't an issue; I'm trying to find a copy of it online to go off, can you point me in the right direction.
Offline
Please read the wiki before posting:
The xorg-xinit package will populate /etc/skel with a framework .xinitrc file.
Offline
Please read the wiki before posting:
xinitrc page wrote:The xorg-xinit package will populate /etc/skel with a framework .xinitrc file.
Hi jasonwryan,
I installed xorg-xinit first, expecting it to do just that but it hasn't. That's why I'm asking.
Many thanks!
Offline
Please paste the output of `pacman -Ql xorg-xinit`.
Offline
The second card seems to be the actual sound card, you should set it as the default one. https://wiki.archlinux.org/index.php/Al … ive_method
You have an exemplary file in https://wiki.archlinux.org/index.php/Xinitrc. Files starting with dots are hidden, maybe that's why you think it isn't in /etc/skel. Use "-ls -a /etc/skel" to show all files there. Normally one starts a window manager (fluxbox) and perhaps some apps through xinitrc, if you want to use a display manager (slim), use systemd to start it ("systemctl start slim").
Last edited by lucke (2014-10-20 19:57:49)
Offline
Please paste the output of `pacman -Ql xorg-xinit`.
I'm not sure what I've been doing wrong, at the file is clearly listed there in the output and now nano will open the file?
Please accept my apologies, I think I've just made a nooby mistake somewhere. I couldn't see the file when I changed directory to /etc/skel and then ran 'ls' at the command line. I will copy the file to my home folder and edit there.
Offline
The second card seems to be the actual sound card, you should set it as the default one. https://wiki.archlinux.org/index.php/Al … ive_method
You have an exemplary file in https://wiki.archlinux.org/index.php/Xinitrc. Files starting with dots are hidden. maybe that's why you think it isn't in /etc/skel. Use "-ls -a /etc/skel" to show all files there. Normally one starts a window manager (fluxbox) and perhaps some apps through xinitrc, if you want to use a display manager (slim), use systemd to start it ("systemctl start slim").
Ah... That's where I've been going wrong...
Please accept my apologies and mark the thread as closed. Thank you for the lessons dudes!!!
Offline
Please remember to mark your thread as [Solved] by editing your first post and prepending it to the title.
Offline
It's up to you to edit the first post and add [Solved] to the topic's name. But, as you've put two issues into one topic, perhaps do it once you're sure your sound is working.
Offline
To get the speaker-test to work, I had to create a file called alsa-base.conf in /etc/modprobe.d
and copied into it:
options snd_mia index=0
options snd_hda_intel index=1
Now when I run the speaker test I get white noise through the speakers and headphones id they are in...
I will move onto getting slim to start with fluxbox and see how it goes.
Many thanks!
Offline
Both your cards are using snd_hda_intel (and not snd_mia), so your solution doesn't seem valid. Although maybe it (or reboot) changed the sequence of the cards.
Offline
Both your cards are using snd_hda_intel (and not snd_mia), so your solution doesn't seem valid. Although maybe it (or reboot) changed the sequence of the cards.
I've reversed the 0/1 on the options in the file and it still seems to work fine?
Hopefully it will continue being fine.
Offline