LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-12-2016, 03:15 AM   #1
Rampura
LQ Newbie
 
Registered: Feb 2016
Posts: 3

Rep: Reputation: Disabled
USB keyboard support on my linux box


With old kernel 2.6.18.3 USB keyboard is working.
Updated to kernel 3.2 60
With updated kernel 3.2.60 USB keyboard is not getting detected.
Just replace the bzimage to latest.
using the same RFS, why my USB keyboard is not working.

plz let me know how to check the keyboard events in any of the dev nodes.
i tried to # cat /dev/input/mice for checking the keyboard events but failed.

log dmesg [ after plugin the USB keyboard ]
[ 3714.956027] usb 3-1: new low-speed USB device number 5 using uhci_hcd
[ 3715.118063] usb 3-1: New USB device found, idVendor=413c, idProduct=2003
[ 3715.118068] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 3715.118072] usb 3-1: Product: Dell USB Keyboard
[ 3715.118075] usb 3-1: Manufacturer: Dell
 
Old 02-12-2016, 04:40 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,289

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Usually the keyboard is straightforward. Most of the human interface devices have 'hid' in their kernel config. If you grep your kernel config (Usually in /boot) for 'HID' you'll see what's compiled in.

For usb controllers, best to load modules in this order
1. xhci # usb-3.x
2. ehci # usb-2.x
3. uhci or ohci (but not both 0 # usb-1.x

Uhci goes with Intel & Via chipsets, all others get ohci.
 
Old 02-12-2016, 04:41 PM   #3
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,980

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
There may be some issue to the controller doing this. I'd get the feeling that if dmseg reports as above then the keyboard is being seen on usb. Wonder if you can get an on-screen keyboard to report lsusb?

Can you attach a ps/2 keyboard?

Can you change state of numlock (assumes you have a numlock light)?


Since it did work we can usually rule out bad keyboard but maybe try different one.

I'd put a live cd in that has a modern kernel and see what happens.

Can you boot to any safe mode settings on this from grub?
 
Old 02-15-2016, 05:06 AM   #4
Rampura
LQ Newbie
 
Registered: Feb 2016
Posts: 3

Original Poster
Rep: Reputation: Disabled
Thank you guys for guiding me, but my issue is still not resolved.
ps/2 keyboard is working fine, but need USB keyboard support.
I can't change state of numlock, light always there. if i unplug and plug back the USB keyboard then i am not getting the light.
If i reboot the system numlock light comesup and stays.

let me know if you guys need more information so i can get out of this problem.

my kernel config
#/proc/config.gz

output log [ updated with only enabled configuration in this out put ]

# cat config | grep HID
CONFIG_HID_SUPPORT=y
CONFIG_HID=m
CONFIG_HIDRAW=y
CONFIG_USB_HID=m
CONFIG_HID_A4TECH=m
CONFIG_HID_APPLE=m
CONFIG_HID_BELKIN=m
CONFIG_HID_CHERRY=m
CONFIG_HID_CHICONY=m
CONFIG_HID_CYPRESS=m
CONFIG_HID_DRAGONRISE=m
CONFIG_HID_EZKEY=m
CONFIG_HID_KYE=m
CONFIG_HID_GYRATION=m
CONFIG_HID_TWINHAN=m
CONFIG_HID_KENSINGTON=m
CONFIG_HID_LOGITECH=m
CONFIG_HID_LOGITECH_DJ=m
CONFIG_HID_MICROSOFT=m
CONFIG_HID_MONTEREY=m
CONFIG_HID_NTRIG=m
CONFIG_HID_ORTEK=m
CONFIG_HID_PANTHERLORD=m
CONFIG_HID_PETALYNX=m
CONFIG_HID_SAMSUNG=m
CONFIG_HID_SONY=m
CONFIG_HID_SUNPLUS=m
CONFIG_HID_GREENASIA=m
CONFIG_HID_SMARTJOYPLUS=m
CONFIG_HID_TOPSEED=m
CONFIG_HID_THRUSTMASTER=m
CONFIG_HID_ZEROPLUS=m

**************************************************************************************************** **

# cat config | grep USB

CONFIG_USB_HID=m
CONFIG_USB_SUPPORT=y
CONFIG_USB_COMMON=y
CONFIG_USB_ARCH_HAS_HCD=y
CONFIG_USB_ARCH_HAS_OHCI=y
CONFIG_USB_ARCH_HAS_EHCI=y
CONFIG_USB_ARCH_HAS_XHCI=y
CONFIG_USB=y
CONFIG_USB_ANNOUNCE_NEW_DEVICES=y
CONFIG_USB_DEVICEFS=y
CONFIG_USB_DEVICE_CLASS=y
CONFIG_USB_MON=m
CONFIG_USB_EHCI_HCD=y
CONFIG_USB_OHCI_HCD=y
CONFIG_USB_OHCI_LITTLE_ENDIAN=y
CONFIG_USB_UHCI_HCD=y
CONFIG_USB_STORAGE=y
CONFIG_USB_SERIAL=m
CONFIG_USB_GADGET=m
CONFIG_USB_GADGET_VBUS_DRAW=2
CONFIG_USB_GADGET_STORAGE_NUM_BUFFERS=2
CONFIG_USB_R8A66597=m
CONFIG_USB_GADGET_DUALSPEED=y

Last edited by Rampura; 02-15-2016 at 05:23 AM. Reason: adding kernel config USB information
 
Old 02-15-2016, 08:06 PM   #5
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,980

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
lsusb would have been a better output.
 
Old 02-15-2016, 08:54 PM   #6
Ztcoracat
LQ Guru
 
Registered: Dec 2011
Distribution: Slackware, MX 18
Posts: 9,484
Blog Entries: 15

Rep: Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176Reputation: 1176
What is the output of:

Code:
lsusb
 
Old 02-16-2016, 02:05 AM   #7
Rampura
LQ Newbie
 
Registered: Feb 2016
Posts: 3

Original Poster
Rep: Reputation: Disabled
On my unit i do not have lsusb binary to check.
I copied lsusb binary but getting below error output

# /root/lsusb
Error, cannot open USBIDS File "/usr/share/hwdata/usb.ids", No such file or directory

plz help me is there any other way to find at least error logs for failure.
if you need /pro/bus/ or other information plz let me know.

Thank you
 
Old 02-16-2016, 06:48 AM   #8
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,289

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
OK. Try these if you have the locate binary
Code:
sudo updatedb
locate usb.ids
If your distro ships slocate, it's
Code:
sudo slocate -u
slocate usb.ids
]

If you find one, you can symlink it to wherever the binary looks for it.

It's probably there, but may be hidden. Also try for the update-usbids.sh script and run it as root. That will get the latest file.
 
Old 02-16-2016, 09:52 AM   #9
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by Rampura View Post
On my unit i do not have lsusb binary to check.
I copied lsusb binary but getting below error output

# /root/lsusb
Error, cannot open USBIDS File "/usr/share/hwdata/usb.ids", No such file or directory

plz help me is there any other way to find at least error logs for failure.
if you need /pro/bus/ or other information plz let me know.

Thank you
First, read the LQ Rules about text-speak, and about not using it. It's "please", not "plz".

And you've not said what kind of hardware you're using, or what version/distro of Linux. Having to copy the lsusb BINARY file over is VERY odd, since I've not heard of a distro that doesn't come with it these days. What kind of keyboard is the one you're trying to get working, and what kind of computer are you plugging it into??
 
Old 02-16-2016, 09:08 PM   #10
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,980

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
I get the feeling the kernel doesn't have keyboard enabled. https://www.kernel.org/doc/Documenta...nput/input.txt

On some systems there is a bios entry for legacy but that usually fades when system is loaded. On one dell server I had to disable something to get usb to work but I forget what that was. Some odd setting in bios.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
usb support in virtual box iyard Linux - Newbie 3 11-28-2012 09:43 PM
No USB Keyboard or USB Mouse with 12.2 and New Box Woodsman Slackware 14 07-20-2009 12:47 AM
is slackware support usb keyboard? jacksgq Slackware - Installation 2 07-26-2005 08:11 PM
USB Keyboard Support SLES 9 ch4os SUSE / openSUSE 0 03-03-2005 11:42 AM
kernel support for usb keyboard? Dsteve768 Slackware 2 09-21-2003 11:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration