Package Details: wlroots-nvidia 0.17.4-1

Git Clone URL: https://aur.archlinux.org/wlroots-nvidia.git (read-only, click to copy)
Package Base: wlroots-nvidia
Description: Modular Wayland compositor library, with fix for nvidia flickering
Upstream URL: https://gitlab.freedesktop.org/wlroots/wlroots
Licenses: MIT
Conflicts: wlroots, wlroots-git
Provides: libwlroots.so, wlroots
Submitter: kplant
Maintainer: kplant
Last Packager: kplant
Votes: 6
Popularity: 0.061885
First Submitted: 2022-08-20 15:26 (UTC)
Last Updated: 2024-06-29 17:47 (UTC)

Dependencies (23)

Required by (56)

Sources (3)

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 Next › Last »

simontunnat commented on 2023-10-23 13:02 (UTC)

The package fixed my flickering issues on a Thinkpad P52. Thank you! :)

aragon123 commented on 2023-07-17 15:32 (UTC) (edited on 2023-07-17 15:34 (UTC) by aragon123)

I additionally have the following patch included:

--- types/output/render.c
+++ types/output/render.c
@@ -330,22 +330,7 @@
 }

 uint32_t wlr_output_preferred_read_format(struct wlr_output *output) {
-   struct wlr_renderer *renderer = output->renderer;
-   assert(renderer != NULL);
-
-   if (!renderer->impl->preferred_read_format || !renderer->impl->read_pixels) {
-       return DRM_FORMAT_INVALID;
-   }
-
-   if (!output_attach_back_buffer(output, &output->pending, NULL)) {
-       return false;
-   }
-
-   uint32_t fmt = renderer->impl->preferred_read_format(renderer);
-
-   output_clear_back_buffer(output);
-
-   return fmt;
+   return DRM_FORMAT_XRGB8888;
 }

 bool output_is_direct_scanout(struct wlr_output *output,

Without this patch, at least for me, screenshare does not work: https://github.com/emersion/xdg-desktop-portal-wlr/issues/190#issuecomment-1144287165

Edit: Unfortunately the tabs get replaced by spaces, in the output, therefore here a pastbin, with the tabs: https://pastebin.com/B73kcgXg

luanalatte commented on 2023-06-06 22:07 (UTC)

@kplant it worked! thank you for the fix. You might want to increase pkgrel now :P

kplant commented on 2023-06-06 22:01 (UTC)

@luanalatte once more.

luanalatte commented on 2023-06-06 21:57 (UTC)

@kplant dependency still fails. I noticed you used a dash instead of an equals sign, was that a mistake?

kplant commented on 2023-06-06 20:45 (UTC)

@luanalatte try now.

luanalatte commented on 2023-06-06 20:24 (UTC)

swayfx depends on wlroots<0.17, which this package provides but pacman doesn't know since the provides array only says "wlroots". I managed to fix it by setting it to "wlroots=$pkgver", and swayfx works as expected. Could you add this or will it have consequences I didn't consider? thanks

kplant commented on 2023-03-26 16:03 (UTC)

Looks like upstream isn't going to fix it, I've included a simple patch that will allow the failing example to compile.

mleivagomez commented on 2023-03-13 00:41 (UTC) (edited on 2023-03-13 00:42 (UTC) by mleivagomez)

Fair enough. The problem is indeed upstream, but I think a fix has been posted about a week ago here: https://gitlab.freedesktop.org/wlroots/wlroots/-/commit/8db0d8289087d9e63438e01f810ef01d82170eb1

I'm kinda new to this community so I hope I'm not breaking any rules by posting external links. In particular, this is a change that was made in the repository that's listed in this package's upstream URL.

That being said, I found a way to build this package (a bit unsafely) before reading your reply by removing the Werror flag from my CFLAGS in /etc/makepkg.conf (in my case "-Werror=format-security") and replacing it with "-Wno-error".

It works for now, and after I finished building I reverted the flags to how they were previously.

kplant commented on 2023-03-13 00:25 (UTC)

Unfortunately it's broken upstream in wlroots; libavcodec has deprecated the "frame_number" field in the structure. If you replace "frame_number" with "(int)frame_num" on line 524 of examples/dmabuf-capture.c it will build successfully.

I don't want to patch this as I'm sure it will be fixed upstream shortly.