Failed to initialize graphics

Hi!

I’m trying to run Unity 5.3.4f (I need this version for project constraints), but it fails to run.
I get this error message:
3852967--326062--upload_2018-11-3_21-35-27.png
Log:
"Initialize engine version: 5.3.4f1 (fdbb5133b820)
GfxDevice: creating device client; threaded=1
d3d11: failed to create D3D11 device (0x887a0004)
GfxDevice: creating device client; threaded=1
d3d: no support for this device type (accelerated/ref)
GfxDevice: creating device client; threaded=1
d3d11: failed to create D3D11 device (0x887a0004)
GfxDevice: creating device client; threaded=1
d3d: no support for this device type (accelerated/ref)
Failed to initialize Direct3D.
Make sure you have at least DirectX 9.0c installed, have drivers for your
graphics card and have not disabled 3D acceleration
in display settings.
Failed to initialize unity graphics."

I’m using a laptop Lenovo Legion Y520 with both Intel integrated card and Nvidia 1050 Ti. I updated the graphics card driver to latest, I even I tried to reinstall it many times. I ran dxdiag command, and directx looks fine… Any idea how should I fix this? This used to work a few months ago, but now it just doesn’t.

Ps: oddly enough after restart sometimes it lets starting unity, but after a few minutes it just crashes.
Thank you for reading!

Bump

Have you set it up properly?
https://forums.lenovo.com/t5/Lenovo-P-Y-and-Z-series/Y580-How-to-enable-automatic-Graphics-Card-Switching/ta-p/1063477

Thanks for your reply LurkingNinjaDev!
Yes in the bios it is set to the correct setting and also in NVIDA control panel, I set unity to run on the dedicated card. What can be wrong?

probably a problem with graphics card it’s probably driver problem… but I have no other idea, I’m not using Unity 5 anymore and I have a dedicated gfx card only and not from Lenovo.

Hmm, strange… I uninstalled the nvidia drivers, so unity runs now with the integrated card without errors, but obviously it is slow… I can only imagine that there’s something wrong with the new nvidia driver.

Try the stock NVidia from the GeForce Experience, it works for me (although I have a GTX 1080 in an Alienware).