Laptop: Difference between revisions

imported>AmnesiaAmesia
m Added section about thermald
imported>AmnesiaAmesia
Added section about nvidia and gpus
Line 49: Line 49:
==== Powertop ====
==== Powertop ====
Powertop is a power analysis tool, but it also has a feature referred to as auto-tune which will enable power saving settings on your device. These power saving settings should be almost the same as those enabled by tlp, although you powertop enables usb autosuspend per default. This can make your input devices such as the keyboard unresponsive for some time when it has been suspended. To enable powetop write  <code>powerManagement.powertop.enable = true;</code> and it should be noted that this also enables the auto-tune feature of powertop.
Powertop is a power analysis tool, but it also has a feature referred to as auto-tune which will enable power saving settings on your device. These power saving settings should be almost the same as those enabled by tlp, although you powertop enables usb autosuspend per default. This can make your input devices such as the keyboard unresponsive for some time when it has been suspended. To enable powetop write  <code>powerManagement.powertop.enable = true;</code> and it should be noted that this also enables the auto-tune feature of powertop.
== Hardware support ==
=== Hybdrid graphics ===
Many laptops have both a dedicated and a discrete GPU. To use your laptop effictively you have to manage both GPU's. For guidance on how to configure the GPU's please refer to the dedicated wiki-pages for your configuration. If you want to have the option to run your laptop with and without the discrete GPU to save power you can either disable it in the bios (if possible) or you can use NIx's feature to define specilisations. Using specilisations will give you two boot entries on each rebuild of your system.
Example of a nvidia specilisation:
<syntaxHighlight lang=nix>
specialisation = {
  nvidia.configuration = {
    # Nvidia Configuration
    services.xserver.videoDrivers = [ "nvidia" ];
    hardware.opengl.enable = true;
 
    # Optionally, you may need to select the appropriate driver version for your specific GPU.
    hardware.nvidia.package = config.boot.kernelPackages.nvidiaPackages.stable;
 
    # nvidia-drm.modeset=1 is required for some wayland compositors, e.g. sway
    hardware.nvidia.modesetting.enable = true;
 
    hardware.nvidia.prime = {
      sync.enable = true;
 
      # Bus ID of the NVIDIA GPU. You can find it using lspci, either under 3D or VGA
      nvidiaBusId = "PCI:1:0:0";
 
      # Bus ID of the Intel GPU. You can find it using lspci, either under 3D or VGA
      intelBusId = "PCI:0:2:0";
    };
  };
};
</syntaxHighlight>


== Troubleshooting ==
== Troubleshooting ==