You are not logged in.

#1 2022-02-16 15:35:20

_Benjamin753
Member
Registered: 2018-04-26
Posts: 25

Black screen Nvidia optimus

I'm using an Nvidia optimus setup, but recently (presumable since an update) Nvidia is no longer working (it boots into a black screen).  The archwiki says that this might be because of a conflict with my intel graphics, when adding the suggested solution to modprobe still gives a black screen, but with a blinking dash in the left-upper corner.

The following is my config:

/etc/X11/xorg.conf.d/99-nvidia.conf

Section "Module"
    Load "modesetting"
EndSection

Section "Device"
    Identifier "nvidia"
    Driver  "nvidia"
    BusID   "PCI:1:0:0"
    Option  "AllowEmptyInitialConfiguration"
EndSection

Section "Extensions"
    Option  "Composite" "Enable"
EndSection

I don't see unexpected errors or warnings in my dmesg (this is before I blacklisted Intel GPU modules).

[    6.546048] [drm] Initialized i915 1.6.0 20201103 for 0000:00:02.0 on minor 0
[    6.557902] ACPI: video: Video Device [GFX0] (multi-head: yes  rom: no  post: no)
[    6.559515] input: Video Bus as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/LNXVIDEO:00/input/input33
[    6.559829] ACPI: video: Video Device [PEGP] (multi-head: no  rom: yes  post: no)
[    6.560511] input: Video Bus as /devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:13/LNXVIDEO:01/input/input34
[    6.561833] snd_hda_intel 0000:00:1f.3: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915])
[    6.854721] nvidia: loading out-of-tree module taints kernel.
[    6.854764] nvidia: module license 'NVIDIA' taints kernel.
[    6.854768] Disabling lock debugging due to kernel taint
[    6.880997] nvidia: module verification failed: signature and/or required key missing - tainting kernel
[    6.924160] fbcon: i915drmfb (fb0) is primary device
[    6.938572] nvidia-nvlink: Nvlink Core is being initialized, major device number 510

[    6.940700] nvidia 0000:01:00.0: enabling device (0000 -> 0003)
[    6.940988] nvidia 0000:01:00.0: vgaarb: changed VGA decodes: olddecodes=io+mem,decodes=none:owns=none
[    6.944663] Console: switching to colour frame buffer device 240x67
[    6.985749] NVRM: loading NVIDIA UNIX x86_64 Kernel Module  510.47.03  Mon Jan 24 22:58:54 UTC 2022
[    7.005119] i915 0000:00:02.0: [drm] fb0: i915drmfb frame buffer device
[    7.069639] snd_hda_codec_realtek hdaudioC0D0: autoconfig for ALC255: line_outs=1 (0x14/0x0/0x0/0x0/0x0) type:speaker
[    7.069655] snd_hda_codec_realtek hdaudioC0D0:    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[    7.069662] snd_hda_codec_realtek hdaudioC0D0:    hp_outs=1 (0x21/0x0/0x0/0x0/0x0)
[    7.069669] snd_hda_codec_realtek hdaudioC0D0:    mono: mono_out=0x0
[    7.069673] snd_hda_codec_realtek hdaudioC0D0:    inputs:
[    7.069677] snd_hda_codec_realtek hdaudioC0D0:      Mic=0x12
[    7.127597] input: HDA Intel PCH Headphone as /devices/pci0000:00/0000:00:1f.3/sound/card0/input35
[    7.127781] input: HDA Intel PCH HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input36
[    7.127965] input: HDA Intel PCH HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input37
[    7.128151] input: HDA Intel PCH HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input38
[    7.128279] input: HDA Intel PCH HDMI/DP,pcm=9 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input39
[    7.128451] input: HDA Intel PCH HDMI/DP,pcm=10 as /devices/pci0000:00/0000:00:1f.3/sound/card0/input40
[    7.159803] nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX platforms  510.47.03  Mon Jan 24 22:51:43 UTC 2022
[    7.175251] [drm] [nvidia-drm] [GPU ID 0x00000100] Loading driver
[    7.259688] ACPI Warning: \_SB.PCI0.PEG0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20210930/nsarguments-61)
[    7.375117] kauditd_printk_skb: 13 callbacks suppressed
[    7.375127] audit: type=1130 audit(1644870077.732:24): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=systemd-backlight@backlight:intel_backlight comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[    8.186460] [drm] Initialized nvidia-drm 0.0.0 20160202 for 0000:01:00.0 on minor 1
[    8.406177] nvidia_uvm: module uses symbols from proprietary module nvidia, inheriting taint.
[    8.448044] nvidia-uvm: Loaded the UVM driver, major device number 508.
[    8.469747] Asymmetric key parser 'pkcs8' registered

Anyone knows how to solve this one?
Thanks in advance!

Offline

#2 2022-02-16 15:46:16

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,933

Re: Black screen Nvidia optimus

Most relevant info would be https://wiki.archlinux.org/title/Xorg#General

black screen, but with a blinking dash in the left-upper corner

suggests you'll benefit from https://wiki.archlinux.org/title/Kernel … _KMS_start

Offline

#3 2022-02-16 23:38:46

_Benjamin753
Member
Registered: 2018-04-26
Posts: 25

Re: Black screen Nvidia optimus

Adding the Nvidia modules to kms did not change the problem.
I forgot to list my xorg logs they are listed below.

Xorg.0.log.old ends with an error (without description)
Xorg.0.log

Offline

#4 2022-02-17 07:34:53

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 75,933

Re: Black screen Nvidia optimus

You're running on the nvidia chip, but there're no outputs attached.
https://bbs.archlinux.org/viewtopic.php … 7#p2022497 suggests that previously something did (do you use sddm?) did an implicit reverse prime output redirection for you - that's not happening and so you get a black screen.
The abort in the first log looks like https://bbs.archlinux.org/viewtopic.php?id=274158 - no idea where that's coming from atm.

Offline

Board footer

Powered by FluxBB