[pulseaudio-discuss] flushing dynamically loaded modules

Brendan Jones brendan.jones.it at gmail.com
Sat Sep 22 10:33:16 PDT 2012


On 09/20/2012 07:35 PM, Tanu Kaskinen wrote:
> On Thu, 2012-09-20 at 18:10 +0100, Richard Bown wrote:
>> Hi ,
>> sorry for the newbie type questions.
>> I've looked in the FAQs, and probably missed the answer.
>> If I load a module from CLI  with pactl or with paprefs
>> is there a CLI command to flush the loaded modules.????
>>
>> I haven't found the config file which is created and added to by paprefs, or
>> from pactl, its location would help please.
>
> The papref settings are stored in gconf. But since you can undo anything
> that you do with papref with papref, papref isn't really a problem here.
>
>> I've tried using unload-module, but that requires an index to function.
>
> How is that a problem? I mean, I know that it's a bit cumbersome to dig
> out the indexes with "pactl list modules" (the next pulseaudio release
> will support giving module name instead of index, yay!), but from your
> description I don't get why requiring an index would prevent you from
> unloading the modules.
>
>> The modules in question are module-jack-sink and module-jack-source, and
>> pulseaudio wont start if they are loaded and jackd is not running.
>>
>> Rebooting clears them, so the modified config must be in a tmp file somewhere.
>
> How do you load the jack modules? There's certainly no tmp file storing
> the jack module configuration, so if you have loaded them just with
> pactl, restarting pulseaudio will clear the configuration.
>
A simple way to get the index:

pactl load-module module-jack-sink  > ~/.pulse/jack-sink;
pactl load-module module-jack-source > ~/.pulse/jack-source;

and unload:

pactl unload-module `cat ~/.pulse/jack-sink`;
pactl unload-module `cat ~/.pulse/jack-source`;



More information about the pulseaudio-discuss mailing list