Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Black screen when try to use Optimus
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
UlvHare
n00b
n00b


Joined: 09 Sep 2015
Posts: 20
Location: USSR

PostPosted: Thu Mar 07, 2024 10:14 am    Post subject: [SOLVED] Black screen when try to use Optimus Reply with quote

Hello all!
I'm trying to use my 3d accelerator with PRIME:
Code:

01:00.0 3D controller: NVIDIA Corporation GM107M [GeForce GTX 850M] (rev a2)
        Subsystem: ASUSTeK Computer Inc. GM107M [GeForce GTX 850M]
        Kernel driver in use: nvidia
        Kernel modules: nvidia_drm, nvidia


I've read https://wiki.gentoo.org/wiki/NVIDIA/Optimus and https://wiki.gentoo.org/wiki/NVIDIA/nvidia-drivers and https://wiki.gentoo.org/wiki/NVIDIA/Optimus/EDID_Xorg.conf_Example and http://us.download.nvidia.com/XFree86/Linux-x86_64/535.154.05/README/randr14.html, so I have such configuration:

/etc/xorg.conf.d/20-prime.conf
kernel config

/etc/sddm/scripts/Xsetup:
Code:

#!/bin/sh
xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto


in /etc/default/grub:
Code:

GRUB_CMDLINE_LINUX_DEFAULT="drm_kms_helper.edid_firmware=edid/monitor.bin"


But when I'm trying to start X(KDE) session I have a black screen and a such Xorg.0.log.

When using only intel configuration (replace /etc/xorg.conf.d/20-prime.conf by /etc/xorg.conf.d/20-intel.conf), everything OK except:

Code:

xrandr --listproviders
Providers: number : 1
Provider 0: id: 0x47 cap: 0xb, Source Output, Sink Output, Sink Offload crtcs: 4 outputs: 5 associated providers: 0 name:Intel


What's wrong? Please, help!


Last edited by UlvHare on Thu Mar 07, 2024 6:28 pm; edited 1 time in total
Back to top
View user's profile Send private message
UlvHare
n00b
n00b


Joined: 09 Sep 2015
Posts: 20
Location: USSR

PostPosted: Thu Mar 07, 2024 6:26 pm    Post subject: Reply with quote

Now solved! From here I've removed /etc/X11/xorg.conf.d/20-prime.conf and add /etc/X11/xorg.conf from official readme:
Code:

    Section "ServerLayout"
      Identifier "layout"
      Screen 0 "iGPU"
    EndSection

    Section "Device"
      Identifier "iGPU"
      Driver "modesetting"
    EndSection

    Section "Screen"
      Identifier "iGPU"
      Device "iGPU"
    EndSection

    Section "Device"
      Identifier "dGPU"
      Driver "nvidia"
    EndSection


And now it works. Full recipe is https://wiki.gentoo.org/wiki/NVIDIA/Optimus except auto-configure X and read-edid, which doesn't work in my laptop, so I used script from this message
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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