[Bug 1196280] New: Xrandr rotation does not work with prime render offloading
http://bugzilla.opensuse.org/show_bug.cgi?id=1196280 Bug ID: 1196280 Summary: Xrandr rotation does not work with prime render offloading Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: X.Org Assignee: gfx-bugs@suse.de Reporter: brunopitrus@hotmail.com QA Contact: gfx-bugs@suse.de Found By: --- Blocker: --- Created attachment 856406 --> http://bugzilla.opensuse.org/attachment.cgi?id=856406&action=edit Photograph of a display showing the bug. I am using a Dell Precision 3551 laptop with hybrid Intel CometLake-H GT2 / NVIDIA Quadro P620 muxless graphics (meaning all the outputs are connected to the Intel GPU) I am not using suse-prime (was unable to get it work) Instead i am using the following manual Xorg.conf: ``` Section "OutputClass" Identifier "nvidia" MatchDriver "nvidia-drm" Driver "nvidia" Option "AllowEmptyInitialConfiguration" EndSection # DO NOT EDIT. AUTOMATICALLY GENERATED BY gpu-manager Section "OutputClass" Identifier "Nvidia Prime" MatchDriver "nvidia-drm" Driver "nvidia" Option "AllowEmptyInitialConfiguration" Option "IgnoreDisplayDevices" "CRT" Option "PrimaryGPU" "Yes" EndSection ``` I also have a copy of Ubuntu's `prime-offload` script put in my SDDM startup script. This script essentially does `xrandr --setprovideroutputsource intel nvidia`. Otherwise I have a black screen. I am using the intel driver for the integrated GPU (with the modesetting driver i am getting a boot loop) My problem is that `xrandr --output ��� --rotate left` instead of rotating the screen left, rotates it upside down, cutting off half of the screen in the process. See attached photo. Other rotations also do not work correctly, neither does flipping the screen. The mouse cursor is displayed correctly. Clicks also work according to the cursor position, not the picture position. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1196280 dziobian <brunopitrus@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Hardware|Other |x86-64 OS|Other |openSUSE Tumbleweed -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1196280 http://bugzilla.opensuse.org/show_bug.cgi?id=1196280#c1 Stefan Dirsch <sndirsch@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P3 - Medium Status|NEW |IN_PROGRESS CC| |brunopitrus@hotmail.com Flags| |needinfo?(brunopitrus@hotma | |il.com) --- Comment #1 from Stefan Dirsch <sndirsch@suse.com> --- Hmm. I don't think we can support such a maunally crafted configuration. Anyway, my current guess is that this issue may occur also without nvidia graphics. So first thing I would try is either disabling nvidia GPU in BIOS/Firmware (if possible) or get rid of nvidia drivers and blacklist nouveau kernel module. Then try things without any xorg.conf (intel will be chosen). Then, if this also doesn't work, try with modesetting driver by removing xf86-video-intel package. Please report about your results. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1196280 http://bugzilla.opensuse.org/show_bug.cgi?id=1196280#c2 --- Comment #2 from dziobian <brunopitrus@hotmail.com> --- The issue does not occur when prime is disabled (only intel is used), and i am unable to use prime with the modesetting driver (SDDM crashes in a loop). Do nouveau drivers support being used as an offload source? If yes, i may try with them. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1196280 http://bugzilla.opensuse.org/show_bug.cgi?id=1196280#c3 --- Comment #3 from Stefan Dirsch <sndirsch@suse.com> --- Ok. At least rotation in intel-only mode is not broken. I'm not sure, but I believe this "offload" feature is only available with NVIDIA's proprietary driver. More details you can find here. https://download.nvidia.com/XFree86/Linux-x86_64/435.21/README/primerenderof... I'll try later on my Dell laptop, if rotation works in "offload" or at least "nvidia" mode. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1196280 http://bugzilla.opensuse.org/show_bug.cgi?id=1196280#c4 Stefan Dirsch <sndirsch@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Flags|needinfo?(brunopitrus@hotma | |il.com) | --- Comment #4 from Stefan Dirsch <sndirsch@suse.com> --- (In reply to Stefan Dirsch from comment #3)
Ok. At least rotation in intel-only mode is not broken.
I'm not sure, but I believe this "offload" feature is only available with NVIDIA's proprietary driver. More details you can find here.
https://download.nvidia.com/XFree86/Linux-x86_64/435.21/README/ primerenderoffload.html
I'll try later on my Dell laptop, if rotation works in "offload" or at least "nvidia" mode.
Rotation is working on my Dell Precision 5520 laptop with Intel/nVidia graphics (1080p) in "intel" (modesetting), "nvidia" and "offload" mode. nVidia driver series G06 510.54 and Kernel 5.16.10. But I'm using regular suse-prime from Tumbleweed. Model: "nVidia GM107GLM [Quadro M1200 Mobile]" Vendor: pci 0x10de "nVidia Corporation" Device: pci 0x13b6 "GM107GLM [Quadro M1200 Mobile]" Model: "Intel HD Graphics 530" Vendor: pci 0x8086 "Intel Corporation" Device: pci 0x191b "HD Graphics 530" -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1196280 Stefan Dirsch <sndirsch@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Component|X.Org |X11 3rd Party Driver QA Contact|gfx-bugs@suse.de |sndirsch@suse.com -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1196280 Stefan Dirsch <sndirsch@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|gfx-bugs@suse.de |sndirsch@suse.com -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1196280 http://bugzilla.opensuse.org/show_bug.cgi?id=1196280#c5 Stefan Dirsch <sndirsch@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Flags| |needinfo?(brunopitrus@hotma | |il.com) --- Comment #5 from Stefan Dirsch <sndirsch@suse.com> --- I don't see a keyboard connected to the display. Could this be an external monitor, which you try to rotate and not the internal display? I only tried with the internal display. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1196280 http://bugzilla.opensuse.org/show_bug.cgi?id=1196280#c6 --- Comment #6 from dziobian <brunopitrus@hotmail.com> --- The problem happens to me on all three displays ��� internal, HDMI and DP-over-USBC. How did you manage to get suse-prime working? Can you dump your list of xrandr outputs? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1196280 http://bugzilla.opensuse.org/show_bug.cgi?id=1196280#c7 Stefan Dirsch <sndirsch@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Flags|needinfo?(brunopitrus@hotma | |il.com) | --- Comment #7 from Stefan Dirsch <sndirsch@suse.com> --- I just installed suse-prime and ran prime-select intel --> log out; login in again prime-select nvidia --> log out; login in again prime-select offload --> log out; login in again -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1196280 http://bugzilla.opensuse.org/show_bug.cgi?id=1196280#c8 --- Comment #8 from Stefan Dirsch <sndirsch@suse.com> --- I noticed that the outputs are named differently in the different modes. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1196280 http://bugzilla.opensuse.org/show_bug.cgi?id=1196280#c9 dziobian <brunopitrus@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |sndirsch@suse.com Flags| |needinfo?(sndirsch@suse.com | |) --- Comment #9 from dziobian <brunopitrus@hotmail.com> --- (In reply to Stefan Dirsch from comment #8)
I noticed that the outputs are named differently in the different modes.
Do you have any outputs *at all* connected to the nvidia card in any mode? If yes, then your hardware configuration is very different from mine and you will likely not be able to repro this. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1196280 http://bugzilla.opensuse.org/show_bug.cgi?id=1196280#c10 Stefan Dirsch <sndirsch@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Flags|needinfo?(sndirsch@suse.com | |) | --- Comment #10 from Stefan Dirsch <sndirsch@suse.com> --- No, the internal display is connected to the internal Intel GPU. Just in "intel" mode it's called eDP-1 and in one or both of the other modes ("nvidia"/"offload") it's called eDP-1-1. I don't have connected any external monitors. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1196280 http://bugzilla.opensuse.org/show_bug.cgi?id=1196280#c11 --- Comment #11 from dziobian <brunopitrus@hotmail.com> --- I re-checked and prime-select now works for me, but only if i create an empty `/etc/modprobe.d/09-nvidia-modprobe-bbswitch-G04.conf` and re-run dracut in order to force nvidia drivers into the initramfs. Rotation works fine in `prime-select offload` mode, and has the bug in `prime-select nvidia` mode. But i want to use the discrete GPU, because with the integrated one, i have problems with videos dropping frames. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1196280 http://bugzilla.opensuse.org/show_bug.cgi?id=1196280#c12 --- Comment #12 from Stefan Dirsch <sndirsch@suse.com> --- (In reply to dziobian from comment #11)
I re-checked and prime-select now works for me, but only if i create an empty `/etc/modprobe.d/09-nvidia-modprobe-bbswitch-G04.conf` and re-run dracut in order to force nvidia drivers into the initramfs.
No idea, why this helps.
Rotation works fine in `prime-select offload` mode, and has the bug in `prime-select nvidia` mode.
So at least things work with 'offload' mode.
But i want to use the discrete GPU, because with the integrated one, i have problems with videos dropping frames.
But you have this with 'offload' mode. Maybe you haven't set the environment variables? https://github.com/openSUSE/SUSEPrime#installationusage [...] 4. Since 435.xx driver you can make use of NVIDIA's PRIME Render Offload feature in intel configurations (Xserver of Leap 15.2 or later needed!). Option "AllowNVIDIAGPUScreens" is already taken care of by intel X configs. You only need to set the __NV* environment variables. Check https://download.nvidia.com/XFree86/Linux-x86_64/435.21/README/primerenderof... for more details. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1196280 http://bugzilla.opensuse.org/show_bug.cgi?id=1196280#c13 --- Comment #13 from dziobian <brunopitrus@hotmail.com> --- Is it then possible to force specific executables to always use the discrete GPU? I don't have control over the environment variables passed to eg. the web browser, since it is often opened from other programs. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1196280 http://bugzilla.opensuse.org/show_bug.cgi?id=1196280#c14 --- Comment #14 from dziobian <brunopitrus@hotmail.com> --- I don't see anything prime-related in this list: https://download.nvidia.com/XFree86/Linux-x86/384.59/README/profiles.html -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1196280 http://bugzilla.opensuse.org/show_bug.cgi?id=1196280#c15 --- Comment #15 from Stefan Dirsch <sndirsch@suse.com> --- (In reply to dziobian from comment #14)
I don't see anything prime-related in this list: https://download.nvidia.com/XFree86/Linux-x86/384.59/README/profiles.html
NO, this one: https://download.nvidia.com/XFree86/Linux-x86_64/435.21/README/primerenderof... [...] __NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia glxinfo [...] -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1196280 http://bugzilla.opensuse.org/show_bug.cgi?id=1196280#c16 --- Comment #16 from Stefan Dirsch <sndirsch@suse.com> --- (In reply to dziobian from comment #13)
Is it then possible to force specific executables to always use the discrete GPU? I don't have control over the environment variables passed to eg. the web browser, since it is often opened from other programs.
I think this will work when you add the env. variables to one of these ~/.profile ~/.bashrc -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1196280 http://bugzilla.opensuse.org/show_bug.cgi?id=1196280#c17 --- Comment #17 from dziobian <brunopitrus@hotmail.com> --- (In reply to Stefan Dirsch from comment #16)
(In reply to dziobian from comment #13)
Is it then possible to force specific executables to always use the discrete GPU? I don't have control over the environment variables passed to eg. the web browser, since it is often opened from other programs.
I think this will work when you add the env. variables to one of these
~/.profile ~/.bashrc
I have tried that before, this enables it for all programs including Plasma, and makes Kwin very unstable (horrible screen tearing) -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1196280 http://bugzilla.opensuse.org/show_bug.cgi?id=1196280#c18 --- Comment #18 from Stefan Dirsch <sndirsch@suse.com> --- Hmm. Maybe working with a wrappser script, which sets the env. variable additional to the program one want to execute makes things better. I have no better solution. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1196280 http://bugzilla.opensuse.org/show_bug.cgi?id=1196280#c19 --- Comment #19 from dziobian <brunopitrus@hotmail.com> --- I confirm that Falkon (and other Chromium-based browsers) work fine under render offloading. I have put a wrapper script as /usr/local/bin/falkon. This solved my problems with video playing without forcing everything to nvidia rendering. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1196280 http://bugzilla.opensuse.org/show_bug.cgi?id=1196280#c20 --- Comment #20 from dziobian <brunopitrus@hotmail.com> --- I am closing this bug as due to managing to work with hybrid mode, it is no longer triggered for me. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1196280 http://bugzilla.opensuse.org/show_bug.cgi?id=1196280#c21 dziobian <brunopitrus@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|IN_PROGRESS |RESOLVED Resolution|--- |NORESPONSE --- Comment #21 from dziobian <brunopitrus@hotmail.com> --- I am closing this bug as due to managing to work with hybrid mode, it is no longer triggered for me. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1196280 http://bugzilla.opensuse.org/show_bug.cgi?id=1196280#c22 Stefan Dirsch <sndirsch@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|NORESPONSE |FIXED --- Comment #22 from Stefan Dirsch <sndirsch@suse.com> --- Kind of fixed. At least found an acceptable solution. -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@suse.com