There's a problem in the nvidia-driver-get-card function that does not detect all kinds of nvidia cards. It doesn't appear to be a problem right now for legacy masking but it might be in the future. I have a laptop with nvidia optimus and the nvidia-driver-get-card does not detect the nvidia card. Here's the output of my card: # /usr/sbin/lspci -d 10de: -n 01:00.0 0302: 10de:1292 (rev a1) When you're splitting the string with awk, you can't assume that this part will always be 0300: '/ 0300: /{print $6} I don't know what all the possible nvidia card combinations are but I would consider at least changing it to this: awk -F'[: ]' '/ 030[0-9]: /{print $6}'
Fixed. Thanks!
Ah, I hadn't realized that's a pci class and not nvidia related. No problem.