Summary: | x11-drivers/nvidia-drivers-470.57.02[wayland] Reverse Prime stops working | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | nvaert1986 <nvaert1986> |
Component: | Current packages | Assignee: | Ionen Wolkens <ionen> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | ionen, soap |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
nvaert1986
2021-07-21 11:04:48 UTC
The major change in this version is that in order to use wayland with nvidia-drivers, nvidia-drm.modeset=1 needs to be set -- so USE=wayland does this. I did fear that it may cause issues for some more exotic setups though thus the postinst elog message to warn about this change when enabling wayland. To confirm, try to #comment out this line in /etc/modprobe.d/nvidia.conf: options nvidia-drm modeset=1 As far as I'm aware, this option is also needed for PRIME offloading, but reverse PRIME may be a different deal. Like SLI, I may need to adjust the informational message to warn about reverse PRIME. Unsure if I want to disable this by default given it'll be impossible for wayland to work out of the box. Unfortunately I don't have the right hardware to test this myself. >I'm using gnome-base/gdm-40.0-r1
Oh!
I forgot about this, I believe gdm will default to wayland if this is set... are you sure you're starting a Xorg session?
(In reply to Ionen Wolkens from comment #2) > >I'm using gnome-base/gdm-40.0-r1 > Oh! > > I forgot about this, I believe gdm will default to wayland if this is set... > are you sure you're starting a Xorg session? i.e. I'd like to know if keeping this set is fine as long as explicitly request for gnome on Xorg (In reply to Ionen Wolkens from comment #2) > >I'm using gnome-base/gdm-40.0-r1 > Oh! > > I forgot about this, I believe gdm will default to wayland if this is set... > are you sure you're starting a Xorg session? When I run the following command it always shows x11: ~ $ loginctl show-session 2 -p Type Type=x11 (In reply to Ionen Wolkens from comment #1) > The major change in this version is that in order to use wayland with > nvidia-drivers, nvidia-drm.modeset=1 needs to be set -- so USE=wayland does > this. > > I did fear that it may cause issues for some more exotic setups though thus > the postinst elog message to warn about this change when enabling wayland. > > To confirm, try to #comment out this line in /etc/modprobe.d/nvidia.conf: > > options nvidia-drm modeset=1 > > As far as I'm aware, this option is also needed for PRIME offloading, but > reverse PRIME may be a different deal. Like SLI, I may need to adjust the > informational message to warn about reverse PRIME. Unsure if I want to > disable this by default given it'll be impossible for wayland to work out of > the box. > > Unfortunately I don't have the right hardware to test this myself. Commenting the option: "options nvidia-drm modeset=1" in /etc/modprobe.d/nvidia.conf resolves the issue in my case. I think it's wise to update the postinst elog message and include reverse prime in cases where external displays are hardwired to the NVIDIA GPU (which is the case in most mobile workstations. (The Lenovo ThinkPad P series and higher end Dell Precision series laptops etc.). (In reply to nvaert1986 from comment #4) > When I run the following command it always shows x11: > ~ $ loginctl show-session 2 -p Type > Type=x11 At gdm's login, there's a not-too-visible setting icon at the bottom right, could you check what it's starting there? Just to be sure. The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=153367194a0cbacdcb70c4c25a8bc351e1c3d29e commit 153367194a0cbacdcb70c4c25a8bc351e1c3d29e Author: Ionen Wolkens <ionen@gentoo.org> AuthorDate: 2021-07-21 18:42:12 +0000 Commit: Ionen Wolkens <ionen@gentoo.org> CommitDate: 2021-07-21 19:42:51 +0000 x11-drivers/nvidia-drivers: extend USE=wayland warnings a bit Can't test this myself, but adding the warning for Reverse PRIME to be on the safe side, plus a note about gdm. Closes: https://bugs.gentoo.org/803209 Signed-off-by: Ionen Wolkens <ionen@gentoo.org> x11-drivers/nvidia-drivers/files/nvidia-450.conf | 2 +- x11-drivers/nvidia-drivers/files/nvidia-470.conf | 2 +- x11-drivers/nvidia-drivers/nvidia-drivers-470.57.02.ebuild | 7 ++++++- 3 files changed, 8 insertions(+), 3 deletions(-) |