This is a cursed laptop: Lenovo Legion with two video adapters: Intel and NVidia. It never worked well to begin with: the dual-purpose drivers installed with mhwd could never work with the external display, and so I needed Optimus to switch to NVidiaās GPU. Surprisingly, it was also the same if I swapped them for video-nvidia driver (I assumed that it would just totally ignore the Intelās GPU, but, I guess, the description in the manual is not so great).
Unfortunately, I donāt know how to diagnose the error: there are way too many moving parts involved, so, Iād appreciate your help in, at least trying to find where to look for the error.
Superficially, the game sort of launchesā¦ well, not quite, it sometimes gets to the login screen, sometimes it freezes a bit earlier. Sometimes even the graphics of the login screen are botched (partially loaded, it seems). At which point the laptop starts spinning its fans and all the GUI freezes.
At the minimum, Iād appreciate some help at restoring the older versions of GPU drivers. It also looks like mhwd didnāt do its job well in my case, so, probably letās just (un)install the necessary packages instead?
Ideally, Iād like to get a better understanding of the problem: thereās just so many layers between the application and the GPU that Iām getting totally lost when trying to investigate it on my own.
Sorry, the forum engineās parser is buggy and it sees ālinksā in my reply, even though there arenāt any. I tried to guess what got it confused, but I couldnāt. So, Iāll post the reply here: https colon slash slash pastebin dot com slash qLeuFRve .
Maybe the mods can figure out the problem and move the text back into this thread.
> Installed PCI configs:
--------------------------------------------------------------------------------
NAME VERSION FREEDRIVER TYPE
--------------------------------------------------------------------------------
video-nvidia-470xx 2023.03.23 false PCI
video-modesetting 2020.01.13 true PCI
Warning: No installed USB configs!
> 0000:08:00.0 (0200:10ec:8168) Network controller Realtek Semiconductor Co., Ltd.:
--------------------------------------------------------------------------------
NAME VERSION FREEDRIVER TYPE
--------------------------------------------------------------------------------
network-r8168 2023.09.12 true PCI
> 0000:01:00.0 (0300:10de:1c8d) Display controller nVidia Corporation:
--------------------------------------------------------------------------------
NAME VERSION FREEDRIVER TYPE
--------------------------------------------------------------------------------
video-hybrid-intel-nvidia-prime 2023.03.23 false PCI
video-hybrid-intel-nvidia-470xx-prime 2023.03.23 false PCI
video-hybrid-intel-nvidia-390xx-bumblebee 2023.03.23 false PCI
video-nvidia 2023.03.23 false PCI
video-nvidia-470xx 2023.03.23 false PCI
video-nvidia-390xx 2023.03.23 false PCI
video-linux 2018.05.04 true PCI
video-modesetting 2020.01.13 true PCI
video-vesa 2017.03.12 true PCI
> 0000:00:02.0 (0300:8086:3e9b) Display controller Intel Corporation:
--------------------------------------------------------------------------------
NAME VERSION FREEDRIVER TYPE
--------------------------------------------------------------------------------
video-hybrid-intel-nvidia-prime 2023.03.23 false PCI
video-hybrid-intel-nvidia-470xx-prime 2023.03.23 false PCI
video-hybrid-intel-nvidia-390xx-bumblebee 2023.03.23 false PCI
video-linux 2018.05.04 true PCI
video-modesetting 2020.01.13 true PCI
video-vesa 2017.03.12 true PCI
As for the later, I tried a bunch of different settings, including video-nvidia and video-hybrid-intel-nvidia-prime to the same effect.
On top of this, in the long list of Wine errors that appear in the game log (unfortunately, this is always the case with programs that run in Wine, so itās hard to tell which error messages are real errors) this is repeated many times, seemingly at the time of the program āhangingā:
[0212/222730.457:ERROR: viz_main_impl.cc(186)] Exiting GPU process due to errors during initialization
[0212/222730.883:ERROR: gl_surface_egl.cc(822)] EGL Driver message (Critical) eglInitialize: No available renderers.
[0212/222730.883:ERROR: gl_surface_egl.cc(1352)] eglInitialize D3D11 failed with error EGL_NOT_INITIALIZED, trying next display type
[0212/222730.940:ERROR: gl_surface_egl.cc(822)] EGL Driver message (Critical) eglInitialize: No available renderers.
[0212/222730.940:ERROR: gl_surface_egl.cc(1352)] eglInitialize D3D9 failed with error EGL_NOT_INITIALIZED
[0212/222730.940:ERROR: gl_initializer_win.cc(132)] GLSurfaceEGL::InitializeOneOff failed.
The game is the only reason I need graphical environment on this laptop. Iāll easily sacrifice any other program / install DM from the 90ās to get things working. So, I wouldnāt care about that. Unfortunately, I simply donāt know what was installed prior to upgrade.
Your profile says youāre on Stable branch. This branch still has the version of pixman (0.43.0-1) with debug features enabled, which causes these issues.
Aside from whatever is going on with pixman I should point out that this isnt what you want.
Unless your BIOS supports disabling the iGPU then you will want to be using the hybrid profile.
Likely the latest one video-hybrid-intel-nvidia-prime.
You may or may not have realized how PRIME actually works ā¦ which by default would mean the iGPU normally, and the dGPU used if a command is prefaced with prime-run.
If you want to avoid that and use one GPU or the other ā¦ then you can use reverse-prime, or one of those utilities you mentioned. Though you probably want to avoid optimus-manager, and instead use envycontrol.
Also ā¦ I cant see the particulars here ā¦ but the BIOS looks old. Anything from recent kernels to recent drivers to security and performance may be impacted.
Thatās where I started. Essentially, it was my mistake to buy a laptop with two GPUs. This is a completely unnecessary complication and works very poorly. To my defense, at the time I bought it, I had no idea such combos even existed, so, had no idea I had to look out for it.
Iāll have to investigate if the BIOS allows turning off iGPU, as I never needed it in the first place. I.e. I donāt want a hybrid, itās an anti-feature for me. Subsequently, I donāt want a hybrid driver. Iāll take it only if thereās nothing else I can do about the situation.
Dear lordā¦
OK, sure, Iāll try downgrading and see where it goes. Sorry, Iāll have to do it probably on the weekend. Just wanted to say thanks for the replies.
Thanks. I saw that the quote tag was automatically generated in BB-style, just assumed everything else follows suite.