Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] USB keyboard not working in Grub2 menu [Solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
stoffepojken
n00b
n00b


Joined: 11 Jun 2006
Posts: 12
Location: Stockholm, Sweden

PostPosted: Fri Sep 08, 2017 5:46 pm    Post subject: [SOLVED] USB keyboard not working in Grub2 menu [Solved] Reply with quote

Hello!

My USB-keyboard does not work in Grub2 menu. It works in BIOS and when system starts.

In my BIOS I have enabled legacy USB support.

Can you please help me finding out what is wrong?

emerge --info sys-boot/grub :
https://paste.pound-python.org/show/4lZVYS6gSjk1WyRkSSrs/

/boot/grub/grub.cfg :
https://paste.pound-python.org/show/5oRAYHOzcX8NiIF2ilRQ/


Last edited by stoffepojken on Sun Sep 10, 2017 2:18 pm; edited 2 times in total
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 18052

PostPosted: Sat Sep 09, 2017 2:50 am    Post subject: Reply with quote

Hello,

My guess would be insufficient USB options in the kernel.

Take a look at the USB part of Activating required options in Configuring the Linux Kernel part of the installation handbook.

That should take care of it.
_________________
Those who know what's best for us must rise and save us from ourselves.
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 7130
Location: Saint Amant, Acadiana

PostPosted: Sat Sep 09, 2017 2:59 am    Post subject: Reply with quote

Confusing. Kernel is not loaded when Grub menu is displayed. Or I misunderstood something?
_________________
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
Fitzcarraldo
Veteran
Veteran


Joined: 30 Aug 2008
Posts: 1674
Location: United Kingdom

PostPosted: Sun Sep 10, 2017 4:06 am    Post subject: Reply with quote

Have you tried adding GRUB_TERMINAL_INPUT="usb_keyboard" and GRUB_PRELOAD_MODULES="usb usb_keyboard ohci uhci ehci" (see note below) in /etc/default/grub and then the command 'grub-mkconfig -o /boot/grub/grub.cfg' to regenerate grub.cfg? That should add various additional 'insmod' lines in grub.cfg, for those GRUB modules.

Note: Those GRUB modules are in the directory /boot/grub/x86_64-efi/ if your PC has UEFI, or /boot/grub/i386-pc/ if your PC has PC BIOS.
_________________
Clevo W230SS: amd64 OpenRC elogind nvidia-drivers & xf86-video-intel.
Compal NBLB2: ~amd64 OpenRC elogind xf86-video-ati. Dual boot Win 7 Pro 64-bit.
KDE on both.

Fitzcarraldo's blog
Back to top
View user's profile Send private message
saboya
Guru
Guru


Joined: 28 Nov 2006
Posts: 443
Location: Brazil

PostPosted: Sun Sep 10, 2017 4:33 am    Post subject: Reply with quote

Are you able to enter your BIOS with a USB keyboard?
Back to top
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3806
Location: Austro Bavaria

PostPosted: Sun Sep 10, 2017 8:31 am    Post subject: Reply with quote

saboya wrote:
Are you able to enter your BIOS with a USB keyboard?


yes it does

Quote:
My USB-keyboard does not work in Grub2 menu. It works in BIOS and when system starts.


I usually reuse linux mint bootloader. I use linux mint to isntall gentoo and than purge it or keep it. Much less hassle to deal with it later regarding a bootloader and such.

You may check if there are any loadable modules regarding keyboards for your bootloader. AFAIK grub2 loads many modules, you see them when you read the config file. It may also depends on how you have build grub2 => therefore my reference to reuse an existing binary distro with a well known working bootloader. +benefit of a working browser + net => later you can purge the binary distro with some tools. => gparted for example, remove, grow partitions.
Back to top
View user's profile Send private message
stoffepojken
n00b
n00b


Joined: 11 Jun 2006
Posts: 12
Location: Stockholm, Sweden

PostPosted: Sun Sep 10, 2017 1:43 pm    Post subject: Reply with quote

Fitzcarraldo wrote:
Have you tried adding GRUB_TERMINAL_INPUT="usb_keyboard" and GRUB_PRELOAD_MODULES="usb usb_keyboard ohci uhci ehci" (see note below) in /etc/default/grub and then the command 'grub-mkconfig -o /boot/grub/grub.cfg' to regenerate grub.cfg? That should add various additional 'insmod' lines in grub.cfg, for those GRUB modules.

Note: Those GRUB modules are in the directory /boot/grub/x86_64-efi/ if your PC has UEFI, or /boot/grub/i386-pc/ if your PC has PC BIOS.


That worked!

Thank you all for your help. Marking as solved.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum