Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
tips:gpu [2016/11/22 22:31] – [Prereq] scipio | tips:gpu [2022/11/04 08:13] (current) – [nvidia and wayland] sscipioni | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== GPU ====== | ====== GPU ====== | ||
- | * [[https:// | + | ===== nvidia and wayland ===== |
+ | add **nvidia_drm.modeset=1** to grub settings /// | ||
- | ===== Prereq ===== | + | / |
+ | < | ||
+ | options nvidia NVreg_PreserveVideoMemoryAllocations=1 NVreg_TemporaryFilePath=/var/tmp | ||
+ | </ | ||
- | * Install ovfm | + | enable these services |
+ | < | ||
+ | systemctl enable nvidia-hibernate | ||
+ | systemctl enable nvidia-resume | ||
+ | systemctl enable nvidia-suspend | ||
- | Edit / | ||
- | |||
- | Uncomment: | ||
- | |||
- | nvram = [ "/ | ||
- | ] | ||
- | |||
- | * https:// | ||
- | |||
- | |||
- | <file txt / | ||
- | vfio | ||
- | vfio_iommu_type1 | ||
- | vfio_pci | ||
- | vfio_virqfd | ||
- | </ | ||
- | |||
- | <code bash> | ||
- | update-initramfs -u | ||
</ | </ | ||
- | Create VM and customize configuration before start: | ||
- | * In the " | ||
- | * In the " | ||
- | |||
- | < | ||
- | <domain type=' | ||
- | ... | ||
- | |||
- | |||
- | < | ||
- | < | ||
- | ... | ||
- | < | ||
- | ... | ||
- | </ | ||
- | ... | ||
- | < | ||
- | <hidden state=' | ||
- | </ | ||
- | </ | ||
- | |||
- | <hostdev mode=' | ||
- | < | ||
- | <address domain=' | ||
- | </ | ||
- | <rom file='/ | ||
- | <address type=' | ||
- | </ | ||
- | <hostdev mode=' | ||
- | < | ||
- | <address domain=' | ||
- | </ | ||
- | <address type=' | ||
- | </ | ||
- | |||
- | ... | ||
- | < | ||
- | < | ||
- | < | ||
- | </ | ||
- | </ | ||
- | |||
- | |||
- | |||
- | </ |