Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
black screen nvidia offloading(unsolved)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
hedmo
Veteran
Veteran


Joined: 29 Aug 2009
Posts: 1124
Location: sweden

PostPosted: Sun Nov 03, 2019 4:38 pm    Post subject: black screen nvidia offloading(unsolved) Reply with quote

hi

i am trying to offloading my nvidia card and using libglvnd with prime but i am getting a black screen:


xorg log = http://dpaste.com/2E6X34T
xorg.conf = http://dpaste.com/2W5ENFR
01-nvidia-offloading.conf = http://dpaste.com/1NFMDYS

regards hedmo


Last edited by hedmo on Sat Nov 16, 2019 6:24 am; edited 1 time in total
Back to top
View user's profile Send private message
coderanger
Apprentice
Apprentice


Joined: 19 Sep 2018
Posts: 152

PostPosted: Thu Nov 07, 2019 10:50 am    Post subject: Reply with quote

From logs I can see that you're loading proprietary nvidia drivers, and it seems this one step https://wiki.gentoo.org/wiki/NVIDIA/Optimus#Before_starting_X is missing.

Black screen is also possible if some drivers were not loaded (in my case it was nvidia_drm module).

Here are my working configs where I select videocard via grub menu, some values are specific to thinkpad t470p (for example, bus id) but I hope these configs will be helpful in order to figure out which steps need to be performed to get proprietary drivers working with optimus card:
for systemd users: http://blog.jee.org.ua/linux/nvidia/optimus/systemd/2019/11/05/nvidia-optimus-systemd.html
for openrc users: http://blog.jee.org.ua/linux/gentoo/nvidia/optimus/2019/04/22/gentoo-nvidia-optimus.html
Back to top
View user's profile Send private message
hedmo
Veteran
Veteran


Joined: 29 Aug 2009
Posts: 1124
Location: sweden

PostPosted: Fri Nov 15, 2019 7:56 pm    Post subject: Reply with quote

coderanger

thank you for the reply. i have had contact with nvidia.my laptop screen is attached to the nvidia card and there is no way for me to use the intel iGPU with the proprietary NVIDIA
card driver. to make this work i have to have nouveau with reverse prime.

regards hedmo
Back to top
View user's profile Send private message
nkichukov
n00b
n00b


Joined: 16 Oct 2012
Posts: 12
Location: Amstelveen, Netherlands

PostPosted: Sun May 10, 2020 10:17 pm    Post subject: Reply with quote

Hi there,
this works already, see: https://bugs.gentoo.org/show_bug.cgi?id=692206

intel, nvidia and libglvnd is what is needed. The only required configuration change is:

Code:

    Section "ServerLayout"
      Identifier "layout"
      Option "AllowNVIDIAGPUScreens"
    EndSection


as described in: https://download.nvidia.com/XFree86/Linux-x86_64/440.44/README/primerenderoffload.html

However, my next problem was, additional displayport/hdmi displays were only recognized by the dGPU and not presentable to the iGPU. So I had to switch my bios to discrete GPU, instead of the hybrid configuration. I am trying to figure out a way to preset additional displays to xrandr in the above configuration.

See: https://bugs.gentoo.org/show_bug.cgi?id=692206#c80
Back to top
View user's profile Send private message
mao
n00b
n00b


Joined: 22 Mar 2017
Posts: 37
Location: Poland

PostPosted: Mon Sep 28, 2020 4:36 pm    Post subject: Reply with quote

Hi,

dear Gentoo users, you have my deep gratitude, as thanks to this advice:
coderanger wrote:

Here are my working configs where I select videocard via grub menu, some values are specific to thinkpad t470p (for example, bus id) but I hope these configs will be helpful in order to figure out which steps need to be performed to get proprietary drivers working with optimus card:
for systemd users: http://blog.jee.org.ua/linux/nvidia/optimus/systemd/2019/11/05/nvidia-optimus-systemd.html
for openrc users: http://blog.jee.org.ua/linux/gentoo/nvidia/optimus/2019/04/22/gentoo-nvidia-optimus.html

and this one

nkichukov wrote:

intel, nvidia and libglvnd is what is needed. The only required configuration change is:

Code:

    Section "ServerLayout"
      Identifier "layout"
      Option "AllowNVIDIAGPUScreens"
    EndSection


I was finally able to make Nvidia / intel to run properly on my local machine and use 3D acceleration to its fullest.

The most useful piece of advice for me was to include XRandR instruction in script loaded by the desktop environment, e.g. sddm ( /usr/share/sddm/scripts/Xsetup ) for me. I tried to include these commands in /etc/X11/xinit/xinitrc but it wouldn't work (now I know why).

Best regards.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum