Thanks, revised and posted as PR https://github.com/networkupstools/nut/pull/3268
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). Jim Klimov On Tue, Jan 13, 2026 at 2:28 AM John.Chang via Nut-upsdev < [email protected]> wrote: > Hi NUT, > > > > We kindly request adding a HID usage for “NeedReplacement” to the NUT usb > driver file cps-hid.c (USBHID-UPS(8) > https://networkupstools.org/docs/man/usbhid-ups.html), that “RB” (Replace > battery) information can be displayed in the ups.status. > > > > In NUT source code file cps-hid.c , the line 400 is > > { "BOOL", 0, 0, > "UPS.PowerSummary.PresentStatus.RemainingTimeLimitExpired", NULL, NULL, 0, > timelimitexpired_info }, > > Please insert the following code after line 400 for our new HID usage > (NeedReplacement). > > { "BOOL", 0, 0, "UPS.PowerSummary.PresentStatus.NeedReplacement", NULL, > NULL, 0, replacebatt_info }, > > > > 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. > > Please let me know if you have any questions. Thank you very much. > > > > John > _______________________________________________ > Nut-upsdev mailing list > [email protected] > https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsdev >
_______________________________________________ Nut-upsdev mailing list [email protected] https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsdev
