bayasdev / envycontrol

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

Nvidia and hybrid mode issues #51

Closed Lithi27 closed 2 years ago

Lithi27 commented 2 years ago

From what I can tell, it doesn't load up x org server when i switch to nvidia, also games (in this case "payday 2") don't launch in hybrid mode

Distro: Fedora 36 kernel version and type: 5.18.9-200.fc36.x86_64 nvidia graphics card: geforce 940mx nvidia driver version: 515.57 intel integrated graphics: Intel HD Graphics 620 EnvyControl version: 2.1.1

If i need to include more information here, please tell me. Edit: so i just ran nvidia-xconfig and i got these errors

WARNING: Unable to locate/open X configuration file.

WARNING: Unable to parse X.Org version string.

ERROR: Unable to find any GPUs in the system.

ERROR: Unable to write to directory '/etc/X11'.

DaVikingMan commented 2 years ago

While switching to hybrid, type N when prompted to turn on RTD3 power management

Lithi27 commented 2 years ago

While switching to hybrid, type N when prompted to turn on RTD3 power management

that's nice but what about the errors and warnings? i also have very few options in nvidia settings and it gives me these errors when i run the command nvidia-settings

ERROR: NVIDIA driver is not loaded

(nvidia-settings:4179): GLib-GObject-CRITICAL **: 07:21:53.240: g_object_unref: assertion 'G_IS_OBJECT (object)' failed

(nvidia-settings:4179): CRITICAL : 07:21:53.242: ctk_powermode_new: assertion '(ctrl_target != NULL) && (ctrl_target->h != NULL)' failed

Lithi27 commented 2 years ago

On second thought, forget it, I think it's just best for me to hop on another distro instead of dealing with fedora.

DaVikingMan commented 2 years ago

I'm not sure if this will help but I think that the issue here is that you're using nvidia driver 515 which doesn't support your gpu. You would have to download a driver version from rpmfusion that supports your gpu(although I'm not sure if that is available in the rpmfusion repos)

DaVikingMan commented 2 years ago

Nvidia version 340 should work on your gpu