AMD GPU: Difference between revisions

imported>Thornycrackers
No edit summary
imported>Typetetris
Add workaround for kernel panics with dual monitors.
Line 67: Line 67:
more information can be found here https://nixos.org/manual/nixos/unstable/index.html#sec-gpu-accel-vulkan
more information can be found here https://nixos.org/manual/nixos/unstable/index.html#sec-gpu-accel-vulkan


== Problems ==
=== Dual Monitors ===
If you encounter problems having multiple monitors connected to your gpu, adding `video` parameters for each connector to the kernel command line sometimes helps.
For example:
<syntaxhighlight lang="nix">
boot.kernelParams = [
    "video=DP-1:2560x1440@144"
    "video=DP-2:2560x1440@144"
];
</syntaxhighlight>
Of course you have to adjust the connector names (like `DP-1`), the resolution and frame rate accordingly.
To figure out your connector names, use:
<syntaxhighlight lang="bash">
head /sys/class/drm/*/status
</syntaxhighlight>
with your monitors connected.
[[Category:Video]]
[[Category:Video]]