Frequent keyboard/trackpad freeze

every couple minutes my keyboard and mouse seems to freeze for 15 seconds or so. dmesg reports frequent usb disconnects and reconnects:

[Sat Jun 22 11:21:57 2024] usb 1-4.3: USB disconnect, device number 30
[Sat Jun 22 11:22:06 2024] usb 1-4.3: new full-speed USB device number 31 using xhci_hcd
[Sat Jun 22 11:22:06 2024] usb 1-4.3: unable to get BOS descriptor set
[Sat Jun 22 11:22:06 2024] usb 1-4.3: New USB device found, idVendor=32ac, idProduct=0012, bcdDevice= 0.29
[Sat Jun 22 11:22:06 2024] usb 1-4.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[Sat Jun 22 11:22:06 2024] usb 1-4.3: Product: Laptop 16 Keyboard Module - ANSI
[Sat Jun 22 11:22:06 2024] usb 1-4.3: Manufacturer: Framework
[Sat Jun 22 11:22:06 2024] usb 1-4.3: SerialNumber: FRAKDKEN0100000000
[Sat Jun 22 11:22:06 2024] input: Framework Laptop 16 Keyboard Module - ANSI as /devices/pci0000:00/0000:00:08.1/0000:c1:00.3/usb1/1-4/1-4.3/1-4.3:1.0/0003:32AC:0012.005B/input/input120
[Sat Jun 22 11:22:06 2024] hid-generic 0003:32AC:0012.005B: input,hidraw2: USB HID v1.11 Keyboard [Framework Laptop 16 Keyboard Module - ANSI] on usb-0000:c1:00.3-4.3/input0
[Sat Jun 22 11:22:06 2024] hid-generic 0003:32AC:0012.005C: hiddev0,hidraw3: USB HID v1.11 Device [Framework Laptop 16 Keyboard Module - ANSI] on usb-0000:c1:00.3-4.3/input1
[Sat Jun 22 11:22:06 2024] input: Framework Laptop 16 Keyboard Module - ANSI System Control as /devices/pci0000:00/0000:00:08.1/0000:c1:00.3/usb1/1-4/1-4.3/1-4.3:1.2/0003:32AC:0012.005D/input/input121
[Sat Jun 22 11:22:06 2024] input: Framework Laptop 16 Keyboard Module - ANSI Consumer Control as /devices/pci0000:00/0000:00:08.1/0000:c1:00.3/usb1/1-4/1-4.3/1-4.3:1.2/0003:32AC:0012.005D/input/input122
[Sat Jun 22 11:22:06 2024] input: Framework Laptop 16 Keyboard Module - ANSI Wireless Radio Control as /devices/pci0000:00/0000:00:08.1/0000:c1:00.3/usb1/1-4/1-4.3/1-4.3:1.2/0003:32AC:0012.005D/input/input123
[Sat Jun 22 11:22:06 2024] input: Framework Laptop 16 Keyboard Module - ANSI Keyboard as /devices/pci0000:00/0000:00:08.1/0000:c1:00.3/usb1/1-4/1-4.3/1-4.3:1.2/0003:32AC:0012.005D/input/input124
[Sat Jun 22 11:22:06 2024] hid-generic 0003:32AC:0012.005D: input,hidraw4: USB HID v1.11 Keyboard [Framework Laptop 16 Keyboard Module - ANSI] on usb-0000:c1:00.3-4.3/input2
[Sat Jun 22 11:22:06 2024] hid-generic 0003:32AC:0012.005E: hiddev1,hidraw5: USB HID v1.11 Device [Framework Laptop 16 Keyboard Module - ANSI] on usb-0000:c1:00.3-4.3/input3

the device number on the first line keeps incrementing. This is with ryzen framework 16 running ubuntu 24.04. Any ideas?

I have not seen your particular problem but probably a good place to start is the connector (marked as step 1 when removing the midplate) for the midplate.
Check that the laptop is powered off, then
I suggest disconnecting the connector and then re-attaching it.
Also, check that you are on the latest 3.03 BIOS and reset the BIOS back to “optimized defaults”

I suspect it’s power management related. If I change the power mode to power saver (from balanced), it somehow happen less frequently. I’ve also fiddled with powertop and sometimes I can make it stop happening, but I can never remember what exact settings I used.

just tried disconnecting and reconnecting the connector, didn’t seem to help

update: I’ve been contacting support for this issue as I no longer believe it’s related to power management. Framework sent me a new mid-plate however the problem is still happening. They’ve also asked me to re-seat the mid-plate multiple times but that didn’t seem to change things.