You are not logged in.

#1 2024-10-10 10:17:12

DeinAlptraum
Member
Registered: 2022-01-21
Posts: 14

[SOLVED] Audio input device priority frequently resets

Original problem: when I plug my headset into my laptop, the input device doesn't change automatically to the headset mic.
Checking

pactl list sources

showed higher priority for the internal mic than for the headset mic. I increased the priority in

/usr/share/alsa-card-profile/mixer/paths/analog-input-headset-mic.conf

, which fixed the problem.
My issue now is that this prioriry resets back to the original value every couple weeks. I haven't been able to identify what causes this, it is definitely not on every reboot.

This is on Arch+KDE with pipewire and wireplumber.
Can someone help with this?

Last edited by DeinAlptraum (2024-10-10 10:39:43)

Offline

#2 2024-10-10 10:28:37

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 24,094

Re: [SOLVED] Audio input device priority frequently resets

The file is part of the alsa-card-profiles package and is hence replaced every time said package updates.

The "canonical" way of doing this is making a copy of the file you want to manipulate, making your changes there and then making a new profile under /usr/share/alsa-card-profile/profiles/ referencing the new path configuration and creating an udev rule bending the profile loading logic for your device in question.

The "easier" way of doing this is adding the file to

NoUpgrade = usr/share/alsa-card-profile/mixer/paths/analog-input-headset-mic.conf

in your /etc/pacman.conf and then occasionally checking the resulting .pacnews on whether anything of notable relevance changed that needs to be merged.

Last edited by V1del (2024-10-10 10:32:18)

Offline

#3 2024-10-10 10:39:19

DeinAlptraum
Member
Registered: 2022-01-21
Posts: 14

Re: [SOLVED] Audio input device priority frequently resets

Thanks so much! That's great

Offline

Board footer

Powered by FluxBB