bayasdev/envycontrol

Switching to nvidia graphics breaks sddm and xorg

Closed this issue · 7 comments

After running sudo envycontrol --switch nvidia and rebooting, sddm doesn't start and nor does xorg(By doesn't start I mean that the only thing that is displayed on the screen is a flashing white underscore)

Steps to reproduce:

  1. Switch to nvidia graphics
  2. Reboot

Steps to fix the problem :

  1. Switching back to hybrid graphics worked for me. You might have to remove the package if that didn't fix the problem.

What distro are you using? thank you!

EndevourOs(based on arch linux)

EndevourOs(based on arch linux)

I have added an additional script that performs some necessary xrandr operations before the initialization of SDDM when on Nvidia mode (the same also applies to LightDM), EnvyControl should automatically detect your Display Manager and setup the script if applicable.

If the user doesn´t has systemd then the Display Manager should be specified manually using the --dm argument.

Can you give it a try? you can clone this repo and run git checkout sddm then execute EnvyControl with sudo python envycontrol.py --switch nvidia.

https://github.com/geminis3/EnvyControl/tree/sddm

Thank you!

I successfully tested the latest changes from a live Manjaro KDE session, Nvidia mode is working as expected after restarting the display manager.

PXL_20211221_211357164.jpg

Also working on Manjaro Xfce live session (it uses LightDM)

PXL_20211221_212137216.jpg

Yeah, my system booted perfectly with xorg and sddm working as expected. Thanks!

Yeah, my system booted perfectly with xorg and sddm working as expected. Thanks!

Thank you, tomorrow I will merge those changes into main and update the AUR package.