LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 01-14-2006, 05:02 PM   #1
randell6564
Member
 
Registered: Nov 2005
Location: California USA
Distribution: Ubuntu,(Feisty Fawn) Windows XP(Home Edition)
Posts: 634

Rep: Reputation: 31
why does sound work as user but not as root


How come I can play music when logged in as a user but i get no sound when i logg in as root?
 
Old 01-14-2006, 05:41 PM   #2
halvy
Member
 
Registered: Aug 2005
Location: Anchorage, Alaska (soon EU, hopefully)
Distribution: Anything NOT SystemD (ie. M$) related.
Posts: 918

Rep: Reputation: 42
try adding all sound related items (users) to group root.

good luck.
 
Old 01-14-2006, 05:48 PM   #3
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Quote:
Originally Posted by randell6564
How come I can play music when logged in as a user but i get no sound when i logg in as root?
Because you are not supposed to login as root to do casual things like listen to music. Many distros disable various things for the root account because there are security issues regarding logging in as root and obviously to protect your system from any mistakes you can make. Root is supposed to be an account strictly for administering the system and not for normal use. When logged in as a normal user, use the "su" command in a terminal to temporarily switch to root. If you are not so good on the command line, you can start apps as root by doing "kdesu appname" whilst logged in as a normal user.
 
Old 01-14-2006, 06:08 PM   #4
randell6564
Member
 
Registered: Nov 2005
Location: California USA
Distribution: Ubuntu,(Feisty Fawn) Windows XP(Home Edition)
Posts: 634

Original Poster
Rep: Reputation: 31
Thank you Much!
That is a relief!
 
Old 01-14-2006, 06:36 PM   #5
halvy
Member
 
Registered: Aug 2005
Location: Anchorage, Alaska (soon EU, hopefully)
Distribution: Anything NOT SystemD (ie. M$) related.
Posts: 918

Rep: Reputation: 42
root SHOULD have access to sounds to notify you of errors, etc, should you wish this.

linux is NOT windows-- we are ALOUD to do what we want here

also i forgot, put root in ALL audio type groups-- and reboot.


ps. i work in root alot, which is no biggy if your not connected to the net and / or have firewalls setup.

no use in being paranoid.. if someone REALLY wants to get into your system, they will, whether you are root or not. i protect myself enuff to keep kids and someone by accident getting into my stuff.

valid backups are your (everyones) friend.

good luck.

Last edited by halvy; 01-14-2006 at 06:56 PM.
 
Old 01-14-2006, 07:21 PM   #6
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally Posted by halvy
linux is NOT windows-- we are ALOUD to do what we want here

also i forgot, put root in ALL audio type groups-- and reboot.

Yeah it is not windows no need to reboot logout and back in again for the changes to take effect.
 
Old 01-14-2006, 08:54 PM   #7
randell6564
Member
 
Registered: Nov 2005
Location: California USA
Distribution: Ubuntu,(Feisty Fawn) Windows XP(Home Edition)
Posts: 634

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by halvy
try adding all sound related items (users) to group root.

good luck.


ok! I know that i have tons of tutorials, (man pages etc..)
But it IS a little difficult, 'For ME at least to access the 'man pages' useing a terminal. It still requires certain commands to get the page your looking for.

What I am getting at is...Assuming that your talking about using the terminal to "add all sound related items (users) to group root", I dont have a clue about how to go about doing this!

Also, I gave all of you the wrong info in my initial post! My sound WAS working when logged in as 'user', but now it's gone!
I have no sound period! I pulled up the sound interface and the box marked "enable sound" was checked, as user as well as root.

IM LOST!
 
Old 01-15-2006, 01:58 AM   #8
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
Quote:
Originally Posted by halvy
root SHOULD have access to sounds to notify you of errors, etc, should you wish this.

linux is NOT windows-- we are ALOUD to do what we want here

also i forgot, put root in ALL audio type groups-- and reboot.


ps. i work in root alot, which is no biggy if your not connected to the net and / or have firewalls setup.

no use in being paranoid.. if someone REALLY wants to get into your system, they will, whether you are root or not. i protect myself enuff to keep kids and someone by accident getting into my stuff.

valid backups are your (everyones) friend.

good luck.
I agree with you that Linux is not Windows and thats why it has its security model for a reason. Personally I don't see why root would need any sound at all if you are logging in to do system administration and not casual things you can do as a normal user. It seems like many people are approaching Linux with a Windows mentality that they need to be administrator whilst using the system. They can do what they want with their installations, but it's essential to think about why Linux works the way it does or why a distro setup things in a certain way.
 
Old 01-15-2006, 02:06 AM   #9
halvy
Member
 
Registered: Aug 2005
Location: Anchorage, Alaska (soon EU, hopefully)
Distribution: Anything NOT SystemD (ie. M$) related.
Posts: 918

Rep: Reputation: 42
Quote:
Originally Posted by randell6564
ok! I know that i have tons of tutorials, (man pages etc..)
But it IS a little difficult, 'For ME at least to access the 'man pages' useing a terminal. It still requires certain commands to get the page your looking for.

What I am getting at is...Assuming that your talking about using the terminal to "add all sound related items (users) to group root", I dont have a clue about how to go about doing this!

Also, I gave all of you the wrong info in my initial post! My sound WAS working when logged in as 'user', but now it's gone!
I have no sound period! I pulled up the sound interface and the box marked "enable sound" was checked, as user as well as root.

IM LOST!
if your still using suse 9.3 then you need to get the patched version which fixed sound.

also the sound server needs to be on for 'system sounds' to take effect, and you need to tell it that you want 'system sounds' to occur.

'man pages' are accessed by simple typeing: man (name of program) in a terminal.

run alsaconfig, then set your sound (volume).

run a song or movie while you set the volume up so you'll know when sounds are working.

all these commands are easy to find if you look (because each window manager is different, i can't list them all hear now).

tell us a little more about your system.. ie; kde or gnome and if your sound ever workd.

is it a 'on board' sound card, or pci (ie in a slot)?

*Happy Tux, that is just not true, there are times it is good and safe to reset the linux os by rebooting for changes to take effect. that is not the same as 'having' to reboot, which i never implied.
 
Old 01-15-2006, 02:15 AM   #10
halvy
Member
 
Registered: Aug 2005
Location: Anchorage, Alaska (soon EU, hopefully)
Distribution: Anything NOT SystemD (ie. M$) related.
Posts: 918

Rep: Reputation: 42
Quote:
Originally Posted by reddazz
I agree with you that Linux is not Windows and thats why it has its security model for a reason. Personally I don't see why root would need any sound at all if you are logging in to do system administration and not casual things you can do as a normal user. It seems like many people are approaching Linux with a Windows mentality that they need to be administrator whilst using the system. They can do what they want with their installations, but it's essential to think about why Linux works the way it does or why a distro setup things in a certain way.
i agree that NORMALLY someone (ie the average person, or admin) does not, or maybe even should not, for whatever reason, have or need sounds working... or be logged in as 'root' admin.

however, i do a lota os designing and it would just not be practical for me to continueally 'loggin' as root for every litle thing to do (especially if i'm not on the net or have plenty of firewalls behind me).

therefore when i 'stay' in root while i'm working, i like to listen to peercast, or whatever other sounds i think need/want to listen too-- and i feel quite comfortable with this, and have never had a problem.

at least we agree that with linux we can have this agrument
 
Old 01-15-2006, 02:46 AM   #11
randell6564
Member
 
Registered: Nov 2005
Location: California USA
Distribution: Ubuntu,(Feisty Fawn) Windows XP(Home Edition)
Posts: 634

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by halvy
if your still using suse 9.3 then you need to get the patched version which fixed sound.

also the sound server needs to be on for 'system sounds' to take effect, and you need to tell it that you want 'system sounds' to occur.

'man pages' are accessed by simple typeing: man (name of program) in a terminal.

run alsaconfig, then set your sound (volume).

run a song or movie while you set the volume up so you'll know when sounds are working.

all these commands are easy to find if you look (because each window manager is different, i can't list them all hear now).

tell us a little more about your system.. ie; kde or gnome and if your sound ever workd.

is it a 'on board' sound card, or pci (ie in a slot)?

*Happy Tux, that is just not true, there are times it is good and safe to reset the linux os by rebooting for changes to take effect. that is not the same as 'having' to reboot, which i never implied.


Im Sorry! I need to update my profile. Ive been playing 'Musical Distro's'
. Ive installed and dumped alot of systems in the past. (get kinda frustrated at times with all the configuring and errors) Must have 30 os's on cd in my desk!
Im currently useing Mandriva 2006, downloaded, dual boot with WinXp.
Yes, Im useing an onboard sound device, I think its a very common device Ac 97, something like that. Realtek i think. and yes origonally, I had sound.
But, the other day, I slipped a 'Dynotec' sound card into a pci slot, but could never get it working, even in windows so i gave up, but never removed the card. I installed it and booted to windows for the installing of the driver and thats that...never worked, still installed.
 
Old 01-15-2006, 02:56 AM   #12
halvy
Member
 
Registered: Aug 2005
Location: Anchorage, Alaska (soon EU, hopefully)
Distribution: Anything NOT SystemD (ie. M$) related.
Posts: 918

Rep: Reputation: 42
take out the dynotec (while the pc is OFF).
 
Old 01-15-2006, 03:43 AM   #13
randell6564
Member
 
Registered: Nov 2005
Location: California USA
Distribution: Ubuntu,(Feisty Fawn) Windows XP(Home Edition)
Posts: 634

Original Poster
Rep: Reputation: 31
Yeah, after thinkin about it, your right thanks! cant i just disable it somehow for now useing the sound configuration utility?
 
Old 01-15-2006, 04:52 AM   #14
randell6564
Member
 
Registered: Nov 2005
Location: California USA
Distribution: Ubuntu,(Feisty Fawn) Windows XP(Home Edition)
Posts: 634

Original Poster
Rep: Reputation: 31
OK! I'm going to definately pull out the dynotec tomorrow. but in the mean time, i was poking around in the terminal and found this:



snd_seq_dummy 3524 0
snd_seq_oss 33024 0
snd_seq_midi_event 6880 1 snd_seq_oss
snd_seq 51504 5 snd_seq_dummy,snd_seq_oss,snd_seq_midi_event
snd_pcm_oss 50368 0
snd_mixer_oss 17952 1 snd_pcm_oss
snd_via82xx 25728 2
gameport 12744 1 snd_via82xx
snd_ac97_codec 85180 1 snd_via82xx
snd_pcm 83812 4 snd_pcm_oss,snd_via82xx,snd_ac97_codec
snd_timer 22596 2 snd_seq,snd_pcm
snd_page_alloc 9384 2 snd_via82xx,snd_pcm
snd_mpu401_uart 7040 1 snd_via82xx
snd_rawmidi 21312 1 snd_mpu401_uart
snd_seq_device 7884 4 snd_seq_dummy,snd_seq_oss,snd_seq,snd_rawmidi
snd 48644 14 snd_seq_oss,snd_seq,snd_pcm_oss,snd_mixer_oss,s
nd_via82xx,snd_ac97_codec,snd_pcm,snd_timer,snd_mpu401_uart,snd_rawmidi,snd_seq_
device
soundcore 8256 1 snd

The 'Via82' ac 97 is the integrated sound device on my board. i dont see anything about the 'Envy24' which is the pci sound card! the 'via' is what i want. I was hopeing that someone could take a lokk at this and see if you can spot a problem. if so, can it be corrected? I Know,..."TAKE OUT THE CARD!"
 
Old 01-15-2006, 05:48 AM   #15
halvy
Member
 
Registered: Aug 2005
Location: Anchorage, Alaska (soon EU, hopefully)
Distribution: Anything NOT SystemD (ie. M$) related.
Posts: 918

Rep: Reputation: 42
well hold on then.. i didn't realize you wanted to use the new card still.

have u done any research on it's compatabilities with linux?

maybe the card is bad (is it new?).

have you tried running alsaconfig?

also check your bios AND mobo for a switch to disconnect the onboard card... unless you want to try and run both.. which in either case, lets make sure the dyno card is actually functional first.

Last edited by halvy; 01-15-2006 at 05:50 AM.
 
  


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
user sound is fine, Root sound just squeals Doug.Gentry Linux - Newbie 1 09-05-2004 03:27 PM
Scanner to work as USER and not forced as ROOT Root (Suse 9.1) 1kyle Linux - Hardware 0 07-10-2004 08:51 AM
IntelliMouse thumb buttons work as root, broken as non-root user, wheel works always digital vortex Linux - Hardware 7 03-02-2004 04:14 PM
sound works in root - no sound in user - Debian seanb Debian 9 02-28-2004 12:42 AM
got ALSA to work in root, need help getting it to work in my user profile ic3 Slackware 2 11-28-2003 10:32 PM

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

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