kernel 4.16.0-kali2-amd64
nvidia 418.56
nvidia-drm.modeset=1 in /etc/default/grub (already tried without this option at boot)
driver installed with --no-cc-version-check option and registered with dkms
X-GDM-Bypass-Xsession=true is set in /usr/share/xsessions/gnome.desktop (tried removing it)
WaylandEnable=false in /etc/gdm3/daemon.conf
optimus.desktop (in ~/.config/autostart/ and /usr/share/gdm/greeter/autostart
[Desktop Entry]
Type=Application
Name=Optimus
Exec=sh -c “xrandr --setprovideroutputsource modesetting NVIDIA-0; xrandr --auto; logger setOptimus”
NoDisplay=true
X-Gnome-Autostart-Phase=DisplayServer
/etc/X11/xorg.conf configured for dual-gpu mode with drivers “nvidia” and “modesetting”
The above configuration with X-GDM-BypassXsession=true and nvidia-drm.modeset=1 WaylandEnable=false worked with the same kernel and driver 390.87
Current configuration for the logs below:
nvidia-drm.modeset=1 in /etc/default/grub
WaylandEnable=false in /etc/gdm3/daemon.conf
X-GDM-BypassXsession=true in /usr/share/xsessions/gnome.desktop
xorg.conf:
[url]https://pastebin.com/ugr36wiH[/url]
journalctl -b 0 --no-pager:
[url]https://pastebin.com/5wJCdr7S[/url]