Hi fellow nerds! A noobish problem which I couldn’t solve on my own or using existing answers.
My tl; dr problem is having a black screen, right after boot and disk decryption which can be temporarily mitigated following the steps listed by @Fabby in “Blank screen after update. (Xorg: No devices/screens found.” thread. After a reboot everything seems to go back to a bad state - I can’t just startx, gotta do the full reinstall, just as described in the post mentioned above, and just then startx.
Full description:
I was on 5.14 (trying to mitigate some unrelated wifi issues), got a bunch of updates, updated and ended up with a blank screen after boot issue. My setup was a dual gpu one, with optimus manager handling which gpu to use. I had it set up so that the integrated graphics were used when booting on battery and nv was selected when booting while plugged it, it was working without issues.
What I already did:
downgraded my kernel to 5.10
removed other kernels (mhwd was getting lost with more than one present)
reinstalled video drivers like 100 times (sudo mhwd --remove pci video-hybrid-intel-nvidia-prime, sudo mhwd --install pci video-hybrid-intel-nvidia-prime and similar)
made sure everything else is up to date
removed some dependencies preventing me from removing the nv driver, including the optimus manager which now I can’t reinstall:
❯ sudo pacman -R optimus-manager
[sudo] password for artur:
checking dependencies...
error: failed to prepare transaction (could not satisfy dependencies)
:: removing optimus-manager breaks dependency 'optimus-manager>=1.4' required by optimus-manager-qt
❯ sudo pacman -S optimus-manager
error: target not found: optimus-manager
Forgive me for being a noob, I’m not sure which logs would be useful to include. I’ll happily provide any more info needed, just please let me know what would be useful.
Regarding optimus-manager, do you guys know if there’s an alternative way of switching GPUs then? Or do all dual GPU users now need to decide on either one?
I believe you’'d have to run the applications youwish to use the Dedicated graphics with prime-run for nVidia and DRI_PRIME=1 for AMD. But I’m no expert and might be wrong.
and then reboot, edit the boot option on grub by pressing e. add option to disable nvidia (also dont know if this matter, havent try with the nvidia on), by adding this option after quite (seperate by whitespace)
Wow @SKey, thank you internet stranger! It seems that all my problems boiled down to optimus-manager. I followed your advice to remove optimus-manager and reinstall nv driver. The system booted all the way up to the desktop without modifying grub options in intel graphics mode.
While without optimus-manager I can’t run the system in full NV mode (or I didn’t figure it out yet), I can run individual binaries with
The only reason to use switching to full NV mode was that VMware player wasn’t quite working well with this offsetting solution but that’s something I can totally live without. Thanks again!
It seems you dont understand how PRIME works, or with steam particularly.
You just need prime-run.
And in the case of steam, set the game launch options (assuming no others):
prime-run %command%
Quite expected … its a hacky tool, that can be accomplished other ways, but most people dont need in any case. “Hybrid” mode is how PRIME works by default. Enabling or disabling one card or another doesnt require extra software.
Thanks @cscs, I definitely don’t understand how PRIME works. Is prime-run doing anything else besides setting those two env vars? Any reading you’d recommend to understand it better?