You are not logged in.

#1 2015-04-03 07:55:10

Programmer
Member
From: Iran, Tehran
Registered: 2015-04-03
Posts: 39
Website

[Solved] Sound problem

I try install alsa for sound ! install some parts with terminal and i go to alsamixer and open channels . but when play .mp4 with vlc or play a .mp4 in firefox on internet . i have any sound !!!
when i run command :  speaker-test -c 2   in terminal ! give me this error :

speaker-test 1.0.29

Playback device is default
Stream parameters are 48000Hz, S16_LE, 2 channels
Using 16 octaves of pink noise
ALSA lib pcm_dmix.c:1024:(snd_pcm_dmix_open) unable to open slave
Playback open error: -2,No such file or directory

how can i fix this problem ?!

Last edited by Programmer (2015-04-06 07:00:31)


Android, Java And Kotlin Developer
and interested to arch linux, go and rust languages

Offline

#2 2015-04-03 08:01:33

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

Re: [Solved] Sound problem


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2015-04-03 20:15:31

Programmer
Member
From: Iran, Tehran
Registered: 2015-04-03
Posts: 39
Website

Re: [Solved] Sound problem

Please give better and clear way . I'm new to arch and I need help


Android, Java And Kotlin Developer
and interested to arch linux, go and rust languages

Offline

#4 2015-04-04 01:51:54

firekage
Member
From: Eastern Europe, Poland
Registered: 2013-06-30
Posts: 619

Re: [Solved] Sound problem

I don't want to sound rude but...it's the Arch way to read manpages and ArchWiki...also, provided topics. In fact, he gave you and answer. You shoud read ALSA on ArchWiki and PulseAudio chapters.

Offline

#5 2015-04-06 06:38:16

Programmer
Member
From: Iran, Tehran
Registered: 2015-04-03
Posts: 39
Website

Re: [Solved] Sound problem

solve this problem !!! i read ALSA again and i do evry thing . but yet i have no sound !!!
then i make asound.conf into /etc with this line :

::::::::::::::
/etc/asound.conf
::::::::::::::
pcm.!default {
type hw
card 0
device 3
}

ctl.!default {
type hw
card 0
device 3
}

and .asoundrc into /home with these line :

pcm.!default {
type hw
card 0
device 0
}

ctl.!default {
type hw
card 0
device 0
}

and reboot ! but i haven't any sound yet ! then i go to vlc ! audio > audio device > by default discard all sample selected ! and i change that to 'HDA intel PCH , CX 20757 analog default audio device' then close vlc and open it again ! and i have sound this time !!! i go to site for waching .mp4 for another test ! in i have sound in site when .mp4 play ! but before this action i haven't !

then i remove asound.conf and .asoundrc then reboot system and open vlc with .mp4 and sound was !! and web too ! i can't understand what happen !!  why sound work after i remove asound.conf and .asoundrc !?
The problem was elsewhere?
and when with vlc i selcet again discard all sample and close vlc ! i haven't sound in vlc but i have sound in web !

Last edited by Programmer (2015-04-06 07:02:41)


Android, Java And Kotlin Developer
and interested to arch linux, go and rust languages

Offline

#6 2015-04-06 06:47:55

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

Re: [Solved] Sound problem

Please use code tags when pasting to the boards: https://wiki.archlinux.org/index.php/Fo … s_and_code

And 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

#7 2015-04-06 06:58:49

Programmer
Member
From: Iran, Tehran
Registered: 2015-04-03
Posts: 39
Website

Re: [Solved] Sound problem

jasonwryan wrote:

Please use code tags when pasting to the boards: https://wiki.archlinux.org/index.php/Fo … s_and_code

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

Sure .  thanks


Android, Java And Kotlin Developer
and interested to arch linux, go and rust languages

Offline

Board footer

Powered by FluxBB