Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] USB keyboard problems with Genkernel
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
Darth Happyface
n00b
n00b


Joined: 21 Jul 2009
Posts: 5

PostPosted: Tue Jul 21, 2009 8:00 pm    Post subject: [SOLVED] USB keyboard problems with Genkernel Reply with quote

Hi all,

Last night I installed Gentoo (amd64) on a spare partition using the Gentoo handbook's instructions. I created both a custom kernel (which doesn't work right now, but I digress) and a genkernel. I am using a USB keyboard (Microsoft Natural 4000). When I boot the genkernel it brings me to a login screen but my keyboard does not work. I tried rebuilding the genkernel with --menuconfig a few times using slightly different options for USB devices and keyboard, but no luck.

I added usbhid and some other usb modules to the modprobe autoload list but they fail to load at boot. I can see the fail messages (even though I obviously can't scroll lock).

Right now I'm just wondering if this is a known issue with known fixes. I'm away from my computer right now, but if I still can't solve the problem tonight I will post all my dmesg, make.conf, lspci, lsusb, etc. (either by accessing it from an Ubuntu partition or through ssh). So if that is necessary I will have it up by tonight, but I decided to post early just to see if anyone has any hints.

-- DH


Last edited by Darth Happyface on Wed Jul 22, 2009 1:49 am; edited 2 times in total
Back to top
View user's profile Send private message
Mike Hunt
Watchman
Watchman


Joined: 19 Jul 2009
Posts: 5287

PostPosted: Tue Jul 21, 2009 8:23 pm    Post subject: Reply with quote

Did you install from a CD and the keyboard worked?

I had a USB mouse for a while and it worked okay, my kernel contains these:
Code:
# grep ^CONFIG_USB /usr/src/linux/.config
CONFIG_USB_HID=y
CONFIG_USB_HIDDEV=y
CONFIG_USB_SUPPORT=y
CONFIG_USB_ARCH_HAS_HCD=y
CONFIG_USB_ARCH_HAS_OHCI=y
CONFIG_USB_ARCH_HAS_EHCI=y
CONFIG_USB=y
CONFIG_USB_DEBUG=y
CONFIG_USB_ANNOUNCE_NEW_DEVICES=y
CONFIG_USB_DEVICEFS=y
CONFIG_USB_SUSPEND=y
CONFIG_USB_MON=y
CONFIG_USB_EHCI_HCD=y
CONFIG_USB_OHCI_HCD=y
CONFIG_USB_OHCI_LITTLE_ENDIAN=y
CONFIG_USB_UHCI_HCD=y
CONFIG_USB_PRINTER=y
CONFIG_USB_STORAGE=y
CONFIG_USB_LIBUSUAL=y

Hope it helps :)
Back to top
View user's profile Send private message
Darth Happyface
n00b
n00b


Joined: 21 Jul 2009
Posts: 5

PostPosted: Tue Jul 21, 2009 8:32 pm    Post subject: Reply with quote

Yes, I installed from the CD, and the keyboard works from the CD install.

It has occurred to me that things might be helped if I check my USE flags. For example, do I need to have the usb USE flag to get a working kernel?
Back to top
View user's profile Send private message
Mike Hunt
Watchman
Watchman


Joined: 19 Jul 2009
Posts: 5287

PostPosted: Tue Jul 21, 2009 9:35 pm    Post subject: Reply with quote

Darth Happyface wrote:
It has occurred to me that things might be helped if I check my USE flags. For example, do I need to have the usb USE flag to get a working kernel?


Not likely
euse -i usb wrote:
usb - Adds USB support to applications that have optional USB support (e.g. cups)


If the kernel activates the usb system you should have a keyboard almost from the start of boot up.

Post the output of
Code:
grep ^CONFIG_USB /usr/src/linux/.config

Or probably this for genkernel (I think)
Code:
zgrep ^CONFIG_USB /proc/config.gz
Back to top
View user's profile Send private message
Darth Happyface
n00b
n00b


Joined: 21 Jul 2009
Posts: 5

PostPosted: Tue Jul 21, 2009 11:37 pm    Post subject: Reply with quote

Here is the output of `zgrep ^CONFIG_USB /etc/kernels/kernel-config-x86_64-2.6.29-gentoo-r5` (this is the file genkernel claimed to be using when I ran genkernel all.):

Code:

CONFIG_USB_IRDA=m
CONFIG_USB_ZD1201=m
CONFIG_USB_CATC=m
CONFIG_USB_KAWETH=m
CONFIG_USB_PEGASUS=m
CONFIG_USB_RTL8150=m
CONFIG_USB_USBNET=m
CONFIG_USB_NET_AX8817X=m
CONFIG_USB_NET_CDCETHER=m
CONFIG_USB_NET_DM9601=m
CONFIG_USB_NET_NET1080=m
CONFIG_USB_NET_MCS7830=m
CONFIG_USB_NET_ZAURUS=m
CONFIG_USB_GSPCA=m
CONFIG_USB_QUICKCAM_MESSENGER=m
CONFIG_USB_ZR364XX=m
CONFIG_USB_HID=y
CONFIG_USB_HIDDEV=y
CONFIG_USB_SUPPORT=y
CONFIG_USB_ARCH_HAS_HCD=y
CONFIG_USB_ARCH_HAS_OHCI=y
CONFIG_USB_ARCH_HAS_EHCI=y
CONFIG_USB=y
CONFIG_USB_DEVICEFS=y
CONFIG_USB_EHCI_HCD=y
CONFIG_USB_EHCI_ROOT_HUB_TT=y
CONFIG_USB_ISP116X_HCD=m
CONFIG_USB_OHCI_HCD=y
CONFIG_USB_OHCI_LITTLE_ENDIAN=y
CONFIG_USB_UHCI_HCD=y
CONFIG_USB_U132_HCD=m
CONFIG_USB_SL811_HCD=m
CONFIG_USB_SL811_CS=m
CONFIG_USB_R8A66597_HCD=m
CONFIG_USB_ACM=m
CONFIG_USB_WDM=m
CONFIG_USB_STORAGE=m
CONFIG_USB_STORAGE_DATAFAB=y
CONFIG_USB_STORAGE_FREECOM=y
CONFIG_USB_STORAGE_ISD200=y
CONFIG_USB_STORAGE_USBAT=y
CONFIG_USB_STORAGE_SDDR09=y
CONFIG_USB_STORAGE_SDDR55=y
CONFIG_USB_STORAGE_JUMPSHOT=y
CONFIG_USB_STORAGE_ALAUDA=y
CONFIG_USB_STORAGE_KARMA=y
CONFIG_USB_USS720=m
CONFIG_USB_SERIAL=m
CONFIG_USB_EZUSB=y
CONFIG_USB_SERIAL_GENERIC=y
CONFIG_USB_SERIAL_AIRCABLE=m
CONFIG_USB_SERIAL_ARK3116=m
CONFIG_USB_SERIAL_CH341=m
CONFIG_USB_SERIAL_WHITEHEAT=m
CONFIG_USB_SERIAL_CP2101=m
CONFIG_USB_SERIAL_FUNSOFT=m
CONFIG_USB_SERIAL_IPW=m
CONFIG_USB_SERIAL_MOS7720=m
CONFIG_USB_SERIAL_MOS7840=m
CONFIG_USB_SERIAL_NAVMAN=m
CONFIG_USB_SERIAL_OTI6858=m
CONFIG_USB_SERIAL_OPTION=m
CONFIG_USB_SERIAL_OMNINET=m
CONFIG_USB_ADUTUX=m
CONFIG_USB_BERRY_CHARGE=m
CONFIG_USB_PHIDGET=m
CONFIG_USB_PHIDGETKIT=m
CONFIG_USB_PHIDGETMOTORCONTROL=m
CONFIG_USB_PHIDGETSERVO=m
CONFIG_USB_FTDI_ELAN=m
CONFIG_USB_APPLEDISPLAY=m
CONFIG_USB_SISUSBVGA=m
CONFIG_USB_SISUSBVGA_CON=y
CONFIG_USB_TRANCEVIBRATOR=m
CONFIG_USB_IOWARRIOR=m
CONFIG_USB_ATM=m
CONFIG_USB_SPEEDTOUCH=m
CONFIG_USB_CXACRU=m
CONFIG_USB_UEAGLEATM=m
CONFIG_USB_XUSBATM=m


Since my dmesg is really long, I decided to only post the interesting parts. Note the input: line showing that the kernel detected my USB mouse. There is no corresponding line for my keyboard.
Code:

ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ACPI: PCI Interrupt Link [APCL] enabled at IRQ 23
ehci_hcd 0000:00:02.1: PCI INT B -> Link[APCL] -> GSI 23 (level, low) -> IRQ 23
ehci_hcd 0000:00:02.1: setting latency timer to 64
ehci_hcd 0000:00:02.1: EHCI Host Controller
ehci_hcd 0000:00:02.1: new USB bus registered, assigned bus number 1
ehci_hcd 0000:00:02.1: debug port 1
ehci_hcd 0000:00:02.1: cache line size of 64 is not supported
ehci_hcd 0000:00:02.1: irq 23, io mem 0xfeb00000
ehci_hcd 0000:00:02.1: USB 2.0 started, EHCI 1.00
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 10 ports detected
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
ACPI: PCI Interrupt Link [APCF] enabled at IRQ 22
ohci_hcd 0000:00:02.0: PCI INT A -> Link[APCF] -> GSI 22 (level, low) -> IRQ 22
ohci_hcd 0000:00:02.0: setting latency timer to 64
ohci_hcd 0000:00:02.0: OHCI Host Controller
ohci_hcd 0000:00:02.0: new USB bus registered, assigned bus number 2
ohci_hcd 0000:00:02.0: irq 22, io mem 0xfe02f000
usb usb2: configuration #1 chosen from 1 choice
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 10 ports detected
uhci_hcd: USB Universal Host Controller Interface driver
PNP: No PS/2 controller found. Probing ports directly.
serio: i8042 KBD port at 0x60,0x64 irq 1
serio: i8042 AUX port at 0x60,0x64 irq 12
mice: PS/2 mouse device common for all mice
cpuidle: using governor ladder
cpuidle: using governor menu
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
TCP cubic registered
NET: Registered protocol family 17
registered taskstats version 1
Freeing unused kernel memory: 368k freed
libata version 3.00 loaded.
usb 2-1: new low speed USB device using ohci_hcd and address 2
usb 2-1: configuration #1 chosen from 1 choice
input: Logitech Trackball as /class/input/input1
generic-usb 0003:046D:C404.0001: input,hidraw0: USB HID v1.10 Mouse [Logitech Trackball] on usb-0000:00:02.0-1/input0
usb 2-4: new low speed USB device using ohci_hcd and address 3
usb 2-4: configuration #1 chosen from 1 choice
Back to top
View user's profile Send private message
Darth Happyface
n00b
n00b


Joined: 21 Jul 2009
Posts: 5

PostPosted: Wed Jul 22, 2009 1:47 am    Post subject: Reply with quote

I figured it out!

Running genkernel --menuconfig, I found a submenu I hadn't noticed for called "Special HID devices". Under that there was a module for Microsoft HID devices that might not conform to the HID standards. I compiled that as a module and now my keyboard works.

So apparently Microsoft Natural Ergonomic Keyboard 4000 needs that driver.
Back to top
View user's profile Send private message
Mike Hunt
Watchman
Watchman


Joined: 19 Jul 2009
Posts: 5287

PostPosted: Wed Jul 22, 2009 2:05 am    Post subject: Reply with quote

Darth Happyface wrote:
I figured it out!


Good job and welcome to Gentoo. :D
Back to top
View user's profile Send private message
OneOfMany
Tux's lil' helper
Tux's lil' helper


Joined: 19 Nov 2003
Posts: 108
Location: Portland, OR USA

PostPosted: Sat Jul 25, 2009 3:28 pm    Post subject: Reply with quote

I was trying to find the above referenced "Special HID devices" option and can't. I've never used genkernel before, but does it show the same config area that "make menuconfig" shows? If yes can I get the exact location in the 29-r5 kernel's menuconfig that this MS Natural 4000 setting is?
Back to top
View user's profile Send private message
Darth Happyface
n00b
n00b


Joined: 21 Jul 2009
Posts: 5

PostPosted: Sat Jul 25, 2009 5:03 pm    Post subject: Reply with quote

Hi,

Device Drivers--->HID Devices--->Special HID drivers--->Microsoft

I believe that the genkernel's and regular kernel's menuconfig screens are the same, yes. You can always just search for 'microsoft' by hitting '/'.

-- DH
Back to top
View user's profile Send private message
Mike Hunt
Watchman
Watchman


Joined: 19 Jul 2009
Posts: 5287

PostPosted: Sat Jul 25, 2009 5:58 pm    Post subject: Reply with quote

... also in make menuconfig there is a search feature - the slash key:
Code:
/<whatever>
Back to top
View user's profile Send private message
s4l0m0n
n00b
n00b


Joined: 07 Aug 2007
Posts: 32
Location: Germany

PostPosted: Sun Jul 04, 2010 9:42 am    Post subject: Reply with quote

I found this also necessary for my Logitech Internet Navigator SE keyboard. It didnt work until i compiled a kernel with the Logitech setting turned on under special HID devices. Unfortunately, this was not activated by default (using genkernel and tuxonice-sources-2.6.34 on amd64)
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