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.
Guys, I'm having some issues with my new laptop, but the more urgent of them all is the headphone jack sound output, which doesn't work.
Whenever I plug a headphone, all I got is a very faint and distorted sound, even with the volume at 150%. It's kinda hard to describe the distortion not being a native English speaker, but it is like a buzzing effect applied on top of the sound to the point you can't really discern what is playing.
I don't really know where to begin to debug this, so I ask for help! I can't stay on Windows any longer.
For more context:
I'm running Kubuntu 19.10 with every thing up to date
Tried with different headphones to no avail
Everything works on Windows 10
Using a dongle through USB-C works, but it is far from ideal
Bluetooth is not really an option: it works, but it gets confused with the 2,4 GHz Wi-Fi signal - thanks Intel - so I can either use Bluetooth or the Wi-Fi
Oh thanks for the reply, I have been struggling with this for some time now. I forgot to mention that I've tried finding out if the
headphones were muted in alsamixer and pulseaudio and a bunch of other stuff, but nothing seems to work.
In the link that you posted, the autor explains that in his case, the alsamixer didn't detect the headphone plugin event. Here it does: it unmutes the headphone output as soons as I plug it.
In any case, I followed what the link suggests, but my analog-output-headphone.conf is different from his, it seems: he suggests commenting the line:
Code:
[Jack_InputDevice]
#required-any = any
Which doesn't exist on mine (maybe due to the fact that this tip seems to be related to a much older version?). On mine, the structure is as follows:
Code:
[General]
priority = 99
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
Plus, there is a bunch of "Element" fields that seems to be related with headphone settings. I have also noticed that I got a analog-output-headphone2.conf file.
Followed the tip but I'm not sure if it applies to my setup, since the author inserted an entry related to Dell hardware on his alsa-base.conf. In any case, the
Code:
cat /proc/asound/card0/codec* | grep Codec
returned the following:
Code:
Codec: Realtek ALC256
Codec: Intel Kabylake HDMI
Thanks for the reply!
Last edited by wowbaggerBR; 02-03-2020 at 07:16 PM.
Simple mixer control 'Headphone',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 87
Mono:
Front Left: Playback 87 [100%] [0.00dB] [on]
Front Right: Playback 87 [100%] [0.00dB] [on]
You might wanna try this trick
type in terminal
Code:
alsamixer
and turn off automute. It is shown being turned on in your alsa report.
So if me. I'd run whatever player <small one > kubuntu uses. Run it from command line. Plug in headphones.
For me. It would be
Code:
xmms &
Leave that terminal open
Then open another terminal and see what
Code:
dmesg | tail
spits out for headphone errors while music is playing. The other terminal you used to open a music player might mention something also.
Quote:
Originally Posted by rokytnji
ALSA INFO REPORT LOOKS KOSHER
oopz ,cap locks on
Code:
Simple mixer control 'Headphone',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 87
Mono:
Front Left: Playback 87 [100%] [0.00dB] [on]
Front Right: Playback 87 [100%] [0.00dB] [on]
You might wanna try this trick
type in terminal
Code:
alsamixer
and turn off automute. It is shown being turned on in your alsa report.
So, did both things. First, setted the automute to disabled. It was indeed "enabled".
Then, tried running the Elisa player through the Terminal and following it with dmesg, this is what I got:
elisa output:
The bolded lines showed as soon as I hit the play button.
Code:
Icon theme "elementary" not found.
Icon theme "gnome" not found.
Icon theme "deepin" not found.
Icon theme "elementary" not found.
Icon theme "gnome" not found.
Icon theme "deepin" not found.
<Unknown File>: QML QQuickLayoutAttached: Binding loop detected for property "preferredHeight"
org.kde.elisa.indexers.manager: Local file system indexer is inactive
org.kde.elisa.indexers.manager: Baloo indexer is unavailable
org.kde.elisa.indexers.manager: Baloo indexer is inactive
MediaPlayList::setPersistentState QMap(("currentTrack", QVariant(int, 0))("playList", QVariant(QVariantList, ()))("randomPlay", QVariant(bool, false))("repeatPlay", QVariant(bool, false)))
file:///usr/lib/x86_64-linux-gnu/qt5/qml/org/kde/kirigami.2/templates/InlineMessage.qml:136: TypeError: Value is undefined and could not be converted to an object
org.kde.elisa.indexers.manager: Baloo indexer is available
org.kde.elisa.indexers.manager: Baloo indexer is active
PowerManagementInterface::inhibitDBusCallFinishedGnomeWorkspace QDBusError("org.freedesktop.DBus.Error.ServiceUnknown", "The name org.gnome.SessionManager was not provided by any .service files")
dmesg | tail output:
Code:
[ 6.639039] Bluetooth: RFCOMM ver 1.11
[ 8.936308] wlo1: authenticate with f8:1a:67:d0:bc:10
[ 8.938485] wlo1: send auth to f8:1a:67:d0:bc:10 (try 1/3)
[ 9.082166] wlo1: authenticated
[ 9.084508] wlo1: associate with f8:1a:67:d0:bc:10 (try 1/3)
[ 9.088649] wlo1: RX AssocResp from f8:1a:67:d0:bc:10 (capab=0x411 status=0 aid=1)
[ 9.093025] wlo1: associated
[ 9.567948] IPv6: ADDRCONF(NETDEV_CHANGE): wlo1: link becomes ready
[ 86.849167] atkbd serio0: Unknown key pressed (translated set 2, code 0xa8 on isa0060/serio0).
[ 86.849173] atkbd serio0: Use 'setkeycodes e028 <keycode>' to make it known.
I have to disagree with some facts asserted so far
Issue one. It has been suggested to disable auto mute
Please enable it for analog headphones. When enabled its purpose is to ato mute sound from laptop speakers to headphones when headphones are detected or inserted.
EDIT hdmi codec is OK....see post 29
Now for a possible solution or two but I need to know how you play sound.
Do you need only laptop speakers or 3.5 mm headphone Or
Do you also need hdmi cable to play sound to monitor or TV or surround sound?
If you hsve other options please state them
Leaping ahead I need auto mute ENABLED
and a modprobe config file that Alsa will use on reboot to force sound to PCH and not HDMI
Last edited by aus9; 02-04-2020 at 06:35 AM.
Reason: post 29 refers
I have to disagree with some facts asserted so far
Issue one. It has been suggested to disable auto mute
Please enable it for analog headphones. When enabled its purpose is to ato mute sound from laptop speakers to headphones when headphones are detected or inserted.
Done!
Quote:
Originally Posted by aus9
Issue 2 is your current codec is claiming to be HDMi but you need analog which is PCH
Now for a possible solution or two but I need to know how you play sound.
Do you need only laptop speakers or 3.5 mm headphone Or
Do you also need hdmi cable to play sound to monitor or TV or surround sound?
If you hsve other options please state them
Leaping ahead I need auto mute ENABLED
and a modprobe config file that Alsa will use on reboot to force sound to PCH and not HDMI
Preferably, I need speaker/headphones working fine. With this sorted, I can get back to Linux as my daily driver.
Since it seems to be HDMI related, it's probably worth mention that another hardware issue I've been getting with this laptop is HDMI related. Whenever you conect a cable into it, the system detects the event and shows the dialog to select the video output, but nothing gets displayed on the monitor/TV, no matter what you choose.
I don't use HDMI that much, so I decided to let this one for later, but maybe it could be relevant.
Where did you see that the HDMI codec is active? I ask because I'd like to learn more about the inner workings of Linux.
Post 6
Codec: Realtek ALC256
Codec: Intel Kabylake HDMI
I am not home yet later I will give you screenshots.
Are you trying to displsy both laptop screen and a monitor?
Some lsptops have hardware function keys to help swap. Maybe check your motherboard or laptop manual
Oh, I see. I thought it was supposed to show both codecs available in the system, nice catch.
I'd use the HDMI mainly to watch movies on my TV, maybe as a second monitor. I tested it both with the Intel GPU and with the Nvidia card and none of them works.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.