Skip to content

usbhid-ups: allow to throttle or suppress logged messages about OL+DISCHRG situation#2216

Merged
jimklimov merged 3 commits intonetworkupstools:masterfrom
jimklimov:issue-1970-throttle
Dec 10, 2023
Merged

usbhid-ups: allow to throttle or suppress logged messages about OL+DISCHRG situation#2216
jimklimov merged 3 commits intonetworkupstools:masterfrom
jimklimov:issue-1970-throttle

Conversation

@jimklimov
Copy link
Copy Markdown
Member

Closes: #1970
Closes: #2212
Closes: #2213
Closes: #2214
Closes: #2215

Introduces a number of new configurable toggles with hopefully reasonable defaults, which should help to reduce log noise on systems where an UPS reports "online" and "discharging" simultaneously (so far some CyberPower and APC models were reported to behave so, with different physical situations).

…onlinedischarge" in favor of "onlinedischarge_onbattery" option name [networkupstools#2213]

Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
…onlinedischarge_log_throttle_sec" setting and/or throttling by changes of battery.charge [networkupstools#2214]

Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
…onlinedischarge_log_throttle_hovercharge" setting [networkupstools#2215]

Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

APC CyberPower (CPS) enhancement ready / code review Author (and CI) consider the PR worthy of human rewievers' time USB

Projects

None yet

1 participant