Unreliable screen sharing connection to headless MacMini M1 Big Sur
Well not exactly headless. I installed my MacMini in my entertainment center and use it for playing music. The HDMI output is connected to a 50" LG TV, but I don't like to have the TV on all the time, so I mainly like to connect to the mini via Screen Sharing from a MacBook Pro (Catalina) in the same room. The screen sharing connection works most of the time, but eventually disconnects. Sometimes it only works for an hour or so, sometimes for a day or two, but at some point the screen sharing display will show a spinning wheel and "Reconnecting". Once that happens it never reconnects. If I quit Screen sharing and try to connect again, it times out without connecting. The only way I can get it to reconnect is to SSH into the Mini and run `sudo killall screensharingd`, then I'm able to connect again.
In the Energy Saver Preference pane on the MacMini, I have it set to never turn the display off (but I do have a ScreenSaver that comes on after half an hour). On the MacBookPro the display will go to sleep after about 2 hours (no screensaver), but I have `Prevent computer from sleeping automatically when display is off` checked.
I've currently have "Remote Management" enabled on the Mini. I was using "Screen Sharing" at first. They seem to work the same way and have the same problem. I'm not sure what the difference is-- they both seem to be basically VNC.
Both machines are connected to the same network with ethernet.
Is this a known problem with the M1 MacMini? Or screen sharing in general?
Mac mini, 11.0