mirror of
https://codeberg.org/privacy1st/nix-git
synced 2024-11-21 22:03:19 +01:00
disable intel gup
This commit is contained in:
parent
4b43f3e98b
commit
c9f84afd83
5
NixOS.md
5
NixOS.md
@ -692,9 +692,14 @@ Video acceleration:
|
|||||||
- Video Decode and Presentation API for Unix (VDPAU).
|
- Video Decode and Presentation API for Unix (VDPAU).
|
||||||
- Verifying: `vdpauinfo`. https://wiki.archlinux.org/title/Hardware_video_acceleration#Verifying_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:
|
Verification in general:
|
||||||
- Encode a video or play a game and watch AMD GPU usage with `radeontop`.
|
- 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)
|
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
|
## Additional resources
|
||||||
|
@ -48,6 +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
|
||||||
|
# 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:
|
# List all available kernel versions:
|
||||||
# `nix repl` -> `:l <nixpkgs>` -> `pkgs.linuxPackages` and press `TAB`
|
# `nix repl` -> `:l <nixpkgs>` -> `pkgs.linuxPackages` and press `TAB`
|
||||||
# Default.
|
# Default.
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
{ config, pkgs, ... }:
|
{ config, pkgs, ... }:
|
||||||
{
|
{
|
||||||
|
# https://wiki.archlinux.org/title/steam#See_also
|
||||||
|
|
||||||
# flatpak install com.valvesoftware.Steam
|
# flatpak install com.valvesoftware.Steam
|
||||||
|
|
||||||
# Launching Steam with Flatpak might warn you about installing the steam-devices package to add support for some gamepads.
|
# Launching Steam with Flatpak might warn you about installing the steam-devices package to add support for some gamepads.
|
||||||
|
Loading…
Reference in New Issue
Block a user