[HP ZBook Studio G5, Conexant Generic, Speaker, Internal] No sound from built-in speakers after disconnecting headphones. Prior to connecting headphones speakers works ok.

Bug #1852067 reported by Marcin P
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

Steps to replicate the bug.

1. Start laptop with Ubuntu 18.04.3 LTS.
Sound from built-in speakers works fine.
Settings -> Sound -> Output shows one device: Speakers - Built-in Audio
2. Connect headphones (wired, mini-jack connector).
Sound from headphones works fine. No sound from built-in speakers (which is OK, obviously).
Settings -> Sound -> Output shows one device: Headphones - Built-in Audio
3. Disconnect headphones from computer.
No sound from built-in speakers.
Settings -> Sound -> Output shows one device: Speakers - Built-in Audio (ON, high volume)

Changing volume, turning ON -> OFF -> ON, user logout->login doesn't help. Only full laptop restart helps.

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: alsa-base 1.0.25+dfsg-0ubuntu5
ProcVersionSignature: Ubuntu 5.0.0-32.34~18.04.2-generic 5.0.21
Uname: Linux 5.0.0-32-generic x86_64
ApportVersion: 2.20.9-0ubuntu7.9
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: marcin 2115 F.... pulseaudio
CurrentDesktop: ubuntu:GNOME
Date: Mon Nov 11 12:26:58 2019
InstallationDate: Installed on 2019-04-02 (223 days ago)
InstallationMedia: Ubuntu 18.04.2 LTS "Bionic Beaver" - Release amd64 (20190210)
PackageArchitecture: all
SourcePackage: alsa-driver
Symptom: audio
Symptom_AlsaPlaybackTest: ALSA playback test through plughw:PCH failed
Symptom_Card: Built-in Audio - HDA Intel PCH
Symptom_DevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: gdm 1672 F.... pulseaudio
                      marcin 2115 F.... pulseaudio
Symptom_Jack: Speaker, Internal
Symptom_Type: No sound at all
Title: [HP ZBook Studio G5, Conexant Generic, Speaker, Internal] No sound at all
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 07/15/2019
dmi.bios.vendor: HP
dmi.bios.version: Q71 Ver. 01.08.00
dmi.board.name: 8427
dmi.board.vendor: HP
dmi.board.version: KBC Version 16.3A.00
dmi.chassis.asset.tag: 5CD91018X5
dmi.chassis.type: 10
dmi.chassis.vendor: HP
dmi.modalias: dmi:bvnHP:bvrQ71Ver.01.08.00:bd07/15/2019:svnHP:pnHPZBookStudioG5:pvr:rvnHP:rn8427:rvrKBCVersion16.3A.00:cvnHP:ct10:cvr:
dmi.product.family: 103C_5336AN HP ZBook Studio
dmi.product.name: HP ZBook Studio G5
dmi.product.sku: 2YN61AV
dmi.sys.vendor: HP

Revision history for this message
Marcin P (marcin-pil) wrote :
Revision history for this message
Hui Wang (hui.wang) wrote :

When the speaker can output sound, please generate an alsa-info.txt_speaker_ok (by run alsa-info)

Then plug headphone and unplug the headphone.

Make sure the speaker can't output sound anymore, please generate an alsa-info.txt_speaker_fail

Then upload both alsa-info.txt_speaker_ok and alsa-info.txt_speaker_fail.

thx.

Revision history for this message
Marcin P (marcin-pil) wrote :

Hi Hui Wang.
Thanks for your reply.
I'm attaching requested files.

Revision history for this message
Marcin P (marcin-pil) wrote :
Revision history for this message
Hui Wang (hui.wang) wrote :

Please test this kernel, let us see if the kernel fixes the problem or not.

If not, please upload a new alsa-info.txt.

thx.

Revision history for this message
Hui Wang (hui.wang) wrote :

following the #5, the testing kernel is at: https://people.canonical.com/~hwang4/conexant-test/

Revision history for this message
Marcin P (marcin-pil) wrote :

Thank you Hui Wang for your quick answer.

Could you help me with install and then uninstall procedure?
I understand that I have to install all these kernel packages with "sudo dpkg -i". But:
1. What is the order of installation of these packages?
2. After installation how can I switch from current kernel to this new kernel? Currently I use "5.0.0-35-generic #38~18.04.1-Ubuntu SMP Mon Nov 11 09:16:10 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux"
3. What if this new kernel won't boot my computer? Will be there any backup kernel installed?
4. After tests what should I do get back to "stock" kernel?

Revision history for this message
Hui Wang (hui.wang) wrote :

To install the testing kernel:

sudo dpkg -i linux-modules-xxx.deb
sudo dpkg- i linux-image-xxx.deb
sudo dpkg -i linux-modules-extra-xxx.deb
reboot

To choose the kernel:

you could press ESC button during the grub (bootloader) stage, then there is a menu you could choose the kernel.
After booting up, you could run uname -a to verify the kernel you are running.

To uninstall the testing kernel:

sudo dpkg -p linux-modules-extra-xxx.deb (run dpkg --list | grep linux-modules-extra*, then you will konw the full name of linux-modules-extra-xxx.deb)
sudo dpkg -p linux-image-xxx.deb
sudo dpkg -p linux-modules-xxx.deb.
reboot.

Revision history for this message
Marcin P (marcin-pil) wrote :

I installed modified kernal:
5.0.0-34.36+conexant-codec-generic #codec SMP Tue Nov 12 22:40:14 CST 2019 x86_64 x86_64 x86_64 GNU/Linux

After system startup there is no sound from built-in speakers.
After connecting headphones sound works correctly in headphones.
After disconnecting headphones again there is no sound from built-in speakers.

Revision history for this message
Marcin P (marcin-pil) wrote :
Revision history for this message
Marcin P (marcin-pil) wrote :
Revision history for this message
Marcin P (marcin-pil) wrote :
Revision history for this message
Marcin P (marcin-pil) wrote :

I have some additional observations (on regular kernel: 5.0.0-35-generic #38~18.04.1-Ubuntu SMP Mon Nov 11 09:16:10 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux):

I also have a HP docking station which has its own separated built-in DAC. When laptop is connected to this docking station I can choose from following sound devices:

- Digital Output (S/PDIF) - USB Audio
- Analog Output - USB Audio
- Speakers - Built-in Audio

When I don't connect headphones I can switch between these devices and when coming back to built-in speakers the speakers usually work (however sometimes they don't). But after connecting headphones the speakers will never work again.

To clarify: all previous tests I did were done on laptop disconnected from docking station.

Revision history for this message
Hui Wang (hui.wang) wrote :

Please do a test.

Boot with the regular kernel (5.0.0-35-generic), make sure the speakers can work after booting, then run:

amixer sset 'Auto-Mute Mode' 'Disabled'

After that plug a headphone and unplug the headphone, does the speaker still work?

Revision history for this message
Marcin P (marcin-pil) wrote :

Yes, the speakers behaves perfectly now. Thank you.

When auto-mute is enabled and I disconnect the headphones shouldn't the global system volume be muted?

Revision history for this message
Prajwal Manandhar (pjmdr1313) wrote :

Hello, I am having the same issues in my hp envy y013cl laptop.I tried the above steps but could not get the audio from speakers working.Please help me fix this issue.Will provide all the necessary logs.

Aplay-l
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: CX8200 Analog [CX8200 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 9: HDMI 3 [HDMI 3]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 10: HDMI 4 [HDMI 4]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

affects: alsa-driver (Ubuntu) → linux (Ubuntu)
Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. While running an Ubuntu kernel (not a mainline or third-party kernel) please enter the following command in a terminal window:

apport-collect 1852067

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
Revision history for this message
Hui Wang (hui.wang) wrote :

@Prajwal,

We could not find that machine to debug, since this issue happens randomly, we have no idea what introduces this issue.

Could you try the latest mainline kernel to see if it works or not (https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.8-rc4/), if it still could not work, it is better to report this issue to upstream kernel bugzilla (https://bugzilla.kernel.org/enter_bug.cgi?product=Drivers), let community help fix this bug, then we will integrate the fix to ubuntu kernel.

Revision history for this message
Prajwal Manandhar (pjmdr1313) wrote :

Hello @Hui Wang,
 I have created a alsa-info.sh when the sound is working normally.I have attached both links for working sound and not working sound cases. Please take a look at it. May be you could get some idea from it?

Sound Not working from internal speakers.
http://alsa-project.org/db/?f=752ec2e16ade480b7793f110e2bdaf30dfb75af6

Sound Working from internal Speakers.
http://alsa-project.org/db/?f=85278199fe60dad58925ffecee6005273fe18261

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for linux (Ubuntu) because there has been no activity for 60 days.]

Changed in linux (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.