While following instructions, I loaded a module which creates an input device “Monitor of Null Output” and an output device “Null Output” using this command:
pactl load-module module-null-sink sink_name=rmd
This is not what I wanted. How do I remove these two devices?
pactl list shows:
Sink #2
State: IDLE
Name: rmd
Description: Null Output
Driver: module-null-sink.c
Sample Specification: s16le 2ch 48000Hz
Channel Map: front-left,front-right
Owner Module: 24
Mute: no
Volume: front-left: 65536 / 100% / 0.00 dB, front-right: 65536 / 100% / 0.00 dB
balance 0.00
Base Volume: 65536 / 100% / 0.00 dB
Monitor Source: rmd.monitor
Latency: 1569 usec, configured 40000 usec
Flags: DECIBEL_VOLUME LATENCY
Properties:
device.description = "Null Output"
device.class = "abstract"
device.icon_name = "audio-card"
Formats:
pcm
I tried
pactl unload-module rmd pactl unload-module sink_name=rmd pactl unload-module "Null Output"
all of which respond with:
Failed to unload module: Module Null Output not loaded
etc.
I can run pactl unload-module module-null-sink but this removes all devices loaded with that module. How do I remove the device or unload the module which created the device specified above?
Answers:
Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.
Method 1
pactl unload-module gives a hint:
You have to specify a module index or name
as does the manpage:
unload-module ID|NAME
Unload the module instance identified by the specified numeric
index or unload all modules by the specified name.
The ID is shown in this line (pactl list):
Owner Module: 24
Just run
pactl unload-module 24
to remove the respective devices.
All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0