Black screen after booting with no option linux OS

Hi,
I’ve been trying to get my laptop with GTX1650 graphic card use this card but have failed after several attempts, based on the Nvidia instructions but also alternatives found on the internet. Finally I always seem to end up with a black screen after booting with no option to get a graphical environment. I then need to remove the automatically created xorg.conf file, otherwise there is no way to get my (non-Nvidia) graphics environment back.
Hopefully you can help me as I need the features of this card for some games.
Below I give some output of my system. If you need more information, please let me know.
Looking forward to your reply.
Mike

uname -a:
Linux pcmb 4.19.0-13-amd64 #1 SMP Debian 4.19.160-2 (2020-11-28) x86_64 GNU/Linux

lsusb:
00:00.0 Host bridge: Intel Corporation 8th Gen Core Processor Host Bridge/DRAM Registers (rev 07)
00:01.0 PCI bridge: Intel Corporation Skylake PCIe Controller (x16) (rev 07)
00:02.0 VGA compatible controller: Intel Corporation UHD Graphics 630 (Mobile)
00:12.0 Signal processing controller: Intel Corporation Cannon Lake PCH Thermal Controller (rev 10)
00:14.0 USB controller: Intel Corporation Cannon Lake PCH USB 3.1 xHCI Host Controller (rev 10)
00:14.2 RAM memory: Intel Corporation Cannon Lake PCH Shared SRAM (rev 10)
00:15.0 Serial bus controller [0c80]: Intel Corporation Cannon Lake PCH Serial IO I2C Controller (rev 10)
00:16.0 Communication controller: Intel Corporation Cannon Lake PCH HECI Controller (rev 10)
00:17.0 SATA controller: Intel Corporation Cannon Lake Mobile PCH SATA AHCI Controller (rev 10)
00:1d.0 PCI bridge: Intel Corporation Cannon Lake PCH PCI Express Root Port (rev f0)
00:1d.5 PCI bridge: Intel Corporation Cannon Lake PCH PCI Express Root Port (rev f0)
00:1d.6 PCI bridge: Intel Corporation Cannon Lake PCH PCI Express Root Port (rev f0)
00:1f.0 ISA bridge: Intel Corporation Device a30d (rev 10)
00:1f.3 Audio device: Intel Corporation Cannon Lake PCH cAVS (rev 10)
00:1f.4 SMBus: Intel Corporation Cannon Lake PCH SMBus Controller (rev 10)
00:1f.5 Serial bus controller [0c80]: Intel Corporation Cannon Lake PCH SPI Controller (rev 10)
01:00.0 VGA compatible controller: NVIDIA Corporation Device 1f91 (rev a1)
01:00.1 Audio device: NVIDIA Corporation Device 10fa (rev a1)
06:00.0 Non-Volatile memory controller: Samsung Electronics Co Ltd NVMe SSD Controller SM981/PM981
07:00.0 Network controller: Intel Corporation Device 2723 (rev 1a)
08:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTL8411B PCI Express Card Reader (rev 01)
08:00.1 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 12)

lshw:
description: Notebook
product: NH50_70RA (Not Applicable)
vendor: Notebook
version: Not Applicable
serial: Not Applicable
width: 64 bits
capabilities: smbios-3.0.1 dmi-3.0.1 smp vsyscall32
configuration: administrator_password=enabled boot=normal chassis=notebook family=Not Applicable sku=Not Applicable uuid=36D31B3E-436C-9842-870F-5BC12814E101
*-core
description: Motherboard
product: NH50_70RA
vendor: Notebook
physical id: 0
version: Not Applicable
serial: Not Applicable
slot: To Be Filled By O.E.M.
*-firmware
description: BIOS
vendor: INSYDE Corp.
physical id: 0
version: 1.07.08
date: 08/01/2019
size: 128KiB
capacity: 10MiB
capabilities: pci upgrade shadowing bootselect edd int5printscreen int17printer acpi usb biosbootspecification uefi
*-cpu
description: CPU
product: Intel® Core™ i7-9750H CPU @ 2.60GHz
vendor: Intel Corp.
physical id: 4
bus info: cpu@0
version: Intel® Core™ i7-9750H CPU @ 2.60GHz
serial: To Be Filled By O.E.M.
slot: U3E1
size: 3753MHz
capacity: 4500MHz
width: 64 bits
clock: 100MHz
capabilities: lm fpu fpu_exception wp vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp x86-64 constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single pti ssbd ibrs ibpb stibp tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid mpx rdseed adx smap clflushopt intel_pt xsaveopt xsavec xgetbv1 xsaves dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp md_clear flush_l1d cpufreq
configuration: cores=6 enabledcores=6 threads=12
*-cache:0
description: L1 cache
physical id: 5
slot: L1 Cache
size: 384KiB
capacity: 384KiB
capabilities: synchronous internal write-back unified
configuration: level=1
*-cache:1
description: L2 cache
physical id: 6
slot: L2 Cache
size: 1536KiB
capacity: 1536KiB
capabilities: synchronous internal write-back unified
configuration: level=2
*-cache:2
description: L3 cache
physical id: 7
slot: L3 Cache
size: 12MiB
capacity: 12MiB
capabilities: synchronous internal write-back unified
configuration: level=3
*-memory
description: System Memory
physical id: 1c
slot: System board or motherboard
size: 16GiB
*-bank:0
description: SODIMM DDR4 Synchronous 2667 MHz (0.4 ns)
product: TEAMGROUP-SD4-2666
vendor: Fujitsu
physical id: 0
serial: 0104EA77
slot: ChannelA-DIMM0
size: 16GiB
width: 64 bits
clock: 2667MHz (0.4ns)
*-bank:1
description: [empty]
physical id: 1
slot: ChannelB-DIMM0
*-pci
description: Host bridge
product: Intel Corporation
vendor: Intel Corporation
physical id: 100
bus info: pci@0000:00:00.0
version: 07
width: 32 bits
clock: 33MHz
configuration: driver=skl_uncore
resources: irq:0
*-pci:0
description: PCI bridge
product: Skylake PCIe Controller (x16)
vendor: Intel Corporation
physical id: 1
bus info: pci@0000:00:01.0
version: 07
width: 32 bits
clock: 33MHz
capabilities: pci pm msi pciexpress normal_decode bus_master cap_list
configuration: driver=pcieport
resources: irq:122 ioport:4000(size=4096) memory:a3000000-a40fffff ioport:90000000(size=301989888)
*-display
description: VGA compatible controller
product: NVIDIA Corporation
vendor: NVIDIA Corporation
physical id: 0
bus info: pci@0000:01:00.0
version: a1
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress vga_controller bus_master cap_list rom
configuration: driver=nvidia latency=0
resources: irq:161 memory:a3000000-a3ffffff memory:90000000-9fffffff memory:a0000000-a1ffffff ioport:4000(size=128) memory:a4080000-a40fffff
*-multimedia
description: Audio device
product: NVIDIA Corporation
vendor: NVIDIA Corporation
physical id: 0.1
bus info: pci@0000:01:00.1
version: a1
width: 32 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list
configuration: driver=snd_hda_intel latency=0
resources: irq:17 memory:a4000000-a4003fff
*-display
description: VGA compatible controller
product: Intel Corporation
vendor: Intel Corporation
physical id: 2
bus info: pci@0000:00:02.0
version: 00
width: 64 bits
clock: 33MHz
capabilities: pciexpress msi pm vga_controller bus_master cap_list rom
configuration: driver=i915 latency=0
resources: irq:132 memory:a2000000-a2ffffff memory:b0000000-bfffffff ioport:5000(size=64) memory:c0000-dffff
*-generic
description: Signal processing controller
product: Intel Corporation
vendor: Intel Corporation
physical id: 12
bus info: pci@0000:00:12.0
version: 10
width: 64 bits
clock: 33MHz
capabilities: pm msi bus_master cap_list
configuration: driver=intel_pch_thermal latency=0
resources: irq:16 memory:a4518000-a4518fff
*-usb
description: USB controller
product: Intel Corporation
vendor: Intel Corporation
physical id: 14
bus info: pci@0000:00:14.0
version: 10
width: 64 bits
clock: 33MHz
capabilities: pm msi xhci bus_master cap_list
configuration: driver=xhci_hcd latency=0
resources: irq:129 memory:a4500000-a450ffff
*-usbhost:0
product: xHCI Host Controller
vendor: Linux 4.19.0-13-amd64 xhci-hcd
physical id: 0
bus info: usb@1
logical name: usb1
version: 4.19
capabilities: usb-2.00
configuration: driver=hub slots=16 speed=480Mbit/s
*-usb:0 UNCLAIMED
description: Generic USB device
product: SAMSUNG_Android
vendor: SAMSUNG
physical id: 2
bus info: usb@1:2
version: 4.00
serial: 42001021f4fcc397
capabilities: usb-2.00
configuration: maxpower=96mA speed=480Mbit/s
*-usb:1
description: Mouse
product: USB Receiver
vendor: Logitech
physical id: 6
bus info: usb@1:6
version: 30.00
capabilities: usb-2.00
configuration: driver=usbhid maxpower=98mA speed=12Mbit/s
*-usb:2
description: Video
product: Chicony USB2.0 Camera
vendor: Sonix Technology Co., Ltd.
physical id: 8
bus info: usb@1:8
version: 54.04
capabilities: usb-2.00
configuration: driver=uvcvideo maxpower=500mA speed=480Mbit/s
*-usb:3
description: Bluetooth wireless interface
vendor: Intel Corp.
physical id: e
bus info: usb@1:e
version: 0.01
capabilities: bluetooth usb-2.01
configuration: driver=btusb maxpower=100mA speed=12Mbit/s
*-usbhost:1
product: xHCI Host Controller
vendor: Linux 4.19.0-13-amd64 xhci-hcd
physical id: 1
bus info: usb@2
logical name: usb2
version: 4.19
capabilities: usb-3.10
configuration: driver=hub slots=8 speed=10000Mbit/s
*-memory UNCLAIMED
description: RAM memory
product: Intel Corporation
vendor: Intel Corporation
physical id: 14.2
bus info: pci@0000:00:14.2
version: 10
width: 64 bits
clock: 33MHz (30.3ns)
capabilities: pm bus_master cap_list
configuration: latency=0
resources: memory:a4514000-a4515fff memory:a4519000-a4519fff
*-serial:0
description: Serial bus controller
product: Intel Corporation
vendor: Intel Corporation
physical id: 15
bus info: pci@0000:00:15.0
version: 10
width: 64 bits
clock: 33MHz
capabilities: pm bus_master cap_list
configuration: driver=intel-lpss latency=0
resources: irq:16 memory:8d800000-8d800fff
*-communication
description: Communication controller
product: Intel Corporation
vendor: Intel Corporation
physical id: 16
bus info: pci@0000:00:16.0
version: 10
width: 64 bits
clock: 33MHz
capabilities: pm msi bus_master cap_list
configuration: driver=mei_me latency=0
resources: irq:145 memory:a451b000-a451bfff
*-sata
description: SATA controller
product: Intel Corporation
vendor: Intel Corporation
physical id: 17
bus info: pci@0000:00:17.0
logical name: scsi4
version: 10
width: 32 bits
clock: 66MHz
capabilities: sata msi pm ahci_1.0 bus_master cap_list emulated
configuration: driver=ahci latency=0
resources: irq:130 memory:a4516000-a4517fff memory:a451f000-a451f0ff ioport:5080(size=8) ioport:5088(size=4) ioport:5060(size=32) memory:a451e000-a451e7ff
*-disk
description: ATA Disk
product: Samsung SSD 860
physical id: 0.0.0
bus info: scsi@4:0.0.0
logical name: /dev/sda
version: 1B6Q
serial: S4CZNF0M415312N
size: 931GiB (1TB)
capabilities: gpt-1.00 partitioned partitioned:gpt
configuration: ansiversion=5 guid=c2d982a4-b85b-4daf-8bdb-ae3a4ea90317 logicalsectorsize=512 sectorsize=512
*-volume
description: EXT4 volume
vendor: Linux
physical id: 1
bus info: scsi@4:0.0.0,1
logical name: /dev/sda1
logical name: /home
version: 1.0
serial: d9b8d71d-d3cc-44f3-b6dc-c9e4d001a4fa
size: 931GiB
capabilities: journaled extended_attributes large_files huge_files dir_nlink recover 64bit extents ext4 ext2 initialized
configuration: created=2020-02-14 20:18:36 filesystem=ext4 lastmountpoint=/home modified=2020-12-23 18:22:41 mount.fstype=ext4 mount.options=rw,relatime mounted=2020-12-23 18:22:41 name=UserSpace state=mounted
*-pci:1
description: PCI bridge
product: Intel Corporation
vendor: Intel Corporation
physical id: 1d
bus info: pci@0000:00:1d.0
version: f0
width: 32 bits
clock: 33MHz
capabilities: pci pciexpress msi pm normal_decode bus_master cap_list
configuration: driver=pcieport
resources: irq:123 memory:a4400000-a44fffff
*-storage
description: Non-Volatile memory controller
product: Samsung Electronics Co Ltd
vendor: Samsung Electronics Co Ltd
physical id: 0
bus info: pci@0000:06:00.0
version: 00
width: 64 bits
clock: 33MHz
capabilities: storage pm msi pciexpress msix nvm_express bus_master cap_list
configuration: driver=nvme latency=0
resources: irq:16 memory:a4400000-a4403fff
*-pci:2
description: PCI bridge
product: Intel Corporation
vendor: Intel Corporation
physical id: 1d.5
bus info: pci@0000:00:1d.5
version: f0
width: 32 bits
clock: 33MHz
capabilities: pci pciexpress msi pm normal_decode bus_master cap_list
configuration: driver=pcieport
resources: irq:124 memory:a4300000-a43fffff
*-network
description: Ethernet interface
product: Intel Corporation
vendor: Intel Corporation
physical id: 0
bus info: pci@0000:07:00.0
logical name: wlp7s0
version: 1a
serial: 90:78:41:30:ea:08
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress msix bus_master cap_list ethernet physical
configuration: broadcast=yes driver=iwlwifi driverversion=4.19.0-13-amd64 firmware=46.3cfab8da.0 cc-a0-46.ucode ip=192.168.2.102 latency=0 link=yes multicast=yes
resources: irq:17 memory:a4300000-a4303fff
*-pci:3
description: PCI bridge
product: Intel Corporation
vendor: Intel Corporation
physical id: 1d.6
bus info: pci@0000:00:1d.6
version: f0
width: 32 bits
clock: 33MHz
capabilities: pci pciexpress msi pm normal_decode bus_master cap_list
configuration: driver=pcieport
resources: irq:125 ioport:3000(size=4096) memory:a4200000-a42fffff
*-generic
description: Unassigned class
product: RTL8411B PCI Express Card Reader
vendor: Realtek Semiconductor Co., Ltd.
physical id: 0
bus info: pci@0000:08:00.0
version: 01
width: 32 bits
clock: 33MHz
capabilities: pm msi pciexpress msix vpd bus_master cap_list rom
configuration: driver=rtsx_pci latency=0
resources: irq:126 memory:a4205000-a4205fff memory:a4210000-a421ffff
*-network
description: Ethernet interface
product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
vendor: Realtek Semiconductor Co., Ltd.
physical id: 0.1
bus info: pci@0000:08:00.1
logical name: enp8s0f1
version: 12
serial: 80:fa:5b:78:31:b5
capacity: 1Gbit/s
width: 64 bits
clock: 33MHz
capabilities: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp aui bnc mii fibre 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
configuration: autonegotiation=on broadcast=yes driver=r8169 firmware=rtl8411-2_0.0.1 07/08/13 latency=0 link=no multicast=yes port=MII
resources: irq:18 ioport:3000(size=256) memory:a4204000-a4204fff memory:a4200000-a4203fff
*-isa
description: ISA bridge
product: Intel Corporation
vendor: Intel Corporation
physical id: 1f
bus info: pci@0000:00:1f.0
version: 10
width: 32 bits
clock: 33MHz
capabilities: isa bus_master
configuration: latency=0
*-multimedia
description: Audio device
product: Intel Corporation
vendor: Intel Corporation
physical id: 1f.3
bus info: pci@0000:00:1f.3
version: 10
width: 64 bits
clock: 33MHz
capabilities: pm msi bus_master cap_list
configuration: driver=snd_hda_intel latency=32
resources: irq:160 memory:a4510000-a4513fff memory:a4100000-a41fffff
*-serial:1
description: SMBus
product: Intel Corporation
vendor: Intel Corporation
physical id: 1f.4
bus info: pci@0000:00:1f.4
version: 10
width: 64 bits
clock: 33MHz
configuration: driver=i801_smbus latency=0
resources: irq:16 memory:a451c000-a451c0ff ioport:5040(size=32)
*-serial:2 UNCLAIMED
description: Serial bus controller
product: Intel Corporation
vendor: Intel Corporation
physical id: 1f.5
bus info: pci@0000:00:1f.5
version: 10
width: 32 bits
clock: 33MHz
capabilities: bus_master
configuration: latency=0
resources: memory:fe010000-fe010fff
*-pnp00:00
product: PnP device PNP0c02
physical id: 1
capabilities: pnp
configuration: driver=system
*-pnp00:01
product: PnP device PNP0c02
physical id: 2
capabilities: pnp
configuration: driver=system
*-pnp00:02
product: PnP device PNP0c02
physical id: 3
capabilities: pnp
configuration: driver=system
*-pnp00:03
product: PnP device PNP0b00
physical id: 5
capabilities: pnp
configuration: driver=rtc_cmos
*-pnp00:04
product: PnP device INT3f0d
physical id: 6
capabilities: pnp
configuration: driver=system
*-pnp00:05
product: PnP device PNP0303
physical id: 7
capabilities: pnp
configuration: driver=i8042 kbd
*-pnp00:06
product: PnP device PNP0f13
physical id: 8
capabilities: pnp
configuration: driver=i8042 aux
*-pnp00:07
product: PnP device PNP0c02
physical id: 9
capabilities: pnp
configuration: driver=system
*-pnp00:08
product: PnP device PNP0c02
physical id: a
capabilities: pnp
configuration: driver=system
*-battery
description: Zinc Air Battery
product: CRB Battery 0
vendor: -Virtual Battery 0-
physical id: 1
version: 08/08/2010
serial: Battery 0
slot: Fake
*-power UNCLAIMED
description: OEM Define 1
product: OEM Define 5
vendor: OEM Define 2
physical id: 2
version: OEM Define 6
serial: OEM Define 3
capacity: 75mWh

Please see this:
https://forums.developer.nvidia.com/t/official-driver-384-59-with-geforce-1050m-doesnt-work-on-opensuse-tumbleweed-kde/52620/2?u=generix

Not sure if this will help. This refers to a OpenSuse OS, I have Debian 10
I’ve installed nvidia-driver and lsmod shows:

nvidia_drm 53248 0
nvidia_modeset 1097728 2 nvidia_drm
nvidia 18657280 27 nvidia_modeset

And nouveau seems not to be loaded.

When I try to start an application using " __NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia" I get errors like:

Error: Unable to create OpenGL graphics context.
getDefaultWindow: failed to create GraphicsContext

Please run nvidia-bug-report.sh as root and attach the resulting nvidia-bug-report.log.gz file to your post.

Hi,

Please find the output of the bug.report. Will this help solve the problem?

Thanks

Mike

nvidia-bug-report.log.gz (1.1 MB)

There’s a driver installed and working but this looks like a driver that came with cuda (v418) which doesn’t come with any X config. How did you install the driver?

I’m not sure. Maybe it was automagically selected while installing some other package. When I search for installed packages none of the libcuda packages or other packages referring to cuda have been installed, however l do find some files referring to cuda in /usr/include, /usr/lib.

Does this bring us closer to the solution:

apt search cuda | grep installed
libnvidia-fatbinaryloader/stable,now 418.152.00-1 amd64 [installed,automatic]
libnvidia-ptxjitcompiler1/stable,now 418.152.00-1 amd64 [installed,automatic]

Any thoughts about this problem? All help much appreciated

Sorry, I just lost track of this thread. First of all, please upgrade the driver, the 418 seems to be the standard Debian 10 driver but it’s quite outdated.
https://wiki.debian.org/NvidiaGraphicsDrivers#Version_460.32.03_.28via_buster-backports.29
That version supports the needed features and should come with some basic config files. Please create a new nvidia-bug-report.log afterwards.

OK, great. Here’s the new bugreport:
nvidia-bug-report.log.gz (1.1 MB)

The driver is fine now and the basic config file is also installed now but the problem is the Xserver is only v 1.20.4 (standard for debian stable) but at least 1.20.6 is needed. I didn’t find any way to upgrade it without upgrading to debian testing.
You could still use PRIME output by using the config from the first link I gave, resulting in a higher power consumption since the nvidia gpu will always be used.

Mmm… not much luck, unfortunately.
What I did was:

  1. create xorg.conf with the contents given in the link
  2. create the optimus.desktop file in /etc/xdg/autostart
  3. options nvidia_460_drm modeset=1
  4. update-initramfs -u
  5. reboot ==> black screen

in step 2 I omitted the copy of the file in the gdm/greeter directory, I have sddm, could not find an equivalent directory

could revert the problem by renaming the xorg.conf file

Please try this:

  • delete xorg.conf
  • copy /usr/share/X11/xorg.conf.d/nvidia-drm-outputclass.conf to /etc/X11/xorg.conf.d/10-nvidia-primary.conf (create directory if it doesn’t exist)
  • modify the file, adding
Option "PrimaryGPU" "yes"

inside the outputclass section.

options nvidia-drm modeset=1
  • update the initrd
  • reboot

Bingo! No black screen and X11 seem to use the card.
Thanks for your help!

Still some trouble. At random moments I get an empty system tray notification (see image) at the same time KDE crashes. Although I can still work and start applications with ALT-F2, none of the panels are responsive and I cannot start applications using the menu. In /bin/top plasmashell seems to use 100% CPU continuously.

Any thoughts to solve this?

Screenshot_20210131_132146

Which KDE version are you running?

The default kde5 of debian buster. I think the version is 4:17.08

kwin and the nvidia driver don’t work well together, you could try to set the render backend to xrender in kde config.

Tried that but did not solve the problem. Any other option?

You can try to run
kwin --replace
when the crash happens to at least return to a working state.