What configuration should the xorg.conf have?

What configuration should the xorg.conf have?

I have been trying for two days to get this Nvidia working again and I can’t find the right configuration.

Intel and Nvidia RTX 3050 ti Hybrid Laptop
Debian Bullseye

The following setup worked before, I followed the debian wiki but I still get the black screen after installing the Nvidia private drivers, on reboot.

Here is the configuration script that worked before:


lspci -nn | egrep -i “3d|display|vga”
00:02.0 VGA compatible controller [0300]: Intel Corporation TigerLake-H GT1 [UHD Graphics] [8086:9a60] (rev 01)
00:17.0 SATA controller [0106]: Intel Corporation Device [8086:43d3] (rev 11)
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GA107M [GeForce RTX 3050 Ti Mobile] [10de:25a0] (rev a1)

nvidia-detect
nvidia-driver

apt install linux-headers-amd64

apt install nvidia-driver firmware-misc-nonfree

nano /etc/X11/xorg.conf
Section “ServerLayout”
Identifier “layout”
Screen 0 “nvidia”
Inactive “intel”
EndSection

Section “Device”
Identifier “nvidia”
Driver “nvidia”
BusID “PCI:1:0:0”
EndSection

Section “Screen”
Identifier “nvidia”
Device “nvidia”
Option “AllowEmptyInitialConfiguration”
EndSection

Section “Device”
Identifier “intel”
Driver “modesetting”
EndSection

Section “Screen”
Identifier “intel”
Device “intel”
EndSection

nano /etc/lightdm/display_setup.sh
xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto
xrandr --dpi 96

chmod +x /etc/lightdm/display_setup.sh

nano /etc/lightdm/lightdm.conf
[SeatDefaults]
display-setup-script=/etc/lightdm/display_setup.sh

reboot


I have reinstalled a few times and also tried it with Bookworm and Sid.

I’m calling on you because I’m out of ideas.

With the free drivers it works fine

Any suggestions on how to get this graphic to work properly in debian?

Thanks

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

@generix @usuario948
I have Dell G15 laptop with GeForce RTX 3050 and I am seeing exact same issue.
Is there a solution to this issue?

1 Like

@usuario948

I was able to resolve my issue. Here are the steps:

– install latest Ubuntu 21.x version (not 20.x)
– download latest Nvidia driver from Nvidia website
– download latest Cuda version

These steps got both HDMI and laptop screen functioning.

HTH

1 Like

strong text[quote=“usuario948, post:1, topic:203303”]

If you don’t want to complicate things, you can use any of these distributions:

  • POP! OS
  • Garuda Linux
  • Manjaro
  • Open Suse
  1. My problem was with Debian and it is solved:
  2. After installing Debian reboot
  3. In the Grub press the E key
  4. Follow this instruction to only add “splash nomodeset” during the first boot, it is not necessary to leave this option as default: Manual "nomodeset" Kernel Boot Line Option for Linux Booting | Dell Canada
  5. When the computer boots, it does so with Intel, download the official drivers from the Nvidia website and install the nvidiadriver.sh, reboot.
  6. If everything is correct, boot without adding “splash nomodeset” to the grub.
  7. Once rebooted it does it with the Intel graphics, for me it was necessary to add the following to always boot with the Nvidia:

nano /etc/X11/xorg.conf
Section “ServerLayout”
Identifier “layout”
Screen 0 “nvidia”
Inactive “intel”
EndSection

Section “Device”
Identifier “nvidia”
Driver “nvidia”
BusID “PCI:1:0:0”
EndSection

Section “Screen”
Identifier “nvidia”
Device “nvidia”
Option “AllowEmptyInitialConfiguration”
EndSection

Section “Device”
Identifier “intel”
Driver “modesetting”
EndSection

Section “Screen”
Identifier “intel”
Device “intel”
EndSection

nano /etc/lightdm/display_setup.sh
xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto
xrandr --dpi 96

chmod +x /etc/lightdm/display_setup.sh

nano /etc/lightdm/lightdm.conf
[SeatDefaults]
display-setup-script=/etc/lightdm/display_setup.sh
[/quote]

After that you can use arandr to configure the displays, personally I use a custom script to configure my second monitor.

Finally after installing the drivers manually, reinstall from the official non-free repository.

apt-get install nvidia-driver firmware-misc-nonfree

In addition to the other things recommended by the debian wiki

https://wiki.debian.org/NvidiaGraphicsDrivers
https://wiki.debian.org/NVIDIA%20Optimus

1 Like