bayasdev / envycontrol

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

Problem with I3wm #74

Closed hedgeg0d closed 1 year ago

hedgeg0d commented 1 year ago

Distribution: Arch Linux, Gnome as default DE Kernel: 6.1.7-zen1-1.1-zen Display manger: Xorg, i3wm NVIDIA Driver Version: 525.78.01 EnvyControl version 2.3

The problem is that i3 does not start in nvidia mode(no ForceCompostionPipeline, Coolbits enabled). I have gdm, where i select i3, and start, but nothing happens - just black, even not turned on screen. Similar problem with dwm. Gnome works just fine with any mode of gpu selected

bayasdev commented 1 year ago

I'm not sure what's happening on your setup since I mostly use the Gnome DE on Linux, however you can try adding this to your .xinitrc:

xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto
hedgeg0d commented 1 year ago

Unfortunately this did not help

hedgeg0d commented 1 year ago

Update.

exec_always xrandr --auto to ~/.config/i3/config solved my problem. Thanks. Now i am closing the issue