iMac 27" display sleep problem
Hi I have a iMac 27" running YOSEMITE 10.10.2 which has been told never to sleep under energy saver settings and Screen saver has been set to "Never" however every now and again the screen goes to sleep, or goes "dead". I have an external monitor I can connect which when it happened initially I was not using but I plugged in to find out if it was a screen or graphics card issue. when connected I had a picture even though the main screen was blank.
I then used "CMD" "F1" to mirror the main screen and was able to shut down the computer and then start up again and the main screen came back to life. This then happened again, so I called the Apple support desk and they had me remove ALL cables to the iMac including the power cable and hold the power button for 10 to 15 seconds to de-power something inside the computer, then connect the power and the keyboard only and reboot resetting the NVRAM by starting up with the "OPTION", "CMD", "R", & "P" keys depressed and wait till the startup bong occurred twice.
This appeared to fix it for 1 to 2 weeks when the problem came back as suggested, by Apple Support, I took it to the Apple store and they ran tests on it for 3 to 5 days and it did not do it so I collected it and it ran fine for another 2 weeks. Last week I upgraded the memory to 12GB (was 4GB) and when I booted it did not recognise the additional memory so I reset the NVRAM as detailed above and it recognised the memory however 2 days later the screen went to sleep again.
I made another trip to the Apple store and the Genius replicated the problem and we jointly thought it might be worth trying the backlight board which he did not have in stock so it is on order and I brought the computer home. However the genius suggested leaving the external screen connected all the time in extended mode to see what happened when/if the main screen went to sleep next.
When I got home I started the computer up and the Fans were whizzing away at full speed and I suspect as the power button is sticky for some reason it was depressed when I connected the power cord. After tracking down this problem, and resolution, I reset the NVRAM again and the problem with the fans and the screen appeared to disappear again. I then for 3 days made the computer work itself continuously when I was near it (I am using my Macbook Pro till I get to the bottom of the problem) and the problem did not manifest itself. Last night I left the iMAC playing a film that would finish at about 2 am this morning and this morning I came to the iMac with the main screen blank again but the external monitor was still up and running mouse travelled into it and back to main screen (which I could not see of course). When I used "CMD", "F1" to mirror the Screens the main screen woke up so I did not have to restart in order to get the main screen back this time.
I have just come off the phone with Apple Support and they are not sure if it is a hardware or software "glitch" and are supporting me! They are recommending I take the machine back to the Store with the further information but after discussion with the support Representative I have decided to remove the software as an Issue first. I plan to take out the 1TB drive and install a brand new 3 TB drive and install YOSEMITE direct from my YOSEMITE USB drive this should remove Software as any form of contributor to the problem. Alternatively I will install the original Snow Leopard and upgrade to Yosemite without installing anything else and reinstall all my Application programs fresh.
I would like any other constructive suggestions, please and will post further as I get further into resolving the issue
iMac (27-inch Mid 2010), OS X Yosemite (10.10.2)