You are not logged in.
In order to remove unused devices from the list of sound devices in Gnome, I have the following in ~/.config/wireplumber/main.lua.d/51-alsa-disable.lua:
rules = {
matches = {
{
{"device.name", "equals", "alsa_card.pci-0000_08_00.1"}
},
},
apply_properties = {
["device.disabled"] = true,
},
}
table.insert(alsa_monitor.rules, rule)The name is what is shown in the outputs from
wpctl statusand
wpctl inspect Xfor the relevant device.
My problem is, that this script seems to be ignored completely. The device outputs are still part of the device list and are selectable in Gnome. I also tried putting it in /etc/wireplumber/main.lua.d/, but the results were the same.
I tried to see if there were any issues with the script, but neither the output of
systemctl --user status wireplumbernor any entry in journalctl show anything that would lead to a possible cause.
Is there something I'm missing?
EDIT:
In the meantime, I've found at least this, indicating that my script is indeed loaded:
I 14:10:27.335728 m-lua-scripting ../wireplumber/modules/module-lua-scripting/api/config.c:104:load_file: loading config file: /home/si/.config/wireplumber/main.lua.d/51-alsa-disable.luaBut still, the device doesn't show up as disabled neither in wpctl, nor in the Gnome settings.
EDIT:
Typo in line 1. It should have said "rule", not "rules".
Last edited by Tabascl (2022-10-14 15:34:40)
Offline