Posted on 03-27-2023 09:21 PM
With the new firmware being released tonight, I wanted to make sure I could see what versions (of the very limited number) are in our fleet. I threw this EA together, hopefully it can help someone else out!
#!/bin/bash
result="<result>NOT Found</result>"
if [[ $(system_profiler SPDisplaysDataType | grep -i "Studio Display") != "" ]]
then
dispFW1=$(system_profiler SPDisplaysDataType | grep -i "Display Firmware Version:")
dispFW2=${dispFW#*: Version }
dispFW3=${dispFW2%)*}
result="<result>$dispFW3)</result>"
fi
echo "$result"
Posted on 03-28-2023 08:49 AM
Thank you for sharing this.
When i deployed it out, it returns with just )
Apple Studio Display Firmware:)
Posted on 03-28-2023 10:59 AM
Spelling will get you every time!
#!/bin/bash
result="<result>NOT Found</result>"
if [[ $(system_profiler SPDisplaysDataType | grep -i "Studio Display") != "" ]]
then
dispFW1=$(system_profiler SPDisplaysDataType | grep -i "Display Firmware Version:")
dispFW2=${dispFW1#*: Version }
dispFW3=${dispFW2%)*}
result="<result>$dispFW3)</result>"
fi
echo "$result"
On a side note, if someone has more than 1 plugged in, it will return:
15.5 (Build 19F80) Display Firmware Version: Version 15.5 (Build 19F80)
I'll try to get to checking for the number of lines returned by the first grep, but if anyone is good with bash, feel free!
Posted on 03-28-2023 01:15 PM
Thanks for putting this together. Have you had to update the firmware using Jamf or any other automated way? I don't see that the softwareupdate binary pulls it.
Posted on 10-13-2023 11:36 AM
I want to bump up this question. I'm having the same issue, and it recently caused a problem with mic and speaker function in Zoom & FaceTime.
Posted on 03-28-2023 03:51 PM
Thanks again for making this.
The update worked