Skip to content

Instantly share code, notes, and snippets.

@braveulysses
Created May 29, 2009 20:30
Show Gist options
  • Save braveulysses/120198 to your computer and use it in GitHub Desktop.
Save braveulysses/120198 to your computer and use it in GitHub Desktop.
Gets the model number of your MacBook's display panel.
#!/usr/bin/env bash
# Get the model number of your MacBook's LCD panel.
# Thanks, Ars Technica!
ioreg -lw0 | grep IODisplayEDID | sed "/[^<]*</s///" | xxd -p -r | strings -6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment