LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 05-08-2005, 05:45 AM   #1
inferno42
LQ Newbie
 
Registered: May 2005
Posts: 9

Rep: Reputation: 0
can only get sound as root, newbie help!!!!!


Hi im a complete newbie with linux but im learning quick. i got everything installed ok and even got my network with my windows system working.

Here is my problem. i have the LE 2005 x86_64 mandriva linux installed

i just downloaded the nforce drivers from nvidias web site installed ok once i installed the kernel source but here is where my problem occours.

after installing it says to do the following

open up /etc/modprobe.conf.
add this line

alias sound-slot-0 nvsound

"On some distributions, you may need to replace sound-slot-0 with snd-card-0. "
(i have tried both)

also if there was any other ones load there i had to remove or comment them out which i did.

"if you wish to have nvmixer audio settings automatically restored each time the nvsound driver loads, add the following lines to the configuration file for 2.6 kernels:"

install nvsound /sbin/modprobe --ignore-install nvsound ; sleep 1; /usr/bin/nvmix-reg -f /etc/nvmixrc -L >/dev/null 2>&1 || :
remove nvsound { /usr/bin/nvmix-reg -f /etc/nvmixrc -S >/dev/null 2>&1 || : ; }; /sbin/modprobe -r --ignore-remove nvsound


"For both 2.4 and 2.6 kernels, you should also edit /etc/rc.d/init.d/halt, or /etc/init.d/halt.local on SuSE distributions:"

if grep -q "\(nvsound\)" /proc/modules && [ -x /usr/bin/nvmix-reg ]; then
/usr/bin/nvmix-reg -f /etc/nvmixrc -S >/dev/null 2>&1
fi


i have done all this but no sound. tried restart and still nothing. After reading more it said about loading the module by doing this; modprobe nvsound
tried this but still no sound. tried reboot and i get

Sound server informational message:
Error while initializing the sound driver:
device /dev/dsp can't be opened (No such device)
The sound server will continue, using the null output device.

now here is the strange thing. if i log in as root after start up and do modprob nvsound i get sound!!! i can play mp3's etc.. but i have to keep doing this on reboot. if i log out of root and in as a user i get no sound.

can any help i tried to give all the info i can. If you need anything else like kernel verion etc then just ask.

thank you in advance
 
Old 05-08-2005, 06:05 AM   #2
n0sr
Member
 
Registered: Sep 2004
Location: 127.0.0.1
Distribution: Slackware 13; Ubuntu Raspberry Pi OS
Posts: 255

Rep: Reputation: 34
Re: can only get sound as root, newbie help!!!!!

Quote:
Originally posted by inferno42
Hi im a complete newbie with linux but im learning quick. i got everything installed ok and even got my network with my windows system working.

Here is my problem. i have the LE 2005 x86_64 mandriva linux installed
now here is the strange thing. if i log in as root after start up and do modprob nvsound i get sound!!! i can play mp3's etc.. but i have to keep doing this on reboot. if i log out of root and in as a user i get no sound.

can any help i tried to give all the info i can. If you need anything else like kernel verion etc then just ask.

thank you in advance
Sorry, I don't know about SuSE (I assume that's the distro you're using), but you should be able to add the command to /etc/init.d/boot.local.

Edit the file and add /sbin/modprobe nvsound

This file will run (as root) when you boot your system so everything is already running when you sign in with your normal profile. Sorry I don't have system next to me so I'm kinda guessing on the location of the modprobe command. /sbin may not be the correct directory, but I think it is
 
Old 05-08-2005, 06:25 AM   #3
inferno42
LQ Newbie
 
Registered: May 2005
Posts: 9

Original Poster
Rep: Reputation: 0
sorry that could be my bad im using mandrake not Suse
i will try that anyway to see what happens.

*edit*
i dont have the /etc/init.d/boot.local so i couldn't edit it.

Last edited by inferno42; 05-08-2005 at 06:29 AM.
 
Old 05-08-2005, 06:28 AM   #4
n0sr
Member
 
Registered: Sep 2004
Location: 127.0.0.1
Distribution: Slackware 13; Ubuntu Raspberry Pi OS
Posts: 255

Rep: Reputation: 34
No prob, I was just guessing as you had mentioned SuSE in your config stuff. I'd look for a file in /etc/init.d that has local in the name and you should be good to go!
 
Old 05-08-2005, 06:30 AM   #5
inferno42
LQ Newbie
 
Registered: May 2005
Posts: 9

Original Poster
Rep: Reputation: 0
as soon as i click on the /etc/init.d folder i got straight to /etc/rc.d/init.d look at the files and none have a local in them
 
Old 05-08-2005, 06:33 AM   #6
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
There may be a simple solution. Since you do have sound as root, check whether you are a member of the 'audio' group.

Other than that, here is a thread about the nvidia drivers on Mandrake 10.
http://www.nvnews.net/vbulletin/showthread.php?t=39668
One person stated that you need to choose OSS Multi-Threaded in the KDE sound system configuration.


Last edited by jschiwal; 05-08-2005 at 06:47 AM.
 
Old 05-08-2005, 06:44 AM   #7
inferno42
LQ Newbie
 
Registered: May 2005
Posts: 9

Original Poster
Rep: Reputation: 0
i have eleminated one problem on having to keep typing modprobe nvsound to get sound for root but i still can't get it for a normal user. i added the user to the audio group but that didn't do anything.
 
Old 05-08-2005, 06:52 AM   #8
n0sr
Member
 
Registered: Sep 2004
Location: 127.0.0.1
Distribution: Slackware 13; Ubuntu Raspberry Pi OS
Posts: 255

Rep: Reputation: 34
Quote:
Originally posted by inferno42
i have eleminated one problem on having to keep typing modprobe nvsound to get sound for root but i still can't get it for a normal user. i added the user to the audio group but that didn't do anything.
Good deal, now that modprobe is loaded and you checked the audio group (wow! have to be part of a group for sound?) I'd check permissions on the /dev/dsp or /dev/snd files. Again, not sure what the device files are called (slack uses /dev/dsp*) Of course that may be what the audio group is for!

It is possible the audio device files need to be part of the audio group.
 
Old 05-08-2005, 07:17 AM   #9
inferno42
LQ Newbie
 
Registered: May 2005
Posts: 9

Original Poster
Rep: Reputation: 0
ok some how my sound seems to be working. i have rebooted to make sure and im listening to music now. now i hit 2 minor problems.

1. all my music is only comming out of the right speaker. Yet as root i get both.

2. aRTs engine wont work with user only root. i was using Amarok as my media player and the Arts engine won't work for user only root. i installed gstreamer and sound and everything worked.

So any ideas how to get both speakers to work?
 
Old 05-08-2005, 10:52 PM   #10
Fice
Member
 
Registered: Feb 2005
Location: Monterrey, Mexico
Distribution: Sabayon
Posts: 75

Rep: Reputation: 15
Hi im having kind of the same problem.
Im running Arch Linux with the 2.6.11 kernel and with KDE.
I didnt need to configure scripts or anything to load the modules for my card, the hotplug found it still i know the module is snd-es1968 for my ESS maestro sound card. I also need to run two comands for it two work ok, i put this commands in a boot up script somewhere i dont quite remember, this where
amixer set Master 100 unmute
amixer set PCM 100 unmute
without those I dont get any sound at all.
But still once ive set those up and ive got them running whenever i open xmms as a user and try to play something it tells me theres something wrong with my sound card and in the konsole i get "***WARNING*** oss_open(): Failed to open audio device (/dev/dsp) Permision denied"
and whenever I open xmms as root it works with no problems.

The question then is how can I change the permissions set to dev/dsp? I tried running it as root and even as root it told me permision denied.
 
Old 05-09-2005, 04:42 AM   #11
inferno42
LQ Newbie
 
Registered: May 2005
Posts: 9

Original Poster
Rep: Reputation: 0
did you try changing permissions in a root terminal or did you login as root? i found that sometime i get there if i am in a root terminal log in as a normal user but if i log out and back in as root i can change it. Also the owner on mine is set to the user's name and the group is set to audio which was not done by me so maybe if you add the user to the audio group it may work.

ok back to my problem. everytime i solve one i get another lol.
For the problem i said about the right speaker. it seems if i load nvmixer i get left speaker. So is kmix controlling the right speaker and nvmixer controlling the left?

Ok my next problem. i can play music now in gstreamer but every song i play it plays for about 6sec pauses for about 2 the speakers make a small like poping sound then song will play all the way through. This also happens to every other song in the play list too.
 
Old 05-13-2005, 11:54 PM   #12
n0sr
Member
 
Registered: Sep 2004
Location: 127.0.0.1
Distribution: Slackware 13; Ubuntu Raspberry Pi OS
Posts: 255

Rep: Reputation: 34
You've moved on past any other ideas I might have..
The problem with popping sounds tells me it could be a driver problem. Do you have an old driver for your soundcard?
 
Old 05-14-2005, 03:21 PM   #13
Fice
Member
 
Registered: Feb 2005
Location: Monterrey, Mexico
Distribution: Sabayon
Posts: 75

Rep: Reputation: 15
Hi ive been trying to change it from the console, i dont know how to log in to kde if I login to root from the start. Ive been trying the commands chown, chgrp, chmod but none work, whenever I put them in correctly as far as the manual says no error comes out nor anything but whenever I try to run xmms from the normal user it wont play because of the same error. How can I change the permision to the file from the console?

Thanks
 
Old 05-16-2005, 01:26 AM   #14
inferno42
LQ Newbie
 
Registered: May 2005
Posts: 9

Original Poster
Rep: Reputation: 0
sorry for the late reply. the popping sound is now gone since i installed xmms. must have been gstreamer. my sound is now working perfect.

Fice
you may have to look around on your version of linux which ever distu u have, but in mandriva i set mine up so that i have a graphical boot for users so i can type the users name and password and the mode they boot up in. i.e. i can login as root and boot up in failsafe, kde, ice etc... can't check now as im not by my linux computer but when i get a sec i will look for where you go to set it up.
 
Old 05-19-2005, 03:05 AM   #15
Fice
Member
 
Registered: Feb 2005
Location: Monterrey, Mexico
Distribution: Sabayon
Posts: 75

Rep: Reputation: 15
Ok my sound is working perfectly now. My problem was that the file I was changing the permisions to was a link /dev/dsp linked to /dev/sound/dsp where the real thing was, as soon as I found that out I could change the permisions to the original file. Ah and Ive been having some problems with KDM wich Im still fixing thats why I cant login to KDE on boot up or at least couldnt before.

Thanks for all your help.
 
  


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
Newbie, Need Help With Sound Blaster Live Configuration, Right Now I Have No Sound nationofcass Linux - Hardware 14 02-16-2005 09:26 PM
kde sound options gone except for root, login sound gone memphisSuseUser Linux - Distributions 2 12-10-2004 05:55 PM
Newbie wants to become root plnelson Linux - Newbie 1 10-14-2004 10:11 PM
user sound is fine, Root sound just squeals Doug.Gentry Linux - Newbie 1 09-05-2004 03:27 PM
sound works in root - no sound in user - Debian seanb Debian 9 02-28-2004 12:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 11:05 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