| 8 Nov 2025 |
jon | It would be nice if it was declarative | 17:35:45 |
@bandithedoge:matrix.org | you can make this permanent in wireplumber | 17:36:51 |
@bandithedoge:matrix.org | here's how i do it: https://codeberg.org/bandithedoge/dotfiles/src/branch/main/hosts/machine/default.nix#L206-L220 | 17:37:00 |
backtail | Oh wow, thanks! :D | 18:17:01 |
null | Not setting things manually is the whole reason to nix | 18:32:37 |
backtail | It actually ended up not working. It still doesn't get automatically set to Pro Audio | 19:39:02 |
@bandithedoge:matrix.org | are you sure you set the right matching rule for your device? | 19:48:43 |
backtail | Ah, I thought this applies to all USB audio devices that might have a pro audio config | 20:14:45 |
backtail | Yeah, gotta look into that then | 20:14:56 |
| 9 Nov 2025 |
backtail | hm, form some reason I am completely unable to get this working. My wireplumber config is so simple, basically cannot fail, right?
wireplumber.extraConfig = {
"52-roland-tr8-pro-audio"."monitor.alsa.rules" = [
{
matches = [
{ "device.name" = "*TR-8*"; }
];
actions.update-props = {
"device.profile" = "pro-audio";
};
}
];
};
| 21:30:33 |
backtail | wireplumber is also explicity enabled | 21:31:08 |
@bandithedoge:matrix.org | try "~*TR-8*" | 21:34:07 |
@bandithedoge:matrix.org | ~ means regex | 21:34:22 |
@bandithedoge:matrix.org | or better yet, match the entire device.name if possible | 21:34:32 |
backtail | pw-cli tells me that the device name is: device.name = "alsa_card.usb-Roland_TR-8-01" | 21:35:29 |
backtail | aaaag | 21:35:36 |
backtail | ah* | 21:35:40 |
backtail | that makes so much sense | 21:35:51 |
@bandithedoge:matrix.org | wait, device.name? | 21:36:07 |
@bandithedoge:matrix.org | oh you meant node.name | 21:36:25 |
@bandithedoge:matrix.org | but yeah it's probably better to match the entire string instead of regex | 21:36:48 |
backtail | At the end of that device.name is the trailing "-01", so I guess I should probably use regex because that might change if add more stuff | 21:37:42 |
@bandithedoge:matrix.org | you can match a different property | 21:38:00 |
@bandithedoge:matrix.org | like alsa.id | 21:38:13 |
backtail | How do I find that? | 21:38:57 |
@bandithedoge:matrix.org | wpctl inspect | 21:39:05 |
@bandithedoge:matrix.org | you can get your device's id from wpctl status | 21:39:22 |
backtail | alsa.id is "USB Audio", interesting | 21:42:07 |
backtail | the same as in your config that didn't work for me | 21:42:31 |
@bandithedoge:matrix.org | yeah, i guess matching that is enough if you don't juggle between usb audio interfaces | 21:42:46 |