Update nvidia-vaapi-env.sh
This commit is contained in:
parent
fbbd3098c1
commit
a46fc8ffd8
2
debian/env-scripts/nvidia-vaapi-env.sh
vendored
2
debian/env-scripts/nvidia-vaapi-env.sh
vendored
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
# Check system for NVIDIA card and set vaapi env vars
|
# Check system for NVIDIA card and set vaapi env vars
|
||||||
|
|
||||||
nvkernmod=$(lspci -k | grep -iEA3 '^[[:alnum:]]{2}:[[:alnum:]]{2}.*VGA|3D|DISPLAY' | grep -i nvidia)
|
nvkernmod=$(lspci -nnkk | grep -A3 '\[03' | grep 'Kernel modules:' | grep -i nvidia)
|
||||||
|
|
||||||
if [[ ! -z $nvkernmod ]]
|
if [[ ! -z $nvkernmod ]]
|
||||||
then
|
then
|
||||||
|
Loading…
Reference in New Issue
Block a user