Jim Klimov
2023-Jan-14 12:02 UTC
[Nut-upsuser] Problem with Multiple USB UPSs, including multiple apparent CyberPower
Actually in merged PRs of recent weeks there can be several suitable fixes: 1) support for common USB matching parameters in more drivers (though usbhid-ups has long had it); 2) nut-scanner should provide more of these parameters in generated config sections, in particular "device" port numbers; 3) for obscenely poor cases when devices can not be identified as unique, new "allow_duplicates" flag was added, to not stop iterating if a first "good match" is busy. Caveat emptor here! In your case, I hope adding the device numbers (3 digits) to configs should help. Also `-x` is for command-libe specification of such parameters. In config file it is just key=value. For these matchers they are generally regexes (not shell globs). Please do RTFM :) Jim On Sat, Jan 14, 2023, 01:11 Greg Troxel <gdt at lexort.com> wrote:> Bruce Pleat via Nut-upsuser <nut-upsuser at alioth-lists.debian.net> > writes: > > > I'm using the latest updates to OS and running the latest apt nut > packages > > in the dist (2.7.x?). > > Debian 11 has 2.7.4. > > That's old; 2.8.0 was released in spring of 2022. And git master has a > lot of improvements since 2.8.0, and I would therefore recommend trying > that. I think but am not 100% sure that there is a fix for the problem > you are seeing. > > _______________________________________________ > Nut-upsuser mailing list > Nut-upsuser at alioth-lists.debian.net > https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://alioth-lists.debian.net/pipermail/nut-upsuser/attachments/20230114/d403d269/attachment.htm>
Bruce Pleat
2023-Jan-14 19:16 UTC
[Nut-upsuser] Problem with Multiple USB UPSs, including multiple apparent CyberPower
Thank you both for answering. I tried with and without the "-x" as the manual wasn't clear enough to me. I tried with and without wildcards (e.g., "*SL*", "*SL Series*", "SL Series" for that one). I tried other permutations before asking for help here. ("model" throws an error, "-x model" doesn't, which was confusing) I am not in position to change versions now - I am using whatever is installed by Bullseye/Raspbian. (I wouldn't know how to ask the package version be updated?) If I unplug them and switch the order I plug them in (regardless of USB slot?), it impacts which Cyber Power shows up by default - only the last will be detected. On Sat, Jan 14, 2023, 04:03 Jim Klimov via Nut-upsuser < nut-upsuser at alioth-lists.debian.net> wrote:> Actually in merged PRs of recent weeks there can be several suitable fixes: > > 1) support for common USB matching parameters in more drivers (though > usbhid-ups has long had it); > > 2) nut-scanner should provide more of these parameters in generated config > sections, in particular "device" port numbers; > > 3) for obscenely poor cases when devices can not be identified as unique, > new "allow_duplicates" flag was added, to not stop iterating if a first > "good match" is busy. Caveat emptor here! > > In your case, I hope adding the device numbers (3 digits) to configs > should help. Also `-x` is for command-libe specification of such > parameters. In config file it is just key=value. For these matchers they > are generally regexes (not shell globs). Please do RTFM :) > > Jim > > On Sat, Jan 14, 2023, 01:11 Greg Troxel <gdt at lexort.com> wrote: > >> Bruce Pleat via Nut-upsuser <nut-upsuser at alioth-lists.debian.net> >> writes: >> >> > I'm using the latest updates to OS and running the latest apt nut >> packages >> > in the dist (2.7.x?). >> >> Debian 11 has 2.7.4. >> >> That's old; 2.8.0 was released in spring of 2022. And git master has a >> lot of improvements since 2.8.0, and I would therefore recommend trying >> that. I think but am not 100% sure that there is a fix for the problem >> you are seeing. >> >> _______________________________________________ >> Nut-upsuser mailing list >> Nut-upsuser at alioth-lists.debian.net >> https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser >> > _______________________________________________ > Nut-upsuser mailing list > Nut-upsuser at alioth-lists.debian.net > https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://alioth-lists.debian.net/pipermail/nut-upsuser/attachments/20230114/1cf510c0/attachment.htm>
Maybe Matching Threads
- Problem with Multiple USB UPSs, including multiple apparent CyberPower
- Problem with Multiple USB UPSs, including multiple apparent CyberPower
- Problem with Multiple USB UPSs, including multiple apparent CyberPower
- Problem with Multiple USB UPSs, including multiple apparent CyberPower
- Problem with Multiple USB UPSs, including multiple apparent CyberPower