Why does placing a Moto X on my Macbook turn off the screen?
I've had similar experiences when stacking two MacBooks just the right way. I think it's the magnets being triggered, and the computer thinking it's been closed.


https://support.apple.com/en-us/HT203315