-
-
Notifications
You must be signed in to change notification settings - Fork 351
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tripplite_usb driver bugs #2075
Comments
What version of code are you running? 1 and 3 are master branch (will be 2.8.1 soonish). Seems you run older packaged code - it should have the older man pages accompanying (or on web site - see historic release sub-site). |
not sure about 2 right now |
not at a computer now to double-check the master branch - it might be that the driver was missed when updating usb args handling across the board... |
I feel stupid now, I’m running Debian bullseye and the latest package available is 2.7.4-13. I still think #2 is a far more elegant solution. Now I gotta figure out how to compile the latest version and install it over |
Well, I don't think an `ups.id` is something every device supports or can
set... does it also persist across UPS power cycles for you (saved to
ppwer-independent flash)?
For devices that have it, matching can be an option. Maybe even in standard
shared code. PRs welcome, see the recent one for busport.
…On Sat, Sep 23, 2023, 02:53 maximilanna ***@***.***> wrote:
I feel stupid now, I’m running Debian bullseye and the latest package
available is 2.7.4-13.
I still think #2 <#2> is a
far more elegant solution. Now I gotta figure out how to compile the latest
version and install it over
—
Reply to this email directly, view it on GitHub
<#2075 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAMPTFESYDLA3IR3LN7TMPDX3YXG7ANCNFSM6AAAAAA5DREIOI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
I think that the bigger problem would be that asking for an |
The ups.id persists across reboots there is also no easy way to reset it, the only thing you can do is change it again. It seems the driver is still rejecting the device argument. Yesterday I installed 2.8.0 and now I get the error:
if I remove the “device” argument it works well. |
Also interestingly enough when I omit the device argument and it connects, it actually spits out the ups.id which in my case I modified it to 101.
|
Also allow duplicates isn’t working on 2.8.0
|
As noted above, "#1" and "#3" (proper handling of "device" as well as relaxation to "allow_duplicates") appeared on master branch recently -- so are not part of 2.8.0 release which appeared before (PRs #1770 and #1763). As for Care to get hands dirty and dive under the hood? ;) |
i'll try ;) |
Not necessarily. The recent PR #2054 to add a But the driver itself is a fair starting point to begin unraveling from (look at code, add debug messages, maybe run it with an IDE like NetBeans to step through the code as it learns about the device, etc.). |
Skimmed the code going from that logged message, and the
The Lines 690 to 694 in d00e5e0
Lines 610 to 614 in d00e5e0
*callback() method to filter if "caller" likes the device after it has been grabbed by the driver (per shared code in this method) and collected initial HID report descriptors - find more per open_dev function pointer in Lines 55 to 59 in d00e5e0
This happens after Lines 463 to 465 in d00e5e0
Lines 523 to 527 in d00e5e0
callback is NULL (in which case they skip evaluation of report descriptors).
Either way, the initial chain of matchers defined in Lines 153 to 196 in d00e5e0
At Line 1601 in d00e5e0
Line 334 in d00e5e0
NULL for the callback argument - so this seems like the place you could extend to add matching by ups.id .
Hope this helps ;) |
Thank you @jimklimov, that was very helpful, i'm took a stab at it. #2093 |
Signed-off-by: Jim Klimov <[email protected]>
The man page for the tripplite usb driver states the driver supports extra arguments which it doesn't. Specifically:
--
@jimklimov @seanm @sshimko @mbastiaan
The text was updated successfully, but these errors were encountered: