bayasdev / envycontrol

Easy GPU switching for Nvidia Optimus laptops under Linux
MIT License
1.33k stars 62 forks source link

[BUG] sddm does not start with nvidia mode #175

Open rstanuwijaya opened 4 months ago

rstanuwijaya commented 4 months ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Run sudo envycontrol -s nvidia
  2. Reboot
  3. sddm fails to start, only black screen

integrated and hybrid mode works fine starting gdm in nvidia mode also works, although running nvtop still shows both nvidia + integrated amd gpu

System Information:

APTEM591 commented 3 months ago

Did you manage to fix it?

sr71684 commented 3 months ago

Can confirm I get the same result.

rstanuwijaya commented 3 months ago

Did you manage to fix it?

still having the issue too

bayasdev commented 3 months ago

Is this a regression (it worked before with the same setup)?

rstanuwijaya commented 3 months ago

Is this a regression (it worked before with the same setup)?

It's my first time using envycontrol, so I cannot confirm

bayasdev commented 3 months ago

Could you attach the output of cat /usr/share/sddm/scripts/Xsetup after switching to Nvidia? no need to reboot so you can revert back to hybrid

sr71684 commented 3 months ago

I get this: sudo envycontrol -s nvidia

#!/bin/sh
# Automatically generated by EnvyControl

xrandr --setprovideroutputsource "modesetting" NVIDIA-0
xrandr --auto
Popa-George-Cristian commented 2 weeks ago

I get the same bug with the normal nvidia-dkms and with nvidia-open-dkms but fortunatly i can just CTRL + F3 and then start the session without issue but its kinda anoying .

Popa-George-Cristian commented 2 weeks ago

I tried different stuff with sessions and sddm complains about the display.