Terminal or Software USB-C Reset Solution
Brief: I'm looking for a way to do a software version of unplugging and plugging a cable back in to USB-C on my M1 Mac Mini.
Background: I have a Lenovo Li2323swa monitor I'm using as a 2nd monitor that wakes then goes dark after sleep. It's a cheaper monitor and this issue was around on previous windows machine as well. I'm pretty sure it's just the monitor as I've checked the cables. Easiest solution is just unplugging from back of Mac and replugging it in. I'm using a USB-C to HDMI adapter.
I'd like to move my Mac further from my desk so I'm hoping for a terminal, software, or macro solution to this on the software side. Is there any way to turn a USB bus off then back on thus simulating the hardware effect?
Thank you,
Ryan
Mac mini, macOS 11.3