Has anyone used osquery to report on external disp...
# macos
s
Has anyone used osquery to report on external displays/monitors attached on MacBookPros?
a
There might be something you can spelunk via ioreg? I know we looked at finding other hardware-related things like the language code of the keyboard a while back
f
image.png
@Caitlin Cabrera recently PR'ed something that should get you this data:
Copy code
osquery> SELECT * FROM connected_displays;
                      name = Color LCD
                product_id = a050
             serial_number = fd626d62
                 vendor_id = 610
         manufactured_week = 0
         manufactured_year = 0
                display_id = 1
                    pixels = 3456 x 2234
                resolution = 1728 x 1117 @ 120.00Hz
ambient_brightness_enabled = -1
           connection_type = spdisplays_internal
              display_type = spdisplays_built-in-liquid-retina-xdr
                      main = 1
                    mirror = 0
                    online = 1
                  rotation = 0
s
@allister @fritz thanks for your feedback. This certainly can help. My request would be to show the details for "Graphics/Displays" that include the brand/model information.
f
@Steve Poe the brand model is displayed in the
name
column if you look at the attached screenshot
eg.
hp vh240a
s
@fritz thank you. Sorry if I missed it. I am running version 5.9.1 and the name field is blank.