Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 911597 - gui-wm/hyprland-0.27.2 USE nvidia flag corrupt output on dGPU system
Summary: gui-wm/hyprland-0.27.2 USE nvidia flag corrupt output on dGPU system
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Julien Roy
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-08-02 14:24 UTC by Gonçalo Negrier Duarte
Modified: 2023-10-07 00:17 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Nvidia patch and ebuild fix (ebuild-nvidia-hyprland-0.27.2.patch,1.92 KB, patch)
2023-08-02 14:32 UTC, Gonçalo Negrier Duarte
Details | Diff
Nvidia patch and ebuild fix (ebuild-nvidia-hyprland-0.27.2.patch,2.60 KB, patch)
2023-08-03 17:19 UTC, Gonçalo Negrier Duarte
Details | Diff
Ebuild Fix Nvidia Patch (ebuild-nvidia-hyprland-0.27.2.patch,694 bytes, patch)
2023-08-03 17:20 UTC, Gonçalo Negrier Duarte
Details | Diff
Ebuild Fix Nvidia Patch (ebuild-nvidia-hyprland-0.27.2.patch,641 bytes, patch)
2023-08-03 17:23 UTC, Gonçalo Negrier Duarte
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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