bayasdev / envycontrol

Easy GPU switching for Nvidia Optimus laptops under Linux
https://bayas.dev/envycontrol
MIT License
1.18k stars 60 forks source link

[BUG] Switched to Nvidia mode then the host is unable to boot normally #116

Open tensingnightco opened 1 year ago

tensingnightco commented 1 year ago

Describe the bug A clear and concise description of what the bug is. I was trying to switch to Nvidia mode. Before trying to switch, I was at Hybrid mode because EnvyControl said couldn't detect NVIDIA driver in Integrated mode. Things still normal until I rebooted, then booted it up again. At that point, the screen is stuck with black screen and blinking cursor. I'm incapable of booting normally right now, so I have to use a snapshot to work with my host and submit this issue. Do you have any help on this, please ? To Reproduce Steps to reproduce the behavior:

  1. Run sudo envycontrol -s nvidia
  2. See error Expected behavior A clear and concise description of what you expected to happen. I expected my host to boot normally Screenshots If applicable, add screenshots to help explain your problem.

System Information:

tensingnightco commented 1 year ago

Okay I just worked around a little bit and realized that my laptop actually still works. But there's a problem. Instead of showing a login screen as usual, it does display a black screen if I was currently switching to NVIDIA mode. This might stop if I ever switched back to Integrated or Hybrid mode maybe. But I want to know why this bug occurs

mosulache commented 1 year ago

I had the same problem booting into kde plasma with wayland. I chose to use X11 and the it worked. google searching will offer you solution: some params to be added in grub config files will make the kernel play nicer people say. Seems like it's a kernel versus nvidia matter, not a bug to be reported here .

tensingnightco commented 1 year ago

Do you know which params in question should I add since I don't know much about this problem ?

mosulache commented 1 year ago

i think thie is it: https://forums.debian.net/viewtopic.php?p=767158#p767158 see the last posts. I assume it's a solution, had never tried myself since the X11 version worked fine for me