Where abouts is the sleep sensor?
My MacBook Pro goes to sleep when in use. It seems to be worse when cold but that is only a generalization as sometimes it flickers on and off like a strobe light after it has been in use for several hours. I have run the Apple hardware tests and this returned no faults. I took to a Genius who found nothing wrong and recommended I book it in with them to do seven days of triage to find the problem (unfortunately I have to work for a living and can't easily arrange that much downtime).
The problem never happens when plugged in to an external monitor and the lid is shut, but does occur when plugged in and the lid open to use as a secondary or mirror display.
I do not have any magnets next to the computer whilst working but assume it is the sleep sensor/reed switch.
I would be grateful for advice on the location of the sensor and replace-ability, or other suggestions to the cause of the problem.
Is this a good question?