LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-23-2007, 05:34 PM   #1
MegaSvensk
Member
 
Registered: Sep 2007
Posts: 43

Rep: Reputation: 15
How to get the TOSLINK (Optical) sound output working?


Hi,

I'm almost ready to make Ubuntu my main OS, but there is one thing left that has to work. That is the TOSLINK sound on my integrated Realtek AC'97 sound card. I can get it working when I test the sound in the the audio settings and for system sounds, but I get no sound at all (on the TOSLINK, regular analog output for the desktop speakers work fine) in multimedia applications.

Does anyone know how to get it working? It's very important and if I can't get it to work, I'll have to go back to Windows.


Thanks.
 
Old 09-23-2007, 06:55 PM   #2
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
Hi MegaSvensk, Welcome to lq. You might try the ouput settings for the particular application. Since you have sound I think it's just a matter of using the correct output feature. Without knowing what apps you're trying to use I'll say try the alsa output setting or digital output setting for the app. If you can provide the names of the apps in question, maybe we can help further.
Good luck. ;-)
 
Old 09-23-2007, 07:21 PM   #3
MegaSvensk
Member
 
Registered: Sep 2007
Posts: 43

Original Poster
Rep: Reputation: 15
Thanks for replying.

The applications I've tried using are VLC, the video player that's included in Ubuntu and XMMS.

If I set the sound setting like in the picture below I get system sounds (and also sounds in the IM app Gaim) but I don't hear anything in VLC. I've looked for that setting in VLC, but it's not there.

http://i131.photobucket.com/albums/p...judproblem.jpg

Last edited by MegaSvensk; 09-23-2007 at 07:27 PM.
 
Old 09-23-2007, 07:53 PM   #4
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
I'm not sure about VLC, I use Mplayer. Xmms has different ouput settings go to Options > Preferences. It should be the first tab. I'll google around and see if I can find anything on VLC. If you can get system sounds and sound in gaim there is a good chance this is possible. Quick question, have you tried killing artsd before trying to play a file with VLC?
Good luck. ;-)
 
Old 09-23-2007, 08:15 PM   #5
MegaSvensk
Member
 
Registered: Sep 2007
Posts: 43

Original Poster
Rep: Reputation: 15
What is artsd and how do I kill it?


Thank you so much for helping me.

Last edited by MegaSvensk; 09-23-2007 at 08:19 PM.
 
Old 09-23-2007, 08:45 PM   #6
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
You're welcome, I'm sorry about that I believe you're using esd, I'm using artsd. I'm not very familiar with ubuntu just yet. Before we go there, what types of files have you tried playing? It could be a codec issue. Have a look at these and see if anything catches your eye.

http://wiki.videolan.org/Common_Problems

https://help.ubuntu.com/7.04/musicvi...s/C/index.html

If you have to you can try this, I found it on the ubuntu forums. As stated I'm still not very familiar with ubuntu, I'm going to throw a live disc in this week and try to get "up to speed".
Good luck. ;-)
 
Old 09-23-2007, 08:53 PM   #7
MegaSvensk
Member
 
Registered: Sep 2007
Posts: 43

Original Poster
Rep: Reputation: 15
I've played Xvid, VMW and MPEG files. It's not a codec issue because the sound works fine on my desktop speakers.

"If you have to you can try this, I found it on the ubuntu forums."
Am I supposed to use that to kill esd?

Last edited by MegaSvensk; 09-23-2007 at 08:56 PM.
 
Old 09-24-2007, 06:56 AM   #8
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
Quote:
Am I supposed to use that to kill esd?
You can try that. Do you have both a digital and an anologue channel in alsamixer? Have you tried disabling or muting one or the other? Some cards can do one or the other but not both.
Good luck. ;-)
 
Old 09-24-2007, 07:43 AM   #9
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
I found this
Quote:
I installed gnome-alsamixer, and had to turn OFF iec98 optical raw, and now I have audio from my TOS-link.
here. Googling it out a bit. As stated in my last post try the mixer settings and see if you can make a difference there.
Good luck. ;-)
 
Old 09-24-2007, 09:14 AM   #10
MegaSvensk
Member
 
Registered: Sep 2007
Posts: 43

Original Poster
Rep: Reputation: 15
I found the IEC958 setting in XMMS and it is working now (though now I don't hear anything from the desktop speakers, but I'll just switch back when I want use them). But I still haven't been able to get any sound from VLC.

That alsamixer thing didn't do anything.
 
Old 09-24-2007, 10:06 AM   #11
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
Quote:
I found the IEC958 setting in XMMS and it is working now (though now I don't hear anything from the desktop speakers, but I'll just switch back when I want use them).
Great, I thought there was probably a setting to configure for the app itself.

Quote:
But I still haven't been able to get any sound from VLC.
It may be that VLC doesn't have the option. I'll keep looking around.

Quote:
That alsamixer thing didn't do anything.
What channels do you have available? Just curious now.
Good luck. ;-)
 
Old 09-24-2007, 10:16 AM   #12
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
It looks like there may be a menu for VLC in Settings > Preferences.

http://www.videolan.org/doc/play-howto/en/ch03.html

I found some other things on the wiki.

http://wiki.videolan.org/Ubuntu

Good luck. ;-)

Last edited by Peacedog; 09-24-2007 at 10:17 AM. Reason: Found another reference.
 
Old 09-24-2007, 12:08 PM   #13
MegaSvensk
Member
 
Registered: Sep 2007
Posts: 43

Original Poster
Rep: Reputation: 15
I didn't find the setting in VLC, but I found it in Mplayer and the TOSLINK works great there.
This actually worked out better because now I can use VLC and Rhythmbox when I want to play videos and music on my computer screen with the computer speakers and Mplayer and XMMS when I want to play videos and music on my plasma with the surround sound system.

Thank you for your help.
 
Old 09-24-2007, 12:28 PM   #14
Peacedog
LQ Guru
 
Registered: Sep 2003
Location: Danville, VA
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296

Rep: Reputation: 168Reputation: 168
I'm glad you're happy with the setup and we got it "almost" working correctly.
No thanks needed but, you're welcome, thank you for "hangin in there" until we could get some sort of solution.
Good luck. ;-)
 
Old 09-24-2007, 01:22 PM   #15
MegaSvensk
Member
 
Registered: Sep 2007
Posts: 43

Original Poster
Rep: Reputation: 15
Yeah, it would be best to be able to have both analog and TOSLINK on at the same time like you can on Windows. But since you have to switch devices in the player settings, I guess this is the best possible solution.
Hopefully, there will be better drivers available in the future that'll let you do both with one setting.
 
  


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
Sound digital (optical) output - is it possible? make Solaris / OpenSolaris 0 04-03-2007 03:44 AM
Optical Output - sound issue! ruddyrum Linux - Hardware 1 03-01-2006 02:36 AM
No Sound - Spdif TOslink Connected to A/V Receiver squeaks_27 Slackware 15 02-01-2006 01:41 AM
Via AC'97 5.1 Optical Output or Audigy 4.1 Output Nza Fedora 3 06-01-2004 07:49 AM
Sound Volume not adjustable/AC3 Output not working rabbit_high Linux - Hardware 0 02-28-2004 03:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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