Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Kernel & Hardware
  • Search

[SOLVED] Black screen when try to use Optimus

Kernel not recognizing your hardware? Problems with power management or PCMCIA? What hardware is compatible with Gentoo? See here. (Only for kernels supported by Gentoo.)
Post Reply
Advanced search
2 posts • Page 1 of 1
Author
Message
UlvHare
n00b
n00b
Posts: 24
Joined: Wed Sep 09, 2015 9:40 pm
Location: USSR

[SOLVED] Black screen when try to use Optimus

  • Quote

Post by UlvHare » Thu Mar 07, 2024 10:14 am

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

Code: Select all

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/Opt ... nf_Example and http://us.download.nvidia.com/XFree86/L ... ndr14.html, so I have such configuration:

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

/etc/sddm/scripts/Xsetup:

Code: Select all

#!/bin/sh
xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto
in /etc/default/grub:

Code: Select all

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: Select all

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.
Top
UlvHare
n00b
n00b
Posts: 24
Joined: Wed Sep 09, 2015 9:40 pm
Location: USSR

  • Quote

Post by UlvHare » Thu Mar 07, 2024 6:26 pm

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: Select all

    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
Top
Post Reply

2 posts • Page 1 of 1

Return to “Kernel & Hardware”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy