<div dir="ltr"><div>Cheers,</div><div><br></div><div> The proposed change seems reasonable, but what keeps your team from making the pull request with this change? Would be great to have some direct contributions from vendors in source code history. Is there some corporate red tape that prohibits/complicates this cooperation?</div><div><br></div><div> In any case, the "test version code" would be a git repository (or its tarball snapshot) that either you wrote in the first place, or we wrote and you received after some delay. Either way, then you would have to build it for your platform to test, and eventually it becomes part of a formal release that gets packaged all over the ecosystem by different OS distributions and equivalent projects (like multi-OS pkgsrc).</div><div><br></div><div> Sadly, this latter part is the stage that is relatively slow
(and out of our control)
, so the change can take years to get to end-users of some operating systems (e.g. for Debian/Ubuntu ecosystem a NUT version bump might be provided in experimental repository relatively quickly, but would trickle down to most users with only a new major
release of the OS, or with some luck - with a yearly sub-release level bump). We still have occasional reports from users of NUT 2.7.4 released 10 years ago :\</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>