Select main channel in KMix didn't work as expected

Bug #619194 reported by RussianNeuroMancer
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
KDE Multimedia
Invalid
Medium
kdemultimedia (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: kdemultimedia

I select Analog Output as main channel in KMix, but they still show HDMI Output when I click to the KMix icon.

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: kmix 4:4.5.0b-0ubuntu1
ProcVersionSignature: Ubuntu 2.6.35-15.21-generic 2.6.35.1
Uname: Linux 2.6.35-15-generic x86_64
Architecture: amd64
Date: Tue Aug 17 21:04:35 2010
InstallationMedia: Kubuntu 10.10 "Maverick Meerkat" - Alpha amd64 (20100804)
ProcEnviron:
 LANGUAGE=ru_RU
 LANG=ru_RU.utf8
 SHELL=/bin/bash
SourcePackage: kdemultimedia

Revision history for this message
RussianNeuroMancer (russianneuromancer) wrote :
Revision history for this message
In , RussianNeuroMancer (russianneuromancer) wrote :

Version: 3.7 (using KDE 4.5.0)
OS: Linux

Change volume in KMix not change system volume. Disable volume in KMix not disable sound in system.
I can change system volume only when I use PulseAudio volume control (pavucontrol).

Reproducible: Always

Revision history for this message
In , Colin Guthrie (launchpad-colin) wrote :

Which version of kmix is used in this distro?

Does it present four fixed tabs as per the screenshots here: http://pulseaudio.org/wiki/KDE#KMix

If it does look like this, can you be more specific on the problem as kmix in PA mode should behave pretty much identically to pavucontrol.

If it doesn't look like this, please contact your distro to ensure it is compiled/included. I have made available patches to ensure that this mode is enabled for older versions of kmix too.

Revision history for this message
In , RussianNeuroMancer (russianneuromancer) wrote :

Yes, it's have fixed tabs.

Sorry, look like I report this bug by mistake. I try to change volume using volume buttons on laptop - in KDE environment this buttons change volume of main channel, what selected in KMix. But there is another bug - I have HDMI and analog output. KMix selected HDMI by default. I try to select main channel by hands, but after reboot KMix again select HDMI by default. When I try to use volume buttons - KMix change volume of HDMI, but not of Analog. Here I think there is a problem PulseAudio and KMix communication.

Okay, there is a no problems with PulseAudio back-end, but for some reasons KMix selected HDMI as main channel after reboot. It's KMix, PulseAudio or Phonon bug?

Revision history for this message
In , Colin Guthrie (launchpad-colin) wrote :

I'll have to look at the code, but I thought I'd made kmix behave correctly with regards to setting it's "Master" channel according to the "Default/Fallback" device in PA, but there were a few tricky interactions and feedback loops with that approach so I'm not 100% sure it's working perfectly. I'll probably take the updated version Christian worked on for a spin soon and see if I can fix the remaining niggles like this.

Revision history for this message
In , RussianNeuroMancer (russianneuromancer) wrote :

Also please look at another "master channel" issue.

For example Analog output selected. You press hardware volume buttons on laptop or change volume using tray icon - volume of analog output changed, everything is fine.
If you select digital output as main channel in KMix, you get this result: change volume using hardware buttons is work as expected, but if you click to KMix tray icon, you will see Analog output volume slider.

summary: - Select main channel not work in KMix
+ Select main channel in KMix not work as expected
Changed in kdemultimedia:
status: Unknown → New
Revision history for this message
In , Colin Guthrie (launchpad-colin) wrote :

*** Bug 251258 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Yoho-ahoy (yoho-ahoy) wrote :

I tested a nightly compose of the F15/rawhide kde spin and see that phonon now correctly prefers the internal audio device to the hdmi output (from the amd integrated graphics). But the kmix master channel is still the hdmi output.

phonon-4.4.3-2.fc15.i686
pulseaudio-0.9.22-1.fc15.i686
kdemultimedia-4.5.85-1.fc15.i686

Revision history for this message
In , Colin Guthrie (launchpad-colin) wrote :

Yeah this is still an issue at the moment (certainly I've not fixed it personally). There was an issue with this before, that made it complicated, but I can't remember what it is off the top of my head :s Hopefully I'll get around to fixing this properly soon.

Changed in kdemultimedia:
importance: Unknown → Medium
Revision history for this message
RussianNeuroMancer (russianneuromancer) wrote :

It's not didn't work "as expected", it's just didn't work. KMix didn't save selected main channel to kmixrc configuration file.

summary: - Select main channel in KMix not work as expected
+ Select main channel in KMix didn't work as expected
Revision history for this message
In , RussianNeuroMancer (russianneuromancer) wrote :

Looks like KMix didn't save selected main channel to kmixrc configuration file.

Revision history for this message
In , Alan Aversa (aversa) wrote :

Yes, I had the same issue. I simply switched the primary channel from master to another and back to master. Then the audio through master finally worked!

Revision history for this message
In , Post+kde (post+kde) wrote :

I can confirm the issue. It is easy to reproduce on my system, which has an intel chipset and graphics card with analog and HDMI output. PA shows a single "Built-in Audio device".

- Start pavucontrol
- Make sure the current output profile (in the configuration tab) is "Analog Stereo Duplex" and kmix correctly configures this channel
- Now change the profile to some HDMI profile
- Observation: The KMix icon in the systray changes to the icon shown for unknown files (as if the icon loader failed to load it?), and the +/- volume keys have no effect. The playback devices show a single device, changing volume here works fine.
- In KMix choose settings - select master channel. One device is presented ("Built-in HDMI..."), but no radio button is selected
- Select the only device
- Now the systray icon is correct again, and the +/- volume keys work

The same happens when changing the profile back to "Analog Stereo Duplex".

Revision history for this message
In , Christian Esken (esken-kde) wrote :

If anything, KMix should follow Phonon, not Pulseaudio. Because PA might not even be in use. Marking as duplicate.

*** This bug has been marked as a duplicate of bug 181652 ***

Revision history for this message
In , Ralf Jung (0tlwui8x-post-kj985rvy) wrote :

Well, currently it follows PA's default channel after a restart, so something in KWin is already doing it right - it just doesn't notice PA changing the default output while KWin is running.
When I asked about that a year ago or so, I was told that having PA running, but not being used by Phonon, was not a supported usecase.

Revision history for this message
In , Christian Esken (esken-kde) wrote :

To get things straight: Master selection is always done manually by the user. It does not matter if you use Pulseaudio or not. Thus the whole discussion is moot - unless automatic master selection is implemented, the behaviour you described is expected, and not even a bug.

Phonon is the KDE sound abstraction layer, so KMix should follow Phonon if anything. Thus please follow bug 181652.

Revision history for this message
In , Colin Guthrie (launchpad-colin) wrote :

Yeah the concept of "default" or "master" is somewhat blurred these days and IMO should be fully automatic in most cases (or at least have an "Auto" tickbox before allowing manual overrides.

The reason I say this is due to the fact that Phonon has multiple categories. The "Default" category makes sense in most cases but what if you have Amarok (Music) playing some tunes? Your "Default" device might not be your "Music" device, so should the media keys on your keyboard control the Default device or the Music device in this case? I'd personally suggest that it should control your Music device.

Sadly Phonon has no API to enumerate streams and which devices are actively playing to allow kmix to make such decisions, so while I would agree in principle that the "phonon settings" should be used, it's likely far more practical to get said setting directly from PA (as with "Phonon settings" are actually just pushed to PA with this kind of setup anyway).

Now we're hoping that (eventually) we'll be able to redo the whole routing system in PA thanks to help from some Intel folks using it for IVI purposes. With this in place I think it would be the right time to get this bit of kmix fixed up.

Changed in kdemultimedia:
status: New → Invalid
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.