LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 05-01-2006, 06:15 AM   #1
normalulo
LQ Newbie
 
Registered: Apr 2006
Location: Karlstad, Sweden
Distribution: Slackware, Ubuntu
Posts: 3

Rep: Reputation: 0
RealPlayer: sound as root but not as user


I have a Sony Vaio with Slackware 10.2 and KDE. Sound works when I'm logged in as root; I tried Noatun, Xine (with AIFF and WAV files, haven't tried video files yet), and RealPlayer 10.0.7.785 Gold.

However, RealPlayer has no sound when used by a user. There's no error message when I try to listen to streaming audio, just a total lack of sound. When I try to open a .rm file on the hard disk, RealPlayer says: "Cannot open the audio device. Another application may be using it."

When I first tried RealPlayer it worked (streaming audio) but I used Noatun thereafter, and after that RealPlayer ceased to emit any sounds in user mode. Did Noatun take over some audio device?
 
Old 05-01-2006, 08:41 AM   #2
gregorian
Member
 
Registered: Apr 2006
Posts: 509

Rep: Reputation: 34
I see this is your first post.Welcome to the Linux Forums.

I had the same problem initially.All you have to do is to increase the volume in your volume settings,not only the option that says volume but there is a separate volume control even for the speaker.

Each user has his/her own settings so you must change the volume settings for yourself.Just go to the Control Center and you will find your option there.Alternatively you can just go and click on the volume button on the panel.If it is not there right click on the panel and add it.

Hope this helps.
 
Old 05-04-2006, 09:02 AM   #3
normalulo
LQ Newbie
 
Registered: Apr 2006
Location: Karlstad, Sweden
Distribution: Slackware, Ubuntu
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by gregorian
I see this is your first post.Welcome to the Linux Forums.

I had the same problem initially.All you have to do is to increase the volume in your volume settings,not only the option that says volume but there is a separate volume control even for the speaker.

Each user has his/her own settings so you must change the volume settings for yourself.Just go to the Control Center and you will find your option there.Alternatively you can just go and click on the volume button on the panel.If it is not there right click on the panel and add it.

Hope this helps.
I assume you mean the sound level in KDE? Well, the loudspeaker in the panel was at 100 %, and sound worked for other applications. I clicked on the volume control (which I had already put a bit to the right of zero) a few times, but still no sound when RealPlayer did streaming audio. Then, suddenly, streaming audio sound worked, but playing .rm files just produced the device message that I quoted earlier.

The other day I found the solution: I went to the KDE Control Center: Sound & Multimedia: Sound System, and found Auto-suspend. The default there is 60 seconds. So whenever a KDE application has made some sound, the KDE sound system hangs on to the audio hardware for 60 seconds. (I guess that when RealPlayer suddenly started to emit sounds, the 60 second limit had passed.) I put that at 7 seconds, which is probably enough for most purposes. Playing .rm files works as well.

:-)
 
Old 05-04-2006, 09:51 AM   #4
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 11,201
Blog Entries: 4

Rep: Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123
Volume might be the problem, but it is also possible that there is a permissions issue.

Try ls -l /dev/sound/audio/*. (Your system may vary.) This will show you a list of the audio devices. They appear here as files... with an owner (root), a group, and some permissions ("-rw-r-----" or somesuch). If your userid does not have permission to read/write this device, it can't do sound.

The solution to the problem, if it turns out to be this, has to do with obscurities called "udev." So, first check to see if this is the problem.
 
Old 05-07-2006, 05:30 AM   #5
normalulo
LQ Newbie
 
Registered: Apr 2006
Location: Karlstad, Sweden
Distribution: Slackware, Ubuntu
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by sundialsvcs
Volume might be the problem, but it is also possible that there is a permissions issue.

Try ls -l /dev/sound/audio/*. (Your system may vary.) This will show you a list of the audio devices. They appear here as files... with an owner (root), a group, and some permissions ("-rw-r-----" or somesuch). If your userid does not have permission to read/write this device, it can't do sound.

The solution to the problem, if it turns out to be this, has to do with obscurities called "udev." So, first check to see if this is the problem.
loerne@auld:/dev/sound$ ls -l
total 0
crw-rw--w- 1 root audio 14, 4 2006-04-20 22:28 audio
crw-rw--w- 1 root audio 14, 3 2006-04-20 22:28 dsp
crw-rw--w- 1 root audio 14, 0 2006-04-20 22:28 mixer

The audio bit is OK (I think). I made my user account part of the group audio two weeks ago.

Sound works now.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
why does sound work as user but not as root randell6564 Mandriva 15 01-15-2006 11:21 PM
user sound is fine, Root sound just squeals Doug.Gentry Linux - Newbie 1 09-05-2004 03:27 PM
cannot run realplayer as any other user but root xone Linux - Software 6 03-25-2004 09:53 PM
sound works in root - no sound in user - Debian seanb Debian 9 02-28-2004 12:42 AM
No sound for non-root user rdaves@earthlink.net Linux - General 1 07-14-2001 06:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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