[Ubuntu-x-swat] [Bug 1965563] Re: GNOME apps crash with "Protocol error" in NVIDIA Wayland sessions

2024-09-24 Thread Alessandro Astone
> Reopened in bug 2081291(?) Yeah, that's a different bug. A new regression with nvidia 560, for Vulkan apps this time. The fact that gtk4 now defaults to Vulkan makes it show up as the same bug... I directed that issue to a new bug rather than adding more "affected projects" here to not disturb

[Ubuntu-x-swat] [Bug 2080282] Re: Apps run on the discrete Nvidia GPU by default instead of the Intel integrated GPU

2024-09-20 Thread Alessandro Astone
*** This bug is a duplicate of bug 1965563 *** https://bugs.launchpad.net/bugs/1965563 Thanks! For what we know nvidia-driver-560 is the best fit. -- You received this bug notification because you are a member of Ubuntu-X, which is subscribed to egl-wayland in Ubuntu. https://bugs.launchpad

[Ubuntu-x-swat] [Bug 2080282] Re: Apps run on the discrete Nvidia GPU by default instead of the Intel integrated GPU

2024-09-20 Thread Alessandro Astone
*** This bug is a duplicate of bug 1965563 *** https://bugs.launchpad.net/bugs/1965563 Also, please open a new bug because this bug report affected GSK_RENDERER=gl while your issue does not. I suspect the new bug is with Vulkan, which verifying that GSK_RENDERER=ngl works should definitively

[Ubuntu-x-swat] [Bug 2080282] Re: Apps run on the discrete Nvidia GPU by default instead of the Intel integrated GPU

2024-09-20 Thread Alessandro Astone
*** This bug is a duplicate of bug 1965563 *** https://bugs.launchpad.net/bugs/1965563 > Using: GSK_RENDERER=gl baobab doesn't crash. Can you also try GSK_RENDERER=ngl? Also please limit the tests to drivers available in the Ubuntu archive like 535, 550 and 560, to avoid inserting more varia

[Ubuntu-x-swat] [Bug 1965563] Re: GNOME apps crash with "Protocol error" in NVIDIA Wayland sessions

2024-09-19 Thread Alessandro Astone
Thank you! Marking verification complete. ** Tags removed: verification-needed verification-needed-jammy ** Tags added: verification-done verification-done-jammy -- You received this bug notification because you are a member of Ubuntu-X, which is subscribed to egl-wayland in Ubuntu. https://bugs

[Ubuntu-x-swat] [Bug 1965563] Re: GNOME apps crash with "Protocol error" in NVIDIA Wayland sessions

2024-09-19 Thread Alessandro Astone
Verified [ Test Plan - Regression ] with libnvidia-egl- wayland1=1:1.1.9-1.1ubuntu0.1 on Jammy 24.04.5 LTS, using nvidia drivers 470, 535 and 550. I don't own a hybrid laptop; @azorin would you be so kind to perform this update verification? The build in jammy-proposed should be identical to the

[Ubuntu-x-swat] [Bug 2080282] Re: Apps run on the discrete Nvidia GPU by default instead of the Intel integrated GPU

2024-09-19 Thread Alessandro Astone
*** This bug is a duplicate of bug 1965563 *** https://bugs.launchpad.net/bugs/1965563 1) Please try launching the affected app with __NV_DISABLE_EXPLICIT_SYNC=1 2) Please run these on an affected machine: lspci -k > lspci.txt journalctl -b0 > journal.txt dpkg -l > packages.txt and at

[Ubuntu-x-swat] [Bug 1965563] Re: GNOME apps crash with "Protocol error" in NVIDIA Wayland sessions

2024-09-18 Thread Alessandro Astone
New debdiff addressing all comments ** Patch added: "egl-wayland_1.1.9-1.1ubuntu0.1.debdiff" https://bugs.launchpad.net/gtk/+bug/1965563/+attachment/5818943/+files/egl-wayland_1.1.9-1.1ubuntu0.1.debdiff -- You received this bug notification because you are a member of Ubuntu-X, which is subs

[Ubuntu-x-swat] [Bug 1965563] Re: GNOME apps crash with "Protocol error" in NVIDIA Wayland sessions

2024-09-18 Thread Alessandro Astone
** Description changed: [ Impact ] - * GTK applications fail to start on a hybrid graphics machine with an +  * GTK applications fail to start on a hybrid graphics machine with an NVIDIA discrete GPU. - * The NVIDIA egl-wayland extension 1.1.9 only supports rendering to the +  * The NV

[Ubuntu-x-swat] [Bug 1965563] Re: GNOME apps crash with "Protocol error" in NVIDIA Wayland sessions

2024-09-18 Thread Alessandro Astone
> > A possible regression would be that the driver starts reporting as incompatible on NVIDIA single-GPU systems too. One would notice by all wayland-native applications suddenly being very slow. Note that such systems would not default to Wayland in Jammy. > Please add to the Test Plan to verify

[Ubuntu-x-swat] [Bug 1965563] Re: GNOME apps crash with "Protocol error" in NVIDIA Wayland sessions

2024-09-18 Thread Alessandro Astone
Both patches come from upstream, egl-wayland-retrieve-DRM-device-name-before-acquiring-.patch originally had to be manually rebased to apply cleanly. but with both patches in this order they both apply cleanly, so i just took both from upstream. I realize i forgot to re-apply the debian headers

[Ubuntu-x-swat] [Bug 1965563] Re: GNOME apps crash with "Protocol error" in NVIDIA Wayland sessions

2024-09-16 Thread Alessandro Astone
** Description changed: + [ Impact ] + + * GTK applications fail to start on a hybrid graphics machine with an + NVIDIA discrete GPU. + + * The NVIDIA egl-wayland extension 1.1.9 only supports rendering to the + NVIDIA GPU if it is the primary GPU. On a hybrid system the primary GPU + would be

[Ubuntu-x-swat] [Bug 2080282] Re: Apps run on the discrete Nvidia GPU by default instead of the Intel integrated GPU

2024-09-13 Thread Alessandro Astone
*** This bug is a duplicate of bug 1965563 *** https://bugs.launchpad.net/bugs/1965563 > NVIDIA does intend to eventually allow egl-wayland to work on hybrid systems, but I don't see any time commitment. Scratch that, it seems supported by setting __NV_PRIME_RENDER_OFFLOAD. Which switcheroo-c

[Ubuntu-x-swat] [Bug 2080282] Re: Apps run on the discrete Nvidia GPU by default instead of the Intel integrated GPU

2024-09-13 Thread Alessandro Astone
egl-wayland >= 1.1.10 basically just disables itself on hybrid systems: the driver refuses to use a GPU that is not the compositor's primary GPU; so this bug does not happen when bug 1965563 is fixed. -- Note that this means that "Launch using Discrete GPU" wouldn't work even if switcheroo-contr

[Ubuntu-x-swat] [Bug 1965563] Re: GNOME apps crash with "Protocol error" in NVIDIA Wayland sessions

2024-09-13 Thread Alessandro Astone
** Patch added: "egl-wayland_1.1.9-1.1ubuntu1.debdiff" https://bugs.launchpad.net/gtk/+bug/1965563/+attachment/5816995/+files/egl-wayland_1.1.9-1.1ubuntu1.debdiff -- You received this bug notification because you are a member of Ubuntu-X, which is subscribed to egl-wayland in Ubuntu. https://

[Ubuntu-x-swat] [Bug 1965563] Re: GNOME apps crash with "Protocol error" in NVIDIA Wayland sessions

2024-09-13 Thread Alessandro Astone
Yea the libnvidia-egl-wayland1 "fix" upstream was to basically disable it for hybrid systems. -- You received this bug notification because you are a member of Ubuntu-X, which is subscribed to egl-wayland in Ubuntu. https://bugs.launchpad.net/bugs/1965563 Title: GNOME apps crash with "Protocol

[Ubuntu-x-swat] [Bug 1965563] Re: GNOME apps crash with "Protocol error" in NVIDIA Wayland sessions

2024-09-13 Thread Alessandro Astone
@azorin, could you please verify if this build solves your issue? https://launchpad.net/~aleasto/+archive/ubuntu/tests/+build/29088125 -- You received this bug notification because you are a member of Ubuntu-X, which is subscribed to egl-wayland in Ubuntu. https://bugs.launchpad.net/bugs/1965563

[Ubuntu-x-swat] [Bug 1965563] Re: GNOME apps crash with "Protocol error" in NVIDIA Wayland sessions

2024-09-13 Thread Alessandro Astone
With bug 2062082 fixed, applications are now allowed to use the NVIDIA GPU on hybrid systems on Wayland. Together with bug 2080282, all hybrid systems running Jammy will hit this bug making this a high priority for a Jammy SRU ** Changed in: egl-wayland (Ubuntu Jammy) Importance: High => Crit

[Ubuntu-x-swat] [Bug 1965563] Re: GNOME apps crash with "Protocol error" in NVIDIA Wayland sessions

2024-09-13 Thread Alessandro Astone
** Changed in: egl-wayland (Ubuntu Jammy) Assignee: (unassigned) => Alessandro Astone (aleasto) -- You received this bug notification because you are a member of Ubuntu-X, which is subscribed to egl-wayland in Ubuntu. https://bugs.launchpad.net/bugs/1965563 Title: GNOME apps crash w

[Ubuntu-x-swat] [Bug 2080282] Re: Apps run on the discrete Nvidia GPU by default instead of the Intel integrated GPU

2024-09-13 Thread Alessandro Astone
Right, as Daniel said in comment #2 the issue about apps failing to launch on NVIDIA+Wayland is tracked in bug 1965563 and already resolved in noble (but not in jammy). So this thread is now only tracking the bug which causes apps to be launched on the NVIDIA GPU by default in hybrid systems, rat

[Ubuntu-x-swat] [Bug 2080282] Re: Apps run on the discrete Nvidia GPU by default instead of the Intel integrated GPU

2024-09-13 Thread Alessandro Astone
** Tags added: udeng-1202 -- You received this bug notification because you are a member of Ubuntu-X, which is subscribed to egl-wayland in Ubuntu. https://bugs.launchpad.net/bugs/2080282 Title: Apps run on the discrete Nvidia GPU by default instead of the Intel integrated GPU To manage not

[Ubuntu-x-swat] [Bug 2080282] Re: Apps run on the discrete Nvidia GPU by default instead of the Intel integrated GPU

2024-09-13 Thread Alessandro Astone
** Changed in: gnome-shell (Ubuntu) Status: New => Triaged ** Changed in: switcheroo-control (Ubuntu) Status: New => Triaged ** Changed in: gnome-shell (Ubuntu) Assignee: (unassigned) => Alessandro Astone (aleasto) ** Changed in: switcheroo-control (Ubuntu)

[Ubuntu-x-swat] [Bug 2080282] Re: Apps run on the discrete Nvidia GPU by default instead of the Intel integrated GPU

2024-09-13 Thread Alessandro Astone
>From the GLVND documentation: > EGL can't rely on asking an X server for a vendor name like GLX can, so instead, it enumerates and loads every available vendor library. Loading every vendor is also needed to support extensions such as EGL_EXT_device_enumeration. > When the application calls eglG

[Ubuntu-x-swat] [Bug 2080282] Re: Apps run on the discrete Nvidia GPU by default instead of the Intel integrated GPU

2024-09-13 Thread Alessandro Astone
> This needs verifying in Oracular to see if it's still the case. It is behaving as designed. Because NVIDIA has priority in EGL, it will always be tried first. Without libnvidia-egl-wayland1 it fails so the second driver is probed, MESA. > If the maintainer of the nvidia-graphics-drivers-550 sou