Layout optimization best practices: sources of your personal corpus (part 2)
Welcome back to our series on designing custom keymaps! After looking into how good/bad QWERTY is, the power of layers, and the potential of custom keymaps, last time we took the first real step by examining your options for compiling a corpus. As a recap: The corpus is simply a big chunk of text. We use this collection of textual data, often a single text file, to characterize your typing habits (calculating various language statistics), and feed it directly or indirectly as an input into layout optimization algorithms – to find the optimal keymap for you! Today we’ll expand on this idea by exploring your options if, like me, you prefer a personalized corpus rather than grabbing some general (and mostly irrelevant) data available online. Image 1: Letter frequencies – the most basic use of corpora – in this very post We've seen that a well-crafted, personalized corpus plays a key role in determining the outcome of the optimization process. We've also explored...
Sep 4, 2024
- Resetting both keyboards to the default firmware -- Nothing
- Different USB cables -- Nothing
- Different Machines -- Nothing
- Setting udev rules to make mtp-probe ignore them -- nothing
- Disabling usb autosuspend them -- nothing
Here is what my kernel log looks like when it happens:Jan 26 14:11:08 heimdall kernel: [161932.216423] usb 7-1: USB disconnect, device number 62
Jan 26 14:11:08 heimdall kernel: [161932.216426] usb 7-1.2: USB disconnect, device number 63
Jan 26 14:11:09 heimdall kernel: [161933.415679] usb 7-1: new full-speed USB device number 64 using xhci_hcd
Jan 26 14:11:09 heimdall kernel: [161933.589508] usb 7-1: New USB device found, idVendor=04d8, idProduct=eec5, bcdDevice= 1.01
Jan 26 14:11:09 heimdall kernel: [161933.589511] usb 7-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Jan 26 14:11:09 heimdall kernel: [161933.589513] usb 7-1: Product: Massdrop Hub
Jan 26 14:11:09 heimdall kernel: [161933.589515] usb 7-1: Manufacturer: Massdrop Inc.
Jan 26 14:11:09 heimdall kernel: [161933.589516] usb 7-1: SerialNumber: 1639447858
Jan 26 14:11:09 heimdall kernel: [161933.653695] hub 7-1:1.0: USB hub found
Jan 26 14:11:09 heimdall kernel: [161933.656508] hub 7-1:1.0: 2 ports detected
Jan 26 14:11:09 heimdall kernel: [161933.955675] usb 7-1.2: new full-speed USB device number 65 using xhci_hcd
Jan 26 14:11:09 heimdall kernel: [161934.081515] usb 7-1.2: New USB device found, idVendor=04d8, idProduct=eed2, bcdDevice= 1.01
Jan 26 14:11:09 heimdall kernel: [161934.081519] usb 7-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Jan 26 14:11:09 heimdall kernel: [161934.081522] usb 7-1.2: Product: CTRL Keyboard
Jan 26 14:11:09 heimdall kernel: [161934.081523] usb 7-1.2: Manufacturer: Massdrop Inc.
Jan 26 14:11:09 heimdall kernel: [161934.081525] usb 7-1.2: SerialNumber: 1639447858
Jan 26 14:11:10 heimdall kernel: [161934.269689] input: Massdrop Inc. CTRL Keyboard as /devices/pci0000:00/0000:00:08.1/0000:12:00.4/usb7/7-1/7-1.2/7-1.2:1.0/0003:04D8:EED2.0188/input/input412
Jan 26 14:11:10 heimdall kernel: [161934.327934] hid-generic 0003:04D8:EED2.0188: input,hidraw3: USB HID v1.11 Keyboard [Massdrop Inc. CTRL Keyboard] on usb-0000:12:00.4-1.2/input0
Jan 26 14:11:10 heimdall kernel: [161934.334616] hid-generic 0003:04D8:EED2.0189: hiddev1,hidraw4: USB HID v1.11 Device [Massdrop Inc. CTRL Keyboard] on usb-0000:12:00.4-1.2/input1
Jan 26 14:11:10 heimdall kernel: [161934.342635] input: Massdrop Inc. CTRL Keyboard System Control as /devices/pci0000:00/0000:00:08.1/0000:12:00.4/usb7/7-1/7-1.2/7-1.2:1.2/0003:04D8:EED2.018A/input/input413
Jan 26 14:11:10 heimdall kernel: [161934.399775] input: Massdrop Inc. CTRL Keyboard Consumer Control as /devices/pci0000:00/0000:00:08.1/0000:12:00.4/usb7/7-1/7-1.2/7-1.2:1.2/0003:04D8:EED2.018A/input/input414
Jan 26 14:11:10 heimdall kernel: [161934.399840] hid-generic 0003:04D8:EED2.018A: input,hidraw5: USB HID v1.11 Device [Massdrop Inc. CTRL Keyboard] on usb-0000:12:00.4-1.2/input2
Jan 26 14:11:10 heimdall kernel: [161934.406644] input: Massdrop Inc. CTRL Keyboard as /devices/pci0000:00/0000:00:08.1/0000:12:00.4/usb7/7-1/7-1.2/7-1.2:1.3/0003:04D8:EED2.018B/input/input415
Jan 26 14:11:10 heimdall kernel: [161934.463991] hid-generic 0003:04D8:EED2.018B: input,hidraw6: USB HID v1.11 Keyboard [Massdrop Inc. CTRL Keyboard] on usb-0000:12:00.4-1.2/input3
And here are the udev rules form 99-usb_power_save.rules:ACTION=="add", SUBSYSTEM=="usb", ATTR{idVendor}=="04d8", ATTR{power/autosuspend}="-1"
ATTR{idVendor}=="04d8", ATTR{idProduct}=="eed2" GOTO="libmtp_rules_end"
ATTR{idVendor}=="04d8", ATTR{idProduct}=="eec5" GOTO="libmtp_rules_end"
Im at a loss. Does anyone have any idea or seen this happen?