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.