Linux: Razer Blade 15 2022 - QHD 240Hz - GeForce RTX 3060

Razer Blade 15 - QHD 240Hz - GeForce RTX 3060 - Black. Hardware Model: Razer Blade 15 _2022_ - RZ09-0421.

In summary everything works fine by default aside from the microphone and the left and right audio channels are swapped.

Also, I would love to have a chat with your with you have the same or similar laptop, please reach out to me on mohamed@bana.io.

# System Information

Result of sudo -E hw-probe -all -upload: https://linux-hardware.org/?probe=41d33a9029.

Distribution:

$ cat /etc/os-release
NAME="Fedora Linux"
VERSION="37 (Workstation Edition)"
ID=fedora
VERSION_ID=37
VERSION_CODENAME=""
PLATFORM_ID="platform:f37"
PRETTY_NAME="Fedora Linux 37 (Workstation Edition)"
ANSI_COLOR="0;38;2;60;110;180"
LOGO=fedora-logo-icon
CPE_NAME="cpe:/o:fedoraproject:fedora:37"
DEFAULT_HOSTNAME="fedora"
HOME_URL="https://fedoraproject.org/"
DOCUMENTATION_URL="https://docs.fedoraproject.org/en-US/fedora/f37/system-administrators-guide/"
SUPPORT_URL="https://ask.fedoraproject.org/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Fedora"
REDHAT_BUGZILLA_PRODUCT_VERSION=37
REDHAT_SUPPORT_PRODUCT="Fedora"
REDHAT_SUPPORT_PRODUCT_VERSION=37
SUPPORT_END=2023-11-14
VARIANT="Workstation Edition"
VARIANT_ID=workstation
$ uname -a
Linux mbana-laptop-1 6.1.7-200.fc37.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jan 18 17:11:49 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25

# Fixing The Microphone

By default the built-in microphone does not work. Thanks to [1] and [2] we have a solution.

First find out what packages provides the topology file shipped by the distribution so we can reinstall it if something goes wrong:

$ rpm -q --whatprovides /lib/firmware/intel/sof-tplg/sof-hda-generic-2ch.tplg.xz
alsa-sof-firmware-2.2.4-2.fc37.noarch
1
2

Get the topology file with the microphone fix:

# Download topology file with the fix
mkdir -pv /tmp/alsa-sof-firmware
cd /tmp/alsa-sof-firmware
curl -L --output ./sof-hda-generic-2ch-pdm1.zip "https://github.com/thesofproject/linux/files/5981682/sof-hda-generic-2ch-pdm1.zip"
unzip ./sof-hda-generic-2ch-pdm1.zip -d .
rm ./sof-hda-generic-2ch-pdm1.zip
# Make `sof-hda-generic-2ch.tplg.xz`
mv -v sof-hda-generic-2ch-pdm1.tplg sof-hda-generic-2ch.tplg
xz -C crc32 sof-hda-generic-2ch.tplg
# Copy new topology file over and then reboot
sudo cp -v ./sof-hda-generic-2ch.tplg.xz /lib/firmware/intel/sof-tplg/sof-hda-generic-2ch.tplg.xz
sudo chmod o+r,g+r /lib/firmware/intel/sof-tplg/sof-hda-generic-2ch.tplg.xz
sudo systemctl reboot
1
2
3
4
5
6
7
8
9
10
11
12
13

If it doesn't work, restore the version that came with the distribution and buy and pair of headphones:

sudo dnf reinstall alsa-sof-firmware
1

# Suspend

See [3]:

sudo grubby --update-kernel=ALL --args="mem_sleep_default=deep"
1

You may also need:

sudo grubby --update-kernel=ALL --args="nvme.noacpi=1"
1

# Nvidia TODO

As root run:

cat <<EOF > /etc/X11/xorg.conf.d/nvidia.conf
#This file is provided by xorg-x11-drv-nvidia
#Do not edit

Section "OutputClass"
	Identifier "nvidia"
	MatchDriver "nvidia-drm"
	Driver "nvidia"
	Option "AllowEmptyInitialConfiguration"
	Option "SLI" "Auto"
	Option "BaseMosaic" "on"
	Option "PrimaryGPU" "yes"
EndSection

Section "ServerLayout"
	Identifier "layout"
	Option "AllowNVIDIAGPUScreens"
EndSection
EOF

## Additional Linux Configuration

My `/proc/cmdline` looks like:

```sh
$ cat /proc/cmdline
BOOT_IMAGE=(hd1,gpt2)/vmlinuz-6.1.7-200.fc37.x86_64 root=UUID=97f80d77-33fe-40c5-88db-3ace7c5f10f4 ro rootflags=subvol=root00 sysrq_always_enabled=1 rd.driver.blacklist=nouveau nouveau.modeset=0 nvidia-drm.modeset=1 initcall_blacklist=simpledrm_platform_driver_init rd.plymouth=0 plymouth.enable=0 rd.luks=0 rd.lvm=0 rd.md=0 rd.dm=0 verbose i915.enable_fbc=0 i915.enable_dc=0 i915.enable_psr=0 i915.disable_power_well=1 i915.enable_guc=3 i915.fastboot=1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27

# References

Last Updated: 2/11/2023, 12:17:55 AM