New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
systemd-boot hangs on keypress #3632
Comments
I installed the rEFInd boot manager and didn't have any problems with it. Is there a possibility to obtain a log from systemd-boot? I am willing to fix this problem. Any hints where to start digging in the source code? How and where does systemd-boot handle keyboard inputs? Thanks! |
Do you have a Steam Controller? I recently got one and it seems that whenever it is plugged in, systemd-boot will hang shortly after first keypress. If it's no plugged in, it works fine. Grub does not exhibit this behavior. |
No, there is nothing plugged into the laptop :/ |
I looked into the code and the culprit seems to be https://github.com/systemd/systemd/blob/master/src/boot/efi/console.c#L98 If I force the else branch to execute unconditionally, everything works fine. Seems like WaitForKeyEx is borked in my UEFI. @kaysievers Any thoughts on this? |
I recompiled the systemd package and forced the else branch to execute unconditionally. Now everything works as expected! Thank you! How should we continue to fix this upstream? What does the TextInputEx_ define? Is there a possibility to determine faulty behaviour and force the else branch? |
This one is tracked upstream at systemd/systemd#3632. I've implemented the workaround proposed by @medhefgo as a patch. As this module is only for a particular hardware, we won't cause troubles for other hardware. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
WaitForKeyEx may never return on some UEFI systems depending on firmware, hardware configuration and the phase of the moon. Use ConIn->WaitForKey unconditionally instead. Fixes #3632
Submission type
systemd version the issue has been seen with
Used distribution
In case of bug report: Expected behaviour you didn't see
In case of bug report: Unexpected behaviour you saw
In case of bug report: Steps to reproduce the problem
The text was updated successfully, but these errors were encountered: