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?
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.
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 …