iMac 27 late 2015 auto restarts sometimes when it is iddle
I have this computer since 2016.
Recently under Mojave I realized that sometimes when I am away of it it reboots.
I upgraded to Big Sur and after some days the issue started again.
Sometimes when I am using another computer and I see it reboots by itself the reboot is not completed, it seems it is because a bluetooth problem: mouse pointer is held and keyboard is not detected.
So I have to hard reboot with the power button and then the system starts normally.
The problem info (panic kernel?):