You are not logged in.

#1 2014-10-20 18:48:04

OpenFerret
Member
Registered: 2014-10-14
Posts: 14

[SOLVED] Some issues with ALSA and finding xinitrc...

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

#2 2014-10-20 18:55:19

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,018

Re: [SOLVED] Some issues with ALSA and finding xinitrc...

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

#3 2014-10-20 19:18:26

OpenFerret
Member
Registered: 2014-10-14
Posts: 14

Re: [SOLVED] Some issues with ALSA and finding xinitrc...

lucke wrote:

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

#4 2014-10-20 19:34:50

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [SOLVED] Some issues with ALSA and finding xinitrc...

Please read the wiki before posting:

xinitrc page wrote:

The xorg-xinit package will populate /etc/skel with a framework .xinitrc file.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2014-10-20 19:39:03

OpenFerret
Member
Registered: 2014-10-14
Posts: 14

Re: [SOLVED] Some issues with ALSA and finding xinitrc...

jasonwryan wrote:

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

#6 2014-10-20 19:43:25

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [SOLVED] Some issues with ALSA and finding xinitrc...

Please paste the output of `pacman -Ql xorg-xinit`.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#7 2014-10-20 19:45:26

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,018

Re: [SOLVED] Some issues with ALSA and finding xinitrc...

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

#8 2014-10-20 19:50:30

OpenFerret
Member
Registered: 2014-10-14
Posts: 14

Re: [SOLVED] Some issues with ALSA and finding xinitrc...

jasonwryan wrote:

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

#9 2014-10-20 19:51:30

OpenFerret
Member
Registered: 2014-10-14
Posts: 14

Re: [SOLVED] Some issues with ALSA and finding xinitrc...

lucke wrote:

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

#10 2014-10-20 19:55:40

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [SOLVED] Some issues with ALSA and finding xinitrc...

Please remember to mark your thread as [Solved] by editing your first post and prepending it to the title.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#11 2014-10-20 19:56:46

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,018

Re: [SOLVED] Some issues with ALSA and finding xinitrc...

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

#12 2014-10-20 20:13:23

OpenFerret
Member
Registered: 2014-10-14
Posts: 14

Re: [SOLVED] Some issues with ALSA and finding xinitrc...

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

#13 2014-10-20 20:24:45

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,018

Re: [SOLVED] Some issues with ALSA and finding xinitrc...

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

#14 2014-10-20 20:48:00

OpenFerret
Member
Registered: 2014-10-14
Posts: 14

Re: [SOLVED] Some issues with ALSA and finding xinitrc...

lucke wrote:

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

Board footer

Powered by FluxBB