Bug 300100

Summary: KMix doesn't know which audio playback to use and uses a different one each time.
Product: [Frameworks and Libraries] Phonon Reporter: Mark <markg85>
Component: generalAssignee: Harald Sitter <sitter>
Status: RESOLVED WORKSFORME    
Severity: normal CC: colin, lellofranco, martin.sandsmark, myriam, romain.perier
Priority: NOR Keywords: triaged
Version: 4.6.0   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: kmix popups

Description Mark 2012-05-15 22:39:24 UTC
Hi,

I'm having this issue in KMix for ages now.
Take a look at the attached screenshot.

Reproducible: Always

Steps to Reproduce:
Don't know. Just happens.
Actual Results:  
At every single boot i get those annoying KMix popups that KMix picked another audio device followed by another one to revert.

Expected Results:  
KMix should just work i guess.

Some technical details:

KMix version:
Qt: 4.8.1
KDE Development Platform: 4.8.3 (4.8.3)
KMix: 4.1

Hardware (lspci):

00:00.0 Host bridge: Advanced Micro Devices [AMD] RS880 Host Bridge                                                                                                                                                                                                                    
00:02.0 PCI bridge: Advanced Micro Devices [AMD] RS780 PCI to PCI bridge (ext gfx port 0)                                                                                                                                                                                              
00:05.0 PCI bridge: Advanced Micro Devices [AMD] RS780/RS880 PCI to PCI bridge (PCIE port 1)                                                                                                                                                                                           
00:07.0 PCI bridge: Advanced Micro Devices [AMD] RS780 PCI to PCI bridge (PCIE port 3)                                                                                                                                                                                                 
00:09.0 PCI bridge: Advanced Micro Devices [AMD] RS780/RS880 PCI to PCI bridge (PCIE port 4)                                                                                                                                                                                           
00:0a.0 PCI bridge: Advanced Micro Devices [AMD] RS780/RS880 PCI to PCI bridge (PCIE port 5)                                                                                                                                                                                           
00:11.0 SATA controller: Advanced Micro Devices [AMD] nee ATI SB7x0/SB8x0/SB9x0 SATA Controller [AHCI mode] (rev 40)                                                                                                                                                                   
00:12.0 USB controller: Advanced Micro Devices [AMD] nee ATI SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
00:12.2 USB controller: Advanced Micro Devices [AMD] nee ATI SB7x0/SB8x0/SB9x0 USB EHCI Controller
00:13.0 USB controller: Advanced Micro Devices [AMD] nee ATI SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
00:13.2 USB controller: Advanced Micro Devices [AMD] nee ATI SB7x0/SB8x0/SB9x0 USB EHCI Controller
00:14.0 SMBus: Advanced Micro Devices [AMD] nee ATI SBx00 SMBus Controller (rev 41)
00:14.2 Audio device: Advanced Micro Devices [AMD] nee ATI SBx00 Azalia (Intel HDA) (rev 40)
00:14.3 ISA bridge: Advanced Micro Devices [AMD] nee ATI SB7x0/SB8x0/SB9x0 LPC host controller (rev 40)
00:14.4 PCI bridge: Advanced Micro Devices [AMD] nee ATI SBx00 PCI to PCI Bridge (rev 40)
00:14.5 USB controller: Advanced Micro Devices [AMD] nee ATI SB7x0/SB8x0/SB9x0 USB OHCI2 Controller
00:16.0 USB controller: Advanced Micro Devices [AMD] nee ATI SB7x0/SB8x0/SB9x0 USB OHCI0 Controller
00:16.2 USB controller: Advanced Micro Devices [AMD] nee ATI SB7x0/SB8x0/SB9x0 USB EHCI Controller
00:18.0 Host bridge: Advanced Micro Devices [AMD] Family 10h Processor HyperTransport Configuration
00:18.1 Host bridge: Advanced Micro Devices [AMD] Family 10h Processor Address Map
00:18.2 Host bridge: Advanced Micro Devices [AMD] Family 10h Processor DRAM Controller
00:18.3 Host bridge: Advanced Micro Devices [AMD] Family 10h Processor Miscellaneous Control
00:18.4 Host bridge: Advanced Micro Devices [AMD] Family 10h Processor Link Control
01:00.0 VGA compatible controller: Advanced Micro Devices [AMD] nee ATI Barts XT [ATI Radeon HD 6800 Series]
01:00.1 Audio device: Advanced Micro Devices [AMD] nee ATI Barts HDMI Audio [Radeon HD 6800 Series]
02:00.0 USB controller: NEC Corporation uPD720200 USB 3.0 Host Controller (rev 03)
03:00.0 FireWire (IEEE 1394): VIA Technologies, Inc. VT6315 Series Firewire Controller
04:00.0 IDE interface: VIA Technologies, Inc. VT6415 PATA IDE Host Controller
05:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 06)

and i'm having this issue for ages! Certainly as long as i've been using Archlinux. (which is years by now)

Everything is fully up to date. The system is using Pulseaudio and was using Alsa. I thoroughly removed alsa configuration files and runtime applications. The libs are still on since some applications sadly can't start without (chrome for example).

Kinda important to know. If i start my computer and login the first time i get the described issue. If i logout and back in, it works! Then if i reboot again it starts all over again and  doesn't work anymore. So this happens Every time at boot with the first login!
Comment 1 Mark 2012-05-15 22:47:36 UTC
Created attachment 71122 [details]
kmix popups
Comment 2 Colin Guthrie 2012-05-15 23:37:45 UTC
This is not kmix but phonon. I'd recommend opening a bug against your distro and let your packagers debug the problem and push any fixes/suggestions upstream.
Comment 3 Mark 2012-05-16 11:29:07 UTC
(In reply to comment #2)
> This is not kmix but phonon. I'd recommend opening a bug against your distro
> and let your packagers debug the problem and push any fixes/suggestions
> upstream.

Hi,

If i where using a distribution that tends to customize a lot of things i would agree.
However, i'm using Archlinux which tries to stick to upstream as close as possible (and that's working quite well) so i'm inclined to think that this is an issue in KDE (phonon) somewhere rather then Archlinux.

I will also ask the archlinux guys (just to be sure) to see if they know of this issue and might have a solution for it.

Cheers,
Mark
Comment 4 Mark 2012-05-16 12:29:34 UTC
Right, more information.

It "seems" that HDMI is in the way. If i disable HDMI output i'm not getting a confused KDE anymore so that might be a possible issue somewhere.
Comment 5 Myriam Schweingruber 2012-05-16 12:32:40 UTC
And which exact Phonon version is this about?
Comment 6 Mark 2012-05-16 13:00:36 UTC
(In reply to comment #5)
> And which exact Phonon version is this about?

Quite difficult to see so i'm guessing the library version will do. This seems to be phonon 4.6.0
Comment 7 Colin Guthrie 2012-05-16 13:10:03 UTC
Actually, when I said "phonon" I guess I really meant "bits of phonon in kde runtime". It's all rather complicated how it all glues together (and I've forgotten most of the details myself), but I believe this is actually something that is not specifically *in* phonon but one of the components that live in e.g. kde-runtime that works with it.

IMO It should really be purged, as this kind of dialog is only really relevant when PulseAudio is not used and it seems to be kicking in here incorrectly. I guess a bit more work is needed on that stuff to shut it up when PA is there... but I guess it still needs to exist in some capacity for the cases when it is not.
Comment 8 Raf 2012-07-11 09:23:44 UTC
(In reply to comment #2)
> This is not kmix but phonon. I'd recommend opening a bug against your distro
> and let your packagers debug the problem and push any fixes/suggestions
> upstream.


Hi
I have the same problem with KMix on KUbuntu 12.04 precise pangolin distro.
It seems to be independent by the distro.

Regards
Comment 9 Myriam Schweingruber 2013-04-13 06:35:22 UTC
Is this still reproducible with KDE 4.10.2?
Comment 10 Mark 2013-04-15 14:03:19 UTC
(In reply to comment #9)
> Is this still reproducible with KDE 4.10.2?

Hi,

Yes it is but it's a bit different now.

I have a usb microphone (corsair vengeance 1500) which i had one time plugged in my machine at boot. Linux and KDE started up fine and sound was blasting out of the headphone just fine as one would expect.

However, every time i boot my pc now without that headphone i get the kde message that it can't find "corsair vengeance 1500" even if i tell it to just forget the thing. However, right now it falls back just fine to the normal speakers. So the issue - as reported - is gone, but there is still "a" issue somewhere in picking audio output devices.
Comment 11 Myriam Schweingruber 2013-04-15 19:55:13 UTC
(In reply to comment #10)
> Yes it is but it's a bit different now.
> 
> I have a usb microphone (corsair vengeance 1500) which i had one time
> plugged in my machine at boot. Linux and KDE started up fine and sound was
> blasting out of the headphone just fine as one would expect.
> 
> However, every time i boot my pc now without that headphone i get the kde
> message that it can't find "corsair vengeance 1500" even if i tell it to
> just forget the thing. However, right now it falls back just fine to the
> normal speakers. So the issue - as reported - is gone, but there is still
> "a" issue somewhere in picking audio output devices.

You could try erasing the existing phonondevicesrc file located in $HOME/.kde/share/config/ (might be $HOME/.kde4/share/config/ on some systems). Ideally you should do that from a shell when logged out, so it is rebuilt for the actually connected hardware.
Or you edit that file and remove the headphones from there.
Comment 12 Andrew Crouthamel 2018-09-24 02:19:11 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days, the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information.

For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please set the bug status as REPORTED so that the KDE team knows that the bug is ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 13 Andrew Crouthamel 2018-10-27 04:13:13 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least 30 days. The bug is now closed as RESOLVED > WORKSFORME due to lack of needed information.

For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!