I know it's not related to Octoprint at all, but felt like asking the community in case someone had a similar issue, I wasn't able to find anything matching my case so far.
Almost 100% of the time when I turn off the light of the room where the printer sits, UART connection is interrupted and printing stops.
dmesg says:
[337002.158433] usb 1-1-port1: disabled by hub (EMI?), re-enabling...
[337002.160804] usb 1-1.1: USB disconnect, device number 23
[337002.162140] usb 1-1.1: failed to send control message: -19
[337002.165768] ch341-uart ttyUSB0: ch341-uart converter now disconnected from ttyUSB0
[337002.166095] ch341 1-1.1:1.0: device disconnected
What did you already try to solve it?
Light used to be a "fluorescent tube light", that I recently switched for a LED equivalent, problem persists.
I used to have a non shielded USB cable, switched for a shielded one.
Have you tried running in safe mode?
N/A
Did running in safe mode solve the problem?
N/A
Systeminfo Bundle
N/A
Additional information about your setup
Printer is an Ender 5 Pro in the official enclosure
Well just do a search you will find many.
Here is one that sounds pretty close.
It seems freezers and other compressor/inductive load types are almost always the issue.
Small UPS. Is the easy solution. Also make sure you have a good shielded USB Cable and blocking the power positive on your cable is also recommended. Search "Power block" or 5V. And you will get lots of that. Try to use a solution that does not break your cable shield loop.
I already have a "power block" in place, and tried to hook the printer and Odroid to my UPS and it worked. Not at the same location though but on the same electrical circuit.
I'll try to find a cheap UPS and hope it will definitely fix the problem.
I ended up buying an APC BVX700LI, the USB cable is double-shielded with ferrite, the printer is in a creality enclosure and I still have the same problem