Clone this git repository to your home directory:
cd
git clone https://github.com/mahboobkarimian/mbp-2019-Ubuntu-audio.git
cd into it:
cd mbp-2019-Ubuntu-audio
then just run:
bash install.sh
Note that you will prompt for root password in order to run installer as some files go to /usr/...
DO NOT USE sudo bash install
. The script will invokes for root access whenever needed.
This will help you to always maintain the volume of the built-in mic at 400%. Basically it will set back it to 400% if something resets it to 100%. By this, you can hold your online events, calls, mettings without having low mic volume in the middle of the event.
bash install_mic_vol_service.sh
The files go to:
/usr/share/alsa/cards/AppleT2.conf
/usr/share/pulseaudio/alsa-mixer/profile-sets/apple-t2.conf
/usr/lib/udev/rules.d/91-pulseaudio-custom.rules
$HOME/.config/pulse/default.pa
$HOME/.config/pulse/daemon.conf
and then: systemctl --user restart pulseaudio.service
or restart.
https://gist.github.com/kevineinarsson/8e5e92664f97508277fefef1b8015fba