disable intel gup

This commit is contained in:
Daniel Langbein 2024-02-06 22:00:01 +01:00
parent 4b43f3e98b
commit c9f84afd83
Signed by: langfingaz
GPG Key ID: 6C47C753F0823002
3 changed files with 14 additions and 0 deletions

View File

@ -692,9 +692,14 @@ Video acceleration:
- Video Decode and Presentation API for Unix (VDPAU).
- Verifying: `vdpauinfo`. https://wiki.archlinux.org/title/Hardware_video_acceleration#Verifying_VDPAU
Verify video driver in use:
- `lspci -k | grep -EA3 'VGA|3D|Display'`. Example: `Kernel driver in use: amdgpu`
Verification in general:
- Encode a video or play a game and watch AMD GPU usage with `radeontop`.
Configuration example to disable integrated GUP: See [./hosts/yodaGaming/configuration.nix](./hosts/yodaGaming/configuration.nix)
Configuration example for an AMD GPU (https://github.com/tolgaerok/nixos-kde/blob/main/core/gpu/amd/default.nix): See [./modules/gpu-amd.nix](./modules/gpu-amd.nix)
## Additional resources

View File

@ -48,6 +48,13 @@
# BIOS
boot.loader.grub.devices = ["/dev/disk/by-id/ata-Samsung_SSD_840_EVO_250GB_S1DBNSAF715594P"];
# Disable onboard Intel GPU
# 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
boot.blacklistedKernelModules = [ "i915" ];
boot.kernelParams = [ "i915.modeset=0" ];
# List all available kernel versions:
# `nix repl` -> `:l <nixpkgs>` -> `pkgs.linuxPackages` and press `TAB`
# Default.

View File

@ -1,5 +1,7 @@
{ config, pkgs, ... }:
{
# https://wiki.archlinux.org/title/steam#See_also
# flatpak install com.valvesoftware.Steam
# Launching Steam with Flatpak might warn you about installing the steam-devices package to add support for some gamepads.