Out of the box Linux install only 2 out of 4 speakers are working on the Matebook X Pro.
Here is a step-by-step guide to fix this issue and enabling all 4 speakers to work properly under Linux.
-
Install needed packages
$ sudo pacman -S alsa-utils pulseaudio pulseaudio-alsa alsa-tools pavucontrol pulsemixer
-
Use
hdajackretask
as root to apply to correct config$ sudo hdajackretask
-
Select
Realtek ALC256
codec on the top. -
Check the
Show unconnected pins
andAdvanced overrides
options on right. -
Apply the following configuration for
PIN ID: 0x14
-
Apply the following configuration for
PIN ID: 0x1b
-
Select Install boot override on the bottom right.
-
(Optional) If you have full disk encryption you need to edit your
/etc/mkiniticpio.conf
with:FILES=(/usr/lib/firmware/hda-jack-retask.fw)
-
(Optional) Then recreate your initramfs:
sudo mkinitcpio -P
-
Reboot
-
Open
pavucontrol
, navigate toConfiguration
and underProfile
dropdown, selectAnalog Surround 4.0 Output
.Or to achieve the same in terminal :
pactl set-card-profile 0 output:analog-surround-40