You are not logged in.

#1 2020-07-20 20:39:09

Martmists
Member
Registered: 2019-10-24
Posts: 3

[Solved] Speaker audio stops working after jack unplug

Hello everyone,

Today I've managed to confirm a bug that happened to me a while back before I reinstalled Arch for various reasons.
The problem is that if some audio source (only tested Youtube so far) is playing audio through a jack output, in this case my headphones, and I UNPLUG the headphone jack while the audio is playing, it seems to disable my speaker audio. I've had this happen 3 times on this laptop, but I've been unable to reproduce it on any other device.
Note that this bug only affects the currently installed Arch Linux install; Reinstalling Arch or booting into Windows reveals the desktop audio works perfectly fine. The device is an HP ZBook Studio G5, if specs are needed.
I've also confirmed devices and applications are NOT getting muted. Additionally, my alsa/pulseaudio configs are not manually modified.

Below I've binned the output of various commands.
pacmd list-cards: https://hastebin.com/isevupigar.txt
pulseaudio -vvvvvv: https://hastebin.com/upowoniyaz.txt (Actions taken during this log, in order: Plug in headphone jack, unplug, change audio volume through fn keys, mute/unmute audio)
pacman -Q | grep alsa: https://hastebin.com/qiviqotati.txt
aplay -l: https://hastebin.com/oliradifoh.txt

speaker-test works on headphone jack, fails on desktop audio. Tried various parameters that have been used in similar threads.

Any help is appreciated, as this is by far the strangest issue I've ever had on Linux.

My theory as for what happens is as follows:
- When the jack is plugged in, it disables speakers (marked unavailable in KDE system settings)
- When unplugged, it reverts the state to what it was before plugging in.
- For some reason, when unplugging the jack while audio is playing, the speakers are put in a permanent unavailable state.
If this is indeed the case it should be possible to fix it through some files or some utility, but I've been unable to figure it out.

Last edited by Martmists (2020-07-23 23:20:17)

Offline

#2 2020-07-23 23:20:00

Martmists
Member
Registered: 2019-10-24
Posts: 3

Re: [Solved] Speaker audio stops working after jack unplug

By far the worst solution, but if anyone somehow ever gets this issue:

- Log out of your DE
- Log in on a second user
- Switch accounts (do NOT log out)
- Log back into your main account
- Your DE will get stuck loading, force a reboot by holding the power button

When your system powers back on, audio works again.
As jank as this solution sounds, I've been able to reproduce this solution 6 times in a row.

Offline

#3 2020-07-23 23:50:34

GaKu999
Member
From: US/Eastern
Registered: 2020-06-21
Posts: 696

Re: [Solved] Speaker audio stops working after jack unplug

Martmists wrote:

By far the worst solution, but if anyone somehow ever gets this issue:

- Log out of your DE
- Log in on a second user
- Switch accounts (do NOT log out)
- Log back into your main account
- Your DE will get stuck loading, force a reboot by holding the power button

When your system powers back on, audio works again.
As jank as this solution sounds, I've been able to reproduce this solution 6 times in a row.

Oh dear that doesn't seem healthy at all! Please don't treat it as solved by torturing your computer like that!

The logs are pretty spammy about a device failure...maybe a firmware failure...

Last edited by GaKu999 (2020-07-24 00:22:52)


My reposSome snippets

Heisenberg might have been here.

Offline

#4 2020-10-14 15:01:17

Martmists
Member
Registered: 2019-10-24
Posts: 3

Re: [Solved] Speaker audio stops working after jack unplug

So after a *lot* more experimenting, it seems to be caused by chrome and electron windows when they've opened an audio stream before (e.g. youtube, notifications, calls, etc). I'm assuming this is a bug caused by electron/chromium, so I'll probably end up opening an issue there.

Offline

Board footer

Powered by FluxBB