iMac restarts when external monitor unplugged
This iMac will restart at the login screen or before it. First thing I tried was to reformat the hard drive and reinstall the OS with no luck. Basic SMC reset, etc.. have been completed as well.
Started with Apple Service Diagnostic (ASD) tests
Memory: Passed. Also took out each module individually and still restarted.
Hard Drive: Passed short test (long test was not completed). However, unlikely a hard drive issue. Computer will restart when booting off an external drive as well. Also pulled the HD while booting from external just to rule it out for sure.
CPU: passed tests
GPU: passed tests
Thermal sensors: Passed loop test (10 times).
Fan test: Fans passed tests (at all speeds)
*Does not boot in safe mode*
Opened the Mac up and cleaned a significant amount of dust out with air canister.
The iMac will stay on during testing without fans on full speed.
Checked the shutdown logs: kernel: |Previous Shutdown Cause: -128
This is an unknown hardware error. Ram was checked and replaced with another set. Problem persisted.
The iMac will power on perfectly fine (without me having to make the fans spin full speed) as long as I have an external monitor attached. As soon as I unplug the monitor, the Mac will shutdown. This external monitor "fix" allowed me to check the temperatures with iStat and everything is perfect. It is definitely not thermal related. I am starting to suspect that maybe the integrated graphics have failed? Discrete graphics (Radeon) is being used while the external monitor is plugged in.
Is this a good question?