[SOLVED] After Ubuntu 15.10 dist-upgrade, sound only comes through onboard speakers, doesn't work with headphones?
Linux - Laptop and NetbookHaving a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).
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.
After Ubuntu 15.10 dist-upgrade, sound only comes through onboard speakers, doesn't work with headphones?
I'm currently running Ubuntu 15.10 with a normal PulseAudio + Alsa setup on a Thinkpad t440p. Yesterday, the sound worked fine, but now after running a dist-upgrade sound only works through the speakers. Nothing is muted in alsamixer or pavucontrol. However, when I open alsamixer it defaults to my Intel HDMI card, which has no controls. I can switch to the PCH card with f6, which does have controls. However, a custom ~/.asoundrc that set the PCH card as default didn't seem to help.
$ aplay -L
default
Playback/recording through the PulseAudio sound server
null
Discard all samples (playback) or generate zero samples (capture)
pulse
PulseAudio Sound Server
hdmi:CARD=HDMI,DEV=0
HDA Intel HDMI, HDMI 0
HDMI Audio Output
hdmi:CARD=HDMI,DEV=1
HDA Intel HDMI, HDMI 1
HDMI Audio Output
hdmi:CARD=HDMI,DEV=2
HDA Intel HDMI, HDMI 2
HDMI Audio Output
dmix:CARD=HDMI,DEV=3
HDA Intel HDMI, HDMI 0
Direct sample mixing device
dmix:CARD=HDMI,DEV=7
HDA Intel HDMI, HDMI 1
Direct sample mixing device
dmix:CARD=HDMI,DEV=8
HDA Intel HDMI, HDMI 2
Direct sample mixing device
dsnoop:CARD=HDMI,DEV=3
HDA Intel HDMI, HDMI 0
Direct sample snooping device
dsnoop:CARD=HDMI,DEV=7
HDA Intel HDMI, HDMI 1
Direct sample snooping device
dsnoop:CARD=HDMI,DEV=8
HDA Intel HDMI, HDMI 2
Direct sample snooping device
hw:CARD=HDMI,DEV=3
HDA Intel HDMI, HDMI 0
Direct hardware device without any conversions
hw:CARD=HDMI,DEV=7
HDA Intel HDMI, HDMI 1
Direct hardware device without any conversions
hw:CARD=HDMI,DEV=8
HDA Intel HDMI, HDMI 2
Direct hardware device without any conversions
plughw:CARD=HDMI,DEV=3
HDA Intel HDMI, HDMI 0
Hardware device with all software conversions
plughw:CARD=HDMI,DEV=7
HDA Intel HDMI, HDMI 1
Hardware device with all software conversions
plughw:CARD=HDMI,DEV=8
HDA Intel HDMI, HDMI 2
Hardware device with all software conversions
sysdefault:CARD=PCH
HDA Intel PCH, ALC3232 Analog
Default Audio Device
front:CARD=PCH,DEV=0
HDA Intel PCH, ALC3232 Analog
Front speakers
surround21:CARD=PCH,DEV=0
HDA Intel PCH, ALC3232 Analog
2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=PCH,DEV=0
HDA Intel PCH, ALC3232 Analog
4.0 Surround output to Front and Rear speakers
surround41:CARD=PCH,DEV=0
HDA Intel PCH, ALC3232 Analog
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=PCH,DEV=0
HDA Intel PCH, ALC3232 Analog
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=PCH,DEV=0
HDA Intel PCH, ALC3232 Analog
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=PCH,DEV=0
HDA Intel PCH, ALC3232 Analog
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
dmix:CARD=PCH,DEV=0
HDA Intel PCH, ALC3232 Analog
Direct sample mixing device
dsnoop:CARD=PCH,DEV=0
HDA Intel PCH, ALC3232 Analog
Direct sample snooping device
hw:CARD=PCH,DEV=0
HDA Intel PCH, ALC3232 Analog
Direct hardware device without any conversions
plughw:CARD=PCH,DEV=0
HDA Intel PCH, ALC3232 Analog
Hardware device with all software conversions
Code:
$ cat /usr/share/pulseaudio/alsa-mixer/paths/analog-output-headphones.conf
# This file is part of PulseAudio.
#
# PulseAudio is free software; you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as
# published by the Free Software Foundation; either version 2.1 of the
# License, or (at your option) any later version.
#
# PulseAudio is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with PulseAudio; if not, see <http://www.gnu.org/licenses/>.
; Path for mixers that have a 'Headphone' control
;
; See analog-output.conf.common for an explanation on the directives
[General]
priority = 90
description-key = analog-output-headphones
[Properties]
device.icon_name = audio-headphones
[Jack Dock Headphone]
required-any = any
[Jack Dock Headphone Phantom]
required-any = any
state.plugged = unknown
state.unplugged = unknown
[Jack Front Headphone]
required-any = any
[Jack Front Headphone Phantom]
required-any = any
state.plugged = unknown
state.unplugged = unknown
[Jack Headphone]
required-any = any
[Jack Headphone Phantom]
required-any = any
state.plugged = unknown
state.unplugged = unknown
# This jack can be either a headphone *or* a mic. Used on some ASUS netbooks.
[Jack Headphone Mic]
required-any = any
[Element Hardware Master]
switch = mute
volume = merge
override-map.1 = all
override-map.2 = all-left,all-right
[Element Master]
switch = mute
volume = merge
override-map.1 = all
override-map.2 = all-left,all-right
[Element Master Mono]
switch = off
volume = off
[Element Speaker+LO]
switch = off
volume = off
[Element Headphone+LO]
required-any = any
switch = mute
volume = merge
override-map.1 = all
override-map.2 = all-left,all-right
[Element Headphone]
required-any = any
switch = mute
volume = merge
override-map.1 = all
override-map.2 = all-left,all-right
[Element Headset]
required-any = any
switch = mute
volume = merge
override-map.1 = all
override-map.2 = all-left,all-right
[Element Line HP Swap]
switch = on
required-any = any
; This profile path is intended to control the first headphones, not
; the second headphones. But it should not hurt if we leave the second
; headphone jack enabled nonetheless.
[Element Headphone2]
switch = mute
volume = zero
[Element Speaker]
switch = off
volume = off
[Element Desktop Speaker]
switch = off
volume = off
; On some machines Front is actually a part of the Headphone path
[Element Front]
switch = mute
volume = zero
[Element Rear]
switch = off
volume = off
[Element Surround]
switch = off
volume = off
[Element Side]
switch = off
volume = off
[Element Center]
switch = off
volume = off
[Element LFE]
switch = off
volume = off
[Element Bass Speaker]
switch = off
volume = off
[Element Speaker Front]
switch = off
volume = off
[Element Speaker Surround]
switch = off
volume = off
[Element Speaker Side]
switch = off
volume = off
[Element Speaker CLFE]
switch = off
volume = off
.include analog-output.conf.common
until you get a better reply.....delete your .asoundrc file to reduce trouble shooting at the moment....reboot and then
Quote:
with a normal PulseAudio + Alsa setup
I am not sure what that means?
If you truly have PA setup....then go into the pulseaudio control panel and go to the last tab and choose one of the analog sound devices instead of hdmi.
#############################
index=0 index=1 you have discovered that alsa has hdmi has index=0 and you want index=1 so if above did not work for you
use root powers to edit /etc/modprobe.d/alsa-base.conf
add this line please....only if above did not work
hang on....your config has snd hyphen hda - intel ....it should be snd_hda_intel
If you truly have PA setup....then go into the pulseaudio control panel and go to the last tab and choose one of the analog sound devices instead of hdmi.
my config looks exactly like yours and I have sound out for analog but I have the index set in my modprobe file as well.
But using 3.55 mm lead to desktop speakers which is why headphone is showing as unplugged
2) if modprobe works alsamixer should show the analog device not the hdmi can you confirm pls?
3) sound thru speakers is good but are you saying sound not working thru headphones?
Yeah, sound works perfectly through the speakers, but when I plug in headphones it stops. The headphones are detected -- the volume setting switches to the headphone setting, and they show up in pavucontrol:
first can you please confirm that an ordinary 3.55 mm ear buds or non-fancy no control headphones work "as is"
If so, then move out the /usr/share/pulseaudio/alsa-mixer/paths/analog-output-headphones.conf and any other analog conf as I have 2 there that and a "2" one
reboot or restart alsa and pulse
then try again your fancy headphones.
If it works now, it might be that you might have to use a mixer to adjust headphone vol instead of hardware knob
######################################
Independent of that is PA itself.....this assumes conf left in.....OK?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.