I have attached my UPS to ubuntu and it's recognised. However I don't like the options that I see in ubuntu power settings. I have another PC also attached to same UPS. So I want ubuntu desktop to execute script when power is about 50% so my second pc can also properly hibernate. And then I can hibernate my ubuntu PC with same script.
Is it possible to do that in the way that is not breaking ubuntu implpementation of UPS monitor? I have read that I can install nut but I have some errors, maybe it's a conflict
● nut-monitor.service - Network UPS Tools - power device monitor and shutdown controller Loaded: loaded (/lib/systemd/system/nut-monitor.service; enabled; vendor preset: enabled) Active: failed (Result: protocol) since Sat 2019-07-13 02:09:46 MSK; 11ms ago Process: 13906 ExecStart=/sbin/upsmon (code=exited, status=0/SUCCESS)
Maybe I can catch some dmesg message or check the status of UPS with some native tool?