Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Secondary monitor with Prime offload on Debian 11

Need help with peripherals or devices?
Post Reply
Message
Author
frazatto
Posts: 34
Joined: 2018-06-21 11:48
Has thanked: 3 times

Secondary monitor with Prime offload on Debian 11

#1 Post by frazatto »

Is anybody able to use an external display (using HDMI cable) with Bullseye and Prime offloading on a hybrid laptop?

I'm following this guide and everything works perfect except a working second monitor :P
https://wiki.debian.org/NVIDIA%20Optimus
On Debian 10 I was using the exclusive GPU option and second monitor works fine, but laptop battery drains too fast.
All the solutions I found are old and rely on Bumblebee....so no.

The second monitor didn't work during Live installation either, BUT!!!! (and this is very interesting) It did work during the loading splash screen and shutting down splash screen. This is a big clue and I have no idea what happens there that could create this behavior.

On Debian 11 offloading works nice with the environment setting commands, as you can see:

Code: Select all

glxinfo | grep OpenGL

OpenGL vendor string: Intel
OpenGL renderer string: Mesa Intel(R) HD Graphics 630 (KBL GT2)
OpenGL core profile version string: 4.6 (Core Profile) Mesa 20.3.5
OpenGL core profile shading language version string: 4.60
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 4.6 (Compatibility Profile) Mesa 20.3.5
OpenGL shading language version string: 4.60
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.2 Mesa 20.3.5
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
OpenGL ES profile extensions:
And when I use the proper commands:

Code: Select all

__NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia glxinfo | grep OpenGL

OpenGL vendor string: NVIDIA Corporation
OpenGL renderer string: GeForce GTX 1050 Ti/PCIe/SSE2
OpenGL core profile version string: 4.6.0 NVIDIA 460.91.03
OpenGL core profile shading language version string: 4.60 NVIDIA
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile
OpenGL core profile extensions:
OpenGL version string: 4.6.0 NVIDIA 460.91.03
OpenGL shading language version string: 4.60 NVIDIA
OpenGL context flags: (none)
OpenGL profile mask: (none)
OpenGL extensions:
OpenGL ES profile version string: OpenGL ES 3.2 NVIDIA 460.91.03
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.20
OpenGL ES profile extensions:
I'm suspecting this have something to do with the section regarding LightDM configuration, but if I check xrandr for sources it shows me:

Code: Select all

xrandr --listproviders

Providers: number : 2
Provider 0: id: 0x44 cap: 0xf, Source Output, Sink Output, Source Offload, Sink Offload crtcs: 3 outputs: 2 associated providers: 0 name:modesetting
Provider 1: id: 0x24a cap: 0x2, Sink Output crtcs: 4 outputs: 1 associated providers: 0 name:NVIDIA-G0
And if I try to set the sources I get an error:

Code: Select all

sudo xrandr --setprovideroutputsource modesetting NVIDIA-G0

X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  140 (RANDR)
  Minor opcode of failed request:  35 (RRSetProviderOutputSource)
  Value in failed request:  0x24a
  Serial number of failed request:  16
  Current serial number in output stream:  17
Any clues????

Post Reply