LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-20-2005, 02:24 PM   #1
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Rep: Reputation: Disabled
sound/application problems as user


I have an onboard sound card and a pci soundblaster 16

After having problems with crackly sound with the onboard I decided to turn it off in bios and just use the SB. I also recompiled kernel and alsa

I compilied alsa with:
alsa-driver 1.0.9rc4a
alsa-lib 1.0.9rc4
alsa-tools 1.0.9rc4
alsaconf 0.4.3b
alsa-oss-1.0.9-i486-1 (from linux packages)

my kernel is 2.6.12 with only sound support added, no built in alsa or oss as per alsa install instructions say


Now the problem I have is that some apps work with it and some don't and it also seems to depend on if I'm root or user:

gaim sounds work (but only if i use default built in - ie not a command using aplay)
xmms works as user
thunderbird sounds works as root not as user and still crackles grrr
aplay works as root not as user
real player works as root not as user

if I aplay a sound as user i get:

ALSA lib pcm_dmix.c:802snd_pcm_dmix_open) unable to open slave
aplay: main:533: audio open error: No such file or directory

but works fine as root.

So far I've tried:
#chown me /dev/audio /dev/dsp /dev/mixer
and also chowned all /sys/modules/snd/*

but nothing I've tried seems to work

Anyone know what I else I can chown or chmod to fix this?

Last edited by dive; 07-20-2005 at 02:53 PM.
 
Old 07-20-2005, 03:35 PM   #2
tuxdev
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 2,012

Rep: Reputation: 115Reputation: 115
SoundBlaster 16 works best using OSS
 
Old 07-20-2005, 03:36 PM   #3
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 53
maybe try to make yourself a member of the audio group.
just edit the file " /etc/groups " ( as root ) and add your name in the " audio " line.
( for example see the line of the " users " group )

egag
 
Old 07-20-2005, 04:02 PM   #4
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Original Poster
Rep: Reputation: Disabled
still no luck I'm afraid
 
Old 07-20-2005, 05:19 PM   #5
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Original Poster
Rep: Reputation: Disabled
Recompiled alsa and somehow I've lost all /dev sound devices
 
Old 07-20-2005, 05:21 PM   #6
tuxdev
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 2,012

Rep: Reputation: 115Reputation: 115
probably needs udev-054
 
Old 07-20-2005, 05:37 PM   #7
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Original Poster
Rep: Reputation: Disabled
Just installed udev 58 from slack site but no change
I was chowning some things tho and must have messed something up badly I think
 
Old 07-20-2005, 05:45 PM   #8
tuxdev
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 2,012

Rep: Reputation: 115Reputation: 115
Does the sb module in /etc/rc.d/rc.modules work?
 
Old 07-21-2005, 01:40 PM   #9
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Original Poster
Rep: Reputation: Disabled
I built the kernel with no oss or alsa support so there is no sb module
I have now recompiled with oss support (sb built in) and sound is back but still cant get thunderbird to work with sound
looks like /dev sound devices are back too
maybe this is an issue that belongs on the thunderbird and realplayer support forums, although real was once working ok but now there is no sound and even volume changes dont stick
 
Old 07-21-2005, 02:51 PM   #10
friendly_guy
Member
 
Registered: Oct 2003
Location: England
Distribution: Lubuntu, Bodhi, Puppy,
Posts: 85

Rep: Reputation: 15
I am using a self compiled 2.6.12 with the current alsa compiled against it. To get sound to work I have to run a script that is either in or is created in the alsa-driver source directory called snddevices that appears to create the sound device files.

I have added a line to my /etc/rc.d/rc.M file to run it after it initialises alsa & this works fine
 
Old 07-21-2005, 03:28 PM   #11
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Original Poster
Rep: Reputation: Disabled
Still no change regarding thunderbird and real

I believe its a permission problems somewhere along the line
 
Old 07-21-2005, 03:39 PM   #12
tuxdev
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 2,012

Rep: Reputation: 115Reputation: 115
what are the permisions for /dev/dsp0 and /dev/mixer?
 
Old 07-21-2005, 05:05 PM   #13
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Original Poster
Rep: Reputation: Disabled
bash-3.00$ ls -l /dev/dsp
lrwxrwxrwx 1 root root 9 2005-07-21 23:59 /dev/dsp -> sound/dsp
bash-3.00$ ls -l /dev/mixer
lrwxrwxrwx 1 root root 11 2005-07-21 23:59 /dev/mixer -> sound/mixer
bash-3.00$ ls -l /dev/sound/dsp
crw-rw--w- 1 root audio 14, 3 2005-07-21 23:59 /dev/sound/dsp
bash-3.00$ ls -l /dev/sound/mixer
crw-rw--w- 1 root audio 14, 0 2005-07-21 23:59 /dev/sound/mixer



but I've tried chmod and chown'ing them with no apparent effect
 
Old 07-21-2005, 05:18 PM   #14
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 53
Maybe you've a .asoundrc file in your home directory pointing to the disabled device.
 
Old 07-21-2005, 05:28 PM   #15
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Original Poster
Rep: Reputation: Disabled
Nope, but, I've just recompiled kernel with oss support, uninstalled alsa, reinstalled real player and it now works.
So, just thunderbird to fix

BTW is there an oss equivalent of the aplay prog?

*edit nm i found 'play'


Last edited by dive; 07-21-2005 at 05:37 PM.
 
  


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
Force an application to run only for my user purefan General 1 04-12-2005 09:30 AM
How to enable root to run graphical application in user log in xgreen Slackware 4 03-07-2005 06:39 AM
user mode issues - change default application pp7k Linux - Newbie 5 03-02-2005 04:55 PM
Run an application under a user on startup? wichmann_uwe Linux - General 1 01-23-2004 03:07 AM
How can I execute an application automatically when a user loggs in? iancr Red Hat 3 12-10-2003 04:32 PM

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

All times are GMT -5. The time now is 12:31 AM.

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