I have connected UPS battery backup to my PC via USB port. This PC works for me as my home server, media server, NAS etc. So no any graphic interface run on it. This PC is in ON state, 24h/day.
I use NUT server, working with upsd via loopback interface on the same machine. The USB cable is constantly connected both to PC and USB.
Very rare (once every 3-4 days) I get a messages that the connection between UPS and PC is down and after 5 min next message that UPS is not available. The reason is most likely the errors in firmware on the UPS I think, but it is not possible to change it. So I look for workaround.
The corresponding to UPS file in /dev dir disappears after that.
How do I restart the udevd to find the UPS back by PC? Is the command "udevadm trigger" sufficient for this?
Of course the solution is to restart the PC, but it interrupts of course the normal work of my "server".
Or any other ideas?