Lineout and headphones audio keep switching automatically -- broken audio

Bug #1813604 reported by JP
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

I have been a long-term Ubuntu user (since 10.04) and take pride in having fixed all problems on my own thanks to the excellent documentation, but this time I am utterly stumped and have run out of ideas (hence this report).

With my headphones jacked in, the line out and headphones output options keep switching automatically, resulting in crackling (and broken audio). I have tried many solutions I found online but none of the suggested fixes work. I am attaching a video of what I see (note that this happens automatically, I don't click anywhere)

This is not a hardware issue (the headphones work fine on another machine running Ubuntu 16.04, and as far as I'm aware this problem only appeared after I upgraded from 16.04 to 18.04).

$ lsb_release -rd
Description: Ubuntu 18.04.1 LTS
Release: 18.04

I have uploaded two different videos showing what I see here:
https://youtu.be/S49cEC5DRsk
https://youtu.be/zSfi5ko5nBY
---
ProblemType: Bug
ApportVersion: 2.20.9-0ubuntu7.5
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: jp 5422 F.... pulseaudio
 /dev/snd/controlC1: jp 5422 F.... pulseaudio
 /dev/snd/controlC2: jp 5422 F.... pulseaudio
CurrentDesktop: ubuntu:GNOME
DistroRelease: Ubuntu 18.04
HibernationDevice: RESUME=UUID=84a04536-72b0-461c-99b3-6dd8190bd471
InstallationDate: Installed on 2016-05-12 (992 days ago)
InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Release amd64 (20160420.1)
IwConfig:
 docker0 no wireless extensions.

 lo no wireless extensions.

 enp4s0 no wireless extensions.
MachineType: System manufacturer System Product Name
NonfreeKernelModules: nvidia_modeset nvidia
Package: linux (not installed)
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcFB: 0 inteldrmfb
ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-4.15.0-44-generic root=UUID=38883a30-ab46-453d-af78-cd67fe68236b ro quiet splash acpi=force
ProcVersionSignature: Ubuntu 4.15.0-44.47-generic 4.15.18
RelatedPackageVersions:
 linux-restricted-modules-4.15.0-44-generic N/A
 linux-backports-modules-4.15.0-44-generic N/A
 linux-firmware 1.173.3
RfKill:

Tags: bionic
Uname: Linux 4.15.0-44-generic x86_64
UpgradeStatus: Upgraded to bionic on 2018-08-23 (159 days ago)
UserGroups: adm cdrom dip docker lpadmin lxd plugdev sambashare sudo
_MarkForUpload: True
dmi.bios.date: 01/26/2016
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: 0601
dmi.board.asset.tag: Default string
dmi.board.name: Z170-P D3
dmi.board.vendor: ASUSTeK COMPUTER INC.
dmi.board.version: Rev X.0x
dmi.chassis.asset.tag: Default string
dmi.chassis.type: 3
dmi.chassis.vendor: Default string
dmi.chassis.version: Default string
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvr0601:bd01/26/2016:svnSystemmanufacturer:pnSystemProductName:pvrSystemVersion:rvnASUSTeKCOMPUTERINC.:rnZ170-PD3:rvrRevX.0x:cvnDefaultstring:ct3:cvrDefaultstring:
dmi.product.family: To be filled by O.E.M.
dmi.product.name: System Product Name
dmi.product.version: System Version
dmi.sys.vendor: System manufacturer

Revision history for this message
JP (malteseunderdog) wrote :
tags: added: audio
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at https://wiki.ubuntu.com/Bugs/FindRightPackage. You might also ask for help in the #ubuntu-bugs irc channel on Freenode.

To change the source package that this bug is filed about visit https://bugs.launchpad.net/ubuntu/+bug/1813604/+editstatus and add the package name in the text box next to the word Package.

[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]

tags: added: bot-comment
Revision history for this message
JP (malteseunderdog) wrote :

Adding to linux source package as suggested in https://wiki.ubuntu.com/DebuggingSoundProblems

tags: added: kernel-sound
affects: ubuntu → linux (Ubuntu)
Revision history for this message
JP (malteseunderdog) wrote :

Am attaching alsa-info text file generated using:

wget http://www.alsa-project.org/alsa-info.sh -O alsa-info.sh && bash alsa-info.sh

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 1813604

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
tags: added: bionic
Revision history for this message
JP (malteseunderdog) wrote : AlsaInfo.txt

apport information

tags: added: apport-collected
description: updated
Revision history for this message
JP (malteseunderdog) wrote : CRDA.txt

apport information

Revision history for this message
JP (malteseunderdog) wrote : CurrentDmesg.txt

apport information

Revision history for this message
JP (malteseunderdog) wrote : Lspci.txt

apport information

Revision history for this message
JP (malteseunderdog) wrote : Lsusb.txt

apport information

Revision history for this message
JP (malteseunderdog) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
JP (malteseunderdog) wrote : ProcCpuinfoMinimal.txt

apport information

Revision history for this message
JP (malteseunderdog) wrote : ProcInterrupts.txt

apport information

Revision history for this message
JP (malteseunderdog) wrote : ProcModules.txt

apport information

Revision history for this message
JP (malteseunderdog) wrote : PulseList.txt

apport information

Revision history for this message
JP (malteseunderdog) wrote : UdevDb.txt

apport information

Revision history for this message
JP (malteseunderdog) wrote : WifiSyslog.txt

apport information

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
JP (malteseunderdog) wrote :

Is there any way to "bump this up"?

Revision history for this message
Kai-Heng Feng (kaihengfeng) wrote :

Would it be possible for you to test the latest upstream kernel? Refer
to https://wiki.ubuntu.com/KernelMainlineBuilds . Please test the latest
v5.0-rc7 kernel[0].

If this bug is fixed in the mainline kernel, please add the following
tag 'kernel-fixed-upstream'.

If the mainline kernel does not fix this bug, please add the tag:
'kernel-bug-exists-upstream'.

Once testing of the upstream kernel is complete, please mark this bug as
"Confirmed".

Thanks in advance.

[0] https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.0-rc7/

Revision history for this message
Kai-Heng Feng (kaihengfeng) wrote :

If that's a regression, can you test if the issue doesn't happen on v4.4 kernel, which is used by 16.04?

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.