Bug 300217

Summary: Phonon does not recognize KDE default settings (keeps switching back to HDMI input in hardware)
Product: [Frameworks and Libraries] Phonon Reporter: davija
Component: settingsAssignee: Multimedia Developers <kde-multimedia>
Status: RESOLVED NOT A BUG    
Severity: normal CC: colin, martin.sandsmark, myriam, tdfischer, yurchor
Priority: NOR    
Version: unspecified   
Target Milestone: 4.6.1   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description davija 2012-05-18 00:57:15 UTC
In Kubuntu 11.10 & 12.04, the system keeps defaulting to using HDMI for sound.  I have gone into system settings and set the internal audio as the default for ALL categories.  KDE still tries to use the HDMI as the default.  When I open up the Phonon configuration, the settings are all the same, however when I switch into the audio hardware setup, it always switches back to HDMI.  I can set it to internal audio, apply close and then re-open and it is stuck back at HDMI.


Reproducible: Always

Steps to Reproduce:
1.Log in
2. Set settings back to use internal audio (including setting audio hardware setup to use internal audio)
3. Log out
4. Log back in
Actual Results:  
I have to go back and switch my audio settings back

Expected Results:  
It should remember the audio settings

Hardware - Dell Latitude E6520
Comment 1 Torrie Fischer 2012-05-30 20:54:15 UTC
Do you have PulseAudio running and enabled?
Comment 2 davija 2012-05-31 00:21:45 UTC
It is running, but I am not sure how to tell if it is enabled (there is a pulseaudio process running).
Comment 3 Colin Guthrie 2012-05-31 08:40:37 UTC
Can you attach screen shots of the Audio Hardware Setup page? Please note that when you select the "Sound Card" there it's just so that you can configure the other parts of it. It's has absolutely zero bearing on your your system as to which device is used for audio output (only the category priority lists affect this).

Please also attach the output of "pacmd ls"
Comment 4 davija 2012-05-31 13:37:48 UTC
I can attach screen shots, but it will be a little bit later as I don't have access to that computer until later this evening (not really sure how relevant the screen shots are in this case as the steps should be sufficient).

However, I beg to differ about he sound card selection.  The first page (tab) allows you to set ordering, but the second page (2nd tab, Audio Hardware Setup page) that I'm referring to in my steps is the one that selects which device is used for various outputs.  I am sure that is what it does because changing the output device as I described is what fixes or breaks it.
Comment 5 Colin Guthrie 2012-05-31 13:50:48 UTC
(In reply to comment #4)
> However, I beg to differ about he sound card selection.  The first page
> (tab) allows you to set ordering, but the second page (2nd tab, Audio
> Hardware Setup page) that I'm referring to in my steps is the one that
> selects which device is used for various outputs.  I am sure that is what it
> does because changing the output device as I described is what fixes or
> breaks it.

There may be a problem of terminology here, but I guarantee you (as the author of that Setup page and as upstream PulseAudio maintainer) that the pane mentioned does not adjust which devices are used where. It does,however, allow you configure in which mode a given sound card operates. e.g. whether you want 5.1 Analog Output or Digital Stereo Output etc. It is perfectly conceivable that this is not working correctly and not being restored on login. If that is the case, it's certainly not a KDE problem, however I'll help you debug and we can then direct the bug report to the appropriate place.

So, what I suggest is this:
 1. Fresh boot. Things are probably broken in this state according to your previous descriptions.
 2. Take a screen shot of the default category priority list pane. Just so I can see the devices (which ones are present and which ones are greyed out etc.
 3. Grab the output from "pacmd ls"
 4. Now fix things up as you see fit using only the Audio Hardware Setup pane.
 5. Take a second screen shot as per step 2.
 6. Take a second dump from "pacmd ls".
 7. Attach the four files (2xscreens, 2xtext) here.

I should be able to tell from that exactly what changed and where to look for the underlying problem.

All the best
Comment 6 Myriam Schweingruber 2013-04-13 06:36:52 UTC
Closing for lack of feedback. Please feel free to reopen if you can reproduce this with Phonon 4.6.0 or later and provide the feedback requested in Comment #5