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] envycontrol not working at all #102

Closed arnavgr closed 7 months ago

arnavgr commented 1 year ago

Describe the bug Changing modes in envycontrol do nothing. they show no error, but upon restart even though --query shows integrated it always runs on hybrid default. i have my second monitor connected with my laptop but even when it is disconnected it doesnt work.

Expected behavior sudo envycontrol -s integrated works without error. upon reboot my second monitor connected through hdmi works(which it shouldnt) nvidia-smi and nvidia-settings both show my graphics card [GeForce MX150]. switching to hybrid or nvidia mode chnages nothing.

journalctl | grep nvidia : https://pastebin.com/mqfRT7mc

System Information:

noahfraiture commented 10 months ago

Hello, is there any advance ? I also use hyprland and it doesn't seem to work

arnavgr commented 7 months ago

Hello, is there any advance ? I also use hyprland and it doesn't seem to work

I switched to gdm and removed nvidia.drm=1 from my kernel parameter and it started working. Also my second monitor can't be used without enabling my dGPU so I removed it