use amdgpu driver

This commit is contained in:
Daniel Langbein 2024-02-06 22:59:26 +01:00
parent c9f84afd83
commit 700b9e409c
Signed by: langfingaz
GPG Key ID: 6C47C753F0823002
2 changed files with 6 additions and 4 deletions

View File

@ -676,7 +676,7 @@ Usually most of this should work out of the box on NixOS.
Vulkan: Vulkan:
- Verification: - Verification:
- If `vulkaninfo` returns information about your GPU, Vulkan is working. https://wiki.archlinux.org/title/Vulkan#Verification - If `vulkaninfo` returns information about your GPU, Vulkan is working. https://wiki.archlinux.org/title/Vulkan#Verification
- If running `vkcube` (X11) or `vkcube-wayland` (Wayland) views a spinning 3D cube - Run `vkcube` (X11) or `vkcube-wayland` (Wayland). It should view a spinning 3D cube and output e.g. `Selected GPU 0: AMD Radeon Graphics (RADV RENOIR)`
OpenGL: OpenGL:
- Verification: https://wiki.archlinux.org/title/OpenGL#Verification - Verification: https://wiki.archlinux.org/title/OpenGL#Verification

View File

@ -48,11 +48,13 @@
# BIOS # BIOS
boot.loader.grub.devices = ["/dev/disk/by-id/ata-Samsung_SSD_840_EVO_250GB_S1DBNSAF715594P"]; boot.loader.grub.devices = ["/dev/disk/by-id/ata-Samsung_SSD_840_EVO_250GB_S1DBNSAF715594P"];
# Disable onboard Intel GPU # Disable `i915` (onboard Intel GPU).
# https://github.com/NixOS/nixos-hardware/blob/master/common/gpu/intel/disable.nix # https://github.com/NixOS/nixos-hardware/blob/master/common/gpu/intel/disable.nix
# https://discourse.nixos.org/t/fully-disabling-the-nvidia-dgpu-on-an-optimus-laptop/29686/6?u=langfingaz # https://discourse.nixos.org/t/fully-disabling-the-nvidia-dgpu-on-an-optimus-laptop/29686/6
# Disable `radeon` so that `amdgpu` is used instead.
# https://nixos.wiki/wiki/AMD_GPU#Enable_Southern_Islands_.28SI.29_and_Sea_Islands_.28CIK.29_support
boot.blacklistedKernelModules = [ "i915" ]; boot.blacklistedKernelModules = [ "i915" ];
boot.kernelParams = [ "i915.modeset=0" ]; boot.kernelParams = [ "i915.modeset=0" "radeon.si_support=0" "amdgpu.si_support=1" ];
# List all available kernel versions: # List all available kernel versions: