bayasdev / envycontrol

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

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

Open rstanuwijaya opened 2 months ago

rstanuwijaya commented 2 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 weeks ago

Did you manage to fix it?

sr71684 commented 3 weeks ago

Can confirm I get the same result.

rstanuwijaya commented 3 weeks ago

Did you manage to fix it?

still having the issue too

bayasdev commented 3 weeks ago

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

rstanuwijaya commented 3 weeks 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 weeks 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 weeks ago

I get this: sudo envycontrol -s nvidia

#!/bin/sh
# Automatically generated by EnvyControl

xrandr --setprovideroutputsource "modesetting" NVIDIA-0
xrandr --auto