What terminal command shows the type of display that I have on my MacBook Pro? I used the following command in terminal and it didn't work:
ioreg -lw0 | grep \"EDID\" | sed "/[^<]*
Ask Different is a question and answer site for power users of Apple hardware and software. It only takes a minute to sign up.Sign up to join this community
If you have a problem identifying the display with the command described above (as I did), you may use the following approach.
Issue the command:
ioreg -lw0 |grep EDID |grep 4c534e
If you see nothing, it means the display is NOT Samsung (4C534E in hex is "LSN"). If you see several lines including some letter-digit mixture (hex), your display IS Samsung.
You may alternatively try to search for "4C50" (which is "LP" in hex), it WILL produce some output for LG and will produce nothing for Samsung:
ioreg -lw0 |grep EDID |grep 4c50
Or, you may just use the command
ioreg -lw0 |grep EDID
and manually look for the above fragments (4c534e for Samsung and 4c50 for LG) in its output.
Rationale: at least in the terminal you can get booting with "Command" held (e.g. before activation of MacOS on a new device), the "xxd" tool is not available.