This forum has been archived. All content is frozen. Please use KDE Discuss instead.

KDE Reverts Soundcard Preference

Tags: None
(comma "," separated)
philiplee
Registered Member
Posts
9
Karma
0

KDE Reverts Soundcard Preference

Mon Jan 06, 2014 2:07 pm
Every time I boot up or try to play a file in Amarok, I get the notification "Switching to the audio playback device ... which has a higher preference or is specifically configured for this stream". I don't want that to happen. I want KDE to use the cards as I configured them.

Image

I installed a secondary sound card (an M-Audio Audiophile 192) which shows up as "VT1720/24..." in KDE. I do NOT want to use this card to play notifications, music, etc. I want to use the builtin audio. As you can see in the image above, I have configured the builtin device as top priority in every single category, and yet KDE will not play music through this card. The card is definitely working, as the "Test" button on the configuration page does play audio through it, and VLC always plays its music through this builtin card properly.

Any advice on getting the KDE system to always use this card?
User avatar
Mamarok
Manager
Posts
6071
Karma
16
OS
Please check the "Audio Hardware Setup" tab, it should be self-explaining.


Running Kubuntu 22.10 with Plasma 5.26.3, Frameworks 5.100.0, Qt 5.15.6, kernel 5.19.0-23 on Ryzen 5 4600H, AMD Renoir, X11
FWIW: it's always useful to state the exact Plasma version (+ distribution) when asking questions, makes it easier to help ...
philiplee
Registered Member
Posts
9
Karma
0
Mamarok wrote:Please check the "Audio Hardware Setup" tab, it should be self-explaining.


Already did. Is there something wrong?

Image
User avatar
Mamarok
Manager
Posts
6071
Karma
16
OS
Well, you apparently still use the built-in audio. Check again :)


Running Kubuntu 22.10 with Plasma 5.26.3, Frameworks 5.100.0, Qt 5.15.6, kernel 5.19.0-23 on Ryzen 5 4600H, AMD Renoir, X11
FWIW: it's always useful to state the exact Plasma version (+ distribution) when asking questions, makes it easier to help ...
philiplee
Registered Member
Posts
9
Karma
0
Mamarok wrote:Well, you apparently still use the built-in audio. Check again :)


Sorry if I was unclear. I want to use the builtin audio, and not to use the Audiophile192.

Last edited by philiplee on Tue Jan 07, 2014 1:24 am, edited 1 time in total.
User avatar
Mamarok
Manager
Posts
6071
Karma
16
OS
Which Distribution, which exact KDE version is this about, and are you using Pulseaudio?


Running Kubuntu 22.10 with Plasma 5.26.3, Frameworks 5.100.0, Qt 5.15.6, kernel 5.19.0-23 on Ryzen 5 4600H, AMD Renoir, X11
FWIW: it's always useful to state the exact Plasma version (+ distribution) when asking questions, makes it easier to help ...
philiplee
Registered Member
Posts
9
Karma
0

Re: KDE Reverts Soundcard Preference

Mon Jan 06, 2014 10:07 pm
Mamarok wrote:Which Distribution, which exact KDE version is this about, and are you using Pulseaudio?


This is Debian 7.2 (wheezy) with KDE 4.8.4. Indeed I am using pulseaudio.

I got Amarok to work properly by playing a file, then manually setting its sink to the builtin card with pavucontrol. Unfortunately, the knotify sounds are so short I cannot do the same for it.
philiplee
Registered Member
Posts
9
Karma
0
Aha! Finally tracked down the problem to pulseaudio's module-stream-restore, which is loaded by default at boot to preserve your stream preferences and volumes.

What happened was there used to be a 3rd device through which my sounds were playing. When I removed it, this module automatically reassigned knotify and amarok (and many others, I'm sure) to the Audiophile192 sink rather than the builtin card. After that, the module just kept using the Audiophile192, regardless of the KDE/Phonon preferences.

Since I did not find a single other instance of this happening, here is the fix: to reset the module-stream-restore, you must delete
Code: Select all
~/.pulse/*stream-volumes*
. After I did that, everything worked as expected, obeying my KDE/Phonon preferences.
philiplee
Registered Member
Posts
9
Karma
0

Re: KDE Reverts Soundcard Preference

Mon Jan 06, 2014 11:03 pm
By the way, the "Revert back to device..." button in the picture in the first post doesn't work.
User avatar
Mamarok
Manager
Posts
6071
Karma
16
OS

Re: KDE Reverts Soundcard Preference

Tue Jan 07, 2014 12:22 am
I think it works now, and that since quite a while. Your KDE is not the latest release, current is 4.12.x


Running Kubuntu 22.10 with Plasma 5.26.3, Frameworks 5.100.0, Qt 5.15.6, kernel 5.19.0-23 on Ryzen 5 4600H, AMD Renoir, X11
FWIW: it's always useful to state the exact Plasma version (+ distribution) when asking questions, makes it easier to help ...
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
In order for Pulseaudio to respect KDE preferences, the module "module-device-manager" must be loaded with the parameters "do_routing=1".


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
philiplee
Registered Member
Posts
9
Karma
0
bcooksley wrote:In order for Pulseaudio to respect KDE preferences, the module "module-device-manager" must be loaded with the parameters "do_routing=1".


Cool, thanks! On Debian wheezy, this module is not loaded by /etc/pulse/default.pa. I am updating to KDE 4.11 and Debian jessie shortly, and hopefully it's fixed there.


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Evergrowing, Google [Bot]