Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Fresh Install No Keyboard Input [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
opaque_light
n00b
n00b


Joined: 05 Sep 2015
Posts: 8

PostPosted: Sun Sep 06, 2015 3:55 pm    Post subject: Fresh Install No Keyboard Input [SOLVED] Reply with quote

Hello all,
This is my first install of Gentoo. I've been following the handbook and working on this for days. I was finally able to get the system to boot yesterday. Unfortunately, I make it to the log in, but my keyboard doesn't work. I tried searching around yesterday for answers but after a couple of hours, I am still unable to fix the issue. I tried compiling the kernel with "genkernel all" and manually but neither seems to work. Currently both kernels are installed and GRUB sees them both, so I can switch between them. However, boot from either kernel results in a log in screen that doesn't see the keyboard.

Thank you in advanced for any help.


Information which may or may not be helpful:
EFI System which boots from GRUB 2.
Black Widow USB Keyboard
Keyboard works for BIOS and GRUB

DMSG output: http://pastebin.com/C5kCjSau
DMSG Output shows the following errors
input: failed to attach handler kbd to device input7, error: -16
sysrq: Failed to open input device, error: -16

Messages output: http://pastebin.com/Tu1sBRqu


Last edited by opaque_light on Fri Sep 11, 2015 3:10 am; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43221
Location: 56N 3W

PostPosted: Sun Sep 06, 2015 5:42 pm    Post subject: Reply with quote

opaque_light,

Welcome to Gentoo.

I presume you have just got to the console login scree and have not yet installed Xorg?
Thats where the handbook leaves you anyway.

How is your keyboard connected to your PC?
PS/2 or USB?
Wired or wireless?

Your lspci output may be useful and so would your kernel .config.
The .config will need to go onto a pastebin as it won't fit in a post.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
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 06, 2015 6:36 pm    Post subject: Reply with quote

Quote:
Black Widow USB Keyboard


Did you build the usb related stuff in the kernel.

https://wiki.gentoo.org/wiki/USB/Guide

You may also need evdev.

And the output of lsusb / lspci (maybe lspci -kk) / emerge --info / is appreciated.

You may share your /usr/src/linux/.config => thats the kernel config so others can have a look on that.

You may also try using genkernel and see if it works there...

http://unix.stackexchange.com/questions/72625/why-is-usb-not-working-in-linux-when-it-works-in-uefi-bios

As a general rule: When you find a resolution in any other distro / wiki of any other linux distro it may apply here too, as all use the same linux kernel and userspace utils too.
Back to top
View user's profile Send private message
Tony0945
Advocate
Advocate


Joined: 25 Jul 2006
Posts: 3100
Location: Illinois, USA

PostPosted: Sun Sep 06, 2015 9:05 pm    Post subject: Reply with quote

Try unplugging and replugging it. My mouse sometimes does that. Did you install udev or eudev? They may be needed.
Back to top
View user's profile Send private message
opaque_light
n00b
n00b


Joined: 05 Sep 2015
Posts: 8

PostPosted: Mon Sep 07, 2015 1:44 am    Post subject: Reply with quote

Thanks for the replies all. To answer the questions.

Yes I am at console log in.
The Keyboard is a wired USB keyboard
I have the same issue when I use the kernel generated by genkernel.
I have tried moving the keyboard from a USB 2 port to a USB 3 port
I believe that I have built the right USB parts into the kernel.
I have udev installed


Here are the requested files.
Emerge Info - http://pastebin.com/hadpSLz5
LSPCI - http://pastebin.com/eAEssZHL
Kernel .config - http://pastebin.com/mRU5F8xT

Lastly, I forgot to mention. I originally tried the Gentoo Live CD and had a similar issue. The Live CD booted but I couldn't use the keyboard or mouse.

Thanks all
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43221
Location: 56N 3W

PostPosted: Mon Sep 07, 2015 9:13 am    Post subject: Reply with quote

opaque_light,

The liveCD kernel is built with genkernel all.

We know that genkernel doesn't work and your own kernel doesn't work but the BIOS and Grub (which will use the BIOS) are OK.
Please post the output or lsusb. I suspect that the BIOS has legacy USB support turned on. That's a good thing.

Some keyboards, particularly gaming keyboards need a kernel entry under Speciar HID Devices
lsusb will give us the vendor and device IDs of your keyboard.

The rest of the kernel settings look OK. You should use a USB2 port for the keyboard.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
opaque_light
n00b
n00b


Joined: 05 Sep 2015
Posts: 8

PostPosted: Mon Sep 07, 2015 2:51 pm    Post subject: Reply with quote

NeddySeagoon,

Here is the output of lsusb. http://pastebin.com/10FXYXvG

Thank you for all of the help.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43221
Location: 56N 3W

PostPosted: Mon Sep 07, 2015 3:17 pm    Post subject: Reply with quote

opaque_light,

That seems to be a razer blackwidow keyboard. There is good news and bad news.

The bad news is that the driver you need is not in the kernel.
The good news is that there is an out of kernel driver.

This is something to come back to, rather than a must have to get you going.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
opaque_light
n00b
n00b


Joined: 05 Sep 2015
Posts: 8

PostPosted: Mon Sep 07, 2015 4:55 pm    Post subject: Reply with quote

Interesting.

You were right. I tried my wife's keyboard and it worked. So its obvious that the keyboard needs a special driver. I've briefly looked into the link that you sent me and I'll look at it in more depth but I have some questions.

When I use the minimal install cd or another distribution's live cd, my keyboard works fine. I used an Arch Linux CD for most of the Gentoo install and then switched to an Ubuntu Live CD when I started having issues. For both of those my keyboard works fine. I also dual boot this computer with Slackware and have never had an issue there. I've also tried it with Debian and Fedora.

Would the fact that the keyboard works in other distributions, suggest that there is something in the kernel that could allow the keyboard to work? Or am I missing something?

Thanks again for all of the help.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43221
Location: 56N 3W

PostPosted: Mon Sep 07, 2015 5:34 pm    Post subject: Reply with quote

opaque_light,

Quote:
I tried compiling the kernel with "genkernel all" ...

Quote:
When I use the minimal install cd ...

Thats odd as the minimal CD kernel is made with genkernel all.

It suggests that there is a kernel option missinig but that your keyboard functions with an in kernel driver.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


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

PostPosted: Mon Sep 07, 2015 8:50 pm    Post subject: Reply with quote

well when you can get a hand on the arch linux / ubuntu wherever it works and compare it with your kernel you are a step further.

some even boot up their box with these kernels, but i do not recommend it in the first place

did you tried on those livecds

zcat /proc/config.gz (i think thats the file for the kernel config when tehy did not renamed it)
Back to top
View user's profile Send private message
opaque_light
n00b
n00b


Joined: 05 Sep 2015
Posts: 8

PostPosted: Mon Sep 07, 2015 9:34 pm    Post subject: Reply with quote

Just to check and be sure, I removed my kernels (both the manually configured one and the genkernel one). I recompiled the kernel using "genkernel all" and tested. Still no keyboard input with the Razer keyboard.


I've booted into my Slackware installation (which the keyboard works fine in) and am trying to see what driver the keyboard is using there.

Here is my kernel config from Slackware
http://pastebin.com/WurcmzEG


To try to determine the drivers, I tried
lspci | grep USB
http://pastebin.com/373iA3SQ

Using those results I tried
find /sys | grep drivers.*00:1a.0
find /sys | grep drivers.*00:1d.0
Both of these returned
ehci-pci

I also checked the other USB devices using
find /sys | grep drivers.*06:00.0
find /sys | grep drivers.*07:00.0
find /sys | grep drivers.*08:00.0
These three returned
xhci_hcd

Lastly, I tried
lsusb -t
http://pastebin.com/jtAHgz7s
which showed both ehci-pci and xhci_hcd being used. It also showed usbhid being used


From these steps it looks like I need the following drivers installed
ehci-pci
xhci-hcd
usbhid

Both ehci-pci and xhci-hcd seem to be compiled as Modules in my gentoo kernel.config (current kernel for reference, http://pastebin.com/hKwDPGLD). As for usbhid, I couldn't find it in the kernel menuconfig.

Does it seem like I am going about this the right way?
Back to top
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


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

PostPosted: Tue Sep 08, 2015 10:33 am    Post subject: Reply with quote

well as we already stated above, the genkernel kernel which was used for the offical gentoo discs won't work. so rebuilding that will not work as it misses configs. REgardless how often you try that.

As you have the other kernel config you should work from those.
Enable the needed settings which are needed, special section in gentoo-sources.. afaik devtempfs and a few other options ...
than run make oldconfig with this kernel config and rebuild it.

Quote:
Here is my kernel config from Slackware
http://pastebin.com/WurcmzEG

Just reuse it as much as possible ...


genkernel is just a stupid script. it is as smart as the developer who created it made it. Same applies for grub2 scripts.
There are so many different hardware out there that it is obvious that it may not work at all. (even the bigger binary distros do not get their stuff right, i had several binary distro discs where my 1-2 year old notebooks never got anything working, missing wifi, missing graphichs, missing network, ... ?> same with genkernel, can not / will not work for every hardware)
Do never rely on those scripts and do it yourself. your own bootloader config, your own kernel config ...
Back to top
View user's profile Send private message
Tony0945
Advocate
Advocate


Joined: 25 Jul 2006
Posts: 3100
Location: Illinois, USA

PostPosted: Tue Sep 08, 2015 2:19 pm    Post subject: Reply with quote

tw04l124 wrote:
well as we already stated above, the genkernel kernel which was used for the offical gentoo discs won't work. so rebuilding that will not work as it misses configs. REgardless how often you try that.

As you have the other kernel config you should work from those.
Enable the needed settings which are needed, special section in gentoo-sources.. afaik devtempfs and a few other options ...
than run make oldconfig with this kernel config and rebuild it.

Quote:
Here is my kernel config from Slackware
http://pastebin.com/WurcmzEG

Just reuse it as much as possible ...


genkernel is just a stupid script. it is as smart as the developer who created it made it. Same applies for grub2 scripts.
There are so many different hardware out there that it is obvious that it may not work at all. (even the bigger binary distros do not get their stuff right, i had several binary distro discs where my 1-2 year old notebooks never got anything working, missing wifi, missing graphichs, missing network, ... ?> same with genkernel, can not / will not work for every hardware)
Do never rely on those scripts and do it yourself. your own bootloader config, your own kernel config ...


genkernel --menuconfig all
genkernel --config={some file} all
genkernel --menuconfig --config={some file} all

Unless one is addicted to typing. The only drawback is that it always makes an initramdisk [url] https://wiki.gentoo.org/wiki/Genkernel#Options_acting_on_user_interactivity[/url]
Back to top
View user's profile Send private message
opaque_light
n00b
n00b


Joined: 05 Sep 2015
Posts: 8

PostPosted: Fri Sep 11, 2015 3:09 am    Post subject: Working Reply with quote

Just wanted to send an update.

I was able to get the system to see my keyboard.

I did so by copying my kernel config file over from my Slackware installation. Then I went through, made sure it had everything else I needed, and built the kernel.

Thanks to everyone for the help!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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