<div dir="ltr"><div>Thanks, revised and posted as PR <a href="https://github.com/networkupstools/nut/pull/3268">https://github.com/networkupstools/nut/pull/3268</a> </div><div><br></div><div>I suppose it will soon become part of master branch, eventually part of NUT v2.8.5 release whenever that happens (hopefully even soon, before FOSDEM), and available in OS distributions following their schedule (maybe in new major releases).</div><div><br></div><div>Jim Klimov</div><div><br></div></div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Tue, Jan 13, 2026 at 2:28 AM John.Chang via Nut-upsdev <<a href="mailto:nut-upsdev@alioth-lists.debian.net">nut-upsdev@alioth-lists.debian.net</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="msg3409934463900113697">
<div lang="ZH-TW" style="overflow-wrap: break-word;">
<div class="m_3409934463900113697WordSection1">
<p class="MsoNormal"><span lang="EN-US">Hi NUT,<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">We kindly request adding a HID usage for “NeedReplacement” to the NUT usb driver file cps-hid.c (USBHID-UPS(8)
<a href="https://networkupstools.org/docs/man/usbhid-ups.html" target="_blank">https://networkupstools.org/docs/man/usbhid-ups.html</a>), that “RB” (Replace battery) information can be displayed in the ups.status.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">In NUT source code file cps-hid.c , the line 400 is<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">{ "BOOL", 0, 0, "UPS.PowerSummary.PresentStatus.RemainingTimeLimitExpired", NULL, NULL, 0, timelimitexpired_info },<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Please insert the following code after line 400 for our new HID usage (NeedReplacement).<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">{ "BOOL", 0, 0, "UPS.PowerSummary.PresentStatus.NeedReplacement", NULL, NULL, 0, replacebatt_info },<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Once you have confirmed the request to add the source code, please provide a test version of the NUT software with the added HID usage (NeedReplacement) code for our testing and verification.
<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Please let me know if you have any questions. Thank you very much.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">John<u></u><u></u></span></p>
</div>
</div>
_______________________________________________<br>
Nut-upsdev mailing list<br>
<a href="mailto:Nut-upsdev@alioth-lists.debian.net" target="_blank">Nut-upsdev@alioth-lists.debian.net</a><br>
<a href="https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsdev" rel="noreferrer" target="_blank">https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsdev</a><br>
</div></blockquote></div>