You are not logged in.

#1 2024-02-29 21:27:22

mMDAm
Member
Registered: 2022-09-14
Posts: 7

[SOLVED] external keyboard delayed load at boot

On a thinkpad t14s gen 1 amd. When I have https://aur.archlinux.org/packages/upd72020x-fw installed, my external keyboard resets after a second before being usable to type in my luks password. It outputs the following error (the keyboard doesn't work until this error is displayed):

Feb 29 13:49:50 archlinux kernel: xhci_hcd 0000:05:00.0: Timeout for Set DATAX step: 34
Feb 29 13:49:50 archlinux kernel: xhci_hcd 0000:05:00.0: ROM Download Step 34 failed at position 136 bytes with (-110)

Without that installed the problem is worse, it takes a lot longer for this error to pop up, but after it does the external keyboard starts to work:

Feb 29 13:38:50 archlinux kernel: xhci_hcd 0000:05:00.0: can't setup: -110
Feb 29 13:38:50 archlinux kernel: xhci_hcd 0000:05:00.0: init 0000:05:00.0 fail, -110

Does anyone know how to fix this?

Rebuilding the kernel with

MODULES=(usbhid xhci_hcd xhci_pci xhci_pci_renesas)

in /etc/mkinitcpio.conf also doesn't affect this.

Last edited by mMDAm (2024-03-01 03:58:04)

Offline

#2 2024-03-01 03:55:10

mMDAm
Member
Registered: 2022-09-14
Posts: 7

Re: [SOLVED] external keyboard delayed load at boot

See https://github.com/markusj/upd72020x-load (especially upd72020x-check-and-init) for context. Make sure to build upd72020x-load.c with make. The firmware file K2026.mem can be found at https://www.startech.com/en-us/cards-ad … exusb3s44v -> Drivers and Downloads -> firmware_update.zip, copy K2026090.mem from that zip to K2026.mem in the same folder as upd72020x-check-and-init

installing upd72020x-fw from the aur, rebooting, manually unbinding the device, calling upd72020x-load, and binding the device again, seems to have worked.

After unbinding the device

sudo sh -c "echo -n 0000:05:00.0 > /sys/bus/pci/drivers/xhci_hcd/unbind"

I made a backup:

sudo ./upd72020x-load -b 5 -d 0 -f 0 -r -o backup

Then, I uploaded the firmware to make sure it would work:

sudo ./upd72020x-load -u -b 5 -d 0 -f 0 -i K2026.mem

When that work, I decided to flash it, since my firmware was pretty outdated. The command to flash (do at your own risk!):

sudo ./upd72020x-load -w -b 5 -d 0 -f 0 -i K2026.mem

and when that passed, I bound it again, uninstalled the AUR package, and rebooted. The reboot was noticeably faster, and I no longer get the error in logs.

Offline

Board footer

Powered by FluxBB