LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 07-02-2003, 02:26 AM   #1
pe2338
Member
 
Registered: Dec 2002
Location: Bucharest,RO
Distribution: debian etch, sarge and sid
Posts: 407

Rep: Reputation: 30
sound server


the sound work in console (mpg123) but it doesn't under X...

Why?

Debian woody with kernel 2.4.16 for the alsa sound driver (not my only option as long as some other works fine)
 
Old 07-05-2003, 02:24 AM   #2
Abject
Member
 
Registered: Mar 2002
Location: Studio City, CA
Distribution: Debian (Sarge-Sid)
Posts: 76

Rep: Reputation: 15
I have 2 guesses:

If you run with privs - like root - at the console, it could be a protection problem. Try:
<Imaginary CODE tag - hint, hint, Mods >
# adduser your-username audio
</Imaginary CODE tag>

Or, if you built your own kernel, never, ever build the "standard" driver for your sound card in the kernel if you want to use ALSA. Only include "sound support" (soundcore?).

If the standard driver is a there, and is a module, you need to rmmod it. Somebody smarter than me can tell you how to permanently remove it - something involving modconf and update-modules, probably.

If you built the standard driver in a custom kernel, you'll have to make a new kernel (without the sound card driver) to use ALSA.

Here's a pretty good Debian ALSA Howto, but it assumes you haven't messed it up before starting (like I did).

HTH,
Ab.
 
Old 07-05-2003, 10:31 AM   #3
pe2338
Member
 
Registered: Dec 2002
Location: Bucharest,RO
Distribution: debian etch, sarge and sid
Posts: 407

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by Abject
I have 2 guesses:

If you run with privs - like root - at the console, it could be a protection problem. Try:
<Imaginary CODE tag - hint, hint, Mods >
# adduser your-username audio
</Imaginary CODE tag>

Or, if you built your own kernel, never, ever build the "standard" driver for your sound card in the kernel if you want to use ALSA. Only include "sound support" (soundcore?).

If the standard driver is a there, and is a module, you need to rmmod it. Somebody smarter than me can tell you how to permanently remove it - something involving modconf and update-modules, probably.

If you built the standard driver in a custom kernel, you'll have to make a new kernel (without the sound card driver) to use ALSA.

Here's a pretty good Debian ALSA Howto, but it assumes you haven't messed it up before starting (like I did).

HTH,
Ab.

Where is that "imaginary code tag - hint, hint..." suposed to be??

and the add-user yourname sound is supposed to insert the user into the sound group or what?


Sorry for the question but I didn't quite understood it...

Is not necessary for the sound driver to be alsa...so
I managed to start the ess form the console but how do I make it run as a daemon? Is an esD isn't it?

rcconf did not solve the problem...
the esd does not appear in the services list...
And does the rcconf have a help upon the services it manages like the setup services in the setup utility from RH?


HELP !
HELP !
HELP !
HELP !
HELP !
Please!
 
Old 07-05-2003, 10:33 AM   #4
pe2338
Member
 
Registered: Dec 2002
Location: Bucharest,RO
Distribution: debian etch, sarge and sid
Posts: 407

Original Poster
Rep: Reputation: 30
and another thing : I used the precompiled kernel for the K7 processors that came with the original CDs(downloaded).
 
Old 07-05-2003, 02:27 PM   #5
Abject
Member
 
Registered: Mar 2002
Location: Studio City, CA
Distribution: Debian (Sarge-Sid)
Posts: 76

Rep: Reputation: 15
I'll try again

First, they were just guesses (based on my mistakes).

Quote:
Where is that "imaginary code tag - hint, hint..." suposed to be??
Sorry. I was asking the moderators to add an HTML tag for code examples. I apologize for the confusion.

Quote:
and the add-user yourname sound is supposed to insert the user into the sound group or what?
/dev/dsp and other sound devices are usually owned by the "audio" group. If your regular username is not in that group and does not have root privileges, you won't be able to use them. The best way to give your use access is to add that user to the audio group. Do this:

# ls -la /dev/dsp

you should see something like this:

lrwxrwxrwx 1 root audio 9 Jul 1 18:34 /dev/dsp -> /dev/dsp0

If you don't see audio, then:

# chown :audio /dev/dsp

and then

# adduser <your unprivileged username> audio

Your unprivileged user must logout and back in for this to take effect. If you are running X when you do this, you should log out of X and restart X with <Ctrl><Alt><Backspace>

Quote:
Sorry for the question but I didn't quite understood it...
I'm the one who should apologize (I did! ). It's a good question. And a bad answer.
Quote:
Is not necessary for the sound driver to be alsa
You're right, but ALSA will be the standard sound infrastructure for GNU/Linux very soon, so it's good to practice.
Quote:
...so
I managed to start the ess form the console but how do I make it run as a daemon?
I hope I don't sound unhelpful, but sound is tricky stuff with Linux in general (non-commercial varieties). If I were having this problem, I'd google "Debian sound howto". This link looks promising (but it is for Potato - Debian 2.2).

Quote:
Is an esD isn't it?

rcconf did not solve the problem...
the esd does not appear in the services list...
And does the rcconf have a help upon the services it manages like the setup services in the setup utility from RH?
I don't know. Maybe we should take a step back. Can you please describe your system and especially you sound card or chip? Plus the output of dmesg right after start-up? Are you running "stable" (Woody, 3.1) Debian? Or Testing (Sarge)? Or Unstable (Sid)? Are you running KDE or Gnome?

Did you try the Debian Alsa Howto Imentioned in my previous reply?
 
Old 07-07-2003, 07:25 AM   #6
pe2338
Member
 
Registered: Dec 2002
Location: Bucharest,RO
Distribution: debian etch, sarge and sid
Posts: 407

Original Poster
Rep: Reputation: 30
At this moment I did a recompilation of the 2.4.16 kernel and added the ensoniq chip 1371 card (my sound board) as a module to it.. It works fine...

I will try to put the alsa driver again....
is correct "AGAIN" 'cause I downloaded the tutorial on the link page you gave me and it worked fine....

Thanks a lot!

By the way : how can one select the type of session that he/she would like to use (gnome/kde) if I don't like to start the X at boot time but from the console with startx or something similar?
 
Old 07-07-2003, 07:28 AM   #7
pe2338
Member
 
Registered: Dec 2002
Location: Bucharest,RO
Distribution: debian etch, sarge and sid
Posts: 407

Original Poster
Rep: Reputation: 30
using debian woody
 
Old 07-07-2003, 07:30 AM   #8
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Quote:
Originally posted by Abject

<Imaginary CODE tag - hint, hint, Mods >
# adduser your-username audio
</Imaginary CODE tag>
Imaginary?
Code:
function code_block {
  click_on_code_button(); 
  message_enter->($code_text);
  click_on_ok;
  return 1;
}
 
Old 07-07-2003, 09:11 PM   #9
Abject
Member
 
Registered: Mar 2002
Location: Studio City, CA
Distribution: Debian (Sarge-Sid)
Posts: 76

Rep: Reputation: 15
Chris - thanks!
 
Old 07-08-2003, 12:51 AM   #10
BittaBrotha
Member
 
Registered: Jan 2002
Location: Third Stone from the Sun
Distribution: Debian Sid, SourceMage 0.9.5, & To be Continued on a TP
Posts: 800

Rep: Reputation: 31
I'm having sorta the same sound problem with Debian Sid. I installed the alsa sound drivers and everything seems to be working but I don't hear any thing from speakers.

any ideas?
 
Old 07-08-2003, 10:14 PM   #11
Abject
Member
 
Registered: Mar 2002
Location: Studio City, CA
Distribution: Debian (Sarge-Sid)
Posts: 76

Rep: Reputation: 15
Check the mixer? I think everything's muted by default. (Sounds stupid, but I've been this stupid)
 
Old 07-09-2003, 01:47 AM   #12
BittaBrotha
Member
 
Registered: Jan 2002
Location: Third Stone from the Sun
Distribution: Debian Sid, SourceMage 0.9.5, & To be Continued on a TP
Posts: 800

Rep: Reputation: 31
I'm using alsamixer and tried it but still no sound from speakers.
 
Old 08-13-2003, 05:52 AM   #13
pe2338
Member
 
Registered: Dec 2002
Location: Bucharest,RO
Distribution: debian etch, sarge and sid
Posts: 407

Original Poster
Rep: Reputation: 30
alsamixer has also a mute command - press "M" to unmute

I wrote a little script in the /etc/profile that commands the amixer to unmute master and PCM and set sound levels to 100% and respectively 80%
 
Old 08-17-2003, 11:45 PM   #14
TigerPawz
LQ Newbie
 
Registered: Aug 2003
Location: Canada
Distribution: Knoppix/Debian 3.2 beta
Posts: 1

Rep: Reputation: 0
Unhappy Knoppix Sound volume too low/but sound works

Okay, I have Knoppix/debian 3.2 beta Hd-installed to hard drive.. Sound works, but sound is like listening to it thru headphones ( or acts like the amp isn't working to boost sound).. mobo mainboard with AC97 Audio Via 82cxx ..

Weird how the sound works yet not loud enough to hear it

has anyone ever had this problem and how do I fix this?
 
Old 08-18-2003, 02:22 AM   #15
pe2338
Member
 
Registered: Dec 2002
Location: Bucharest,RO
Distribution: debian etch, sarge and sid
Posts: 407

Original Poster
Rep: Reputation: 30
run alsamixer or amixer and see if something is wrong there with the sound volume.

there are to controls that are important Master and PCM.Both must be at an over zero level. I use 100% Master and 80%PCM and have a script that runs at login (/etc/profile) but I intend to move it to the /etc/init.d and into the rc.2 to rc.5 to set the sound at he change of runlevels.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Sound Server, ArTs, no sound FC4 javb Fedora 7 09-22-2005 12:30 PM
Sound server informational message: Error while initializing the sound driver... LA004 Linux - Hardware 4 08-21-2005 08:25 PM
Wine : cannot have sound with any sound server vmicho Linux - Games 3 05-16-2004 06:44 AM
Xandros delux 2.0 When I try to run Sound server Control ,Media Player & Sound Record Jesta Linux - Distributions 0 05-15-2004 09:35 PM
Sound problem after installing/uninstalling JACK sound server bastupungen Linux - Software 1 02-28-2004 12:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 01:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration