I inherited a friend's iMac 24" (Early 2009) for free. So putting a few bucks and time was worth refreshing a old machine for my 75 year old mom.
I started with stock machine (HDD, 4 GB RAM, El Capitan). It was super slow but worked. I maxed 8 GB RAM, swapped to 500 GB SSD, and reinstalled fresh El Capitan. (Side note: pain in the ass. Must start with macOS Leopard, and work your way up to El Capitan).
Anyway, along the way of all these OS updates the machine would just randomly shut down. Sometime in first 10 minutes or 40 minutes, or a day later.
As I could not find the issue, I tried installing OpenCore Legacy Patcher to Monterey. All went smooth and the machine seemed quicker and runs great. Although the random shutdown still haunts me.
It’s totally random as time, open apps or not, etc. Any suggestions?