[pulseaudio-discuss] flushing dynamically loaded modules

Richard Bown richard at g8jvm.com
Sat Sep 22 11:03:21 PDT 2012


On Sat, 22 Sep 2012 19:33:16 +0200
Brendan Jones <brendan.jones.it at gmail.com> wrote:

> 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`;
> 
>

Thanks , nice and simply
I ended up with
mod=`pactl list short modules |grep 'module-jack-sink' |grep -v grep | awk
'{print $1}'`

sorry then end of that line wrapped, $mod is the module number
-- 
-- 
Best wishes / 73
Richard Bown

e-mail: richard at g8jvm.com  




 Mail now hosted by SimplyMailSolutions 
Please avoid using old e-mail address of richard.bown at blueyonder.co.uk

nil carborundum a illegitemis
##################################################################################
Ham Call G8JVM . OS Fedora FC17 x86_64 on a Dell Insiron N5030 laptop
Maidenhead QRA: IO82SP38, LAT. 52 39.720' N LONG. 2 28.171 W ( degs+mins )
QRV VHF 6mtrs 200W, 4 mtrs 150W, 2mtrs 350W, 70cms 200W
Microwave 23 cms 140W, 13 cms 100W, 6 cms 0W & 3cms 5W
################################################################################## 




More information about the pulseaudio-discuss mailing list