[Bug 1800465] Re: Vulkan error when using NVIDIA-Prime
*** This bug is a duplicate of bug 1769857 *** https://bugs.launchpad.net/bugs/1769857 Thank you for taking the time to report this bug and helping to make Ubuntu better. This particular bug has already been reported and is a duplicate of bug 1769857, so it is being marked as such. Please look at the other bug report to see if there is any missing information that you can provide, or to see if there is a workaround for the bug. Additionally, any further discussion regarding the bug should occur in the other report. Feel free to continue to report any other bugs you may find. ** This bug has been marked a duplicate of bug 1769857 Vulkan not working if nvidia-drm.modeset=1 is set and gdm3 is used (Optimus) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1800465 Title: Vulkan error when using NVIDIA-Prime To manage notifications about this bug go to: https://bugs.launchpad.net/nvidia-drivers-ubuntu/+bug/1800465/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1800465] Re: Vulkan error when using NVIDIA-Prime
Same bug here on two different laptop. Fresh install Ubuntu 18.04.2 nvidia-driver-418 4.18.0-18-generic First $vulkaninfo => OK Switch on Intel with NVIDIA X Server settings reboot Switch to NVIDIA with NVIDIA X Server settings reboot $vulkaninfo => VK_ERROR_INITIALIZATION_FAILED $sudo vulkaninfo => OK then vulkaninfo => OK So now before launch Steam to play games that use vulkan I always do sudo vulkaninfo -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1800465 Title: Vulkan error when using NVIDIA-Prime To manage notifications about this bug go to: https://bugs.launchpad.net/nvidia-drivers-ubuntu/+bug/1800465/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1800465] Re: Vulkan error when using NVIDIA-Prime
In general nvidia-drm.modeset=1 is required to have Nvidia PRIME enabled, which reduces (or even removes) tearing of moving images on Optimus setups. KMS - kernel mode settings, allows kernel to control video card and in Optimus setups, among other features, this allows to synchronize graphics buffers by both graphics cards - so there are no artifacts/tearing/etc, because before displaying anything on monitor buffers are fully copied from one card to another. When modeset is disabled for Nvidia driver - buffers of both graphics cards cannot be synchronized properly so sometimes images that are displayed are only partially updated and this is visible as taring or other similar artifacts (part of the screen is filled with current frame and part of the screen is filled with previous frame). The problem is that for some reason when KMS is enabled for Nvidia driver - vulkan requires root privileges to be initialized properly. After initialization for the first time (as root), it can be used with normal user privileges. The bug is still there on Ubuntu 18.04 with newer drivers and kernel: nvidia-driver-418 linux-image-4.18.0-16-generic -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1800465 Title: Vulkan error when using NVIDIA-Prime To manage notifications about this bug go to: https://bugs.launchpad.net/nvidia-drivers-ubuntu/+bug/1800465/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1800465] Re: Vulkan error when using NVIDIA-Prime
I also had this same bug. Adding nvidia-drm.modeset workaround helped. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1800465 Title: Vulkan error when using NVIDIA-Prime To manage notifications about this bug go to: https://bugs.launchpad.net/nvidia-drivers-ubuntu/+bug/1800465/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1800465] Re: Vulkan error when using NVIDIA-Prime
nvidia-drm.modeset=0 disables the vsync between the Intel and Nvidia card, called Prime SYNC. In windows is another thing and the tearing isn't noticeable at all -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1800465 Title: Vulkan error when using NVIDIA-Prime To manage notifications about this bug go to: https://bugs.launchpad.net/nvidia-drivers-ubuntu/+bug/1800465/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1800465] Re: Vulkan error when using NVIDIA-Prime
"I solved this just putting nvidia-drm.modeset=0 option into my grub config." I can confirm that this also solves the issue for me. Are there any drawbacks to use this kernel parameter? I have tried googling around, but I am still not sure what is actually does. And I am even more curious how this solves the issue at hand. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1800465 Title: Vulkan error when using NVIDIA-Prime To manage notifications about this bug go to: https://bugs.launchpad.net/nvidia-drivers-ubuntu/+bug/1800465/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1800465] Re: Vulkan error when using NVIDIA-Prime
I have the exact same bug. This one seems to be related: https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics- drivers-390/+bug/1769857 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1800465 Title: Vulkan error when using NVIDIA-Prime To manage notifications about this bug go to: https://bugs.launchpad.net/nvidia-drivers-ubuntu/+bug/1800465/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1800465] Re: Vulkan error when using NVIDIA-Prime
yes, Gdm has issues with nvidia and KMS. Switching to Lightdm should help. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1800465 Title: Vulkan error when using NVIDIA-Prime To manage notifications about this bug go to: https://bugs.launchpad.net/nvidia-drivers-ubuntu/+bug/1800465/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1800465] Re: Vulkan error when using NVIDIA-Prime
I solved this just putting nvidia-drm.modeset=0 option into my grub config. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1800465 Title: Vulkan error when using NVIDIA-Prime To manage notifications about this bug go to: https://bugs.launchpad.net/nvidia-drivers-ubuntu/+bug/1800465/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1800465] Re: Vulkan error when using NVIDIA-Prime
So I think there is an issue regarding GDM and updated Nvidia drivers...? Well the issue with Nvidia settings is certainly releated to updated Nvidia drivers -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1800465 Title: Vulkan error when using NVIDIA-Prime To manage notifications about this bug go to: https://bugs.launchpad.net/nvidia-drivers-ubuntu/+bug/1800465/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1800465] Re: Vulkan error when using NVIDIA-Prime
A temporary workaround is to switch gdm to another display manager Well there is another problem when you update the drivers on Intel you can't open the nvidia settings, just save the old nvidia-settings and libs from /use/lib On Ubuntu 18.04 is present only if you update the drivers from the repo, the only way to use gdm is that. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1800465 Title: Vulkan error when using NVIDIA-Prime To manage notifications about this bug go to: https://bugs.launchpad.net/nvidia-drivers-ubuntu/+bug/1800465/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1800465] Re: Vulkan error when using NVIDIA-Prime
This bug affects me too. Ubuntu 18.10. GeForce GTX 960M Driver Version: 410.73 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1800465 Title: Vulkan error when using NVIDIA-Prime To manage notifications about this bug go to: https://bugs.launchpad.net/nvidia-drivers-ubuntu/+bug/1800465/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1800465] Re: Vulkan error when using NVIDIA-Prime
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: nvidia-graphics-drivers-390 (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1800465 Title: Vulkan error when using NVIDIA-Prime To manage notifications about this bug go to: https://bugs.launchpad.net/nvidia-drivers-ubuntu/+bug/1800465/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1800465] Re: Vulkan error when using NVIDIA-Prime
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: nvidia-prime (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1800465 Title: Vulkan error when using NVIDIA-Prime To manage notifications about this bug go to: https://bugs.launchpad.net/nvidia-drivers-ubuntu/+bug/1800465/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1800465] Re: Vulkan error when using NVIDIA-Prime
So, happens in Ubuntu 18.04 when you update the graphics drivers through PPA, and ONLY when using GDM. Happens in Ubuntu 18.10 without even upgrading graphics drivers. ALWAYS and ONLY when GDM is used. Opengl works fine, vulkan doesn't. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1800465 Title: Vulkan error when using NVIDIA-Prime To manage notifications about this bug go to: https://bugs.launchpad.net/nvidia-drivers-ubuntu/+bug/1800465/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1800465] Re: Vulkan error when using NVIDIA-Prime
Oh actually no I don't know...It's really strange and frustrating when this happens, because I was able to reproduce the problem on an Ubuntu 18.04 based distro using GDM as display manager... A way to make it working is to run "vulkaninfo" as sudo once, it works, then also without sudo is back to work again once you reboot... -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1800465 Title: Vulkan error when using NVIDIA-Prime To manage notifications about this bug go to: https://bugs.launchpad.net/nvidia-drivers-ubuntu/+bug/1800465/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1800465] Re: Vulkan error when using NVIDIA-Prime
Oh so it seems that Ubuntu 18.10 gdm and desktop defaults to Wayland, that has probably something to do with GDM and the wayland session... I defaulted GDM and Gnome to X... -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1800465 Title: Vulkan error when using NVIDIA-Prime To manage notifications about this bug go to: https://bugs.launchpad.net/nvidia-drivers-ubuntu/+bug/1800465/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1800465] Re: Vulkan error when using NVIDIA-Prime
This ONLY happens on Ubuntu 18.10, no issue in 18.04 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1800465 Title: Vulkan error when using NVIDIA-Prime To manage notifications about this bug go to: https://bugs.launchpad.net/nvidia-drivers-ubuntu/+bug/1800465/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1800465] Re: Vulkan error when using NVIDIA-Prime
** Also affects: nvidia-graphics-drivers-390 (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1800465 Title: Vulkan error when using NVIDIA-Prime To manage notifications about this bug go to: https://bugs.launchpad.net/nvidia-drivers-ubuntu/+bug/1800465/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1800465] Re: Vulkan error when using NVIDIA-Prime
I was wrong, you don't need to update. Basically just works once when you first install on a fresh system the nvidia proprietary drivers and reboot, in the first reboot it is already using NVIDIA instead of Intel, and when this happens, all Vulkan programs are running just fine. The problem comes when you switch to Intel and back to Nvidia once then. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1800465 Title: Vulkan error when using NVIDIA-Prime To manage notifications about this bug go to: https://bugs.launchpad.net/nvidia-drivers-ubuntu/+bug/1800465/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1800465] Re: Vulkan error when using NVIDIA-Prime
Those were the update packages... Commandline: apt-get dist-upgrade Requested-By: luky (1000) Upgrade: xserver-common:amd64 (2:1.20.1-3ubuntu2, 2:1.20.1-3ubuntu2.1), xserver-xorg-core:amd64 (2:1.20.1-3ubuntu2, 2:1.20.1-3ubuntu2.1), libssh-4:amd64 (0.8.1-1, 0.8.1-1ubuntu0.1), gnome-software-plugin-snap:amd64 (3.30.2-0ubuntu5, 3.30.2-0ubuntu7), libsnmp-base:amd64 (5.7.3+dfsg-1.8ubuntu3, 5.7.3+dfsg-1.8ubuntu3.18.10.1), gnome-software:amd64 (3.30.2-0ubuntu5, 3.30.2-0ubuntu7), xserver-xorg-legacy:amd64 (2:1.20.1-3ubuntu2, 2:1.20.1-3ubuntu2.1), python3-requests:amd64 (2.18.4-2, 2.18.4-2ubuntu0.18.10.1), xserver-xephyr:amd64 (2:1.20.1-3ubuntu2, 2:1.20.1-3ubuntu2.1), libsnmp30:amd64 (5.7.3+dfsg-1.8ubuntu3, 5.7.3+dfsg-1.8ubuntu3.18.10.1), ubuntu-software:amd64 (3.30.2-0ubuntu5, 3.30.2-0ubuntu7), firefox-locale-en:amd64 (63.0+build1-0ubuntu1, 63.0+build2-0ubuntu0.18.10.2), firefox-locale-it:amd64 (63.0+build1-0ubuntu1, 63.0+build2-0ubuntu0.18.10.2), xwayland:amd64 (2:1.20.1-3ubuntu2, 2:1.20.1-3ubuntu2.1), libsynctex2:amd64 (2018.20180824.48463-1, 2018.20180824.48463-1ubuntu0.1), firefox:amd64 (63.0+build1-0ubuntu1, 63.0+build2-0ubuntu0.18.10.2), gnome-software-common:amd64 (3.30.2-0ubuntu5, 3.30.2-0ubuntu7), tzdata:amd64 (2018e-1, 2018g-0ubuntu0.18.10), libkpathsea6:amd64 (2018.20180824.48463-1, 2018.20180824.48463-1ubuntu0.1) End-Date: 2018-10-29 13:12:50 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1800465 Title: Vulkan error when using NVIDIA-Prime To manage notifications about this bug go to: https://bugs.launchpad.net/nvidia-drivers-ubuntu/+bug/1800465/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs