Hello generix, Sorry for the late reply
as I already said, removing the 20-intel.conf file makes me unable to boot into ubuntu where the ubuntu loading screen just freezes, But I did that anyway and after removing the file, I couldn’t boot into ubuntu even with changing grub setting to “nosplash”, so I entered tty mode and made the nvidia-bug-report.log file in tty mode (with the .conf file removed) and then returned the 20-intel.conf file back to revert changes and be able to boot into ubuntu.
Here are the contents of my 20-intel.conf: (/usr/share/X11/xorg.conf.d/20-intel.conf)
Section “Device”
Identifier “0x42”
Driver “intel”
Option “Backlight” “intel_backlight”
BusID “PCI:0:2:0”
EndSection
Contents of 10-nvidia.conf: (/usr/share/X11/xorg.conf.d/10-nvidia.conf)
Section “OutputClass”
Identifier “nvidia”
MatchDriver “nvidia-drm”
Driver “nvidia”
Option “AllowEmptyInitialConfiguration”
ModulePath “/usr/lib/x86_64-linux-gnu/nvidia/xorg”
EndSection
Content of 11-nvidia-prime.conf (/usr/share/X11/xorg.conf.d/11-nvidia-prime.conf)
Section “OutputClass”
Identifier “Nvidia Prime”
MatchDriver “nvidia-drm”
Driver “nvidia”
Option “AllowEmptyInitialConfiguration”
Option “IgnoreDisplayDevices” “CRT”
Option “PrimaryGPU” “Yes”
ModulePath “/x86_64-linux-gnu/nvidia/xorg”
EndSection
Grub (/etc/default/grub) Settings:
GRUB_DEFAULT=0
GRUB_TIMEOUT_STYLE=hidden
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""
# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"
# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console
# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480
# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true
# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"
# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"
output of inxi -G
inxi -G
Graphics: Device-1: Intel HD Graphics 620 driver: i915 v: kernel
Device-2: NVIDIA GM108M [GeForce 940MX] driver: nvidia v: 440.82
Display: x11 server: X.Org 1.20.5 driver: none resolution: 1920x1080~60Hz
OpenGL: renderer: Mesa DRI Intel HD Graphics 620 (Kaby Lake GT2) v: 4.5 Mesa 19.2.8
Names of files in /usr/share/X11/xorg.conf.d/ directory:
10-nvidia.conf 10-quirks.conf 11-nvidia-prime.conf 20-intel.conf 40-libinput.conf 70-wacom.conf
I don’t know if all of this information would provide any help but here they are.
And Here is the .log file with 20-intel.conf file removed (From TTY mode).
nvidia-bug-report.log (1.1 MB)