Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Sound problems
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
_tyrone
n00b
n00b


Joined: 22 Jul 2006
Posts: 16

PostPosted: Wed Jul 26, 2006 11:16 am    Post subject: Sound problems Reply with quote

I've installed ALSA and followed the ALSA guide here, but I'm getting the error
Code:
device: default can't be opened for playback (Invalid argument)

The sound server will continue, using the null output device


Can anyone help me?

Thanks :)
Back to top
View user's profile Send private message
batistuta
Veteran
Veteran


Joined: 29 Jul 2005
Posts: 1384
Location: Aachen

PostPosted: Wed Jul 26, 2006 11:37 am    Post subject: Reply with quote

more info please. Are you running alsa in the kernel or as a module? Although you don't say it, I assume you get that error when starting X. Take one step back. Can you play from the command line?
Back to top
View user's profile Send private message
_tyrone
n00b
n00b


Joined: 22 Jul 2006
Posts: 16

PostPosted: Wed Jul 26, 2006 11:38 am    Post subject: Reply with quote

X is working fine, using ALSA from module.
Back to top
View user's profile Send private message
SZwarts
l33t
l33t


Joined: 13 Oct 2003
Posts: 629
Location: Sydney, NSW, Australia

PostPosted: Wed Jul 26, 2006 11:42 am    Post subject: Reply with quote

Maybe you can provide a little bit more information. Who is giving this error message? a program? a desktop manager sound daemon? What kind of sound card do you have? what kind of driver have you installed? are you trying to use a program with oss emulation? are the sound devices there? does an lspci list your sound card?
_________________
only when it is dark enough, can you see the stars
Back to top
View user's profile Send private message
batistuta
Veteran
Veteran


Joined: 29 Jul 2005
Posts: 1384
Location: Aachen

PostPosted: Wed Jul 26, 2006 12:09 pm    Post subject: Reply with quote

again: Take one step back. Can you play from the command line?

when do you get the error? Does the alsa module start without problems? Can you run alsamixer?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54578
Location: 56N 3W

PostPosted: Wed Jul 26, 2006 12:13 pm    Post subject: Reply with quote

_tyrone,

Show us your sound devices ... thats
Code:
ls- l /dev/snd
and
Code:
ls -l dev/sound

_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
_tyrone
n00b
n00b


Joined: 22 Jul 2006
Posts: 16

PostPosted: Wed Jul 26, 2006 12:40 pm    Post subject: Reply with quote

KDE is giving me the message, on start up. Using nForce 2.

ls -l /dev/snd
Code:
total 0
crw-rw---- 1 root audio 116, ... controlC0
crw-rw---- 1 root audio 116, pcmC0D0c
crw-rw---- 1 root audio 116, pcmC0D0p
crw-rw---- 1 root audio 116, pcmC0D1c
crw-rw---- 1 root audio 116, pcmC0D2p
crw-rw---- 1 root audio 116, seq
crw-rw---- 1 root audio 116, timer



ls -l /dev/sound
Code:

total 0
... adsp
audio
dsp
mixer
sequencer
sequencer2
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54578
Location: 56N 3W

PostPosted: Wed Jul 26, 2006 12:57 pm    Post subject: Reply with quote

_tyrone,

That looks reasonable. Are you in the audio group ?
Type groups to check. Add yourself, log our and login to pick up the new groups membership, if needed.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
_tyrone
n00b
n00b


Joined: 22 Jul 2006
Posts: 16

PostPosted: Wed Jul 26, 2006 1:08 pm    Post subject: Reply with quote

My user is in the audio group. Still not workin' :(.
Back to top
View user's profile Send private message
batistuta
Veteran
Veteran


Joined: 29 Jul 2005
Posts: 1384
Location: Aachen

PostPosted: Wed Jul 26, 2006 1:33 pm    Post subject: Reply with quote

Quit X. Then does alsamixer work? .
Back to top
View user's profile Send private message
_tyrone
n00b
n00b


Joined: 22 Jul 2006
Posts: 16

PostPosted: Wed Jul 26, 2006 1:37 pm    Post subject: Reply with quote

aslamixer works.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54578
Location: 56N 3W

PostPosted: Wed Jul 26, 2006 2:12 pm    Post subject: Reply with quote

_tyrone,

Set up your sound in KDE - its trying to use the defualt device - whatever that is.
It may be set to a device you don't have, or an input only device ...

Trying to play sound through a webcam is usually disapporing.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
batistuta
Veteran
Veteran


Joined: 29 Jul 2005
Posts: 1384
Location: Aachen

PostPosted: Wed Jul 26, 2006 2:27 pm    Post subject: Reply with quote

can you try playing something from xmms or amarok, talking directly to ALSA (rather than arts)???

I was gonna suggest again playing something from the console, to make sure that ALSA is working, but I know that for some reason you don't like that idea :D
Back to top
View user's profile Send private message
_tyrone
n00b
n00b


Joined: 22 Jul 2006
Posts: 16

PostPosted: Thu Jul 27, 2006 7:45 am    Post subject: Reply with quote

Okay, I think it's KDE/aRt side that's the problem.
If I change a setting in art, it will say "Starting sound system" and once it reaches 100% go back to 0% and repeat.
Back to top
View user's profile Send private message
batistuta
Veteran
Veteran


Joined: 29 Jul 2005
Posts: 1384
Location: Aachen

PostPosted: Thu Jul 27, 2006 8:08 am    Post subject: Reply with quote

this sounds like it is trying to start arts and it can't. The thing is that you don't really need arts. Disable for the moment all sounds in kde. Then open up xmms or something and try to play some music by selecting ALSA directly (Rather than arts) as your sound device.

I would really also try things outside X. Try sending some random noise to the sound device, that doesn't require any special program.
Back to top
View user's profile Send private message
_tyrone
n00b
n00b


Joined: 22 Jul 2006
Posts: 16

PostPosted: Thu Jul 27, 2006 8:24 am    Post subject: Reply with quote

Aye, still not working.

I added myself into the audio group, but when I type groups in terminal, I can't see audio in it.

more info -

esd
Code:

ALSA lib conf.c:3931: (snd_config_expand) Parse arguments error: Invalid argument
ALSA lib pcm.c:2146: (snd_pcm_update_noupdate) Unknown PCM hw:0,
ALSA lib pcm_dmix.c:862:(snd_pcm_dmix_open) unable to open slave


Also, if I change my device in arts to ALSA, I'll get

Code:
device: default can't be opened for playback (No such device)


and for Autodetect,

Code:
device /dev/dsp can't be opened (Premission denied)
Back to top
View user's profile Send private message
batistuta
Veteran
Veteran


Joined: 29 Jul 2005
Posts: 1384
Location: Aachen

PostPosted: Thu Jul 27, 2006 8:51 am    Post subject: Reply with quote

esd is something completely different and it doesn't really apply to KDE (which seems to be your DE). I really don't know what you are trying to do.

I've suggested some things that I would try to solve the problem, but it doesn't seem to follow your approaches. Wish you good luck with whatever you do.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum