You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
hid_enumerate with hidraw backend returns lots of duplicate hid_device_infos #298
That is expected. That is the only way to check supported usage/usage_page-s of the device - report same device multiple times with the same path but different usage/usage_page pair
Interesting, I have not seen such issue under Windows 10 Dell PC and macOS (Mac Mini M1). But I have not done much testing on Linux side (my Raspberry Pi 400 is my Linux computer now).
@Be-ing It will be good to post the output of hidtest and the report descriptors (eg: under Linux or macOS). That may give some clues about the devices. Windows will create multiple devices with each for TLC (top level collections) and may even have some virtual device created on top.
@Be-ing It seems that it is not really an issue under Windows to have "multiple individual enabled devices for my singular mouse and keyboard". That is kind of expected under windows with devices with multiple TLCs, same for hidraw and macOS.
Maybe Mixxx code has wrong assumptions in this asepct.
@Be-ing As @Youw mentioned, if the device does not have the "same usage/usage_page pairs", then the behavior is not expected with Linux hidraw backend. Then that could be a hidapi bug. Please post the output of hidtest and the report descriptor to debug the issue with hidraw.
Similar for Windows, if the device is listed in Windows Device Manager as different device due to fact that is has multiple TLCs, then it will be listed by HIDAPI as multiple devices and that is expected. If that is not the case, then it could be a HIDAPI bug. Again please post the output of hidtest under Windows and the HID report descriptors of the device (using Linux or macOS as it is difficult to do under Windows)
I apologise for not getting back to this for so long.
I've checked the logs and have a working theory of what's wrong going on here (spoiler - a HIDAPI issue).
To check my theory, would be nice to get the output of hidtest on macOS as well for the same device (17cc:1720). @Be-ing any chance you could provide that now?
What about Windows?
Will you be able to use the latest master's hidtest (and you'd have to modify it a bit) to print the output of hid_get_report_descriptor ? On Windows it would likely give a bit different output than you've already provied from a Linux machine (due to Windows Report Recostruction mechanism from PP Data).
And the HID Descriptor output you've provided earlier - if you could provide it in raw hex format I'd appreciate it, so I can experiment the fix on it.
I've just checked - no changes to hidtest required. I've already applied those some while ago.
Simply run the hidtest from latest master on both Windows and Linux/hidraw.
Activity
Youw commentedon Jul 4, 2021
Do those devices have the same usage/usage_page pairs? Have you tried the same device on Windows?
Be-ing commentedon Jul 5, 2021
Some do, some do not. Here is the output from Mixxx:
Be-ing commentedon Jul 5, 2021
I have not tested these devices on Windows.
Youw commentedon Jul 5, 2021
This is unexpected.
That is expected. That is the only way to check supported usage/usage_page-s of the device - report same device multiple times with the same path but different usage/usage_page pair
I see.
mcuee commentedon Jul 13, 2021
Interesting, I have not seen such issue under Windows 10 Dell PC and macOS (Mac Mini M1). But I have not done much testing on Linux side (my Raspberry Pi 400 is my Linux computer now).
Be-ing commentedon Aug 1, 2021
This seems to occur on Windows too:
https://mixxx.discourse.group/t/cant-find-midi-output-controller-to-link-to-qlc/22751/4
mcuee commentedon Aug 2, 2021
@Be-ing It will be good to post the output of hidtest and the report descriptors (eg: under Linux or macOS). That may give some clues about the devices. Windows will create multiple devices with each for TLC (top level collections) and may even have some virtual device created on top.
Windows: https://docs.microsoft.com/en-us/windows-hardware/drivers/hid/top-level-collections
mcuee commentedon Aug 2, 2021
@Be-ing It seems that it is not really an issue under Windows to have "multiple individual enabled devices for my singular mouse and keyboard". That is kind of expected under windows with devices with multiple TLCs, same for hidraw and macOS.
Maybe Mixxx code has wrong assumptions in this asepct.
Relevant discussion: #287
Be-ing commentedon Aug 2, 2021
Perhaps, but besides potential functional implications, there is an issue of user confusion showing the same device multiple times.
mcuee commentedon Aug 2, 2021
That you can not change. hidapi is designed this way. You have to change mixxx.
Be-ing commentedon Aug 2, 2021
I already did: mixxxdj/mixxx@5c58257
But I wasn't sure if the problem was in Mixxx's use of hidapi or in hidapi.
mcuee commentedon Aug 2, 2021
In order to debug, please post the output of hidapi hidtest and the report descriptors.
mcuee commentedon Aug 2, 2021
@Be-ing As @Youw mentioned, if the device does not have the "same usage/usage_page pairs", then the behavior is not expected with Linux hidraw backend. Then that could be a hidapi bug. Please post the output of hidtest and the report descriptor to debug the issue with hidraw.
mcuee commentedon Aug 2, 2021
Similar for Windows, if the device is listed in Windows Device Manager as different device due to fact that is has multiple TLCs, then it will be listed by HIDAPI as multiple devices and that is expected. If that is not the case, then it could be a HIDAPI bug. Again please post the output of hidtest under Windows and the HID report descriptors of the device (using Linux or macOS as it is difficult to do under Windows)
27 remaining items
Youw commentedon Mar 18, 2023
I apologise for not getting back to this for so long.
I've checked the logs and have a working theory of what's wrong going on here (spoiler - a HIDAPI issue).
To check my theory, would be nice to get the output of
hidteston macOS as well for the same device (17cc:1720).@Be-ing any chance you could provide that now?
Be-ing commentedon Mar 18, 2023
Sorry, I don't have access to any computers running macOS currently.
Youw commentedon Mar 18, 2023
What about Windows?
Will you be able to use the latest master's
hidtest(and you'd have to modify it a bit) to print the output of hid_get_report_descriptor ? On Windows it would likely give a bit different output than you've already provied from a Linux machine (due to Windows Report Recostruction mechanism from PP Data).And the HID Descriptor output you've provided earlier - if you could provide it in raw hex format I'd appreciate it, so I can experiment the fix on it.
Be-ing commentedon Mar 18, 2023
I have a Windows VM I could use to run
hidtestif you make a build with the modifications you alluded to.Youw commentedon Mar 19, 2023
I've just checked - no changes to hidtest required. I've already applied those some while ago.
Simply run the
hidtestfrom latest master on both Windows and Linux/hidraw.mcuee commentedon May 1, 2023
@Be-ing
Any update on this topic?
Deduplicate enumerated devices by device path
Deduplicate enumerated devices by device path (#31)
hidraw: report only Top-Level Usage_page/Usage pairs for Collections
hidraw: report only Top-Level Usage_page/Usage pairs for Collections
hidraw: report only Top-Level Usage_page/Usage pairs for Collections
Youw commentedon Jul 23, 2023
@Be-ing see if you could test #601
hidraw: report only Top-Level Usage_page/Usage pairs for Collections
hidraw: report only Top-Level Usage_page/Usage pairs as 'unique' devi…