From da631b60f2b520fed33534edec799d489f7b6170 Mon Sep 17 00:00:00 2001 From: Jade Humpherys Date: Tue, 7 Nov 2023 13:24:47 -0600 Subject: [PATCH 01/18] add link to pacman hook to keep mkinitcpio configured correctly --- pages/Nvidia/_index.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pages/Nvidia/_index.md b/pages/Nvidia/_index.md index 0bbf6763..c4daed1b 100644 --- a/pages/Nvidia/_index.md +++ b/pages/Nvidia/_index.md @@ -33,6 +33,8 @@ in `/etc/mkinitcpio.conf` add `nvidia nvidia_modeset nvidia_uvm nvidia_drm` to y run `# mkinitcpio --config /etc/mkinitcpio.conf --generate /boot/initramfs-custom.img` (make sure you have the `linux-headers` package installed first) +add the [pacman_hook](https://wiki.archlinux.org/title/NVIDIA#pacman_hook) to ensure mkinitcpio is regenerated when nvidia drivers are updated (arch only) + add a new line to `/etc/modprobe.d/nvidia.conf` (make it if it does not exist) and add the line `options nvidia-drm modeset=1` More information is available here: From c4cf625b2dc27491e61283e819707df6ce6d8979 Mon Sep 17 00:00:00 2001 From: Jade Humpherys Date: Tue, 7 Nov 2023 14:14:37 -0600 Subject: [PATCH 02/18] Add steps to set WLR_DRM_DEVICES environment variable --- pages/Nvidia/_index.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/pages/Nvidia/_index.md b/pages/Nvidia/_index.md index c4daed1b..0802db89 100644 --- a/pages/Nvidia/_index.md +++ b/pages/Nvidia/_index.md @@ -63,6 +63,34 @@ env = WLR_NO_HARDWARE_CURSORS,1 {{< hint >}}If you face problems with Discord windows not displaying or screen sharing not working in Zoom, remove or comment the line `env = __GLX_VENDOR_LIBRARY_NAME,nvidia`. {{< /hint >}} +Run `lspci | grep VGA`. +The returned line will start with some digits in the form `00:00.0`. +Run `ls -l /dev/dri/by-path`. +You should see at least one file with a filename like `pci-0000:00:00.0-card`. +The one matching the earlier pci entry should be a symbolic link to `card0`, `card1` or `card2`. +Set the environment variable `WLR_DRM_DEVICES` to that filepath. + +For example, if I run `lspci | grep VGA` and get + +```shell +01:00.0 VGA compatible controller: NVIDIA Corporation GM107 [GeForce GTX 750 Ti] (rev a2) +``` + +and when I run `ls -l /dev/dri/by-path` I see + +```ls +lrwxrwxrwx 1 root root 8 Nov 7 07:02 pci-0000:01:00.0-card -> ../card0 +lrwxrwxrwx 1 root root 13 Nov 7 07:02 pci-0000:01:00.0-render -> ../renderD128 +``` + +I would add + +```sh +env = WLR_DRM_DEVICES,/dev/dri/card0 +``` + +to my hyprland config. + Install `qt5-wayland`, `qt5ct` and `libva`. Additionally `libva-nvidia-driver-git` (AUR) to fix crashes in some Electron-based applications, such as Unity Hub. From cb8c839847dd3863c1f8ef2227acc552f5c6aeed Mon Sep 17 00:00:00 2001 From: Jade Humpherys Date: Tue, 7 Nov 2023 14:59:59 -0600 Subject: [PATCH 03/18] Add message about GBM_BACKEND possibly causing issues --- pages/Nvidia/_index.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pages/Nvidia/_index.md b/pages/Nvidia/_index.md index 0802db89..c9933a9b 100644 --- a/pages/Nvidia/_index.md +++ b/pages/Nvidia/_index.md @@ -1,6 +1,6 @@ # Foreword -There is no _official_ Hyprland support for Nvidia hardware. However, you might make it work properly following this page. +There is no _official_ Hyprland support for Nvidia hardware. However, you might make it work properly following this page. You can choose between the proprietary [Nvidia drivers](https://wiki.archlinux.org/title/NVIDIA) or the open source [Nouveau driver](https://wiki.archlinux.org/title/Nouveau). Under the proprietary Nvidia drivers category, there are 3 of them: the current driver named 'nvidia' (or 'nvidia-dkms' to use with custom linux kernels) which is under active development, the legacy drivers 'nvidia-3xxxx' for older cards which Nvidia no longer actively supports, and the 'nvidia-open' driver which is currently an alpha stage attempt to open source a part of their close source driver for newer cards. @@ -24,7 +24,7 @@ If you have any concerns (updates, broken pkgbuild, etc), you should contact the ## How to get Hyprland to possibly work on Nvidia -Install the `nvidia-dkms` driver and add it to your initramfs & kernel parameters. +Install the `nvidia-dkms` driver and add it to your initramfs & kernel parameters. For people using [systemd-boot](https://wiki.archlinux.org/title/systemd-boot) you can do this adding `nvidia_drm.modeset=1` to the end of `/boot/loader/entries/arch.conf`. For people using [grub](https://wiki.archlinux.org/title/GRUB) you can do this by adding `nvidia_drm.modeset=1` to the end of `GRUB_CMDLINE_LINUX_DEFAULT=` in `/etc/default/grub`, then run `# grub-mkconfig -o /boot/grub/grub.cfg` For others check out [kernel parameters](https://wiki.archlinux.org/title/Kernel_parameters) and how to add `nvidia_drm.modeset=1` to your specific bootloader. @@ -57,7 +57,7 @@ env = __GLX_VENDOR_LIBRARY_NAME,nvidia env = WLR_NO_HARDWARE_CURSORS,1 ``` -{{< hint >}}If you encounter crashes in Firefox, remove the line `env = GBM_BACKEND,nvidia-drm`. +{{< hint >}}If hyprland crashes on start or you encounter crashes in Firefox, you may want to try removing the line `env = GBM_BACKEND,nvidia-drm`. {{< /hint >}} {{< hint >}}If you face problems with Discord windows not displaying or screen sharing not working in Zoom, remove or comment the line `env = __GLX_VENDOR_LIBRARY_NAME,nvidia`. @@ -152,6 +152,6 @@ boot.kernelParams = [ "nvidia.NVreg_PreserveVideoMemoryAllocations=1" ]; hardware.nvidia.powerManagement.enabled = true # Making sure to use the proprietary drivers until the issue above is fixed upstream -hardware.nvidia.open = false +hardware.nvidia.open = false ``` From 730d5e19dc8adbb06f536b8905744fc08559bccf Mon Sep 17 00:00:00 2001 From: Jade Humpherys Date: Tue, 7 Nov 2023 15:10:39 -0600 Subject: [PATCH 04/18] Clean up some of the formatting to make the sections make more sense and not have an unecessary top-level heading. Also clean the end of the first section to be a single line that flows better with the new sections --- pages/Nvidia/_index.md | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/pages/Nvidia/_index.md b/pages/Nvidia/_index.md index c9933a9b..46554a04 100644 --- a/pages/Nvidia/_index.md +++ b/pages/Nvidia/_index.md @@ -1,7 +1,6 @@ -# Foreword - There is no _official_ Hyprland support for Nvidia hardware. However, you might make it work properly following this page. +## Drivers You can choose between the proprietary [Nvidia drivers](https://wiki.archlinux.org/title/NVIDIA) or the open source [Nouveau driver](https://wiki.archlinux.org/title/Nouveau). Under the proprietary Nvidia drivers category, there are 3 of them: the current driver named 'nvidia' (or 'nvidia-dkms' to use with custom linux kernels) which is under active development, the legacy drivers 'nvidia-3xxxx' for older cards which Nvidia no longer actively supports, and the 'nvidia-open' driver which is currently an alpha stage attempt to open source a part of their close source driver for newer cards. You may want to use the proprietary Nvidia drivers in some cases, for example: if you have a new Nvidia GPU model, if you want more performance, if you want to play video games, if you need a wider feature set (for example, better power consumption on recent GPUs), etc. However, keep in mind that if the proprietary Nvidia drivers do not work properly on your computer, the Nouveau driver might work fine while not having as much features or performance. For [older cards](https://wiki.archlinux.org/title/NVIDIA#Unsupported_drivers), in order to use Hyprland, you will probably need to use the Nouveau driver which actively supports them. @@ -22,8 +21,7 @@ If you have any concerns (updates, broken pkgbuild, etc), you should contact the `nvidia-dkms` is still **required** to run this patch, Install the `nvidia-dkms` driver and add it to your initramfs & kernel parameters before running. You should still however read the content below to make sure the patch is properly working and to avoid any bugs/crashes. {{< /hint >}} -## How to get Hyprland to possibly work on Nvidia - +## Kernel Parameters Install the `nvidia-dkms` driver and add it to your initramfs & kernel parameters. For people using [systemd-boot](https://wiki.archlinux.org/title/systemd-boot) you can do this adding `nvidia_drm.modeset=1` to the end of `/boot/loader/entries/arch.conf`. For people using [grub](https://wiki.archlinux.org/title/GRUB) you can do this by adding `nvidia_drm.modeset=1` to the end of `GRUB_CMDLINE_LINUX_DEFAULT=` in `/etc/default/grub`, then run `# grub-mkconfig -o /boot/grub/grub.cfg` @@ -47,6 +45,7 @@ use that one instead. Note that on a laptop, it could cause problems with the su {{< hint >}}To get multi monitor to work properly on a hybrid graphics device (a laptop with both an Intel and an Nvidia GPU), you will need to remove the `optimus-manager` package if installed (disabling the service does not work). You also need to change your BIOS settings from hybrid graphics to discrete graphics. {{< /hint >}} +## Environment Export these variables in your hyprland config: ```sh @@ -91,15 +90,13 @@ env = WLR_DRM_DEVICES,/dev/dri/card0 to my hyprland config. +## Additional packages Install `qt5-wayland`, `qt5ct` and `libva`. Additionally `libva-nvidia-driver-git` (AUR) to fix crashes in some Electron-based applications, such as Unity Hub. -Reboot your computer - -Launch Hyprland. -It _should_ work now. +After completing all of the above Hyprland should _at least_ be able to boot. ## Fixing screensharing / screenshots Apply nvidia patches to the wlroots in `subprojects/wlroots` before building. From 7836a4045e76930d6aecc1a8fa7ad15c5f5ababb Mon Sep 17 00:00:00 2001 From: Jade Humpherys Date: Tue, 7 Nov 2023 15:52:15 -0600 Subject: [PATCH 05/18] remove random underscore --- pages/Nvidia/_index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/Nvidia/_index.md b/pages/Nvidia/_index.md index 46554a04..857a6695 100644 --- a/pages/Nvidia/_index.md +++ b/pages/Nvidia/_index.md @@ -31,7 +31,7 @@ in `/etc/mkinitcpio.conf` add `nvidia nvidia_modeset nvidia_uvm nvidia_drm` to y run `# mkinitcpio --config /etc/mkinitcpio.conf --generate /boot/initramfs-custom.img` (make sure you have the `linux-headers` package installed first) -add the [pacman_hook](https://wiki.archlinux.org/title/NVIDIA#pacman_hook) to ensure mkinitcpio is regenerated when nvidia drivers are updated (arch only) +add the [pacman hook](https://wiki.archlinux.org/title/NVIDIA#pacman_hook) to ensure mkinitcpio is regenerated when nvidia drivers are updated (arch only) add a new line to `/etc/modprobe.d/nvidia.conf` (make it if it does not exist) and add the line `options nvidia-drm modeset=1` From 96993a328a1571bcb28e512a6594b2a56ed8a75e Mon Sep 17 00:00:00 2001 From: Jade Humpherys Date: Tue, 7 Nov 2023 15:54:19 -0600 Subject: [PATCH 06/18] Add FAQ entry about Hyprland crashing on startup with Nvidia --- pages/FAQ/_index.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pages/FAQ/_index.md b/pages/FAQ/_index.md index df47941e..8cf857ad 100644 --- a/pages/FAQ/_index.md +++ b/pages/FAQ/_index.md @@ -303,3 +303,7 @@ Then, pressing `SUPER + Escape` will leave that mode. # Low FPS/stutter/FPS drops on Intel iGPU with TLP (mainly laptops) The TLP defaults are rather aggressive, setting `INTEL_GPU_MIN_FREQ_ON_AC` and/or `INTEL_GPU_MIN_FREQ_ON_BAT` in `/etc/tlp.conf` to something slightly higher (e.g. to 500 from 300) will reduce stutter significantly or, in the best case, remove it completely. + +# Hyprland crashes on startup after updating packages (Nvidia) + +Run `sudo mkinitcpio -P` and reboot. If that fixes the problem, make sure you have followed [this step](../../Nvidia/#kernel-parameters), specifically the bit about adding a [pacman hook](https://wiki.archlinux.org/title/NVIDIA#pacman_hook) From 4fae7cc979f0aaf4f38de9d67e361817588cf3b1 Mon Sep 17 00:00:00 2001 From: Jade Humpherys Date: Wed, 8 Nov 2023 10:43:25 -0600 Subject: [PATCH 07/18] Remove implications that the patch will only work with nvidia-dkms --- pages/Nvidia/_index.md | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/pages/Nvidia/_index.md b/pages/Nvidia/_index.md index 857a6695..c4bb9a2f 100644 --- a/pages/Nvidia/_index.md +++ b/pages/Nvidia/_index.md @@ -5,8 +5,6 @@ You can choose between the proprietary [Nvidia drivers](https://wiki.archlinux.o You may want to use the proprietary Nvidia drivers in some cases, for example: if you have a new Nvidia GPU model, if you want more performance, if you want to play video games, if you need a wider feature set (for example, better power consumption on recent GPUs), etc. However, keep in mind that if the proprietary Nvidia drivers do not work properly on your computer, the Nouveau driver might work fine while not having as much features or performance. For [older cards](https://wiki.archlinux.org/title/NVIDIA#Unsupported_drivers), in order to use Hyprland, you will probably need to use the Nouveau driver which actively supports them. -Below are some tips to try to make the proprietary Nvidia driver work with Hyprland properly: - ## Hyprland Nvidia Patch (Arch only) (Unofficial) ```sh hyprland-nvidia (AUR) @@ -17,12 +15,8 @@ Hyprland Nvidia Patch is **NOT** an official patch and is not maintained by us. If you have any concerns (updates, broken pkgbuild, etc), you should contact the maintainer. {{< /hint >}} -{{< hint type=important >}} -`nvidia-dkms` is still **required** to run this patch, Install the `nvidia-dkms` driver and add it to your initramfs & kernel parameters before running. You should still however read the content below to make sure the patch is properly working and to avoid any bugs/crashes. -{{< /hint >}} - ## Kernel Parameters -Install the `nvidia-dkms` driver and add it to your initramfs & kernel parameters. +Install one of the above drivers and add it to your initramfs & kernel parameters. For people using [systemd-boot](https://wiki.archlinux.org/title/systemd-boot) you can do this adding `nvidia_drm.modeset=1` to the end of `/boot/loader/entries/arch.conf`. For people using [grub](https://wiki.archlinux.org/title/GRUB) you can do this by adding `nvidia_drm.modeset=1` to the end of `GRUB_CMDLINE_LINUX_DEFAULT=` in `/etc/default/grub`, then run `# grub-mkconfig -o /boot/grub/grub.cfg` For others check out [kernel parameters](https://wiki.archlinux.org/title/Kernel_parameters) and how to add `nvidia_drm.modeset=1` to your specific bootloader. From 40200258ea53de6a1056fd19bbf42d282544bc26 Mon Sep 17 00:00:00 2001 From: Jade Humpherys Date: Wed, 8 Nov 2023 10:48:45 -0600 Subject: [PATCH 08/18] Use the more robust path `/dev/dri/by-path/pci-...` for `WLR_DRM_DEVICES` --- pages/Nvidia/_index.md | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/pages/Nvidia/_index.md b/pages/Nvidia/_index.md index c4bb9a2f..78086cc8 100644 --- a/pages/Nvidia/_index.md +++ b/pages/Nvidia/_index.md @@ -58,10 +58,9 @@ env = WLR_NO_HARDWARE_CURSORS,1 Run `lspci | grep VGA`. The returned line will start with some digits in the form `00:00.0`. -Run `ls -l /dev/dri/by-path`. +Run `ls /dev/dri/by-path`. You should see at least one file with a filename like `pci-0000:00:00.0-card`. -The one matching the earlier pci entry should be a symbolic link to `card0`, `card1` or `card2`. -Set the environment variable `WLR_DRM_DEVICES` to that filepath. +Set the environment variable `WLR_DRM_DEVICES` to the filepath with number matching the earlier pci entry. For example, if I run `lspci | grep VGA` and get @@ -69,17 +68,17 @@ For example, if I run `lspci | grep VGA` and get 01:00.0 VGA compatible controller: NVIDIA Corporation GM107 [GeForce GTX 750 Ti] (rev a2) ``` -and when I run `ls -l /dev/dri/by-path` I see +and when I run `ls -1 /dev/dri/by-path` I see ```ls -lrwxrwxrwx 1 root root 8 Nov 7 07:02 pci-0000:01:00.0-card -> ../card0 -lrwxrwxrwx 1 root root 13 Nov 7 07:02 pci-0000:01:00.0-render -> ../renderD128 +pci-0000:01:00.0-card +pci-0000:01:00.0-render ``` I would add ```sh -env = WLR_DRM_DEVICES,/dev/dri/card0 +env = WLR_DRM_DEVICES,/dev/dri/by-path/pci-0000:01:00.0-card ``` to my hyprland config. From 0b598575caa39fe972f95c168b0d501aadec2c53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jade=20=E2=98=95?= Date: Wed, 8 Nov 2023 11:41:54 -0600 Subject: [PATCH 09/18] Update pages/Nvidia/_index.md Add a missing comma Co-authored-by: Mihai Fufezan --- pages/Nvidia/_index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/Nvidia/_index.md b/pages/Nvidia/_index.md index 857a6695..78ce4d96 100644 --- a/pages/Nvidia/_index.md +++ b/pages/Nvidia/_index.md @@ -96,7 +96,7 @@ Install `qt5-wayland`, `qt5ct` and `libva`. Additionally applications, such as Unity Hub. -After completing all of the above Hyprland should _at least_ be able to boot. +After completing all of the above, Hyprland should _at least_ be able to start. ## Fixing screensharing / screenshots Apply nvidia patches to the wlroots in `subprojects/wlroots` before building. From 8ed6e9d8275ecb21a3a13150f3a74cfc367d75da Mon Sep 17 00:00:00 2001 From: Jade Humpherys Date: Wed, 8 Nov 2023 15:50:25 -0600 Subject: [PATCH 10/18] Change WLR_DRM_DEVICES instructions to just be a link to the Multi GPU page --- pages/Nvidia/_index.md | 30 +++--------------------------- 1 file changed, 3 insertions(+), 27 deletions(-) diff --git a/pages/Nvidia/_index.md b/pages/Nvidia/_index.md index 5fad9ef1..74874715 100644 --- a/pages/Nvidia/_index.md +++ b/pages/Nvidia/_index.md @@ -50,38 +50,14 @@ env = __GLX_VENDOR_LIBRARY_NAME,nvidia env = WLR_NO_HARDWARE_CURSORS,1 ``` -{{< hint >}}If hyprland crashes on start or you encounter crashes in Firefox, you may want to try removing the line `env = GBM_BACKEND,nvidia-drm`. +{{< hint >}}If Hyprland crashes on start or you encounter crashes in Firefox, you may want to try removing the line `env = GBM_BACKEND,nvidia-drm`. {{< /hint >}} {{< hint >}}If you face problems with Discord windows not displaying or screen sharing not working in Zoom, remove or comment the line `env = __GLX_VENDOR_LIBRARY_NAME,nvidia`. {{< /hint >}} -Run `lspci | grep VGA`. -The returned line will start with some digits in the form `00:00.0`. -Run `ls /dev/dri/by-path`. -You should see at least one file with a filename like `pci-0000:00:00.0-card`. -Set the environment variable `WLR_DRM_DEVICES` to the filepath with number matching the earlier pci entry. - -For example, if I run `lspci | grep VGA` and get - -```shell -01:00.0 VGA compatible controller: NVIDIA Corporation GM107 [GeForce GTX 750 Ti] (rev a2) -``` - -and when I run `ls -1 /dev/dri/by-path` I see - -```ls -pci-0000:01:00.0-card -pci-0000:01:00.0-render -``` - -I would add - -```sh -env = WLR_DRM_DEVICES,/dev/dri/by-path/pci-0000:01:00.0-card -``` - -to my hyprland config. +{{< hint >}}If you have problems starting Hyprland or animations and such are sluggish, you may need to follow the steps in [Multi GPI](../../Configuring/Multi-GPU), even if you don't have multiple GPUs. +{{< /hint >}} ## Additional packages Install `qt5-wayland`, `qt5ct` and `libva`. Additionally From 500cf977006c3c800178fe4d321cdf6679880797 Mon Sep 17 00:00:00 2001 From: Jade Humpherys Date: Wed, 8 Nov 2023 15:59:05 -0600 Subject: [PATCH 11/18] Add warning to make sure it is clear which drivers should be preferred --- pages/Nvidia/_index.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pages/Nvidia/_index.md b/pages/Nvidia/_index.md index 74874715..47f6a81a 100644 --- a/pages/Nvidia/_index.md +++ b/pages/Nvidia/_index.md @@ -5,6 +5,10 @@ You can choose between the proprietary [Nvidia drivers](https://wiki.archlinux.o You may want to use the proprietary Nvidia drivers in some cases, for example: if you have a new Nvidia GPU model, if you want more performance, if you want to play video games, if you need a wider feature set (for example, better power consumption on recent GPUs), etc. However, keep in mind that if the proprietary Nvidia drivers do not work properly on your computer, the Nouveau driver might work fine while not having as much features or performance. For [older cards](https://wiki.archlinux.org/title/NVIDIA#Unsupported_drivers), in order to use Hyprland, you will probably need to use the Nouveau driver which actively supports them. +{{< hint type=warning >}} +All of the tips are intended to work with `nvidia`, `nvidia-open` or `nvidia-dkms` and probably won't work with the legacy or Nouveau drivers. +{{< /hind >}} + ## Hyprland Nvidia Patch (Arch only) (Unofficial) ```sh hyprland-nvidia (AUR) From 70ce3eea8331a1af1df79b632795a7c3b797b385 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jade=20=E2=98=95?= Date: Sat, 11 Nov 2023 14:29:54 -0600 Subject: [PATCH 12/18] Update pages/Nvidia/_index.md Other drivers *do not* work Co-authored-by: Aqa-Ib --- pages/Nvidia/_index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/Nvidia/_index.md b/pages/Nvidia/_index.md index 47f6a81a..51e613ba 100644 --- a/pages/Nvidia/_index.md +++ b/pages/Nvidia/_index.md @@ -6,7 +6,7 @@ You can choose between the proprietary [Nvidia drivers](https://wiki.archlinux.o You may want to use the proprietary Nvidia drivers in some cases, for example: if you have a new Nvidia GPU model, if you want more performance, if you want to play video games, if you need a wider feature set (for example, better power consumption on recent GPUs), etc. However, keep in mind that if the proprietary Nvidia drivers do not work properly on your computer, the Nouveau driver might work fine while not having as much features or performance. For [older cards](https://wiki.archlinux.org/title/NVIDIA#Unsupported_drivers), in order to use Hyprland, you will probably need to use the Nouveau driver which actively supports them. {{< hint type=warning >}} -All of the tips are intended to work with `nvidia`, `nvidia-open` or `nvidia-dkms` and probably won't work with the legacy or Nouveau drivers. +All of the tips are intended to work with `nvidia`, `nvidia-open` or `nvidia-dkms` and do not work with the legacy or Nouveau drivers. {{< /hind >}} ## Hyprland Nvidia Patch (Arch only) (Unofficial) From a96f24f5d41944ecbee20eec8823329814e4226e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jade=20=E2=98=95?= Date: Tue, 19 Dec 2023 19:27:47 -0600 Subject: [PATCH 13/18] Be more concise with the `GBM_BACKEND` suggestion Co-authored-by: Mihai Fufezan --- pages/Nvidia/_index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/Nvidia/_index.md b/pages/Nvidia/_index.md index 51e613ba..dc4cd858 100644 --- a/pages/Nvidia/_index.md +++ b/pages/Nvidia/_index.md @@ -54,7 +54,7 @@ env = __GLX_VENDOR_LIBRARY_NAME,nvidia env = WLR_NO_HARDWARE_CURSORS,1 ``` -{{< hint >}}If Hyprland crashes on start or you encounter crashes in Firefox, you may want to try removing the line `env = GBM_BACKEND,nvidia-drm`. +{{< hint >}}If Hyprland crashes on start or you encounter crashes in Firefox, try removing the line `env = GBM_BACKEND,nvidia-drm`. {{< /hint >}} {{< hint >}}If you face problems with Discord windows not displaying or screen sharing not working in Zoom, remove or comment the line `env = __GLX_VENDOR_LIBRARY_NAME,nvidia`. From 6bf6d02520799a9f0952baf72511d6eb276d4876 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jade=20=E2=98=95?= Date: Tue, 19 Dec 2023 19:29:05 -0600 Subject: [PATCH 14/18] better phrasing Co-authored-by: Mihai Fufezan --- pages/Nvidia/_index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/Nvidia/_index.md b/pages/Nvidia/_index.md index dc4cd858..f530b579 100644 --- a/pages/Nvidia/_index.md +++ b/pages/Nvidia/_index.md @@ -60,7 +60,7 @@ env = WLR_NO_HARDWARE_CURSORS,1 {{< hint >}}If you face problems with Discord windows not displaying or screen sharing not working in Zoom, remove or comment the line `env = __GLX_VENDOR_LIBRARY_NAME,nvidia`. {{< /hint >}} -{{< hint >}}If you have problems starting Hyprland or animations and such are sluggish, you may need to follow the steps in [Multi GPI](../../Configuring/Multi-GPU), even if you don't have multiple GPUs. +{{< hint >}}If you have problems starting Hyprland or animations are sluggish, try following the steps in [Multi GPI](../../Configuring/Multi-GPU), even if you don't have multiple GPUs. {{< /hint >}} ## Additional packages From acb5d4aa7aa9bcd05c7f1f796b3cf252cfcb0b01 Mon Sep 17 00:00:00 2001 From: Jade Humpherys Date: Tue, 19 Dec 2023 19:12:39 -0600 Subject: [PATCH 15/18] make the FAQ entry a bit clearer --- pages/FAQ/_index.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pages/FAQ/_index.md b/pages/FAQ/_index.md index f50d031d..4ce5d7b5 100644 --- a/pages/FAQ/_index.md +++ b/pages/FAQ/_index.md @@ -326,4 +326,8 @@ windowrulev2 = minsize 1 1, title:^(TITLE)$, class:^(CLASS)$ ``` # Hyprland crashes on startup after updating packages (Nvidia) -Run `sudo mkinitcpio -P` and reboot. If that fixes the problem, make sure you have followed [this step](../../Nvidia/#kernel-parameters), specifically the bit about adding a [pacman hook](https://wiki.archlinux.org/title/NVIDIA#pacman_hook) +Most likely mkinitcpio wasn't run to regenerate initramfs after update. + +Try running `sudo mkinitcpio -P` and reboot. + +If Hyprland starts properly after doing so, make sure you have followed [this step](../../Nvidia/#kernel-parameters), specifically the bit about adding a [pacman hook](https://wiki.archlinux.org/title/NVIDIA#pacman_hook), and mkinitcpio will be run any time pacman updates your drivers. From 85b5ee95f8e64c7ceb1cb39c4ac7ec89161fe06d Mon Sep 17 00:00:00 2001 From: Jade Humpherys Date: Tue, 19 Dec 2023 19:26:58 -0600 Subject: [PATCH 16/18] missed a line removal in the merge --- pages/FAQ/_index.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/pages/FAQ/_index.md b/pages/FAQ/_index.md index 4ce5d7b5..e1f22eb7 100644 --- a/pages/FAQ/_index.md +++ b/pages/FAQ/_index.md @@ -297,8 +297,6 @@ Then, pressing `SUPER + Escape` will leave that mode. # Some of my drop-down/pop-up windows in apps disappear -The TLP defaults are rather aggressive, setting `INTEL_GPU_MIN_FREQ_ON_AC` and/or `INTEL_GPU_MIN_FREQ_ON_BAT` in `/etc/tlp.conf` to something slightly higher (e.g. to 500 from 300) will reduce stutter significantly or, in the best case, remove it completely. - In some apps like Steam or VSCode, the drop-down windows may disappear if you hover over them. This can be fixed with window rules. First, find the title and class of the pop-up window with `hyprctl clients`. You can try something like `sleep 3 && hyprctl clients` so you have time to open the pop-up. It should look something like this: From 32cb2ae6ccea6b96bf02cae9a72580a3998dca22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jade=20=E2=98=95?= Date: Wed, 31 Jan 2024 16:48:59 -0600 Subject: [PATCH 17/18] Update pages/Nvidia/_index.md fix typo Co-authored-by: Mihai Fufezan --- pages/Nvidia/_index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/Nvidia/_index.md b/pages/Nvidia/_index.md index 313728d3..3404267a 100644 --- a/pages/Nvidia/_index.md +++ b/pages/Nvidia/_index.md @@ -7,7 +7,7 @@ You may want to use the proprietary Nvidia drivers in some cases, for example: i {{< hint type=warning >}} All of the tips are intended to work with `nvidia`, `nvidia-open` or `nvidia-dkms` and do not work with the legacy or Nouveau drivers. -{{< /hind >}} +{{< /hint >}} For people using [systemd-boot](https://wiki.archlinux.org/title/systemd-boot) you can do this adding `nvidia_drm.modeset=1` to the end of `/boot/loader/entries/arch.conf`. For people using [grub](https://wiki.archlinux.org/title/GRUB) you can do this by adding `nvidia_drm.modeset=1` to the end of `GRUB_CMDLINE_LINUX_DEFAULT=` in `/etc/default/grub`, then run `# grub-mkconfig -o /boot/grub/grub.cfg` From 6d0986bc14f2d07094a2e4bd7c61c0eeb6121860 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jade=20=E2=98=95?= Date: Wed, 31 Jan 2024 16:49:11 -0600 Subject: [PATCH 18/18] Update pages/Nvidia/_index.md fix typo Co-authored-by: Mihai Fufezan --- pages/Nvidia/_index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/Nvidia/_index.md b/pages/Nvidia/_index.md index 3404267a..3da1b4cc 100644 --- a/pages/Nvidia/_index.md +++ b/pages/Nvidia/_index.md @@ -48,7 +48,7 @@ env = WLR_NO_HARDWARE_CURSORS,1 {{< hint >}}If you face problems with Discord windows not displaying or screen sharing not working in Zoom, remove or comment the line `env = __GLX_VENDOR_LIBRARY_NAME,nvidia`. {{< /hint >}} -{{< hint >}}If you have problems starting Hyprland or animations are sluggish, try following the steps in [Multi GPI](../../Configuring/Multi-GPU), even if you don't have multiple GPUs. +{{< hint >}}If you have problems starting Hyprland or animations are sluggish, try following the steps in [Multi GPU](../../Configuring/Multi-GPU), even if you don't have multiple GPUs. {{< /hint >}} ## Additional packages