How to get the TOSLINK (Optical) sound output working?
Linux - NewbieThis 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
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.
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.
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296
Rep:
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. ;-)
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.
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296
Rep:
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. ;-)
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296
Rep:
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.
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. ;-)
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296
Rep:
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. ;-)
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.
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296
Rep:
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. ;-)
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.
Distribution: Slackware, Windows, FreeBSD, OpenBSD, Mac OS X
Posts: 5,296
Rep:
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. ;-)
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.