From aeeb0f5e0be10f924357b5221c57b6ffe94fd912 Mon Sep 17 00:00:00 2001 From: Vaxry Date: Sun, 26 Nov 2023 03:03:20 +0000 Subject: [PATCH] nuke nvidia patches mentions --- pages/Nix/Options & Overrides.md | 13 +----------- pages/Nvidia/_index.md | 34 +------------------------------- 2 files changed, 2 insertions(+), 45 deletions(-) diff --git a/pages/Nix/Options & Overrides.md b/pages/Nix/Options & Overrides.md index 246bc17..3da0d27 100644 --- a/pages/Nix/Options & Overrides.md +++ b/pages/Nix/Options & Overrides.md @@ -12,7 +12,6 @@ can be changed by setting the appropriate option to `true`/`false`. ```nix (pkgs.hyprland.override { # or inputs.hyprland.packages.${pkgs.system}.hyprland enableXWayland = true; - enableNvidiaPatches = false; }) ``` @@ -22,7 +21,6 @@ can be changed by setting the appropriate option to `true`/`false`. programs.hyprland = { # or wayland.windowManager.hyprland enable = true; xwayland.enable = true; - enableNvidiaPatches = false; }; ``` @@ -37,15 +35,6 @@ in the package itself, or through the module options. See [XWayland](../../Configuring/XWayland). -### Nvidia Patches - -Nvidia is notorious for not working by default with wlroots. That's why we -patch wlroots. - -In the NixOS and Home Manager modules, you can enable the -Nvidia patches using `programs.hyprland.enableNvidiaPatches` and -`wayland.windowManager.hyprland.enableNvidiaPatches`, respectively. - ## Using Nix repl If you're using Nix (and not NixOS or Home Manager) and you want to override, @@ -54,7 +43,7 @@ you can do it like this ```nix $ nix repl nix-repl> :lf "github:hyprwm/Hyprland" -nix-repl> :bl outputs.packages.x86_64-linux.hyprland.override {enableNvidiaPatches = true;} # option = value +nix-repl> :bl outputs.packages.x86_64-linux.hyprland.override ``` Then you can run Hyprland from the built path. diff --git a/pages/Nvidia/_index.md b/pages/Nvidia/_index.md index 0bbf676..93f500b 100644 --- a/pages/Nvidia/_index.md +++ b/pages/Nvidia/_index.md @@ -8,20 +8,6 @@ You may want to use the proprietary Nvidia drivers in some cases, for example: i 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) -hyprland-nvidia-git (AUR) -``` -{{< hint type=warning >}} -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 >}} - ## How to get Hyprland to possibly work on Nvidia Install the `nvidia-dkms` driver and add it to your initramfs & kernel parameters. @@ -71,25 +57,7 @@ Launch Hyprland. It _should_ work now. -## Fixing screensharing / screenshots -Apply nvidia patches to the wlroots in `subprojects/wlroots` before building. -See [patch](https://aur.archlinux.org/cgit/aur.git/tree/nvidia.patch?h=hyprland-nvidia-git) -and [hyprland-nvidia-git's PKGBUILD](https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=hyprland-nvidia-git#n72). - -## Fixing random flickering, method 1 - -If you take a look at the wlroots patches in the [nix flake](https://github.com/hyprwm/Hyprland/blob/main/nix/wlroots.nix) -you will find a one-line patch: - -```sh -substituteInPlace render/gles2/renderer.c --replace "glFlush();" "glFinish();" -``` - -What this means, for non-nix users, is you have to (before building) go to -`subprojects/wlroots/render/gles2/renderer.c` and replace all occurrences of `glFlush()` -with `glFinish()`, and then compile Hyprland as usual. - -## Fixing random flickering, method 2 (nuclear) +## Fixing random flickering, (nuclear method) Do note though that this forces performance mode to be active, resulting in increased power-consumption (from 22W idle on a RTX 3070TI, to 74W).