Skip to content

Instantly share code, notes, and snippets.

@saivert
Created February 21, 2021 19:53
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save saivert/c905002d949fe67aa9ee75b8f9331de2 to your computer and use it in GitHub Desktop.
Save saivert/c905002d949fe67aa9ee75b8f9331de2 to your computer and use it in GitHub Desktop.

Overly long sound card descriptions is a problem and they sometimes cause problems for some GUIs as pavucontrol where you need to make the window very wide in order to accommodate the strings. With pulseaudio you can rename them directly in pavucontrol by right-clicking the Port dropdown as long as you have the module-device-manager pulseaudio module loaded. Here is how to do the same in pipewire:

Add something like the following to your `/etc/pipewire/media-session.d/alsa-monitor.conf/ file:

    {
        matches = [
            {
                node.name = "alsa_output.pci-0000_02_02.0.analog-stereo"
            }
            {
                node.name = "alsa_output.pci-0000_02_02.0.pro-output-0"
            }
        ]
        actions = {
            update-props = {
                node.nick = "Onboard audio"
                node.description = "Onboard audio output"
            }
        }
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment