bayasdev / envycontrol

Easy GPU switching for Nvidia Optimus laptops under Linux
https://bayas.dev/envycontrol
MIT License
1.18k stars 60 forks source link

Turn ON NVIDIA in integrated mode (vfio use) manually #119

Open Maziar123 opened 1 year ago

Maziar123 commented 1 year ago

Hi

for use NVIDIA for vfio

How to Turn ON NVIDIA in integrated mode (vfio use) manually?

SteveIsGlitched commented 2 months ago

bump, i need that.

bayasdev commented 2 months ago

@Maziar123 @SteveIsGlitched could you elaborate on how to implement this feature? Thanks!

SteveIsGlitched commented 2 months ago

@Maziar123 @SteveIsGlitched could you elaborate on how to implement this feature? Thanks!

If we are talking about VFIO impletention, you could look at source code of https://github.com/firelightning13/envycontrol-vfio, although this is an old fork. If we'd want to temporarily load NVIDIA drivers, I don't really know much about modules, but maybe we could modprobe NVIDIA drivers? By the way, thank you!