I have a Linux Mint laptop computer with two graphics cards: one built-in to the Intel motherboard, and a separate Nvidia card. For a long time, I've just been using the Intel card, but recently I installed the Nvidia drivers to make a game work. Everything works perfectly with the new drivers ... except that Chrome takes a couple of minutes to start up.
Technically, it starts up immediately, as I can see the multiple windows I had opened previously in the task bar ... but they're invisible: I can't even see the window outline, let alone the webpage inside. After a couple of minutes of waiting, the contents finally show up, and I can use Chrome as normal.
At the command line when I start Chrome (with extensions disabled) I see:
$ google-chrome --disable-extensions
INFO: Created TensorFlow Lite XNNPACK delegate for CPU.
Then, when it finally starts working for real, I see:
MESA-INTEL: warning: Haswell Vulkan support is incomplete
I've tried the following:
Uninstalling and reinstalling Chrome
Disabling "Use hardware acceleration when available" in Chrome settings
Setting my screensaver to "Never" turn on
google-chrome --disable-gpu
google-chrome --use-gl=desktop
google-chrome --disable-gpu-driver-bug-workarounds
google-chrome --disable-features=UseChromeOSDirectVideoDecoder
google-chrome --enable-features=Vulkan
As per https://bbs.archlinux.org/viewtopic.php?id=236020 I tried making a
/usr/share/dbus-1/services/org.freedesktop.Notifications.service
file (and restarting my computer)
but none of those fixes have helped.
If anyone has any suggestions of anything else I can try, I'd appreciate any help whatsoever.
Further Details:
I have a GeForce GTX870M Card. When I use the Linux Mint Driver Manager it gives me options for nvidia-driver-470, nvidia-driver-390 and xserver-xorg-video-nouveau; there are no newer options.
When I install Cuda (the way @GChuf suggests in an answer below) I wind up with the 530 driver, which works poorly (eg. I can use two monitors, as I can with the other drivers).
Unfortunately, I can't install the driver @GChuf recommends (418.113), because it gives me an asm/kmap_types.h: No such file or directory
error, which evidently means I don't have Cuda installed ... but I can't install Cuda without the 530 driver, and the 418 driver won't install with that driver installed.
--disable-extensions
switchnvidia-driver-470
. When I try the 390 driver my system won't even start up, and the only other option is the Nouveau driver (which I was using, and it worked great ... except I couldn't use the Nvidia graphics card with it).