LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 02-09-2017, 12:12 PM   #1
AGazzaz
Member
 
Registered: Nov 2005
Location: Egypt
Distribution: Fedora 17 KDE
Posts: 393

Rep: Reputation: 31
How to use HDMI sound output for VLC and headphones for everything else


Hello,
In Windows, I make the laptop's speakers the default sound output then in VLC I choose HDMI as the Audio device. Then I can use my headphones to listen to whatever I want and let the rest of the house watch a movie on the TV.

How can I achieve the same result on Linux Mint 17.3 running KDE and VLC 2.2.1
 
Old 02-09-2017, 12:24 PM   #2
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
It depends on your sound setup. For basic alsa:

FILE: ~/.asoundrc
Code:
defaults.ctl.card 0
defaults.pcm.card 0
defaults.pcm.device 3
Where defaults.pcm.device is 0 for the speakers and 3 for the hdmi audio out. As hinted to by:

$ egrep -r -i hdmi /proc/asound/*
/proc/asound/card0/pcm3p/info:id: HDMI 0

For pulseaudio

$ pavucontrol

And select the needed thing, probably by disabling everything but it.
 
Old 02-09-2017, 12:30 PM   #3
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
I subscribed to this thread as I was interested. Is Phonon a plugin to PulseAudio? I've always found PulseAudio a little too clever for its own good on switching inputs (much like Windows offerings) but is Phonon a little less annoying?
 
Old 02-09-2017, 01:11 PM   #4
TheEzekielProject
Member
 
Registered: Dec 2016
Distribution: arch
Posts: 668

Rep: Reputation: 190Reputation: 190
I'm not running Linux Mint, but I am using KDE, and if I right click on the volume icon in the panel and select Audio Volume Setings > Audio Volume and Under the Applications tab I can select any output on my system for the given application
 
Old 02-10-2017, 12:55 PM   #5
DJ Shaji
Member
 
Registered: Dec 2004
Location: Yo Momma's house
Distribution: Fedora Rawhide, ArchLinux
Posts: 518
Blog Entries: 15

Rep: Reputation: 106Reputation: 106
Quote:
Originally Posted by AGazzaz View Post
Hello,
In Windows, I make the laptop's speakers the default sound output then in VLC I choose HDMI as the Audio device. Then I can use my headphones to listen to whatever I want and let the rest of the house watch a movie on the TV.

How can I achieve the same result on Linux Mint 17.3 running KDE and VLC 2.2.1
I would think you'd change the audio device in VLC the same way as on windows. Your HDMI device would be named something like hdmi:CARD=HDMI,DEV=2

What do you use for letting the rest of the house watch a movie on the TV?

EDIT: You can directly use PulseAudio volume control (pavucontrol) to switch audio devices for a program as it is running.

Last edited by DJ Shaji; 02-10-2017 at 12:58 PM. Reason: I'm a moron
 
Old 02-10-2017, 04:43 PM   #6
AGazzaz
Member
 
Registered: Nov 2005
Location: Egypt
Distribution: Fedora 17 KDE
Posts: 393

Original Poster
Rep: Reputation: 31
I'm so sorry for the late reply, the internet is down and currently I'm replying from my phone

@273 I'm sorry but i don't understand what you mean

@TheEzekielProject only options in pavucontrol are to mute, lock channels and volume control

@DJ Shaji there is only one device listed which is the working sound output so it's either "built in audio digital stereo (HDMI)" or "built in audio analog stereo"

Quote:
What do you use for letting the rest of the house watch a movie on the TV?
I'm not sure what you mean by i have a 3 meter HDMI cable connected to the TV so anything from a YouTube video to a game can be run on the TV as a separate screen


Please note that i manually change the sound output to and from HDMI using a KDE widget that changes the settings for me
 
  


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
Issues with HDMI sound output Skatman88 Linux - Laptop and Netbook 3 10-10-2015 02:01 PM
[SOLVED] HDMI and sound optical output not working StefanP Linux - Newbie 8 05-18-2015 08:57 PM
[SOLVED] HDMI output won't transmit sound baronobeefdip Linux - Hardware 11 03-13-2014 12:34 PM
Switching sound to HDMI output narz Linux - General 3 12-29-2013 09:21 PM
no sound output ati hdmi Grub3r Linux - Laptop and Netbook 3 02-14-2011 06:56 PM

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

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