LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   USB keyboard support on my linux box (https://www.linuxquestions.org/questions/linux-newbie-8/usb-keyboard-support-on-my-linux-box-4175572065/)

Rampura 02-12-2016 03:15 AM

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

business_kid 02-12-2016 04:40 AM

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.

jefro 02-12-2016 04:41 PM

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?

Rampura 02-15-2016 05:06 AM

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

jefro 02-15-2016 08:06 PM

lsusb would have been a better output.

Ztcoracat 02-15-2016 08:54 PM

What is the output of:

Code:

lsusb

Rampura 02-16-2016 02:05 AM

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

business_kid 02-16-2016 06:48 AM

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.

TB0ne 02-16-2016 09:52 AM

Quote:

Originally Posted by Rampura (Post 5500911)
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??

jefro 02-16-2016 09:08 PM

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.


All times are GMT -5. The time now is 10:34 PM.