Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 911597

Summary: gui-wm/hyprland-0.27.2 USE nvidia flag corrupt output on dGPU system
Product: Gentoo Linux Reporter: Gonçalo Negrier Duarte <gonegrier.duarte>
Component: Current packagesAssignee: Julien Roy <julien>
Status: RESOLVED FIXED    
Severity: normal CC: parona, proxy-maint
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/32141
https://bugs.gentoo.org/show_bug.cgi?id=910576
https://github.com/gentoo/gentoo/pull/32157
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Nvidia patch and ebuild fix
Nvidia patch and ebuild fix
Ebuild Fix Nvidia Patch
Ebuild Fix Nvidia Patch

Description Gonçalo Negrier Duarte 2023-08-02 14:24:15 UTC
As explain in bug 910576 comment 4 (https://bugs.gentoo.org/910576#c4)

The patch use by nix os doesn't solve the graphical artifacts on dual gpu machines (most common laptop with nvidia dgpu)

On my laptop after updating to the version 0.27.2 the external screen show black lines and random appear black boxes, since wlroots doesn't work for nvidia without being patch.

I open pull request upstream to Hyprland developer add my patch but until is accepted or not here. You have a pull request with the files and also the patch files for the ebuild and nvidia uploaded here.

Hyprland pull request:https://github.com/hyprwm/Hyprland/pull/2874

Besides being off topic: I compile Hyprland using clang besides some warnings works exactly the same why that compile with gcc (upstream state the support compile is gcc)
Comment 1 Gonçalo Negrier Duarte 2023-08-02 14:32:10 UTC
Created attachment 866851 [details, diff]
Nvidia patch and ebuild fix

This is the link for the pull request:https://github.com/gentoo/gentoo/pull/32141

If you prefer add yourself you also have here a patch
Comment 2 Gonçalo Negrier Duarte 2023-08-03 17:19:22 UTC
Created attachment 866962 [details, diff]
Nvidia patch and ebuild fix
Comment 3 Gonçalo Negrier Duarte 2023-08-03 17:20:31 UTC
Created attachment 866963 [details, diff]
Ebuild Fix Nvidia Patch
Comment 4 Gonçalo Negrier Duarte 2023-08-03 17:23:14 UTC
Created attachment 866964 [details, diff]
Ebuild Fix Nvidia Patch
Comment 5 Larry the Git Cow gentoo-dev 2023-08-07 02:55:09 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9417726544cf261fefdbb5911c66064b67c7a543

commit 9417726544cf261fefdbb5911c66064b67c7a543
Author:     Alfred Wingate <parona@protonmail.com>
AuthorDate: 2023-08-03 16:36:58 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-08-07 02:53:42 +0000

    gui-wm/hyprland: add 0.28.0
    
    Bug: https://bugs.gentoo.org/911597
    Signed-off-by: Alfred Wingate <parona@protonmail.com>
    Signed-off-by: Sam James <sam@gentoo.org>

 gui-wm/hyprland/Manifest                           |   1 +
 .../hyprland-0.28.0-no-wlroots-automagic.patch     |  14 +++
 gui-wm/hyprland/hyprland-0.28.0.ebuild             | 123 +++++++++++++++++++++
 3 files changed, 138 insertions(+)
Comment 6 Julien Roy 2023-10-07 00:17:26 UTC
Closing since upstream merged the patch in 0.29.0