Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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:"
"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.
Distribution: Slackware 13; Ubuntu Raspberry Pi OS
Posts: 255
Rep:
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
Distribution: Slackware 13; Ubuntu Raspberry Pi OS
Posts: 255
Rep:
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!
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.
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.
Distribution: Slackware 13; Ubuntu Raspberry Pi OS
Posts: 255
Rep:
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.
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.
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.
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.
Distribution: Slackware 13; Ubuntu Raspberry Pi OS
Posts: 255
Rep:
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?
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?
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.