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