Accessing GPU functionality

I’m running Ubuntu server 24.04.4 lts on a custom built pc

ASRock B660M-ITX

Intel® Core™ i9-12900

ASUS Dual NVIDIA GeForce RTX 3060 V2 OC Edition 12GB GDDR6

32GB Single DDR4 3200

1 TB WD nvme drive for os

I built this computer to be used a plex media server. Got the server built all software installed all drivers installed system fully updated. To get Plex to see the GPU I have to run two commands:

sudo usermod -aG video plex
sudo usermod -aG render plex

after restarting Plex I can now see the GPU and use hardware trans-coding. However once the computer reboots, which I have set to do once a day, Plex can no longer see the GPU until I run those commands again. How can I fix this permanently? I have tried using the -e modifier with the usermod command but its not working. So i’m doing something wrong with that modifier or I misread something in the usermod manual. I believe this issue is call/refered to as GPU pass though?

This example permanently adds the current user to kvm group

sudo usermod -aG kvm $USER

Log out and log in again


I’m not familiar with Plex and hardware transcoding but I think that the clue is to add $USER at the end of the command.

1 Like

thanks for the recommendation but was doing some research on this command and it appears, if I read everything correctly, that this has something to do with creating a virtual machine as a GPU. Is this what I’m really needing?

Perhaps, I did not explain myself clearly.
The command I posted was an example of adding a user permanently to the kvm group.
You will note that it has similar structure to your commands where you have plex and I wrote kvm

I know that my kvm command works perfectly because I use VMs.
However, I don’t use plex so I cannot offer the exact command.

Would this article help you?

thank you for the clarification but unfortunately that article didn’t help much

Have you added your user account to the group plex?

plex isn’t a group is the user account on the server where the actual Plex Media Sever program is installed

Running ‘usermod -aG …’ should change ‘/etc/group’ and should therefore persist across reboots. Use the command ‘group plex’ after a reboot to check whether the user is (still) a member of the groups ‘video’ and ‘render’. If it isn’t, then something is resetting group memberships. If the user plex is still a member of the groups but the program doesn’t see that membership, the question how you installed plex might shed some light on this. If you are running a snap then the sandboxing might interfere …

This topic was automatically closed after 30 days. New replies are no longer allowed.