Code Monkey home page Code Monkey logo

Comments (40)

hrvach avatar hrvach commented on May 19, 2024 2

There is src/user_config.h where you can define

#define HOTKEY_TOGGLE HID_KEY_CAPS_LOCK

and you can find the keys here: https://github.com/hathach/tinyusb/blob/master/src/class/hid/hid.h

The problem is, many keyboards are smaller than TKL nowadays and don't have that key anymore - choosing a good hotkey is a nightmare. I've thought perhaps using left shift+caps lock if you actually need caps lock.

Btw, nice graphic! :)

from deskhop.

hrvach avatar hrvach commented on May 19, 2024 1

Thanks, first thing I notice mouse is reporting 32 buttons and 16 was set as hard limit (because I thought nothing would ever top that). Will try taking a look after work...

from deskhop.

hrvach avatar hrvach commented on May 19, 2024 1

Ok, I still don't know why such behavior but I can tell you what's going on.

The mouse descriptor you sent earlier from the computer is:

Usage Page (Desktop),               ; Generic desktop controls (01h)
Usage (Mouse),                      ; Mouse (02h, application collection)
Collection (Application),
    Report ID (1),
    Usage (Pointer),                ; Pointer (01h, physical collection)
    Collection (Physical),
        Usage Page (Button),        ; Button (09h)
        Usage Minimum (01h),
        Usage Maximum (20h),
        Logical Minimum (0),
        Logical Maximum (1),
        Report Count (32),
        Report Size (1),
        Input (Variable),
        Usage Page (Desktop),       ; Generic desktop controls (01h)
        Usage (X),                  ; X (30h, dynamic value)
        Usage (Y),                  ; Y (31h, dynamic value)
        Logical Minimum (-32767),
        Logical Maximum (32767),
        Report Size (16),
        Report Count (2),
        Input (Variable, Relative),
        Usage (Wheel),              ; Wheel (38h, dynamic value)
        Logical Minimum (-127),
        Logical Maximum (127),
        Report Size (8),
        Report Count (1),
        Input (Variable, Relative),
    End Collection,
End Collection,

... etc (it's a bit longer, it's even a keyboard)

What the box gets is:

[1:1] Get Descriptor: 81 06 00 22 00 00 AC 00
[1:1] Control data:
  0000:  05 01 09 02 A1 01 09 01 A1 00 05 09 19 01 29 05  |..............).|
  0010:  15 00 25 01 95 05 75 01 81 02 95 01 75 03 81 01  |..%...u.....u...|
  0020:  05 01 09 30 09 31 09 38 15 81 25 7F 75 08 95 03  |...0.1.8..%.u...|
  0030:  81 06 95 03 75 08 81 01 C0 C0                    |....u.....|

which translates to:

Usage Page (Desktop),               ; Generic desktop controls (01h)
Usage (Mouse),                      ; Mouse (02h, application collection)
Collection (Application),
    Usage (Pointer),                ; Pointer (01h, physical collection)
    Collection (Physical),
        Usage Page (Button),        ; Button (09h)
        Usage Minimum (01h),
        Usage Maximum (05h),
        Logical Minimum (0),
        Logical Maximum (1),
        Report Count (5),
        Report Size (1),
        Input (Variable),
        Report Count (1),
        Report Size (3),
        Input (Constant),
        Usage Page (Desktop),       ; Generic desktop controls (01h)
        Usage (X),                  ; X (30h, dynamic value)
        Usage (Y),                  ; Y (31h, dynamic value)
        Usage (Wheel),              ; Wheel (38h, dynamic value)
        Logical Minimum (-127),
        Logical Maximum (127),
        Report Size (8),
        Report Count (3),
        Input (Variable, Relative),
        Report Count (3),
        Report Size (8),
        Input (Constant),
    End Collection,
End Collection

but the reports sent are based on the descriptor you sent earlier from the PC

01 00 00 00 00 FF FF 00 00 00
(report id 01, 4 bytes buttons, 2 bytes X, 2 bytes Y and wheel)

I think what happens here is this - mouse sends some sort of simplified boot protocol report, then gets switched to hid report but descriptor is not re-read and data gets misinterpreted.

from deskhop.

hrvach avatar hrvach commented on May 19, 2024 1

Let's try to get one working first :) It might be reasonable to add a check - if provided report length doesn't match what the descriptor specifies it should be, re-read the descriptor. Now the tricky part is, how to cleanly do this with tinyusb :)

from deskhop.

hrvach avatar hrvach commented on May 19, 2024 1

Can you try yet another one that probably won't work with this stubborn rodent? :) Important thing - make sure to plug mouse in B.

from deskhop.

hrvach avatar hrvach commented on May 19, 2024 1

Awesome! I think I have an idea what's happening but I'll need to test-drive this change for a few days before committing it. :)

from deskhop.

hrvach avatar hrvach commented on May 19, 2024 1

My hunch is - not related, but who knows. I've been daily-driving it for a while now and found it to be pretty reliable, but then again my requirements are basic and I can't tell the difference between 6kro and nkro keyboards, high-dpi mouse etc. :-)

from deskhop.

hrvach avatar hrvach commented on May 19, 2024

Please do:

usbhid-dump --entity=descriptor

to dump the HID descriptors for these (when plugged directly into the computer) and usbhid-dump --entity=stream and then try to type and move the mouse and paste the output somewhere please.

The mouse problem sounds like the descriptor might have not been parsed correctly. The keyboard device specifies 500 mA of current, not sure how much it uses but perhaps try to disable the RGB lights temporarily and see if that changes anything?

As far as screen reversal goes, I just swap the cables :D have to make that a software-configurable option...

from deskhop.

OrpheeGT avatar OrpheeGT commented on May 19, 2024

usbhid-dump :

usbhid-dump --model=1b1c:1b20

009:037:001:DESCRIPTOR 1706533974.582343
06 C2 FF 09 04 A1 01 15 00 26 FF 00 95 40 75 08
09 02 B1 02 09 02 81 02 09 04 91 02 C0

009:037:000:DESCRIPTOR 1706533974.587347
05 01 09 06 A1 01 85 01 05 07 19 E0 29 E7 15 00
25 01 75 01 95 08 81 02 19 00 29 97 15 00 25 01
75 01 95 98 81 02 05 08 19 01 29 03 25 01 75 01
95 03 91 02 75 05 95 01 91 01 C0 05 0C 09 01 A1
01 85 02 05 0C 19 00 2A FF 0F 15 00 26 FF 0F 75
10 95 02 81 00 C0 06 C0 FF 09 02 A1 01 85 03 15
00 26 FF 00 95 3F 75 08 09 02 81 02 C0 06 C2 FF
09 03 A1 01 85 0E 15 00 26 FF 00 95 3F 75 08 09
03 81 02 C0

usbhid-dump --model=1b1c:1b8b

009:036:001:DESCRIPTOR 1706534023.516541
06 C2 FF 09 04 A1 01 15 00 26 FF 00 95 40 75 08
09 02 B1 02 09 02 81 02 09 04 91 02 C0

009:036:000:DESCRIPTOR 1706534023.518819
05 01 09 02 A1 01 85 01 09 01 A1 00 05 09 19 01
29 20 15 00 25 01 95 20 75 01 81 02 05 01 09 30
09 31 16 01 80 26 FF 7F 75 10 95 02 81 06 09 38
15 81 25 7F 75 08 95 01 81 06 C0 C0 05 0C 09 01
A1 01 85 02 05 0C 19 00 2A 3C 02 15 00 26 FF 0F
75 10 95 02 81 00 C0 06 C1 FF 09 02 A1 01 85 03
15 00 26 FF 00 09 02 95 3F 75 08 81 02 C0 06 C2
FF 09 03 A1 01 85 0E 15 00 26 FF 00 95 3F 75 08
09 03 81 02 C0 05 01 09 06 A1 01 85 10 05 07 19
E0 29 E7 15 00 25 01 75 01 95 08 81 02 19 00 29
97 15 00 25 01 75 01 95 98 81 02 C0

from deskhop.

OrpheeGT avatar OrpheeGT commented on May 19, 2024
# usbhid-dump --entity=descriptor
011:002:000:DESCRIPTOR         1706534125.988645
 06 00 FF 09 01 A1 01 19 01 29 40 15 01 25 40 75
 08 95 40 81 00 19 01 29 40 91 00 C0

002:002:000:DESCRIPTOR         1706534125.988832
 05 01 09 02 A1 01 09 01 A1 00 05 09 19 01 29 03
 15 00 25 01 95 03 75 01 81 02 95 01 75 05 81 01
 05 01 09 30 09 31 15 00 26 FF 7F 35 00 46 FF 7F
 75 10 95 02 81 02 05 01 09 38 15 81 25 7F 35 00
 45 00 75 08 95 01 81 06 C0 C0

009:008:003:DESCRIPTOR         1706534125.995497
 05 0C 09 01 A1 01 85 01 09 E9 09 EA 75 01 95 02
 15 00 25 01 81 02 75 06 95 01 81 03 75 18 81 03
 C0 06 43 FF 0A 02 02 A1 01 85 11 95 13 75 08 26
 FF 00 09 02 81 00 09 02 91 00 C0 06 00 FF 09 01
 A1 01 09 0A A1 02 85 FF 95 01 75 20 09 0B 17 01
 00 00 80 27 FF FF FF 7F 81 02 C0 09 22 A1 02 85
 90 09 33 75 08 15 00 26 FF 00 81 02 09 34 81 02
 05 01 09 3B 75 10 27 FF FF 00 00 81 02 06 00 FF
 09 0A A1 02 05 0A 19 01 29 0A 95 0A 75 08 26 FF
 00 81 02 C0 C0 06 00 FF 09 22 A1 02 85 90 09 33
 95 01 91 02 09 34 91 02 05 01 09 3B 75 10 27 FF
 FF 00 00 91 02 06 00 FF 09 0A A1 02 05 0A 19 01
 29 0A 95 0A 75 08 26 FF 00 91 02 C0 C0 06 00 FF
 09 22 A1 02 85 C4 09 33 95 01 81 02 09 34 81 02
 05 01 09 3B 75 10 27 FF FF 00 00 81 02 06 00 FF
 09 0A A1 02 05 0A 19 01 29 3B 95 3B 75 08 26 FF
 00 81 02 C0 C0 06 00 FF 09 22 A1 02 85 C4 09 33
 95 01 91 02 09 34 91 02 05 01 09 3B 75 10 27 FF
 FF 00 00 91 02 06 00 FF 09 0A A1 02 05 0A 19 01
 29 3B 95 3B 75 08 26 FF 00 91 02 C0 C0 06 00 FF
 09 0C A1 02 85 FF 05 01 09 3B 95 01 B1 02 09 3A
 A1 02 05 0A 19 01 29 3E 95 3E B1 02 C0 C0 06 00
 FF 09 0C A1 02 85 E2 05 01 09 3B 95 01 81 02 09
 3A A1 02 05 0A 19 01 29 3E 95 3E 81 02 C0 C0 C0

009:036:001:DESCRIPTOR         1706534125.996897
 06 C2 FF 09 04 A1 01 15 00 26 FF 00 95 40 75 08
 09 02 B1 02 09 02 81 02 09 04 91 02 C0

009:036:000:DESCRIPTOR         1706534125.999171
 05 01 09 02 A1 01 85 01 09 01 A1 00 05 09 19 01
 29 20 15 00 25 01 95 20 75 01 81 02 05 01 09 30
 09 31 16 01 80 26 FF 7F 75 10 95 02 81 06 09 38
 15 81 25 7F 75 08 95 01 81 06 C0 C0 05 0C 09 01
 A1 01 85 02 05 0C 19 00 2A 3C 02 15 00 26 FF 0F
 75 10 95 02 81 00 C0 06 C1 FF 09 02 A1 01 85 03
 15 00 26 FF 00 09 02 95 3F 75 08 81 02 C0 06 C2
 FF 09 03 A1 01 85 0E 15 00 26 FF 00 95 3F 75 08
 09 03 81 02 C0 05 01 09 06 A1 01 85 10 05 07 19
 E0 29 E7 15 00 25 01 75 01 95 08 81 02 19 00 29
 97 15 00 25 01 75 01 95 98 81 02 C0

009:037:001:DESCRIPTOR         1706534126.002389
 06 C2 FF 09 04 A1 01 15 00 26 FF 00 95 40 75 08
 09 02 B1 02 09 02 81 02 09 04 91 02 C0

009:037:000:DESCRIPTOR         1706534126.007463
 05 01 09 06 A1 01 85 01 05 07 19 E0 29 E7 15 00
 25 01 75 01 95 08 81 02 19 00 29 97 15 00 25 01
 75 01 95 98 81 02 05 08 19 01 29 03 25 01 75 01
 95 03 91 02 75 05 95 01 91 01 C0 05 0C 09 01 A1
 01 85 02 05 0C 19 00 2A FF 0F 15 00 26 FF 0F 75
 10 95 02 81 00 C0 06 C0 FF 09 02 A1 01 85 03 15
 00 26 FF 00 95 3F 75 08 09 02 81 02 C0 06 C2 FF
 09 03 A1 01 85 0E 15 00 26 FF 00 95 3F 75 08 09
 03 81 02 C0

009:005:001:DESCRIPTOR         1706534126.008420
 06 D0 F1 09 01 A1 01 09 20 15 00 26 FF 00 75 08
 95 40 81 02 09 21 15 00 26 FF 00 75 08 95 40 91
 02 C0

009:005:000:DESCRIPTOR         1706534126.009404
 05 01 09 06 A1 01 05 07 19 E0 29 E7 15 00 25 01
 75 01 95 08 81 02 95 01 75 08 81 01 95 05 75 01
 05 08 19 01 29 05 91 02 95 01 75 03 91 01 95 06
 75 08 15 00 25 65 05 07 19 00 29 65 81 00 09 03
 75 08 95 08 B1 02 C0

root@UbuntuOS:/home/orphee/Downloads/PCB/dump# usbhid-dump --entity=stream
Starting dumping interrupt transfer stream
with 1 minute timeout.

009:036:000:STREAM             1706534263.254056
 01 00 00 00 00 FF FF 00 00 00

009:036:000:STREAM             1706534263.258072
 01 00 00 00 00 FF FF 00 00 00

009:036:000:STREAM             1706534263.259063
 01 00 00 00 00 00 00 FF FF 00

009:036:000:STREAM             1706534263.259997
 01 00 00 00 00 00 00 FF FF 00

009:036:000:STREAM             1706534263.261035
 01 00 00 00 00 FF FF 00 00 00

009:036:000:STREAM             1706534263.262027
 01 00 00 00 00 00 00 FF FF 00

009:036:000:STREAM             1706534263.263059
 01 00 00 00 00 FF FF FF FF 00

009:036:000:STREAM             1706534263.264047
 01 00 00 00 00 FF FF 00 00 00

009:036:000:STREAM             1706534263.265051
 01 00 00 00 00 00 00 FF FF 00

009:036:000:STREAM             1706534263.266112
 01 00 00 00 00 FF FF 00 00 00

009:036:000:STREAM             1706534263.267064
 01 00 00 00 00 00 00 FF FF 00

009:036:000:STREAM             1706534263.268103
 01 00 00 00 00 FF FF FF FF 00

009:036:000:STREAM             1706534263.269099
 01 00 00 00 00 FF FF FF FF 00

009:036:000:STREAM             1706534263.270085
 01 00 00 00 00 FF FF FF FF 00

009:036:000:STREAM             1706534263.271048
 01 00 00 00 00 00 00 FF FF 00

009:036:000:STREAM             1706534263.272090
 01 00 00 00 00 FF FF 00 00 00

009:036:000:STREAM             1706534263.273092
 01 00 00 00 00 FF FF FF FF 00

009:036:000:STREAM             1706534263.274086
 01 00 00 00 00 FF FF FF FF 00

009:036:000:STREAM             1706534263.275091
 01 00 00 00 00 FF FF FF FF 00

009:036:000:STREAM             1706534263.276062
 01 00 00 00 00 FF FF FF FF 00

009:036:000:STREAM             1706534263.277109
 01 00 00 00 00 FF FF FE FF 00

009:036:000:STREAM             1706534263.278097
 01 00 00 00 00 FF FF FF FF 00

009:036:000:STREAM             1706534263.279093
 01 00 00 00 00 FF FF FF FF 00

009:036:000:STREAM             1706534263.280090
 01 00 00 00 00 FE FF FF FF 00

009:036:000:STREAM             1706534263.281010
 01 00 00 00 00 FF FF FF FF 00

009:036:000:STREAM             1706534263.282068
 01 00 00 00 00 FF FF FE FF 00

009:036:000:STREAM             1706534263.283098
 01 00 00 00 00 FE FF FF FF 00

009:036:000:STREAM             1706534263.284028
 01 00 00 00 00 FE FF FE FF 00

009:036:000:STREAM             1706534263.285025
 01 00 00 00 00 FF FF FF FF 00

009:036:000:STREAM             1706534263.286015
 01 00 00 00 00 FF FF FF FF 00

009:036:000:STREAM             1706534263.287079
 01 00 00 00 00 FF FF FF FF 00

009:036:000:STREAM             1706534263.288097
 01 00 00 00 00 FE FF FE FF 00

009:036:000:STREAM             1706534263.289036
 01 00 00 00 00 FF FF FF FF 00

009:036:000:STREAM             1706534263.290030
 01 00 00 00 00 FF FF FF FF 00

009:036:000:STREAM             1706534263.291054
 01 00 00 00 00 FD FF FD FF 00

009:036:000:STREAM             1706534263.292100
 01 00 00 00 00 FE FF FF FF 00

009:036:000:STREAM             1706534263.293091
 01 00 00 00 00 FE FF FE FF 00

009:036:000:STREAM             1706534263.294066
 01 00 00 00 00 FF FF FF FF 00

009:036:000:STREAM             1706534263.295103
 01 00 00 00 00 FE FF FF FF 00

009:036:000:STREAM             1706534263.296090
 01 00 00 00 00 FE FF FD FF 00

009:036:000:STREAM             1706534263.297102
 01 00 00 00 00 FF FF FF FF 00

009:036:000:STREAM             1706534263.298097
 01 00 00 00 00 FD FF FF FF 00

009:036:000:STREAM             1706534263.299078
 01 00 00 00 00 FF FF FE FF 00

009:036:000:STREAM             1706534263.300025
 01 00 00 00 00 FD FF FE FF 00

009:036:000:STREAM             1706534263.301057
 01 00 00 00 00 FE FF FE FF 00

009:036:000:STREAM             1706534263.302033
 01 00 00 00 00 FE FF FF FF 00

009:036:000:STREAM             1706534263.303052
 01 00 00 00 00 FE FF FF FF 00

009:036:000:STREAM             1706534263.304062
 01 00 00 00 00 FF FF FE FF 00

009:036:000:STREAM             1706534263.305068
 01 00 00 00 00 FD FF FF FF 00

009:036:000:STREAM             1706534263.306053
 01 00 00 00 00 FE FF FE FF 00

009:036:000:STREAM             1706534263.307062
 01 00 00 00 00 FE FF FE FF 00

009:036:000:STREAM             1706534263.308057
 01 00 00 00 00 FE FF FF FF 00

009:036:000:STREAM             1706534263.309089
 01 00 00 00 00 FD FF FE FF 00

009:036:000:STREAM             1706534263.310047
 01 00 00 00 00 FE FF FF FF 00

009:036:000:STREAM             1706534263.311039
 01 00 00 00 00 FE FF FE FF 00

009:036:000:STREAM             1706534263.312058
 01 00 00 00 00 FE FF 00 00 00

009:036:000:STREAM             1706534263.313026
 01 00 00 00 00 FE FF FE FF 00

009:036:000:STREAM             1706534263.314013
 01 00 00 00 00 FE FF FF FF 00

009:036:000:STREAM             1706534263.315021
 01 00 00 00 00 FE FF FF FF 00

009:036:000:STREAM             1706534263.316062
 01 00 00 00 00 FF FF FF FF 00

009:036:000:STREAM             1706534263.317093
 01 00 00 00 00 FE FF FE FF 00

009:036:000:STREAM             1706534263.318071
 01 00 00 00 00 FE FF FF FF 00

009:036:000:STREAM             1706534263.319057
 01 00 00 00 00 FF FF FF FF 00

009:036:000:STREAM             1706534263.320052
 01 00 00 00 00 FF FF FF FF 00

009:036:000:STREAM             1706534263.321062
 01 00 00 00 00 FF FF FF FF 00

009:036:000:STREAM             1706534263.322029
 01 00 00 00 00 FF FF FE FF 00

009:036:000:STREAM             1706534263.323042
 01 00 00 00 00 FF FF 00 00 00

009:036:000:STREAM             1706534263.324002
 01 00 00 00 00 FF FF FF FF 00

009:036:000:STREAM             1706534263.325011
 01 00 00 00 00 FF FF FF FF 00

009:036:000:STREAM             1706534263.326095
 01 00 00 00 00 FF FF FF FF 00

009:036:000:STREAM             1706534263.327058
 01 00 00 00 00 FF FF FF FF 00

009:036:000:STREAM             1706534263.328072
 01 00 00 00 00 00 00 FF FF 00

009:036:000:STREAM             1706534263.329085
 01 00 00 00 00 FF FF 00 00 00

009:036:000:STREAM             1706534263.330037
 01 00 00 00 00 FF FF FF FF 00

009:036:000:STREAM             1706534263.331007
 01 00 00 00 00 FF FF FF FF 00

009:036:000:STREAM             1706534263.332064
 01 00 00 00 00 00 00 FF FF 00

009:036:000:STREAM             1706534263.333042
 01 00 00 00 00 FF FF 00 00 00

009:036:000:STREAM             1706534263.335038
 01 00 00 00 00 00 00 FF FF 00

009:036:000:STREAM             1706534263.336052
 01 00 00 00 00 FF FF 00 00 00

009:036:000:STREAM             1706534263.338054
 01 00 00 00 00 FF FF 00 00 00

009:036:000:STREAM             1706534263.339037
 01 00 00 00 00 00 00 FF FF 00

009:036:000:STREAM             1706534263.342067
 01 00 00 00 00 FF FF FF FF 00

009:036:000:STREAM             1706534263.346112
 01 00 00 00 00 00 00 FF FF 00

009:036:000:STREAM             1706534263.350135
 01 00 00 00 00 FF FF 00 00 00

009:036:000:STREAM             1706534263.354127
 01 00 00 00 00 00 00 FF FF 00

009:036:000:STREAM             1706534263.374103
 01 00 00 00 00 00 00 FF FF 00

009:036:000:STREAM             1706534263.387113
 01 00 00 00 00 00 00 FF FF 00

009:036:000:STREAM             1706534263.390135
 01 00 00 00 00 FF FF 00 00 00

009:036:000:STREAM             1706534263.393079
 01 00 00 00 00 00 00 FF FF 00

009:036:000:STREAM             1706534263.397080
 01 00 00 00 00 00 00 FF FF 00

009:036:000:STREAM             1706534263.406085
 01 00 00 00 00 FF FF 00 00 00

009:036:000:STREAM             1706534263.409109
 01 00 00 00 00 00 00 FF FF 00

009:036:000:STREAM             1706534263.411095
 01 00 00 00 00 FF FF 00 00 00

009:036:000:STREAM             1706534263.412109
 01 00 00 00 00 00 00 FF FF 00

009:036:000:STREAM             1706534263.416117
 01 00 00 00 00 FF FF 00 00 00

009:036:000:STREAM             1706534263.417106
 01 00 00 00 00 00 00 FF FF 00

009:036:000:STREAM             1706534263.420116
 01 00 00 00 00 FF FF FF FF 00

009:036:000:STREAM             1706534263.423106
 01 00 00 00 00 FF FF 00 00 00

009:036:000:STREAM             1706534263.424098
 01 00 00 00 00 FF FF 00 00 00

009:036:000:STREAM             1706534263.425055
 01 00 00 00 00 00 00 FF FF 00

009:036:000:STREAM             1706534263.428101
 01 00 00 00 00 00 00 FF FF 00

009:036:000:STREAM             1706534263.429097
 01 00 00 00 00 00 00 00 00 00

009:036:000:STREAM             1706534263.430085
 01 00 00 00 00 FF FF 00 00 00

009:036:000:STREAM             1706534263.431072
 01 00 00 00 00 FF FF 00 00 00

009:036:000:STREAM             1706534263.433052
 01 00 00 00 00 00 00 FF FF 00

009:036:000:STREAM             1706534263.436073
 01 00 00 00 00 FF FF 00 00 00

009:036:000:STREAM             1706534263.437058
 01 00 00 00 00 00 00 FF FF 00

009:036:000:STREAM             1706534263.438069
 01 00 00 00 00 FF FF 00 00 00

009:036:000:STREAM             1706534263.442076
 01 00 00 00 00 FF FF FF FF 00

009:036:000:STREAM             1706534263.448074
 01 00 00 00 00 FF FF 00 00 00

009:036:000:STREAM             1706534263.449096
 01 00 00 00 00 00 00 FF FF 00

009:036:000:STREAM             1706534263.458143
 01 00 00 00 00 FF FF 00 00 00

009:036:000:STREAM             1706534263.459100
 01 00 00 00 00 00 00 FF FF 00

009:036:000:STREAM             1706534263.501148
 01 00 00 00 00 00 00 01 00 00

009:036:000:STREAM             1706534263.518112
 01 00 00 00 00 FF FF 00 00 00

009:036:000:STREAM             1706534263.520129
 01 00 00 00 00 00 00 01 00 00

009:036:000:STREAM             1706534263.526119
 01 00 00 00 00 FF FF 00 00 00

009:036:000:STREAM             1706534263.527098
 01 00 00 00 00 00 00 01 00 00

009:036:000:STREAM             1706534263.530129
 01 00 00 00 00 00 00 01 00 00

009:036:000:STREAM             1706534263.532129
 01 00 00 00 00 00 00 01 00 00

009:036:000:STREAM             1706534263.533118
 01 00 00 00 00 FF FF 00 00 00

009:036:000:STREAM             1706534263.536124
 01 00 00 00 00 00 00 01 00 00

009:036:000:STREAM             1706534263.538105
 01 00 00 00 00 FF FF 00 00 00

009:036:000:STREAM             1706534263.539140
 01 00 00 00 00 00 00 01 00 00

009:036:000:STREAM             1706534263.540068
 01 00 00 00 00 00 00 01 00 00

009:036:000:STREAM             1706534263.541094
 01 00 00 00 00 00 00 01 00 00

009:036:000:STREAM             1706534263.543101
 01 00 00 00 00 00 00 01 00 00

009:036:000:STREAM             1706534263.546119
 01 00 00 00 00 00 00 01 00 00

009:036:000:STREAM             1706534263.547103
 01 00 00 00 00 FF FF 00 00 00

009:036:000:STREAM             1706534263.548117
 01 00 00 00 00 00 00 01 00 00

009:036:000:STREAM             1706534263.549086
 01 00 00 00 00 00 00 01 00 00

009:036:000:STREAM             1706534263.550057
 01 00 00 00 00 00 00 01 00 00

009:036:000:STREAM             1706534263.554101
 01 00 00 00 00 00 00 01 00 00

009:036:000:STREAM             1706534263.555045
 01 00 00 00 00 00 00 01 00 00

009:036:000:STREAM             1706534263.556057
 01 00 00 00 00 00 00 01 00 00

009:036:000:STREAM             1706534263.559085
 01 00 00 00 00 00 00 01 00 00

009:036:000:STREAM             1706534263.563111
 01 00 00 00 00 00 00 01 00 00

009:036:000:STREAM             1706534263.564078
 01 00 00 00 00 00 00 01 00 00

009:036:000:STREAM             1706534263.566086
 01 00 00 00 00 00 00 01 00 00

009:036:000:STREAM             1706534263.569137
 01 00 00 00 00 00 00 01 00 00

009:036:000:STREAM             1706534263.573105
 01 00 00 00 00 00 00 01 00 00

009:036:000:STREAM             1706534263.574088
 01 00 00 00 00 00 00 01 00 00

009:036:000:STREAM             1706534263.577148
 01 00 00 00 00 00 00 01 00 00

009:036:000:STREAM             1706534263.581135
 01 00 00 00 00 00 00 01 00 00

009:036:000:STREAM             1706534263.583122
 01 00 00 00 00 00 00 01 00 00

009:036:000:STREAM             1706534263.585120
 01 00 00 00 00 00 00 01 00 00

009:036:000:STREAM             1706534263.588118
 01 00 00 00 00 00 00 01 00 00

009:036:000:STREAM             1706534263.591088
 01 00 00 00 00 00 00 01 00 00

009:036:000:STREAM             1706534263.593125
 01 00 00 00 00 00 00 01 00 00

009:036:000:STREAM             1706534263.594067
 01 00 00 00 00 00 00 01 00 00

009:036:000:STREAM             1706534263.598152
 01 00 00 00 00 00 00 01 00 00

009:036:000:STREAM             1706534263.600112
 01 00 00 00 00 00 00 01 00 00

009:036:000:STREAM             1706534263.601109
 01 00 00 00 00 00 00 01 00 00

009:036:000:STREAM             1706534263.602148
 01 00 00 00 00 01 00 00 00 00

009:036:000:STREAM             1706534263.603147
 01 00 00 00 00 00 00 01 00 00

009:036:000:STREAM             1706534263.607147
 01 00 00 00 00 00 00 01 00 00

009:036:000:STREAM             1706534263.608098
 01 00 00 00 00 00 00 01 00 00

009:036:000:STREAM             1706534263.609090
 01 00 00 00 00 00 00 01 00 00

009:036:000:STREAM             1706534263.610073
 01 00 00 00 00 01 00 00 00 00

009:036:000:STREAM             1706534263.611083
 01 00 00 00 00 00 00 01 00 00

009:036:000:STREAM             1706534263.615091
 01 00 00 00 00 00 00 01 00 00

009:036:000:STREAM             1706534263.617136
 01 00 00 00 00 00 00 01 00 00

009:036:000:STREAM             1706534263.620118
 01 00 00 00 00 00 00 01 00 00

009:036:000:STREAM             1706534263.621127
 01 00 00 00 00 01 00 00 00 00

009:036:000:STREAM             1706534263.623112
 01 00 00 00 00 00 00 01 00 00

009:036:000:STREAM             1706534263.626095
 01 00 00 00 00 00 00 01 00 00

009:036:000:STREAM             1706534263.627107
 01 00 00 00 00 01 00 00 00 00

009:036:000:STREAM             1706534263.630108
 01 00 00 00 00 00 00 01 00 00

009:036:000:STREAM             1706534263.668115
 01 00 00 00 00 01 00 01 00 00

009:036:000:STREAM             1706534263.694112
 01 00 00 00 00 01 00 00 00 00

009:036:000:STREAM             1706534263.705097
 01 00 00 00 00 00 00 01 00 00

009:036:000:STREAM             1706534263.714135
 01 00 00 00 00 01 00 00 00 00

009:036:000:STREAM             1706534263.718164
 01 00 00 00 00 01 00 00 00 00

009:036:000:STREAM             1706534263.721163
 01 00 00 00 00 00 00 00 00 00

009:036:000:STREAM             1706534263.722129
 01 00 00 00 00 01 00 00 00 00

009:036:000:STREAM             1706534263.725125
 01 00 00 00 00 01 00 00 00 00

009:036:000:STREAM             1706534263.727140
 01 00 00 00 00 01 00 00 00 00

009:036:000:STREAM             1706534263.728079
 01 00 00 00 00 00 00 01 00 00

009:036:000:STREAM             1706534263.729091
 01 00 00 00 00 01 00 00 00 00

009:036:000:STREAM             1706534263.732141
 01 00 00 00 00 01 00 00 00 00

009:036:000:STREAM             1706534263.734105
 01 00 00 00 00 01 00 00 00 00

009:036:000:STREAM             1706534263.735131
 01 00 00 00 00 00 00 01 00 00

009:036:000:STREAM             1706534263.736115
 01 00 00 00 00 01 00 00 00 00

009:036:000:STREAM             1706534263.738135
 01 00 00 00 00 01 00 00 00 00

009:036:000:STREAM             1706534263.739124
 01 00 00 00 00 00 00 01 00 00

009:036:000:STREAM             1706534263.740060
 01 00 00 00 00 01 00 00 00 00

009:036:000:STREAM             1706534263.742091
 01 00 00 00 00 01 00 00 00 00

009:036:000:STREAM             1706534263.743099
 01 00 00 00 00 00 00 01 00 00

009:036:000:STREAM             1706534263.744073
 01 00 00 00 00 01 00 00 00 00

009:036:000:STREAM             1706534263.746079
 01 00 00 00 00 01 00 01 00 00

009:036:000:STREAM             1706534263.748102
 01 00 00 00 00 01 00 00 00 00

009:036:000:STREAM             1706534263.750125
 01 00 00 00 00 00 00 01 00 00

009:036:000:STREAM             1706534263.751163
 01 00 00 00 00 01 00 00 00 00

009:036:000:STREAM             1706534263.752112
 01 00 00 00 00 00 00 01 00 00

009:036:000:STREAM             1706534263.753152
 01 00 00 00 00 01 00 00 00 00

009:036:000:STREAM             1706534263.755167
 01 00 00 00 00 01 00 00 00 00

009:036:000:STREAM             1706534263.756112
 01 00 00 00 00 00 00 01 00 00

009:036:000:STREAM             1706534263.759148
 01 00 00 00 00 01 00 00 00 00

009:036:000:STREAM             1706534263.760141
 01 00 00 00 00 00 00 01 00 00

009:036:000:STREAM             1706534263.762138
 01 00 00 00 00 01 00 01 00 00

009:036:000:STREAM             1706534263.765141
 01 00 00 00 00 00 00 01 00 00

009:036:000:STREAM             1706534263.766090
 01 00 00 00 00 01 00 00 00 00

009:036:000:STREAM             1706534263.770128
 01 00 00 00 00 01 00 00 00 00

009:036:000:STREAM             1706534263.772075
 01 00 00 00 00 00 00 01 00 00

009:036:000:STREAM             1706534263.778129
 01 00 00 00 00 01 00 00 00 00

009:036:000:STREAM             1706534263.780097
 01 00 00 00 00 00 00 01 00 00

009:036:000:STREAM             1706534263.802130
 01 00 00 00 00 01 00 00 00 00

009:037:000:STREAM             1706534264.796995
 01 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00

009:037:000:STREAM             1706534264.858960
 01 00 80 02 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00

009:037:000:STREAM             1706534264.877982
 01 00 80 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00

009:037:000:STREAM             1706534264.943977
 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00

009:037:000:STREAM             1706534265.036007
 01 00 80 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00

009:037:000:STREAM             1706534265.114063
 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00

009:037:000:STREAM             1706534265.125021
 01 00 00 08 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00

009:037:000:STREAM             1706534265.157993
 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
 00 00 00 00 00

009:036:000:STREAM             1706534266.507319
 01 01 00 00 00 00 00 00 00 00

009:036:000:STREAM             1706534266.612336
 01 00 00 00 00 00 00 00 00 00

009:036:000:STREAM             1706534266.616309
 01 00 00 00 00 FF FF 00 00 00

009:036:000:STREAM             1706534266.618311
 01 02 00 00 00 00 00 00 00 00

009:036:000:STREAM             1706534266.624419
 01 02 00 00 00 FF FF 00 00 00

009:036:000:STREAM             1706534266.625431
 01 02 00 00 00 00 00 FF FF 00

009:036:000:STREAM             1706534266.627311
 01 02 00 00 00 FF FF 00 00 00

009:036:000:STREAM             1706534266.628268
 01 02 00 00 00 00 00 FF FF 00

009:036:000:STREAM             1706534266.630343
 01 02 00 00 00 FF FF 00 00 00

009:036:000:STREAM             1706534266.631305
 01 02 00 00 00 FF FF 00 00 00

009:036:000:STREAM             1706534266.633322
 01 02 00 00 00 FF FF 00 00 00

009:036:000:STREAM             1706534266.635306
 01 02 00 00 00 FF FF FF FF 00

009:036:000:STREAM             1706534266.636320
 01 02 00 00 00 FF FF 00 00 00

009:036:000:STREAM             1706534266.638287
 01 02 00 00 00 FF FF 00 00 00

009:036:000:STREAM             1706534266.639279
 01 02 00 00 00 00 00 FF FF 00

009:036:000:STREAM             1706534266.640294
 01 02 00 00 00 FF FF 00 00 00

009:036:000:STREAM             1706534266.642274
 01 02 00 00 00 FF FF 00 00 00

009:036:000:STREAM             1706534266.643313
 01 02 00 00 00 00 00 FF FF 00

009:036:000:STREAM             1706534266.644270
 01 02 00 00 00 FF FF 00 00 00

009:036:000:STREAM             1706534266.646275
 01 02 00 00 00 FF FF 00 00 00

009:036:000:STREAM             1706534266.648261
 01 02 00 00 00 FF FF 00 00 00

009:036:000:STREAM             1706534266.649307
 01 02 00 00 00 00 00 FF FF 00

009:036:000:STREAM             1706534266.650267
 01 02 00 00 00 FF FF 00 00 00

009:036:000:STREAM             1706534266.652300
 01 02 00 00 00 FF FF 00 00 00

009:036:000:STREAM             1706534266.655270
 01 02 00 00 00 00 00 FF FF 00

009:036:000:STREAM             1706534266.656254
 01 02 00 00 00 FF FF 00 00 00

009:036:000:STREAM             1706534266.698283
 01 00 00 00 00 00 00 00 00 00

009:036:000:STREAM             1706534266.702343
 01 00 00 00 00 01 00 00 00 00

009:036:000:STREAM             1706534266.708275
 01 00 00 00 00 01 00 00 00 00

from deskhop.

OrpheeGT avatar OrpheeGT commented on May 19, 2024

The keyboard has a 2nd USB connector for power, this USB is plugged on a powered USB hub, so It should not be a problem ?

switching off lights does not help.

from deskhop.

hrvach avatar hrvach commented on May 19, 2024

How are you plugging this? one in port A, one in port B on the box or both through a hub?

from deskhop.

OrpheeGT avatar OrpheeGT commented on May 19, 2024

The USB hub is only used to power the 2nd USB (power usb) of the keyboard.

The main USB keyboard is directly plugged on USB A

Mouse directly plugged to USB B

micro usb are respectively plugged direcly on computers.

from deskhop.

OrpheeGT avatar OrpheeGT commented on May 19, 2024

Yep, there a some buttons on it :D

image

from deskhop.

OrpheeGT avatar OrpheeGT commented on May 19, 2024

Ok, I discovered something.

The Keyboard has a "BIOS" mode ...

When you long press F1 + Windows lock button (5 seconds) it switch to "BIOS" mode as called on the web.

Then it is correcty working, but the "insert" led blinks constently (a bit annoying).

In this mode, the leds are stuck to hardware default mode, and I can't even disable/switch off leds at all.

I never needed this "BIOS" mode until now, with or without Corsair drivers (they are not installed on corporate laptop).

Here is the lsusb output in this BIOS mode :

Bus 009 Device 009: ID 1b1c:1b20 Corsair STRAFE RGB Gaming Keyboard
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  idVendor           0x1b1c Corsair
  idProduct          0x1b20 STRAFE RGB Gaming Keyboard
  bcdDevice            3.08
  iManufacturer           1 Corsair
  iProduct                2 Corsair STRAFE RGB Gaming Keyboard
  iSerial                 3 13008030AEAA1004550316D6F5001940
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength       0x0022
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0xa0
      (Bus Powered)
      Remote Wakeup
    MaxPower              500mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           1
      bInterfaceClass         3 Human Interface Device
      bInterfaceSubClass      1 Boot Interface Subclass
      bInterfaceProtocol      1 Keyboard
      iInterface              0 
        HID Device Descriptor:
          bLength                 9
          bDescriptorType        33
          bcdHID               1.11
          bCountryCode            0 Not supported
          bNumDescriptors         1
          bDescriptorType        34 Report
          wDescriptorLength      67
         Report Descriptors: 
           ** UNAVAILABLE **
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0008  1x 8 bytes
        bInterval               8
Device Status:     0x0000
  (Bus Powered)
# usbhid-dump --model=1b1c:1b20
009:009:000:DESCRIPTOR         1706543447.883544
 05 01 09 06 A1 01 05 07 19 E0 29 E7 15 00 25 01
 75 01 95 08 81 02 75 08 95 01 81 01 05 07 19 00
 2A FF 00 15 00 26 FF 00 75 08 95 06 81 00 05 08
 19 01 29 03 25 01 75 01 95 03 91 02 75 05 95 01
 91 01 C0
# usbhid-dump --entity=descriptor
011:002:000:DESCRIPTOR         1706544080.581174
 06 00 FF 09 01 A1 01 19 01 29 40 15 01 25 40 75
 08 95 40 81 00 19 01 29 40 91 00 C0

002:002:000:DESCRIPTOR         1706544080.581363
 05 01 09 02 A1 01 09 01 A1 00 05 09 19 01 29 03
 15 00 25 01 95 03 75 01 81 02 95 01 75 05 81 01
 05 01 09 30 09 31 15 00 26 FF 7F 35 00 46 FF 7F
 75 10 95 02 81 02 05 01 09 38 15 81 25 7F 35 00
 45 00 75 08 95 01 81 06 C0 C0

009:007:003:DESCRIPTOR         1706544080.588188
 05 0C 09 01 A1 01 85 01 09 E9 09 EA 75 01 95 02
 15 00 25 01 81 02 75 06 95 01 81 03 75 18 81 03
 C0 06 43 FF 0A 02 02 A1 01 85 11 95 13 75 08 26
 FF 00 09 02 81 00 09 02 91 00 C0 06 00 FF 09 01
 A1 01 09 0A A1 02 85 FF 95 01 75 20 09 0B 17 01
 00 00 80 27 FF FF FF 7F 81 02 C0 09 22 A1 02 85
 90 09 33 75 08 15 00 26 FF 00 81 02 09 34 81 02
 05 01 09 3B 75 10 27 FF FF 00 00 81 02 06 00 FF
 09 0A A1 02 05 0A 19 01 29 0A 95 0A 75 08 26 FF
 00 81 02 C0 C0 06 00 FF 09 22 A1 02 85 90 09 33
 95 01 91 02 09 34 91 02 05 01 09 3B 75 10 27 FF
 FF 00 00 91 02 06 00 FF 09 0A A1 02 05 0A 19 01
 29 0A 95 0A 75 08 26 FF 00 91 02 C0 C0 06 00 FF
 09 22 A1 02 85 C4 09 33 95 01 81 02 09 34 81 02
 05 01 09 3B 75 10 27 FF FF 00 00 81 02 06 00 FF
 09 0A A1 02 05 0A 19 01 29 3B 95 3B 75 08 26 FF
 00 81 02 C0 C0 06 00 FF 09 22 A1 02 85 C4 09 33
 95 01 91 02 09 34 91 02 05 01 09 3B 75 10 27 FF
 FF 00 00 91 02 06 00 FF 09 0A A1 02 05 0A 19 01
 29 3B 95 3B 75 08 26 FF 00 91 02 C0 C0 06 00 FF
 09 0C A1 02 85 FF 05 01 09 3B 95 01 B1 02 09 3A
 A1 02 05 0A 19 01 29 3E 95 3E B1 02 C0 C0 06 00
 FF 09 0C A1 02 85 E2 05 01 09 3B 95 01 81 02 09
 3A A1 02 05 0A 19 01 29 3E 95 3E 81 02 C0 C0 C0

009:006:001:DESCRIPTOR         1706544080.589433
 06 C2 FF 09 04 A1 01 15 00 26 FF 00 95 40 75 08
 09 02 B1 02 09 02 81 02 09 04 91 02 C0

009:006:000:DESCRIPTOR         1706544080.591859
 05 01 09 02 A1 01 85 01 09 01 A1 00 05 09 19 01
 29 20 15 00 25 01 95 20 75 01 81 02 05 01 09 30
 09 31 16 01 80 26 FF 7F 75 10 95 02 81 06 09 38
 15 81 25 7F 75 08 95 01 81 06 C0 C0 05 0C 09 01
 A1 01 85 02 05 0C 19 00 2A 3C 02 15 00 26 FF 0F
 75 10 95 02 81 00 C0 06 C1 FF 09 02 A1 01 85 03
 15 00 26 FF 00 09 02 95 3F 75 08 81 02 C0 06 C2
 FF 09 03 A1 01 85 0E 15 00 26 FF 00 95 3F 75 08
 09 03 81 02 C0 05 01 09 06 A1 01 85 10 05 07 19
 E0 29 E7 15 00 25 01 75 01 95 08 81 02 19 00 29
 97 15 00 25 01 75 01 95 98 81 02 C0

009:011:000:DESCRIPTOR         1706544080.597203
 05 01 09 06 A1 01 85 01 05 07 19 E0 29 E7 15 00
 25 01 95 08 75 01 81 02 95 01 75 08 81 01 05 08
 19 01 29 05 95 05 75 01 91 02 95 01 75 03 91 01
 05 07 19 00 2A FF 00 15 00 26 FF 00 95 06 75 08
 81 00 C0 05 01 09 02 A1 01 85 02 09 01 A1 00 05
 09 19 01 29 05 15 00 25 01 95 05 75 01 81 02 95
 01 75 03 81 01 05 01 09 30 09 31 15 00 26 FF 7F
 75 10 95 02 81 02 09 38 15 81 25 7F 95 01 75 08
 81 06 05 0C 0A 38 02 15 81 25 7F 95 01 75 08 81
 06 C0 C0

009:005:001:DESCRIPTOR         1706544080.598213
 06 D0 F1 09 01 A1 01 09 20 15 00 26 FF 00 75 08
 95 40 81 02 09 21 15 00 26 FF 00 75 08 95 40 91
 02 C0

009:005:000:DESCRIPTOR         1706544080.599340
 05 01 09 06 A1 01 05 07 19 E0 29 E7 15 00 25 01
 75 01 95 08 81 02 95 01 75 08 81 01 95 05 75 01
 05 08 19 01 29 05 91 02 95 01 75 03 91 01 95 06
 75 08 15 00 25 65 05 07 19 00 29 65 81 00 09 03
 75 08 95 08 B1 02 C0

Difference between modes :
image

Don't know what it means

from deskhop.

hrvach avatar hrvach commented on May 19, 2024

Just a wild guess, does this do anything for the mouse?

As for the keyboard, it seems to refuse the BOOT mode unless manually switched with the keyboard shortcut. Full hid report protocol for the keyboard is on the to-do list, might get done alongside descriptor proxying at some point...

from deskhop.

OrpheeGT avatar OrpheeGT commented on May 19, 2024

Same as latest official FW.

when I move the mouse, nothing appens unless I also click on a (right or left) button at the same time.

And the only thing it does is it moves from left to right no matter the way I move it.

from deskhop.

hrvach avatar hrvach commented on May 19, 2024

Hmmm, it's like the mouse refuses to switch modes. This makes any difference?
test_force_hid.zip

from deskhop.

OrpheeGT avatar OrpheeGT commented on May 19, 2024

Same behaviour... whereas it works OK with Logitech G500s.

from deskhop.

hrvach avatar hrvach commented on May 19, 2024

I have just one idea left for debugging in the blind
test_force_hid2.zip

from deskhop.

OrpheeGT avatar OrpheeGT commented on May 19, 2024

No change, same behaviour.

from deskhop.

hrvach avatar hrvach commented on May 19, 2024

That mouse is cursed :) There is something odd happening with the initial mode setting on Corsair devices apparently. I'll see if there is anyone around with a Corsair mouse to check what's going on there. If you'll be open to doing some more debugging, that would be helpful.

from deskhop.

OrpheeGT avatar OrpheeGT commented on May 19, 2024

I'm willing to do any debugging you need, just tell me what you want me to do.

from deskhop.

OrpheeGT avatar OrpheeGT commented on May 19, 2024

Debug pin are soldered and ready to use, if you guide me with the needed hardware to plug it (that I might already have (USBasp ?))

from deskhop.

hrvach avatar hrvach commented on May 19, 2024

Write this debug firmware which will create additional serial port for output, then open your serial terminal of choice (screen -L /dev/ttyACM0 or similar, depending on the device created, works), plug in the mouse, wait a few seconds, click buttons and move it a bit... upload the output here as a zipfile.

from deskhop.

OrpheeGT avatar OrpheeGT commented on May 19, 2024
# cat screenlog.0 
id 0
  Bind EP 03 to driver id 0
  Bind EP 83 to driver id 0
Full Speed
[1:0] Open EP0 with Size = 8
Get 8 byte of Device Descriptor
[1:0] Get Descriptor: 80 06 00 01 00 00 08 00 
[1:0] Control data:
  0000:  12 01 00 02 00 00 00 40                          |.......@|

Set Address = 1
[1:0] Set Address: 00 05 01 00 00 00 00 00 

[1:1] Open EP0 with Size = 64
Get Device Descriptor
[1:1] Get Descriptor: 80 06 00 01 00 00 12 00 
[1:1] Control data:
  0000:  12 01 00 02 00 00 00 40 1C 1B 8B 1B 21 03 01 02  |.......@....!...|
  0010:  03 01                                            |..|

Get Configuration[0] Descriptor (9 bytes)
[1:1] Get Descriptor: 80 06 00 02 00 00 09 00 
[1:1] Control data:
  0000:  09 02 42 00 02 01 00 A0 96                       |..B......|

Get Configuration[0] Descriptor
[1:1] Get Descriptor: 80 06 00 02 00 00 42 00 
[1:1] Control data:
  0000:  09 02 42 00 02 01 00 A0 96 09 04 00 00 01 03 01  |..B.............|
  0010:  02 00 09 21 11 01 00 01 22 AC 00 07 05 81 03 40  |...!...."......@|
  0020:  00 01 09 04 01 00 02 03 00 00 00 09 21 11 01 00  |............!...|
  0030:  01 22 1D 00 07 05 82 03 40 00 01 07 05 02 03 40  |."......@......@|
  0040:  00 01                                            |..|

Parsing Configuration descriptor (wTotalLength = 66)
[1] HID opening Interface 0
  Open EP 81 with Size = 64
  HID opened
  Bind EP 81 to driver id 0
[1] HID opening Inter  Open EP 82 with Size = 64
  Open EP 02 with Size = 64
  HID   Bind EP 02 to driver id 0
Set Configuration = 1
[1:1] Set Co09 01 00 00 00 00 00 

Device configured
HID set config: itf = 0
HID Set Idle 
[1:1] Class Request: 21 0A 00 00 00 00 00 00 

HID Set Protocol = 0
[1:1] Class Request: 21 0B 00 00 00 00 00 00 

HID Get Report Descriptor
[1:1] Get Descriptor: 81 06 00 22 00 00 AC 00 
[1:1] Control data:
  0000:  05 01 09 02 A1 01 09 01 A1 00 05 09 19 01 29 05  |..............).|
  0010:  15 00 25 01 95 05 75 01 81 02 95 01 75 03 81 01  |..%...u.....u...|
  0020:  05 01 09 30 09 31 09 38 15 81 25 7F 75 08 95 03  |...0.1.8..%.u...|
  0030:  81 06 95 03 75 08 81 01 C0 C0                    |....u.....|

initial mouse protocol: 0
HID Set Protocol = 1
[1:1] Class Request: 21 0B 01 00 00 00 00 00 
buttons offset: 0
buttons size: 5
x offset: 8
x size: 8
y offset: 16
y size: 8
wheel offset: 24
wheel size: 10
uses_report_id: 0, report_id: 0
HID set config:HID Set Idle 
rr: 
Rx:0, y:0, w:0, b:0

set_protocol_complete_cb protocol = 1
set protocol cb: 1, uses_report_id: 0, report_id: 0
rr: 01 00 00 00 00 01 00 01 00 00 
Rx:0, y:0, w:0, b:1
rr: 01 00 00 00 00 01 00 00 00 00 
Rx:0, y:0, w:0, b:1

With 2 mice connected, G500s on computer, and Corsair on deskhop, as soon as I plug the Corsair to deskhop, the left click is stuck clicked on the G500s, I can't left unclick anymore, I have to unplug the micro USB from board B to get back left click

from deskhop.

OrpheeGT avatar OrpheeGT commented on May 19, 2024

Here are the debug logs from the keyboard USB on board A :

I was in BIOS mode, I ran the screen command, unplugged the keyboard, switched it to normal mode (with other board help)

Plugged it in to USB A

then once no more logs on screen, switched back to BIOS mode to get back working keyboard

# cat screenlog.0
[1:0:0] USBH DEVICE REMOVED

Device unplugged address = 1

  HIDh close addr = 1 index = 0

[1:] USBH DEVICE ATTACH

Full Speed

[1:0] Open EP0 with Size = 8

Get 8 byte of Device Descriptor

[1:0] Get Descriptor: 80 06 00 01 00 00 08 00 

[1:0] Control data:

  0000:  12 01 00 02 00 00 00 40                          |.......@|



Set Address = 1

[1:0] Set Address: 00 05 01 00 00 00 00 00 



[1:1] Open EP0 with Size = 64

Get Device Descriptor

[1:1] Get Descriptor: 80 06 00 01 00 00 12 00 

[1:1] Control data:

  0000:  12 01 00 02 00 00 00 40 1C 1B 20 1B 08 03 01 02  |.......@.. .....|

  0010:  03 01                                            |..|



Get Configuration[0] Descriptor (9 bytes)

[1:1] Get Descriptor: 80 06 00 02 00 00 09 00 

[1:1] Control data:

  0000:  09 02 42 00 02 01 00 A0 FA                       |..B......|



Get Configuration[0] Descriptor

[1:1] Get Descriptor: 80 06 00 02 00 00 42 00 

[1:1] Control data:

  0000:  09 02 42 00 02 01 00 A0 FA 09 04 00 00 01 03 01  |..B.............|

  0010:  01 00 09 21 11 01 00 01 22 84 00 07 05 81 03 40  |...!...."......@|

  0020:  00 01 09 04 01 00 02 03 00 00 00 09 21 11 01 00  |............!...|

  0030:  01 22 1D 00 07 05 82 03 40 00 01 07 05 02 03 40  |."......@......@|

  0040:  00 01                                            |..|



Parsing Configuration descriptor (wTotalLength = 66)

[1] HID opening Interface 0

  Open EP 81 with Size = 64

  HID   Bind EP 81 to driver id 0

[1] HID opening Interface 1

  Open  Open EP 02 with Size = 64

  HID opened

  Bind EP 82 to drive  Bind EP 02 to driver id 0

Set Configuration = 1

[1:1] Set Co09 01 00 00 00 00 00 



Device configured

HID set config: itf = 0

HID Set Idle 

[1:1] Class Request: 21 0A 00 00 00 00 00 00 



HID Set Protocol = 0

[1:1] Class Request: 21 0B 00 00 00 00 00 00 



HID Get Report Descriptor

[1:1] Get Descriptor: 81 06 00 22 00 00 84 00 

[1:1] Control data:

  0000:  05 01 09 06 A1 01 05 07 19 E0 29 E7 15 00 25 01  |..........)...%.|

  0010:  75 01 95 08 81 02 75 08 95 01 81 01 05 07 19 00  |u.....u.........|

  0020:  2A FF 00 15 00 26 FF 00 75 08 95 06 81 00 05 08  |*....&..u.......|

  0030:  19 01 29 03 25 01 75 01 95 03 91 02 75 05 95 01  |..).%.u.....u...|

  0040:  91 01 C0                                         |...|



HID set config: itf = 1

HID Set Idle 

[1:1] Class Request: 21 0A 00 00 01 00 00 00 



HID Get Report Descriptor

[1:1] Get Descriptor: 81 06 00 22 01 00 1D 00 

[1:1] Control data:

  0000:  06 C2 FF 09 04 A1 01 15 00 26 FF 00 95 40 75 08  |.........&...@u.|

  0010:  09 02 B1 02 09 02 81 02 09 04 91 02 C0           |.............|



HID Set Report: id = 0, type = 2, len = 1

[1:1] Class Request: 21 09 00 02 00 00 01 00 

[1:1] Control data:

  0000:  00                                               |.|



HID Set Report complete

HID Set Report: id = 0, type = 2, len = 1

[1:1] Class Request: 21 09 00 02 00 00 01 00 

[1:1] Control data:

  0000:  07                                               |.|



HID Set Report complete

HID Set Report: id = 0, type = 2, len = 1

[1:1] Class Request: 21 09 00 02 00 00 01 00 

[1:1] Control data:

  0000:  00                                               |.|



HID Set Report complete

HID Set Report: id = 0, type = 2, len = 1

[1:1] Class Request: 21 09 00 02 00 00 01 00 

[1:1] Control data:

  0000:  07                                               |.|



HID Set Report complete

HID Set Report: id = 0, type = 2, len = 1

[1:1] Class Request: 21 09 00 02 00 00 01 00 

HID Set Report: id = 0, type = 2, len = 1

[1:1] Control data:

  0000:  01                                               |.|



HID Set Report complete

[1:0:0] USBH DEVICE REMOVED

Device unplugged address = 1

  HIDh close addr = 1 index = 0

  HIDh close addr = 1 index = 1

[1:] USBH DEVICE ATTACH

Full Speed

[1:0] Open EP0 with Size = 8

Get 8 byte of Device Descriptor

[1:0] Get Descriptor: 80 06 00 01 00 00 08 00 

[1:0] Control data:

  0000:  12 01 00 02 00 00 00 40                          |.......@|



Set Address = 1

[1:0] Set Address: 00 05 01 00 00 00 00 00 



[1:1] Open EP0 with Size = 64

Get Device Descriptor

[1:1] Get Descriptor: 80 06 00 01 00 00 12 00 

[1:1] Control data:

  0000:  12 01 00 02 00 00 00 40 1C 1B 20 1B 08 03 01 02  |.......@.. .....|

  0010:  03 01                                            |..|



Get Configuration[0] Descriptor (9 bytes)

[1:1] Get Descriptor: 80 06 00 02 00 00 09 00 

[1:1] Control data:

  0000:  09 02 22 00 01 01 00 A0 FA                       |.."......|



Get Configuration[0] Descriptor

[1:1] Get Descriptor: 80 06 00 02 00 00 22 00 

[1:1] Control data:

  0000:  09 02 22 00 01 01 00 A0 FA 09 04 00 00 01 03 01  |..".............|

  0010:  01 00 09 21 11 01 00 01 22 43 00 07 05 81 03 08  |...!...."C......|

  0020:  00 08                                            |..|



Parsing Configuration descriptor (wTotalLength = 34)

[1] HID opening Interface 0

  Open EP 81 with Size = 8

  HID o  Bind EP 81 to driver id 0

Set Configuration = 1

[1:1]00 09 01 00 00 00 00 00 



Device configured

HID set config: itf = 0

HID Set Idle 

[1:1] Class Request: 21 0A 00 00 00 00 00 00 



HID Set Protocol = 0

[1:1] Class Request: 21 0B 00 00 00 00 00 00 



HID Get Report Descriptor

[1:1] Get Descriptor: 81 06 00 22 00 00 43 00 

[1:1] Control data:

  0000:  05 01 09 06 A1 01 05 07 19 E0 29 E7 15 00 25 01  |..........)...%.|

  0010:  75 01 95 08 81 02 75 08 95 01 81 01 05 07 19 00  |u.....u.........|

  0020:  2A FF 00 15 00 26 FF 00 75 08 95 06 81 00 05 08  |*....&..u.......|

  0030:  19 01 29 03 25 01 75 01 95 03 91 02 75 05 95 01  |..).%.u.....u...|

  0040:  91 01 C0                                         |...|



HID Set Report: id = 0, type = 2, len = 1

[1:1] Class Request: 21 09 00 02 00 00 01 00 

[1:1] Control data:

  0000:  00                                               |.|



HID Set Report complete

HID Set Report: id = 0, type = 2, len = 1

[1:1] Class Request: 21 09 00 02 00 00 01 00 

[1:1] Control data:

  0000:  07                                               |.|



HID Set Report complete

HID Set Report: id = 0, type = 2, len = 1

[1:1] Class Request: 21 09 00 02 00 00 01 00 

[1:1] Control data:

  0000:  00                                               |.|



HID Set Report complete

HID Set Report: id = 0, type = 2, len = 1

[1:1] Class Request: 21 09 00 02 00 00 01 00 

[1:1] Control data:

  0000:  07                                               |.|



HID Set Report complete

HID Set Report: id = 0, type = 2, len = 1

[1:1] Class Request: 21 09 00 02 00 00 01 00 

HID Set Report: id = 0, type = 2, len = 1

[1:1] Control data:

  0000:  01                                               |.|



HID Set Report complete

from deskhop.

OrpheeGT avatar OrpheeGT commented on May 19, 2024

Adding log from mouse with movements and clicks

screenlog.0.mouse.txt

from deskhop.

OrpheeGT avatar OrpheeGT commented on May 19, 2024

Okay... any ideas ?

what about keyboard output logs ? :)

from deskhop.

OrpheeGT avatar OrpheeGT commented on May 19, 2024

It works !

from deskhop.

OrpheeGT avatar OrpheeGT commented on May 19, 2024

Now the keyboard :p

from deskhop.

OrpheeGT avatar OrpheeGT commented on May 19, 2024

I'm having an issue I did not have until now, at least I did not catch it earlier...

On my Ubuntu Cinnamon, running Nemo as File Manager, after some time/hours, org.Nemo process hangs... and I can't open it anymore, I must reboot the OS.

Reading from internet, it is usually to be related to some USB mount issue...

So I unplugged Deskhop and I will check in some hours how Nemo is working or not...

If it works fine, I will put back original 0.42 FW and test it with standard Logitech G500s...

I'll keep you updated, it may be totally unrelated to Deskhop.

from deskhop.

hrvach avatar hrvach commented on May 19, 2024

I assume the usb mount issue for the Nemo file manager is mostly related to storage. If you updated the firmware, rp2040 bootloader will exit abruptly and disappear from the system which might in theory get the file manager to get stuck on trying to do something with it. You can try attaching to it with strace -p to see what it's doing when it hangs, it can point in the right direction.

from deskhop.

OrpheeGT avatar OrpheeGT commented on May 19, 2024

I'm sorry but I'm not sure to follow you...
which firmware ?

I should run strace -p on Nemo's pid ?

Edit : strange thing is killing nemo pid, and even logging off/on user session does not fix it, must reboot.

I replugged everything and running strace on nemo's pid.

from deskhop.

hrvach avatar hrvach commented on May 19, 2024

If you were updating the pico board firmware by pressing the button and connecting it, that made the rp2040 bootloader create a usb storage device, you drag .uf2 to it and then the device abruptly disappears from the system. Maybe something like that triggered it... check by running "mount" if you still have any devices mounted.

from deskhop.

OrpheeGT avatar OrpheeGT commented on May 19, 2024

Well I don't think it is this then.

I did not play with FW since yesterday, and I already had to reboot the OS...

The only thing I did is enabling anti screensaver mode (I love it, don't ask why :p)

Currently running strace, but I don't know when it happens, if it happens while process is running, or when I try to re-open File manager after a period of time I closed it.

I have to find reproducible steps to trigger it. Currently I'm swimming in the sea...

Edit : BTW I'm running the test B default FW compatible with my Corsair mouse.

from deskhop.

OrpheeGT avatar OrpheeGT commented on May 19, 2024

Well, plugged since yesterday, no issue yet... I can't reproduce it...

Maybe it was actually related to FW update / storage boot... wait & see... thanks !

If you need anything for my keyboard issue, I'm available :D

from deskhop.

hrvach avatar hrvach commented on May 19, 2024

That's a more complicated one - it refuses to negotiate working in boot mode and full descriptor parsing, nkro support etc. need to be added. Should happen but will likely take some time...

from deskhop.

OrpheeGT avatar OrpheeGT commented on May 19, 2024

I understand, I'm in "BIOS" mode currently.

May I ask how to enable Caps Lock on computer ? (not switching from one to another but real caps lock)

I may suggest "Pause/break" Key instead of Caps lock ?

image

I never used this key... :)

from deskhop.

OrpheeGT avatar OrpheeGT commented on May 19, 2024

I've thought perhaps using left shift+caps lock if you actually need caps lock.

It would do the job :)

from deskhop.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.