X11 nvidia monitor capture: fix capture broken after sleep/suspend or monitor reconfiguration

This commit is contained in:
dec05eba
2024-04-08 00:51:33 +02:00
parent 6770bac05b
commit d5bf41fed6
5 changed files with 154 additions and 116 deletions

View File

@@ -16,7 +16,7 @@ if [ -d "/usr/lib/systemd/user" ]; then
fi
# Not necessary, but removes the password prompt when trying to record a monitor on amd/intel or nvidia wayland
setcap cap_sys_admin+ep /usr/bin/gsr-kms-server
# Not necessary, but allows use of EGL_CONTEXT_PRIORITY_LEVEL_IMG which allows gpu screen recorder to run without being limited to game fps under heavy load
# Not necessary, but allows use of EGL_CONTEXT_PRIORITY_LEVEL_IMG which allows gpu screen recorder to run without being limited to game fps under heavy load on AMD/Intel
setcap cap_sys_nice+ep /usr/bin/gpu-screen-recorder
echo "Successfully installed gpu-screen-recorder"