Update to set_prefs.sh to fix check_nvidia - #27
Conversation
I found when running the new code I got this error ...
```
awk: line 0: regular expression compile failed (missing '(')
):
```
By escaping the ")" it fixed the issue for me
|
Haven't checked this with anything but my system (Dell XPS 9570 / KDE Neon) but it did fix it 👍 Thanks for all the work you've done on this project it's been super useful |
|
Well, it seems you are using mawk and not gawk. My system (also KDE Neon) uses gawk and I'm pretty sure this is the default. Could you please run PS: I'm not merging your patch for now, as in most systems gawk should be the default :. Let's wait for a couple of more days to hear from other people as well. |
jsalatas
left a comment
There was a problem hiding this comment.
could you please check if the following works for you?
powermizer=`nvidia-settings -q GpuPowerMizerMode | grep "Attribute 'GPUPowerMizerMode'" | gawk -F "): " '{print $2}' | gawk -F "." '{print $1}' `
and if that works, and you agree with that, please update your pull request, and I'll merge it.
Thanks! :)
I found when running the new code I got this error ...
By escaping the ")" it fixed the issue for me