Skip to content

Instantly share code, notes, and snippets.

@metaphox
Created December 3, 2012 17:28
Show Gist options
  • Select an option

  • Save metaphox/4196550 to your computer and use it in GitHub Desktop.

Select an option

Save metaphox/4196550 to your computer and use it in GitHub Desktop.
#!/bin/sh
#
# This shows a MacBook Pro Retina screen model number.
# The modile number will be something like LP154YL01001.
#
# * "LS" prefix: built by Samsung
#
# * "LP" prefix: built by LG
#
# The screens manufactured by LG have had many problems with ghosting and image retention.
ioreg -lw0 | grep \"EDID\" | 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