Skip to content

After upgrading. To top it off my motherboard won't detect keyboards on boot. Ideas?

Not downloaded yet
219 points53 comments
Open on Reddit
About this post
Posted
Archived
Score
219 · 100% up
Kind
Image
ID
ffx0ew

Author

6
posts
43
comments
2
media
View profile

54 comments

Looks like the update was interrupted or something, and now there is no Linux image for your bootloader to boot into. Get Arch Linux live environment on some USB stick (i.e. write the .iso), boot the PC off it, mount and arch-chroot to your system, and do mkinitcpio -p linux to rebuild the kernel image.

111 points

Been here, done this.

Consider it one of the basic merit badges of arch-usership.

Now I need to check my bootable USB is still bootable...

64 points

As a bonus: pacman -S linux-lts. It doesn't hurt to have a spare kernel to boot just in case something goes south or there's a bug or regression in the latest one.

12 points

You also might consider reinstalling the linux package before following these steps

6 points

I wish there was a way to mark this as the correct method

2 points

This isn't StackOverflow, but this comment being the most upvoted one and with replies like this, it would be considered as "the most right one" by someone reading it later, " else why it would be upvoted so much" lol

8 points

Press any key to continue...

the irony tho

49 points
unknown author

Deleted before we saved it.

8 points

To top it off my motherboard won't detect keyboards on boot.

Game over.

Use a live medium to fix your grub entries. Preferably chroot and regenerate.

There was an entry about keyboard not recognized on boot on ArchWiki/News. Don't recall.

19 points

So my current plan is to unhook all the drives which autoboots me into the uefi where I can change the boot order, have it boot USB first, then hook the drives back up, boot USB perform required kernel image fix. I despise this motherboard

16 points

You could probably also unhook all drives and plug in your USB stick, let it boot into it, and then hook drives back in. In my experience SATA drives don't mind being hotplugged and Linux detects them in most cases, so you should be fine. And if anything, plug them in on the selection menu right after booting, and only then boot into live environment - this way when the kernel starts all the drives are already there to detect.

2 points

Shouldn't your keyboard still be detected by the motherboard, allowing you to boot into BIOS/UEFI with one of the usual keys?

2 points

In my experience, sometimes some usb ports are not auto-detected by the motherboard. Have you checked whether you have any luck in other ports?

1 points

Update: I was able to get in by removing the drives and letting the motherboard default to the UEFI screen. From there I was able to boot my trust arch usb and fix the issue. Thankyou all for you support and humor. Both are required in such situations.

11 points

There's a "fast boot" setting somewhere in the UEFI/BIOS menus. When it's enabled the UEFI doesn't wait for a keyboard press before it loads the OS boot-loader. Maybe that feature is enabled for you?

With that "fast" boot option, you are supposed to get into the UEFI menus from your OS. With systemd there's this command here to do that:

systemctl reboot --firmware-setup

I've seen this setting usually in the same area of the UEFI menu where you can change boot order and "CSM" (BIOS compatibility) and "Secure Boot".

1 points

I did disable fast boot once I got it, but didn't test if that was the issue. It was set to ultra-fast.
I had that in my rc to be able to switch to windows since I couldn't move down the grub menu. I think it might be good now though. Once I'm done working today I will test booting up various ways.

function reboot_uefi()

{

sudo systemctl reboot --firmware-setup

}

3 points

If your motherboard happens to have a PS/2 port (those old circular ones), it'll most likely be able to recognize a PS/2 keyboard at boot, pretty sure it always does.

So, if it has one, go to a thrift store and buy a PS/2 keyboard to have at hand when you need to enter the BIOS.

1 points

I did actually try this and it was no good. With fast book disabled everything seems fine now.

1 points

Chroot with archiso and install Linux again

5 points

Rebuilding initramfs with mkinicpio -p <your linux kernel name> is probably enough
Reinstallating is for Ubuntu user

5 points

The message about the kernel not being found didnt bother you ?

3 points

Well yeah. Its not a hard issue to fix if you can boot from usb but if you dont have a keyboard on boot, you can't access the bios to switch to a different device. So you just end up booting the top priority again which in my case was grub and then I can't stop it from booting my broken arch. Round and round we go. Removing the hard drives worked though. Kinda ridiculous that this motherboard has this issue though. I checked all the usb settings too and they look fine. Pretty sure it has to do with the fast boot feature but I'm not sure. If I reboot with systemctl reboot --firmware-setup I get the keyboard on boot, otherwise I get like 5 bell chimes from the board letting me know I'm boned.

7 points

Ah okay thanks for the explanation, personaly I do not use fast boot so I didn't think of that

1 points

If you have a legacy PS/2 port you can use a keyboard that way to get into bios for the boot order. The USB driver is wrapped up in the image issue.

2 points

I actually tried this and it did not work. The ps/2 port yielded the same stupid chiming and lack of keyboard detection. Most irritating.

4 points

This may help, but won't fix the problem.

If you have a PS/2 keyboard port, use that instead of USB (this works even with a USB->PS/2 adapter). PS/2 ports use system interrupts to send keyboard instructions avoiding the need for drivers to be preloaded in order to use.

2 points

Disable fastboot in your motherboard's BIOS/UEFI settings. Your keyboard should work during boot after that.

2 points

Didn't know how to solve that on pc so i copied entire / from my laptop, changed uuids and ownership

1 points

I've noticed this in Arch (using it for a bit of time now, coming from Fedora): there's no older kernel available, at least not by default or that I can tell. When this would happen in fedora, you just boot the older known-good kernel and you're off to the races as it keeps 3 of them (configurable).

How can you get that in Arch? Is it easy as installing package X or editing conf file Y or would it be an elaborate process? It's a super useful thing to have for when shit hits the fan.

1 points

linux and linux-lts are in the core repo. linux-zen and linux-hardened are in extra. Except for linux-lts they all tend to update at roughly the same time though, so linux-lts is probably your best bet for a backup kernel. There are also a myriad of options available in the AUR. The kernels available in the official repos should all be using automatic post transaction hooks now so you would have nothing to do but keep up to date using pacman. I also have an architecture specific linux-ck-k10 kernel from the AUR and it updates automatically too. Getting an additional kernel or two is as easy as installing with pacman. I didn't think the automation would be a big deal, but it does make updating kernels completely painless. It's not like running the GRUB update command was difficult or anything, but I find that I don't miss it. LOL

Just search for linux in the main repositories from the Arch front page to see the official options. If you have to compile kernel modules for anything (video drivers, etc.) you will also want the corresponding linux-headers and linux-docs packages. I have been running Arch with extra kernels for five years and I have never needed them, but it is nice to know they are there. I also run alternative desktop environments just in case, and I have needed them. The early days of Plasma 5 were a bit painful for some of us. The problems were not widespread, but those of us who were affected had a bad day (actually more like a month). The linux-zen kernel is optimized for desktop use, and makes everything just a bit more responsive. It's worth trying.

It's probably worth reading this short page:

https://wiki.archlinux.org/index.php/Kernel

This is the opinion of someone who should know about kernels:

http://kroah.com/log/blog/2018/08/24/what-stable-kernel-should-i-use/

2 points

Just had the same problem because the laptop shutdown during the upgrade Boot from usb or cd with arch Mount your boot and root partitions Arch-chroot /mnt Pacman -Syu mkinitcpio systemd linux Exit Umount the partitions Reboot

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.