I had this issue, I cant tell if you having the same issue, specially when you saying you changed motherboard so I guess you tried it but who knows,
As funny as that might sound, unplug the backscreen cable (there is the flex cable connecting the proximity sensor,back screen,laser focus for the...