#63 USB Keyboard does not work with Libreboot 20211122

Closed
opened 2 years ago by weimzh · 7 comments

Libreboot 20211122 (GRUB rom) has issues with USB keyboard.

When using the arrow keys with the USB keyboard, it has no response.

Sometimes Libreboot will fail to boot with 'Unknown key 0xff detected' error message flooding the screen with USB keyboard plugged in.

Tried with 2 keyboards and both have the same issue.

Libreboot 20211122 (GRUB rom) has issues with USB keyboard. When using the arrow keys with the USB keyboard, it has no response. Sometimes Libreboot will fail to boot with 'Unknown key 0xff detected' error message flooding the screen with USB keyboard plugged in. Tried with 2 keyboards and both have the same issue.
Wei Mingzhi commented 2 years ago
Poster
video of the bug: https://www.youtube.com/watch?v=mH7mCW-sFJk
Leah Rowe commented 2 years ago
Owner

try this:

edit the grub.cfg in your rom. see this line:

terminal_input --append at_keyboard

add a new line after, and add this:

terminal_input --append usb_keyboard

you can do this by following the guide:

https://libreboot.org/docs/gnulinux/grub_cbfs.html

tell me if this fixes the problem

try this fix first and we'll go from there. good luck!

try this: edit the grub.cfg in your rom. see this line: `terminal_input --append at_keyboard` add a new line after, and add this: `terminal_input --append usb_keyboard` you can do this by following the guide: <https://libreboot.org/docs/gnulinux/grub_cbfs.html> tell me if this fixes the problem try this fix first and we'll go from there. good luck!
Wei Mingzhi commented 2 years ago
Poster

added terminal_input --append usb_keyboard

Seems the issue is fixed if I plug in the keyboard before powering on the laptop with that line.

If I plug in the keyboard after powering on the laptop in the GRUB screen, libreboot GRUB would still flood the screen with the 'unknown key 0xff detected' error message.

added terminal_input --append usb_keyboard Seems the issue is fixed if I plug in the keyboard _before_ powering on the laptop with that line. If I plug in the keyboard _after_ powering on the laptop in the GRUB screen, libreboot GRUB would still flood the screen with the 'unknown key 0xff detected' error message.

I have a similar issue on my T400. Both external mice and keyboards cause the same error message (Unknown key 0xff detected) but ONLY if they are plugged into my Type 2504 dock. If I plug them into the built-in USB ports they work just fine.

Also, if I plug them in as my OS loads then they work just fine.

When the screen floods with "Unknown key 0xff detected" if I then unplug the offending device, I get this message: alloc magic is broken at 0x7cdd11f0.

I have a similar issue on my T400. Both external mice and keyboards cause the same error message (Unknown key 0xff detected) but ONLY if they are plugged into my Type 2504 dock. If I plug them into the built-in USB ports they work just fine. Also, if I plug them in as my OS loads then they work just fine. When the screen floods with "Unknown key 0xff detected" if I then unplug the offending device, I get this message: alloc magic is broken at 0x7cdd11f0.
Leah Rowe commented 2 years ago
Owner

i'll test with usb_keyboard added as you suggest, ready for the next release. for now, we at least have this documented here

indeed, the existing at_keyboard line is good for ps/2 keyboards (including thinkpad internal keyboards) but not external usb ones

i'll test with usb_keyboard added as you suggest, ready for the next release. for now, we at least have this documented here indeed, the existing at_keyboard line is good for ps/2 keyboards (including thinkpad internal keyboards) but not external usb ones
Leah Rowe commented 2 years ago
Owner

should be fixed now. leaving this option just in case. test with lbmk c3a66c3275

should be fixed now. leaving this option just in case. test with lbmk c3a66c32750fa4a9a90ddb6383b09fdfb6ff77f5
Leah Rowe commented 1 year ago
Owner

please re-test on latest libreboot, and report again if still broken

latest libreboot built from lbmk.git, not libreboot 20221214

please re-test on latest libreboot, and report again if still broken latest libreboot built from lbmk.git, not libreboot 20221214
Sign in to join this conversation.
No Label
No Milestone
No assignee
3 Participants
Loading...
Cancel
Save
There is no content yet.