[Nut-upsdev] Cyberpower add HID Usage (NeedReplacement)
Jim Klimov
jimklimov+nut at gmail.com
Tue Jan 13 08:02:36 GMT 2026
Cheers,
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?
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).
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 :\
Jim Klimov
On Tue, Jan 13, 2026 at 2:28 AM John.Chang via Nut-upsdev <
nut-upsdev at alioth-lists.debian.net> 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
> Nut-upsdev at alioth-lists.debian.net
> https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsdev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/nut-upsdev/attachments/20260113/c12c1d1a/attachment-0001.htm>
More information about the Nut-upsdev
mailing list