View previous topic :: View next topic |
Author |
Message |
hjkl Apprentice
Joined: 22 Apr 2021 Posts: 198 Location: Somewhere in Europe
|
Posted: Tue Jul 20, 2021 2:48 pm Post subject: NVIDIA drivers 470 - Can we use wayland now? |
|
|
Hi there,
Since the 470 NVIDIA drivers came out, I was wondering if we could actually switch to wayland now while being able to play our games on steam (as in, using xwayland for the games).
I specifically want to use sway now if it will indeed work.
Cheers! _________________ Having problems compiling since 2021 |
|
Back to top |
|
|
Ionen Developer
Joined: 06 Dec 2018 Posts: 2723
|
Posted: Tue Jul 20, 2021 5:37 pm Post subject: Re: NVIDIA drivers 470 - Can we use wayland now? |
|
|
hjkl wrote: | Since the 470 NVIDIA drivers came out, I was wondering if we could actually switch to wayland now while being able to play our games on steam (as in, using xwayland for the games). | Unsure how well it'll go for games, but accelerated xwayland does work. But you need >=xwayland-21.1.1.901, it exists in ::gentoo but still un-keyworded given that version was a pre-release.
I've asked the maintainer to bump it to 21.1.2 not long ago and waiting.
Code: | I specifically want to use sway now if it will indeed work. | That's where this gets less interesting, there's no gbm support yet. So you can only use compositors with EGLStream support like kwin, mutter, and well, xwayland. wlroots/sway can't be used yet, same situation as before.
i.e. plasma and gnome work great using wayland if 470 + latest xwayland, and VIDEO_CARDS=nvidia is set to enable the relevant bits.
Edit: this addition does give hope that other compositors will be usable but unsure how well that'll go, too early for this still. Not that I've tried all the latest snapshots.
Last edited by Ionen on Tue Jul 20, 2021 5:59 pm; edited 2 times in total |
|
Back to top |
|
|
Anon-E-moose Watchman
Joined: 23 May 2008 Posts: 6102 Location: Dallas area
|
Posted: Tue Jul 20, 2021 5:51 pm Post subject: |
|
|
if you're going to try it out, I would suggest xwayland 21.1.2 or 9999 with 9999 versions of wlroots and maybe sway.
Edit to add: I'd also consider running the very latest mesa. _________________ PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland |
|
Back to top |
|
|
hjkl Apprentice
Joined: 22 Apr 2021 Posts: 198 Location: Somewhere in Europe
|
Posted: Tue Jul 20, 2021 6:26 pm Post subject: Re: NVIDIA drivers 470 - Can we use wayland now? |
|
|
Ionen wrote: | hjkl wrote: | Since the 470 NVIDIA drivers came out, I was wondering if we could actually switch to wayland now while being able to play our games on steam (as in, using xwayland for the games). | Unsure how well it'll go for games, but accelerated xwayland does work. But you need >=xwayland-21.1.1.901, it exists in ::gentoo but still un-keyworded given that version was a pre-release.
I've asked the maintainer to bump it to 21.1.2 not long ago and waiting.
Code: | I specifically want to use sway now if it will indeed work. | That's where this gets less interesting, there's no gbm support yet. So you can only use compositors with EGLStream support like kwin, mutter, and well, xwayland. wlroots/sway can't be used yet, same situation as before.
i.e. plasma and gnome work great using wayland if 470 + latest xwayland, and VIDEO_CARDS=nvidia is set to enable the relevant bits.
Edit: this addition does give hope that other compositors will be usable but unsure how well that'll go, too early for this still. Not that I've tried all the latest snapshots. |
Well why not use Xwayland for the nvidia drivers then? _________________ Having problems compiling since 2021 |
|
Back to top |
|
|
hjkl Apprentice
Joined: 22 Apr 2021 Posts: 198 Location: Somewhere in Europe
|
Posted: Tue Jul 20, 2021 6:33 pm Post subject: |
|
|
Anon-E-moose wrote: | if you're going to try it out, I would suggest xwayland 21.1.2 or 9999 with 9999 versions of wlroots and maybe sway.
Edit to add: I'd also consider running the very latest mesa. |
9999 versions of wlroots? Isn't that.. kind of unstable? _________________ Having problems compiling since 2021 |
|
Back to top |
|
|
Anon-E-moose Watchman
Joined: 23 May 2008 Posts: 6102 Location: Dallas area
|
Posted: Tue Jul 20, 2021 6:37 pm Post subject: |
|
|
hjkl wrote: | Anon-E-moose wrote: | if you're going to try it out, I would suggest xwayland 21.1.2 or 9999 with 9999 versions of wlroots and maybe sway.
Edit to add: I'd also consider running the very latest mesa. |
9999 versions of wlroots? Isn't that.. kind of unstable? |
Yes ... and no
I run 9999 versions and have no problems, this doesn't mean everyone will, depends on the exact hardware configuration.
But only by running the latest xwayland, wlroots, etc are you going to pick up the latest changes re nvidia and egl.
OR wait a few months more for the nvidia stuff to stabilize. _________________ PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland |
|
Back to top |
|
|
hjkl Apprentice
Joined: 22 Apr 2021 Posts: 198 Location: Somewhere in Europe
|
Posted: Tue Jul 20, 2021 6:45 pm Post subject: |
|
|
Anon-E-moose wrote: | hjkl wrote: | Anon-E-moose wrote: | if you're going to try it out, I would suggest xwayland 21.1.2 or 9999 with 9999 versions of wlroots and maybe sway.
Edit to add: I'd also consider running the very latest mesa. |
9999 versions of wlroots? Isn't that.. kind of unstable? |
Yes ... and no
I run 9999 versions and have no problems, this doesn't mean everyone will, depends on the exact hardware configuration.
But only by running the latest xwayland, wlroots, etc are you going to pick up the latest changes re nvidia and egl.
OR wait a few months more for the nvidia stuff to stabilize. |
Well, why not I guess!
It won't get that bad I guess.
I have backups anyway so I'm fine. _________________ Having problems compiling since 2021 |
|
Back to top |
|
|
hjkl Apprentice
Joined: 22 Apr 2021 Posts: 198 Location: Somewhere in Europe
|
Posted: Tue Jul 20, 2021 6:47 pm Post subject: |
|
|
Anon-E-moose wrote: | hjkl wrote: | Anon-E-moose wrote: | if you're going to try it out, I would suggest xwayland 21.1.2 or 9999 with 9999 versions of wlroots and maybe sway.
Edit to add: I'd also consider running the very latest mesa. |
9999 versions of wlroots? Isn't that.. kind of unstable? |
Yes ... and no
I run 9999 versions and have no problems, this doesn't mean everyone will, depends on the exact hardware configuration.
But only by running the latest xwayland, wlroots, etc are you going to pick up the latest changes re nvidia and egl.
OR wait a few months more for the nvidia stuff to stabilize. |
Also apparently there's no 9999 version of xwayland... _________________ Having problems compiling since 2021 |
|
Back to top |
|
|
Anon-E-moose Watchman
Joined: 23 May 2008 Posts: 6102 Location: Dallas area
|
|
Back to top |
|
|
hjkl Apprentice
Joined: 22 Apr 2021 Posts: 198 Location: Somewhere in Europe
|
Posted: Tue Jul 20, 2021 7:13 pm Post subject: |
|
|
How would I use the 21.1.2 one with eselect repository?
Also, I can't install xwayland because it's colliding with xorg-server.
Code: |
❯ emerge -pv xwayland
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild N *] x11-base/xwayland-21.1.1.901::gentoo USE="ipv6 -rpc (-selinux) -unwind -xcsecurity" VIDEO_CARDS="nvidia" 1,230 KiB
[blocks B ] <=x11-base/xorg-server-1.20.11 ("<=x11-base/xorg-server-1.20.11" is blocking x11-base/xwayland-21.1.1.901)
Total: 1 package (1 new), Size of downloads: 1,230 KiB
Conflict: 1 block (1 unsatisfied)
* Error: The above package list contains packages which cannot be
* installed at the same time on the same system.
(x11-base/xorg-server-1.20.11:0/1.20.11::gentoo, installed) pulled in by
x11-base/xorg-server required by @selected
(x11-base/xwayland-21.1.1.901:0/0::gentoo, ebuild scheduled for merge) pulled in by
xwayland
For more information about Blocked Packages, please refer to the following
section of the Gentoo Linux x86 Handbook (architecture is irrelevant):
https://wiki.gentoo.org/wiki/Handbook:X86/Working/Portage#Blocked_packages
|
Code: |
❯ equery d xorg-server
* These packages depend on xorg-server:
app-accessibility/at-spi2-atk-2.38.0 (test ? x11-base/xorg-server[xvfb])
app-accessibility/at-spi2-core-2.40.2 (test ? x11-base/xorg-server[xvfb])
app-crypt/libsecret-0.20.4 (test ? x11-base/xorg-server[xvfb])
dev-cpp/gtkmm-3.24.5 (test ? x11-base/xorg-server[xvfb])
dev-python/pygobject-3.40.1-r1 (test ? x11-base/xorg-server[xvfb])
dev-qt/qtopengl-5.15.2 (test ? x11-base/xorg-server[xvfb])
dev-qt/qttest-5.15.2 (test ? x11-base/xorg-server[xvfb])
dev-util/cmake-3.18.5 (test ? x11-base/xorg-server[xvfb])
gnome-base/dconf-0.40.0 (test ? x11-base/xorg-server[xvfb])
gnome-base/gnome-keyring-40.0 (test ? x11-base/xorg-server[xvfb])
gui-libs/wlroots-9999 (X ? x11-base/xorg-server[wayland])
media-libs/libepoxy-1.5.5 (test ? x11-base/xorg-server[xvfb])
media-libs/libglvnd-1.3.3 (X ? x11-base/xorg-server[xvfb])
sys-apps/dbus-1.12.20-r1 (test ? x11-base/xorg-server[xvfb])
www-client/firefox-90.0.1 (pgo ? x11-base/xorg-server[xvfb])
x11-base/xorg-drivers-1.20-r2 (input_devices_evdev ? >=x11-base/xorg-server-1.20[udev])
(input_devices_libinput ? >=x11-base/xorg-server-1.20[udev])
(video_cards_freedreno ? >=x11-base/xorg-server-1.20[-minimal])
(video_cards_i965 ? >=x11-base/xorg-server-1.20[-minimal])
(video_cards_tegra ? >=x11-base/xorg-server-1.20[-minimal])
(video_cards_vc4 ? >=x11-base/xorg-server-1.20[-minimal])
x11-drivers/xf86-input-libinput-1.1.0 (>=x11-base/xorg-server-1.20[xorg])
(x11-base/xorg-server)
x11-libs/gtk+-2.24.33 (test ? x11-base/xorg-server[xvfb])
x11-libs/gtk+-3.24.29 (test ? x11-base/xorg-server[xvfb])
x11-libs/libvdpau-1.4 (test ? x11-base/xorg-server[xvfb])
x11-libs/libxkbcommon-1.3.0 (test ? x11-base/xorg-server[xvfb])
x11-misc/picom-8.2-r2 (test ? x11-base/xorg-server[xvfb])
|
_________________ Having problems compiling since 2021 |
|
Back to top |
|
|
hjkl Apprentice
Joined: 22 Apr 2021 Posts: 198 Location: Somewhere in Europe
|
Posted: Tue Jul 20, 2021 7:26 pm Post subject: |
|
|
I think alternatively I could just use nouveau instead of the NVIDIA drivers, right? _________________ Having problems compiling since 2021 |
|
Back to top |
|
|
Anon-E-moose Watchman
Joined: 23 May 2008 Posts: 6102 Location: Dallas area
|
Posted: Tue Jul 20, 2021 7:29 pm Post subject: |
|
|
I don't have it set up as a repo, just copy the ebuild you need into your local repo and run digest on it.
The conflict says xwayland requires xorg-server-1.20.11-r2 or greater. I would go for the 1.20.12 version.
hjkl wrote: | I think alternatively I could just use nouveau instead of the NVIDIA drivers, right? |
I'm not sure how nouveau works with wayland, I don't think there is any hardware acceleration though (just a guess) _________________ PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland |
|
Back to top |
|
|
hjkl Apprentice
Joined: 22 Apr 2021 Posts: 198 Location: Somewhere in Europe
|
Posted: Tue Jul 20, 2021 7:40 pm Post subject: |
|
|
Anon-E-moose wrote: | I don't have it set up as a repo, just copy the ebuild you need into your local repo and run digest on it.
The conflict says xwayland requires xorg-server-1.20.11-r2 or greater. I would go for the 1.20.12 version.
hjkl wrote: | I think alternatively I could just use nouveau instead of the NVIDIA drivers, right? |
I'm not sure how nouveau works with wayland, I don't think there is any hardware acceleration though (just a guess) |
Code: |
❯ emerge -pv x11-base/xwayland
These are the packages that would be merged, in order:
Calculating dependencies... done!
[ebuild U *] x11-base/xwayland-9999::localrepo [21.1.1.901::gentoo] USE="-libselinux% -rpc -unwind (-ipv6%*) (-selinux%) (-xcsecurity%)" VIDEO_CARDS="(-nvidia%*)" 0 KiB
[blocks B ] x11-base/xorg-server[wayland] ("x11-base/xorg-server[wayland]" is blocking x11-base/xwayland-9999)
Total: 1 package (1 upgrade), Size of downloads: 0 KiB
Conflict: 1 block (1 unsatisfied)
* Error: The above package list contains packages which cannot be
* installed at the same time on the same system.
(x11-base/xorg-server-1.20.12:0/1.20.12::gentoo, installed) pulled in by
x11-base/xorg-server:0/1.20.12= required by (x11-drivers/xf86-input-libinput-1.1.0:0/0::gentoo, installed) USE="" ABI_X86="(64)"
x11-base/xorg-server[xvfb] required by (www-client/firefox-90.0.1:0/90::gentoo, installed) USE="clang dbus hardened lto openh264 pgo pulseaudio system-av1 system-harfbuzz system-icu syst
em-jpeg system-libevent system-libvpx system-webp wayland -debug -eme-free -geckodriver (-gmp-autoupdate) -hwaccel -jack -screencast (-selinux) -sndio -wifi" ABI_X86="(64)" L10N="en-GB -ach
-af -an -ar -ast -az -be -bg -bn -br -bs -ca -ca-valencia -cak -cs -cy -da -de -dsb -el -en-CA -eo -es-AR -es-CL -es-ES -es-MX -et -eu -fa -ff -fi -fr -fy -ga -gd -gl -gn -gu -he -hi -hr -hs
b -hu -hy -ia -id -is -it -ja -ka -kab -kk -km -kn -ko -lij -lt -lv -mk -mr -ms -my -nb -ne -nl -nn -oc -pa -pl -pt-BR -pt-PT -rm -ro -ru -si -sk -sl -son -sq -sr -sv -szl -ta -te -th -tl -t
r -trs -uk -ur -uz -vi -xh -zh-CN -zh-TW"
>=x11-base/xorg-server-1.20[xorg] required by (x11-drivers/xf86-input-libinput-1.1.0:0/0::gentoo, installed) USE="" ABI_X86="(64)"
x11-base/xorg-server:= required by (x11-drivers/xf86-input-libinput-1.1.0:0/0::gentoo, installed) USE="" ABI_X86="(64)"
x11-base/xorg-server[wayland] required by (gui-libs/wlroots-9999:0/9999::gentoo, installed) USE="X -x11-backend" ABI_X86="(64)"
>=x11-base/xorg-server-1.20[udev] required by (x11-base/xorg-drivers-1.20-r2:0/0::gentoo, installed) USE="" ABI_X86="(64)" INPUT_DEVICES="libinput -elographics -evdev -joystick -synaptic
s -vmmouse -void -wacom" VIDEO_CARDS="nvidia -amdgpu -ast -dummy -fbdev (-freedreno) (-geode) -glint -i915 -i965 -intel -mga -nouveau -nv (-omap) -qxl -r128 -radeon -radeonsi -siliconmotion
(-tegra) (-vc4) -vesa -via -virtualbox -vmware"
x11-base/xorg-server required by @selected
(x11-base/xwayland-9999:0/0::localrepo, ebuild scheduled for merge) pulled in by
x11-base/xwayland
x11-base/xwayland required by (x11-base/xorg-server-1.20.12:0/1.20.12::gentoo, installed) USE="elogind ipv6 udev wayland xorg xvfb -debug -dmx -doc -kdrive -minimal (-selinux) -suid -sys
temd -test -unwind -xcsecurity -xephyr -xnest" ABI_X86="(64)"
For more information about Blocked Packages, please refer to the following
section of the Gentoo Linux x86 Handbook (architecture is irrelevant):
https://wiki.gentoo.org/wiki/Handbook:X86/Working/Portage#Blocked_packages
|
_________________ Having problems compiling since 2021 |
|
Back to top |
|
|
Anon-E-moose Watchman
Joined: 23 May 2008 Posts: 6102 Location: Dallas area
|
Posted: Tue Jul 20, 2021 7:58 pm Post subject: |
|
|
Try Code: | emerge -pv xorg-server | with the wayland USE flag set for xorg and it should pull in xwayland automatically. _________________ PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland |
|
Back to top |
|
|
hjkl Apprentice
Joined: 22 Apr 2021 Posts: 198 Location: Somewhere in Europe
|
Posted: Tue Jul 20, 2021 8:06 pm Post subject: |
|
|
Anon-E-moose wrote: | Try Code: | emerge -pv xorg-server | with the wayland USE flag set for xorg and it should pull in xwayland automatically. |
I already have xwayland installed _________________ Having problems compiling since 2021 |
|
Back to top |
|
|
Anon-E-moose Watchman
Joined: 23 May 2008 Posts: 6102 Location: Dallas area
|
Posted: Tue Jul 20, 2021 8:29 pm Post subject: |
|
|
hjkl wrote: | I already have xwayland installed |
And that's what it's complaining about.
If you do "emerge -pv xorg-server" what does it show? Should show it trying to update xwayland _________________ PRIME x570-pro, 3700x, 6.1 zen kernel
gcc 13, profile 17.0 (custom bare multilib), openrc, wayland |
|
Back to top |
|
|
hjkl Apprentice
Joined: 22 Apr 2021 Posts: 198 Location: Somewhere in Europe
|
Posted: Tue Jul 20, 2021 8:33 pm Post subject: |
|
|
Anon-E-moose wrote: | hjkl wrote: | I already have xwayland installed |
And that's what it's complaining about.
If you do "emerge -pv xorg-server" what does it show? Should show it trying to update xwayland |
I've just switched to nouveau.
I'm cutting the drivers out forever. _________________ Having problems compiling since 2021 |
|
Back to top |
|
|
Elserjo n00b
Joined: 06 Jul 2021 Posts: 60
|
Posted: Fri Jul 23, 2021 2:50 am Post subject: |
|
|
It seems it works, i just added wayland use flag and emerge @world.
But whats more strange, that scrolling in firefox 90.0.1 is “torn”, and non smooth. I run firefox on wayland session, also set modeset=1 in kernel params, gnome shows that i in wayland session.
Desktop experience in gnome better in xorg, but not in firefox.
Maybe i do something wrong? |
|
Back to top |
|
|
|