Choose whether to output audio from speakers or headphones?

Clash Royale CLAN TAG#URR8PPP up vote
2
down vote
favorite
I like to keep my headphones plugged in, then depending on the situation just switch the audio output as needed. I'm easily able to do this in Windows - my headphones and speakers show up as different devices, and I'm able to switch.
In Ubuntu (Kubuntu 18.04) I can't seem to get this to work. After some fiddling, I found that I can disable Automute in alsamixer, and that way I can have sound coming from both speakers and headphones, but I still can't find a way to choose between them. Pulse audio and the kde settings only show one device (Built-in Audio Analog Stereo).
Edit: I was thinking I could probably keep the headphones plugged in, and use a script to enable/disable automute depending on whether I want to listen to headphones/speakers. But this doesn't work because with automute disabled the speaker volume is way lower.
Edit: output of aplay -l as requested:
$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC1220 Analog [ALC1220 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 1: ALC1220 Digital [ALC1220 Digital]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: GoMic [Samson GoMic], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: NVidia [HDA NVidia], device 7: HDMI 1 [HDMI 1]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: NVidia [HDA NVidia], device 8: HDMI 2 [HDMI 2]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: NVidia [HDA NVidia], device 9: HDMI 3 [HDMI 3]
Subdevices: 1/1
Subdevice #0: subdevice #0
sound pulseaudio alsa headphones speakers
 |Â
show 2 more comments
up vote
2
down vote
favorite
I like to keep my headphones plugged in, then depending on the situation just switch the audio output as needed. I'm easily able to do this in Windows - my headphones and speakers show up as different devices, and I'm able to switch.
In Ubuntu (Kubuntu 18.04) I can't seem to get this to work. After some fiddling, I found that I can disable Automute in alsamixer, and that way I can have sound coming from both speakers and headphones, but I still can't find a way to choose between them. Pulse audio and the kde settings only show one device (Built-in Audio Analog Stereo).
Edit: I was thinking I could probably keep the headphones plugged in, and use a script to enable/disable automute depending on whether I want to listen to headphones/speakers. But this doesn't work because with automute disabled the speaker volume is way lower.
Edit: output of aplay -l as requested:
$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC1220 Analog [ALC1220 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 1: ALC1220 Digital [ALC1220 Digital]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: GoMic [Samson GoMic], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: NVidia [HDA NVidia], device 7: HDMI 1 [HDMI 1]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: NVidia [HDA NVidia], device 8: HDMI 2 [HDMI 2]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: NVidia [HDA NVidia], device 9: HDMI 3 [HDMI 3]
Subdevices: 1/1
Subdevice #0: subdevice #0
sound pulseaudio alsa headphones speakers
apt-get install pavucontrol
â cmak.fr
May 25 at 8:30
This doesn't help. The UI it shows is the same as pulse audio volume control.
â hoodakaushal
May 25 at 17:25
not the same. with pavucontrol you can switch from an output to another
â cmak.fr
May 26 at 8:31
Yes, it is the same. Both have an option to switch (they show the option of a port, which has headphones and line out as options), but whenever headphones are plugged in they show line out as plugged out. I tried setting the port as line out anyway, and the result was there was no sound from speakers or headphones.
â hoodakaushal
May 26 at 16:10
@hoodakaushal you are correct - Pulseaudio Volume Control in main menu is same package as using 'pavucontrol' command in terminal
â nik gnomic
May 29 at 17:03
 |Â
show 2 more comments
up vote
2
down vote
favorite
up vote
2
down vote
favorite
I like to keep my headphones plugged in, then depending on the situation just switch the audio output as needed. I'm easily able to do this in Windows - my headphones and speakers show up as different devices, and I'm able to switch.
In Ubuntu (Kubuntu 18.04) I can't seem to get this to work. After some fiddling, I found that I can disable Automute in alsamixer, and that way I can have sound coming from both speakers and headphones, but I still can't find a way to choose between them. Pulse audio and the kde settings only show one device (Built-in Audio Analog Stereo).
Edit: I was thinking I could probably keep the headphones plugged in, and use a script to enable/disable automute depending on whether I want to listen to headphones/speakers. But this doesn't work because with automute disabled the speaker volume is way lower.
Edit: output of aplay -l as requested:
$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC1220 Analog [ALC1220 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 1: ALC1220 Digital [ALC1220 Digital]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: GoMic [Samson GoMic], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: NVidia [HDA NVidia], device 7: HDMI 1 [HDMI 1]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: NVidia [HDA NVidia], device 8: HDMI 2 [HDMI 2]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: NVidia [HDA NVidia], device 9: HDMI 3 [HDMI 3]
Subdevices: 1/1
Subdevice #0: subdevice #0
sound pulseaudio alsa headphones speakers
I like to keep my headphones plugged in, then depending on the situation just switch the audio output as needed. I'm easily able to do this in Windows - my headphones and speakers show up as different devices, and I'm able to switch.
In Ubuntu (Kubuntu 18.04) I can't seem to get this to work. After some fiddling, I found that I can disable Automute in alsamixer, and that way I can have sound coming from both speakers and headphones, but I still can't find a way to choose between them. Pulse audio and the kde settings only show one device (Built-in Audio Analog Stereo).
Edit: I was thinking I could probably keep the headphones plugged in, and use a script to enable/disable automute depending on whether I want to listen to headphones/speakers. But this doesn't work because with automute disabled the speaker volume is way lower.
Edit: output of aplay -l as requested:
$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC1220 Analog [ALC1220 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 1: ALC1220 Digital [ALC1220 Digital]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: GoMic [Samson GoMic], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: NVidia [HDA NVidia], device 7: HDMI 1 [HDMI 1]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: NVidia [HDA NVidia], device 8: HDMI 2 [HDMI 2]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 2: NVidia [HDA NVidia], device 9: HDMI 3 [HDMI 3]
Subdevices: 1/1
Subdevice #0: subdevice #0
sound pulseaudio alsa headphones speakers
edited Jun 3 at 8:14
asked May 25 at 5:54
hoodakaushal
198215
198215
apt-get install pavucontrol
â cmak.fr
May 25 at 8:30
This doesn't help. The UI it shows is the same as pulse audio volume control.
â hoodakaushal
May 25 at 17:25
not the same. with pavucontrol you can switch from an output to another
â cmak.fr
May 26 at 8:31
Yes, it is the same. Both have an option to switch (they show the option of a port, which has headphones and line out as options), but whenever headphones are plugged in they show line out as plugged out. I tried setting the port as line out anyway, and the result was there was no sound from speakers or headphones.
â hoodakaushal
May 26 at 16:10
@hoodakaushal you are correct - Pulseaudio Volume Control in main menu is same package as using 'pavucontrol' command in terminal
â nik gnomic
May 29 at 17:03
 |Â
show 2 more comments
apt-get install pavucontrol
â cmak.fr
May 25 at 8:30
This doesn't help. The UI it shows is the same as pulse audio volume control.
â hoodakaushal
May 25 at 17:25
not the same. with pavucontrol you can switch from an output to another
â cmak.fr
May 26 at 8:31
Yes, it is the same. Both have an option to switch (they show the option of a port, which has headphones and line out as options), but whenever headphones are plugged in they show line out as plugged out. I tried setting the port as line out anyway, and the result was there was no sound from speakers or headphones.
â hoodakaushal
May 26 at 16:10
@hoodakaushal you are correct - Pulseaudio Volume Control in main menu is same package as using 'pavucontrol' command in terminal
â nik gnomic
May 29 at 17:03
apt-get install pavucontrolâ cmak.fr
May 25 at 8:30
apt-get install pavucontrolâ cmak.fr
May 25 at 8:30
This doesn't help. The UI it shows is the same as pulse audio volume control.
â hoodakaushal
May 25 at 17:25
This doesn't help. The UI it shows is the same as pulse audio volume control.
â hoodakaushal
May 25 at 17:25
not the same. with pavucontrol you can switch from an output to another
â cmak.fr
May 26 at 8:31
not the same. with pavucontrol you can switch from an output to another
â cmak.fr
May 26 at 8:31
Yes, it is the same. Both have an option to switch (they show the option of a port, which has headphones and line out as options), but whenever headphones are plugged in they show line out as plugged out. I tried setting the port as line out anyway, and the result was there was no sound from speakers or headphones.
â hoodakaushal
May 26 at 16:10
Yes, it is the same. Both have an option to switch (they show the option of a port, which has headphones and line out as options), but whenever headphones are plugged in they show line out as plugged out. I tried setting the port as line out anyway, and the result was there was no sound from speakers or headphones.
â hoodakaushal
May 26 at 16:10
@hoodakaushal you are correct - Pulseaudio Volume Control in main menu is same package as using 'pavucontrol' command in terminal
â nik gnomic
May 29 at 17:03
@hoodakaushal you are correct - Pulseaudio Volume Control in main menu is same package as using 'pavucontrol' command in terminal
â nik gnomic
May 29 at 17:03
 |Â
show 2 more comments
1 Answer
1
active
oldest
votes
up vote
0
down vote
To keep headphones plugged in, set auto-mute option in ALSA to off
preferable initial state is to have both speakers and headphones playing audio
Get exact names of ALSA control elements (Case sensitive) from alsamixer or use terminal command:
amixer -c 0
Create launcher buttons to toggle mute on or off on desktop,panel,dock etc
launcher command is
amixer -c 0 [name] toggle
replace [name] with correct name of ALSA element to mute/unmute
I've already mentioned why I don't want to do this - if I disable automute, speaker volume is way lower when headphones are connected.
â hoodakaushal
Jun 1 at 14:08
before you mentioned "with automute the speaker volume is way lower" With automute enabled + jack always plugged in, speakers would always be muted. with those conditions, answer to main question is no, unless you use GoMic output as independent headphone channel
â nik gnomic
Jun 2 at 2:52
Sorry, I meant with automute disabled.
â hoodakaushal
Jun 3 at 8:14
add a comment |Â
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
To keep headphones plugged in, set auto-mute option in ALSA to off
preferable initial state is to have both speakers and headphones playing audio
Get exact names of ALSA control elements (Case sensitive) from alsamixer or use terminal command:
amixer -c 0
Create launcher buttons to toggle mute on or off on desktop,panel,dock etc
launcher command is
amixer -c 0 [name] toggle
replace [name] with correct name of ALSA element to mute/unmute
I've already mentioned why I don't want to do this - if I disable automute, speaker volume is way lower when headphones are connected.
â hoodakaushal
Jun 1 at 14:08
before you mentioned "with automute the speaker volume is way lower" With automute enabled + jack always plugged in, speakers would always be muted. with those conditions, answer to main question is no, unless you use GoMic output as independent headphone channel
â nik gnomic
Jun 2 at 2:52
Sorry, I meant with automute disabled.
â hoodakaushal
Jun 3 at 8:14
add a comment |Â
up vote
0
down vote
To keep headphones plugged in, set auto-mute option in ALSA to off
preferable initial state is to have both speakers and headphones playing audio
Get exact names of ALSA control elements (Case sensitive) from alsamixer or use terminal command:
amixer -c 0
Create launcher buttons to toggle mute on or off on desktop,panel,dock etc
launcher command is
amixer -c 0 [name] toggle
replace [name] with correct name of ALSA element to mute/unmute
I've already mentioned why I don't want to do this - if I disable automute, speaker volume is way lower when headphones are connected.
â hoodakaushal
Jun 1 at 14:08
before you mentioned "with automute the speaker volume is way lower" With automute enabled + jack always plugged in, speakers would always be muted. with those conditions, answer to main question is no, unless you use GoMic output as independent headphone channel
â nik gnomic
Jun 2 at 2:52
Sorry, I meant with automute disabled.
â hoodakaushal
Jun 3 at 8:14
add a comment |Â
up vote
0
down vote
up vote
0
down vote
To keep headphones plugged in, set auto-mute option in ALSA to off
preferable initial state is to have both speakers and headphones playing audio
Get exact names of ALSA control elements (Case sensitive) from alsamixer or use terminal command:
amixer -c 0
Create launcher buttons to toggle mute on or off on desktop,panel,dock etc
launcher command is
amixer -c 0 [name] toggle
replace [name] with correct name of ALSA element to mute/unmute
To keep headphones plugged in, set auto-mute option in ALSA to off
preferable initial state is to have both speakers and headphones playing audio
Get exact names of ALSA control elements (Case sensitive) from alsamixer or use terminal command:
amixer -c 0
Create launcher buttons to toggle mute on or off on desktop,panel,dock etc
launcher command is
amixer -c 0 [name] toggle
replace [name] with correct name of ALSA element to mute/unmute
answered Jun 1 at 0:01
nik gnomic
17919
17919
I've already mentioned why I don't want to do this - if I disable automute, speaker volume is way lower when headphones are connected.
â hoodakaushal
Jun 1 at 14:08
before you mentioned "with automute the speaker volume is way lower" With automute enabled + jack always plugged in, speakers would always be muted. with those conditions, answer to main question is no, unless you use GoMic output as independent headphone channel
â nik gnomic
Jun 2 at 2:52
Sorry, I meant with automute disabled.
â hoodakaushal
Jun 3 at 8:14
add a comment |Â
I've already mentioned why I don't want to do this - if I disable automute, speaker volume is way lower when headphones are connected.
â hoodakaushal
Jun 1 at 14:08
before you mentioned "with automute the speaker volume is way lower" With automute enabled + jack always plugged in, speakers would always be muted. with those conditions, answer to main question is no, unless you use GoMic output as independent headphone channel
â nik gnomic
Jun 2 at 2:52
Sorry, I meant with automute disabled.
â hoodakaushal
Jun 3 at 8:14
I've already mentioned why I don't want to do this - if I disable automute, speaker volume is way lower when headphones are connected.
â hoodakaushal
Jun 1 at 14:08
I've already mentioned why I don't want to do this - if I disable automute, speaker volume is way lower when headphones are connected.
â hoodakaushal
Jun 1 at 14:08
before you mentioned "with automute the speaker volume is way lower" With automute enabled + jack always plugged in, speakers would always be muted. with those conditions, answer to main question is no, unless you use GoMic output as independent headphone channel
â nik gnomic
Jun 2 at 2:52
before you mentioned "with automute the speaker volume is way lower" With automute enabled + jack always plugged in, speakers would always be muted. with those conditions, answer to main question is no, unless you use GoMic output as independent headphone channel
â nik gnomic
Jun 2 at 2:52
Sorry, I meant with automute disabled.
â hoodakaushal
Jun 3 at 8:14
Sorry, I meant with automute disabled.
â hoodakaushal
Jun 3 at 8:14
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1040086%2fchoose-whether-to-output-audio-from-speakers-or-headphones%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
apt-get install pavucontrolâ cmak.fr
May 25 at 8:30
This doesn't help. The UI it shows is the same as pulse audio volume control.
â hoodakaushal
May 25 at 17:25
not the same. with pavucontrol you can switch from an output to another
â cmak.fr
May 26 at 8:31
Yes, it is the same. Both have an option to switch (they show the option of a port, which has headphones and line out as options), but whenever headphones are plugged in they show line out as plugged out. I tried setting the port as line out anyway, and the result was there was no sound from speakers or headphones.
â hoodakaushal
May 26 at 16:10
@hoodakaushal you are correct - Pulseaudio Volume Control in main menu is same package as using 'pavucontrol' command in terminal
â nik gnomic
May 29 at 17:03