Tell me more ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

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 "/[^<]*
share|improve this question
1  
This command definitively will not work (the parameters to sed are wrong). Does ioreg -lw0 | grep EDID produce any results at all? – patrix Aug 17 '12 at 18:01
ioreg -w0 -c IOHIDInterface might be a bit closer, but it's going to be tricky to do this with shell commands, which are typically designed to handle line-wise records, not ascii-art-tree records. – Ken Aug 17 '12 at 18:39
No it does not. I am completely new to the apple world. This is my first macbook. I got the command from this article. m.tuaw.com/2012/08/14/… – Jason Aug 17 '12 at 19:15
@Patrix: Yes it does show something, but not what i'm looking for. Thank you for you help. – Jason Aug 17 '12 at 19:18
@Ken: This gives me a lot of information. I will go thru it to see if it tells me that my screen is from LG or Samsung. Thank you for you assistance! – Jason Aug 17 '12 at 19:19
show 1 more comment

2 Answers

up vote 4 down vote accepted
ioreg -lw0 | grep \"EDID\" | sed "/[^<]*</s///" | xxd -p -r | strings -6

Depending on the string that comes up it will tell you the manufacturer of the display. It will not display in plain text.

Assuming you have a Retina display, a string with LP in it means it's an LG.

share|improve this answer
1  
Bo! It works!!! It works!!! Thank you! You rock. – Jason Aug 17 '12 at 19:34
Thanks! Please mark this as the answer to close it out. – Bo Shubinsky Aug 17 '12 at 19:38
The command doesn't seem to work with the new MacbookPro 13" Retina. Could anyone please check this? I'm encountering a display issue with my new mac :( – Ngoc Pham Nov 17 '12 at 16:38
On my 13" non-Retina, it also appears to do nothing, the cmd returns without any output – ataulm Dec 8 '12 at 17:52
1  
I just learned about xxd. Cheers! – adavid Jan 18 at 12:25
show 1 more comment

Does the relevant info show up in system profiler?

If so, there's a command line: system_profiler. You can extract all kinds of information using the command line and piping it to cat, sed, awk, more, tail, etc.

share|improve this answer
Thanks Harv - what Bo provided worked. – Jason Aug 17 '12 at 19:34

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.