How can I know my MacBook Pro 2015 13" LCD model number?

I have a broken screen and would like to replace it, but I want to be sure I am buying the right screen. How can I see the model number of the display, or who manufactured it?


I have tried using the following command in the terminal after installing the developer tools for the terminal:

ioreg -lw0 | grep « EDID » | sed « /[^<]*</s/// » | xxd -p -r | strings -6

But I only got this as a reply:

zsh: bad pattern: /[^

grep: EDID: No such file or directory

grep: »: No such file or directory

Anyone got the same problem? How did you get around it?

MacBook Pro 13″, macOS 10.15

Posted on Oct 27, 2020 2:48 PM

Reply
Question marked as Top-ranking reply

Posted on Oct 27, 2020 3:10 PM

aangvento wrote:


I have a broken screen and would like to replace it, but I want to be sure I am buying the right screen. How can I see the model number of the display, or who manufactured it?

I have tried using the following command in the terminal after installing the developer tools for the terminal:
ioreg -lw0 | grep « EDID » | sed « /[^<]*</s/// » | xxd -p -r | strings -6
But I only got this as a reply:
zsh: bad pattern: /[^

grep: EDID: No such file or directory

grep: »: No such file or directory
Anyone got the same problem? How did you get around it?



Yes that command line is old bash command, and 'yours ' does not look quite right anyway. Garbage in, garbage out...


compare yours here and the one under it:

ioreg -lw0 | grep « EDID » | sed « /[^<]*</s/// » | xxd -p -r | strings -6

ioreg -lw0 | grep "EDID" | sed "/[^<]*</s///" | xxd -p -r | strings -6



For your zsh—


You can simply 'knock the back part off' and get what you are looking for, copy and paste:


ioreg -lw0 | grep "EDID" | sed "/[^<]*</s///" | xxd -p -r


Not pretty but it works—

Look at the second line to see which manufacturer made your display. If it starts with LP then you have an LG display. The Samsung displays start with LSN


ex. LP160WT1-SJA1


3 replies
Question marked as Top-ranking reply

Oct 27, 2020 3:10 PM in response to aangvento

aangvento wrote:


I have a broken screen and would like to replace it, but I want to be sure I am buying the right screen. How can I see the model number of the display, or who manufactured it?

I have tried using the following command in the terminal after installing the developer tools for the terminal:
ioreg -lw0 | grep « EDID » | sed « /[^<]*</s/// » | xxd -p -r | strings -6
But I only got this as a reply:
zsh: bad pattern: /[^

grep: EDID: No such file or directory

grep: »: No such file or directory
Anyone got the same problem? How did you get around it?



Yes that command line is old bash command, and 'yours ' does not look quite right anyway. Garbage in, garbage out...


compare yours here and the one under it:

ioreg -lw0 | grep « EDID » | sed « /[^<]*</s/// » | xxd -p -r | strings -6

ioreg -lw0 | grep "EDID" | sed "/[^<]*</s///" | xxd -p -r | strings -6



For your zsh—


You can simply 'knock the back part off' and get what you are looking for, copy and paste:


ioreg -lw0 | grep "EDID" | sed "/[^<]*</s///" | xxd -p -r


Not pretty but it works—

Look at the second line to see which manufacturer made your display. If it starts with LP then you have an LG display. The Samsung displays start with LSN


ex. LP160WT1-SJA1


Oct 27, 2020 3:15 PM in response to leroydouglas

First of all, thank you!


I do, however, still have some problems. I am using an external monitor once the screen is cracked, and I realised I have to press enter when the monitor is disconnected and then connect again to see the result (in case someone in the future has this problem).


However, I get the following output (Including the command ran. My accounts name is Admin):


admin@Admins-MacBook-Pro ~ % ioreg -lw0 | grep "EDID" | sed "/[^<]*</s///" | xxd -p -r

???????)?2?xo??UL?%

                   PT?h??@.`0 6??Color LCD

   O%        


I am unsure is which of these is the model number, if any of them are. The output is spoused to be something like the following, correct?

LCD Color
MODELNUMBER-HERE



Oct 27, 2020 3:46 PM in response to aangvento

aangvento wrote:

First of all, thank you!

I do, however, still have some problems. I am using an external monitor once the screen is cracked, and I realised I have to press enter when the monitor is disconnected and then connect again to see the result (in case someone in the future has this problem).



That would be a problem

Are you sure this your way forward—


reference Part #:  661-02360


For do it yourself see the following— link




The output I see from the command line on my 16" MBP is as follows:

PT?P??7 Y??Color LCD


   ?py???(LP160WT1-SJA1


 DCN936301FHLP0J7Z


     ?)??:&i! {


                 ?$D?+?;?R?sJ??????% 

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

How can I know my MacBook Pro 2015 13" LCD model number?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.