Vulkan not working if nvidia-drm.modeset=1 is set and gdm3 is used (Optimus)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gdm3 (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
nvidia-graphics-drivers-390 (Ubuntu) |
Won't Fix
|
Undecided
|
Unassigned | ||
nvidia-graphics-drivers-418 (Ubuntu) |
Won't Fix
|
Undecided
|
Unassigned | ||
nvidia-graphics-drivers-470 (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
Lenovo ideapad 510-15IKB
OS: Ubuntu 18.04 bionic
Kernel: x86_64 Linux 4.15.0-20-generic
DE: GNOME
CPU: Intel Core i5-7200U @ 4x 3.1GHz
GPU: Intel HD 620 + NVIDIA GeForce 940MX (Optimus)
UEFI boot, Secure Boot disabled.
I installed the proprietary graphics driver with Software Properties and Vulkan applications (e.g. vulkan-smoketest, Unreal Editor, SDK examples, Dolphin) were working fine.
To get rid of tearing I added nvidia-
After doing that, Vulkan applications stopped working because they couldn't initialize the Vulkan swap chain until I reverted the changes to GRUB.
Everything works as expected if lightdm is used instead of gdm3.
description: | updated |
summary: |
- Vulkan not working if nvidia-drm.modeset=1 is set (Optimus) + Vulkan not working if nvidia-drm.modeset=1 is set and gdm3 is used + (Optimus) |
description: | updated |
description: | updated |
tags: | added: bionic nvidia |
Changed in nvidia-graphics-drivers-418 (Ubuntu): | |
status: | New → Confirmed |
tags: | added: disco nvidia-drm.modeset |
There's probably no way GDM could cause this directly. But indirectly if you are logging into a Wayland session in one case and Xorg in the other, then that might be the main factor here.
Please try logging into both Xorg and Wayland sessions to see if one works better.
Also, for Nvidia there used to be settings to control tearing in the nvidia control panel. So you shouldn't need to "To get rid of tearing I added nvidia- drm.modeset= 1"...?