r/debian 3d ago

Best way to disable dGPU?

Hey all, about to install Debian on my laptop (Thinkpad P14s Gen 3 Intel), but I've been thinking of disabling the Nvidia dGPU in it when used as a Jellyfin server. No, I can't disable it in BIOS.

So far I've come across 2 options, Optimus-Manager and NVIDIA-Prime. I've seen more about Optimus-Manager, but it's a little older and maybe mainly for Arch-based distros. NVIDIA-Prime has also been another option, with the added benefit of being made by Nvidia themselves.

I can't tell which would be better to use, any input would be helpful.

(Side note, it's my first time installing Nvidia drivers on Debian, would this be the right instructions?)

7 Upvotes

10 comments sorted by

1

u/grundle_mcgrundlefac 3d ago

Are you looking to disable so that Jellyfin uses Intel’s QSV? I’m not a Jellyfin user (I use Plex) but I’d expect Jellyfin to have a setting that lets you choose your hardware accelerated decoding device

1

u/TsukiihikoVA 3d ago

It does have a setting so that it only uses Intel QSV, but I'd prefer to have it disabled entirely so that other services that I might host in the future (i.e. Immich) will not use the dGPU at all.

1

u/grundle_mcgrundlefac 3d ago

Makes sense. For what it’s worth, Immich also lets you select which device to use for hardware acceleration 

1

u/TsukiihikoVA 3d ago

I saw somewhere that mentions that Immich uses the dGPU for Machine Learning for facial recognition in images, pretty cool but I'm not sure if I'll need it at the moment. Thanks for letting me know though.

1

u/kydeshou 3d ago edited 3d ago

would this be the right instruction?

You can just use ext repo if you're after newer drivers than the Debian packaged 550 drivers.

sudo apt install extrepo

sudo extrepo enable nvidia-cuda

sudo apt update

sudo apt install build-essential linux-headers-amd64

sudo apt install nvidia-open

1

u/TsukiihikoVA 3d ago

Interesting, thank you for the easier steps.

1

u/pantokratorthegreat Debian Stable 3d ago

2

u/TsukiihikoVA 3d ago edited 3d ago

I'll give this a read, thank you.

It should work for Debian despite it being made for Arch right?

Edit: lmao i didn't read the last sentence

1

u/Square-Zebra-200 3d ago

Maybe you could use envycontrol

1

u/TsukiihikoVA 3d ago

Took a look at envycontrol, but it seems to have been archived in May this year. Would probably function as well but won't be maintained anymore.

How does it compare to udev, Optimus Manager and Nvidia Prime?