LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-25-2013, 08:39 PM   #1
flyxtop
LQ Newbie
 
Registered: Apr 2013
Posts: 12

Rep: Reputation: Disabled
Unhappy where to look in in the linux3.3 kernel when I can't hookup my USB keyboard..


Hi everyone,

I'm trying to hook up my USB keyboard to our embedded system.
The USB enumeration has passed and when I add EVDBG in the configuration(event debug), when press the key, I can see events going up (like key 'A' pressed.. and released..)
Below is the prints I added and those coming from EVDBG driver.(it seems to be a kind of driver)
starting hid_irq_in()-260,drivers/hid/usbhid/hid-core.c
starting usb_hidinput_input_event()-639,drivers/hid/usbhid/hid-core.c
evbug: Event. Dev: input0, Type: 4, Code: 4, Value: 458756
evbug: Event. Dev: input0, Type: 1, Code: 30, Value: 1
evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0

evbug: Event. Dev: input0, Type: 1, Code: 30, Value: 2
evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 1
.... many such lines ...
evbug: Event. Dev: input0, Type: 1, Code: 30, Value: 2
evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 1

starting hid_irq_in()-260,drivers/hid/usbhid/hid-core.c
starting usb_hidinput_input_event()-639,drivers/hid/usbhid/hid-core.c
evbug: Event. Dev: input0, Type: 4, Code: 4, Value: 458756
evbug: Event. Dev: input0, Type: 1, Code: 30, Value: 0
evbug: Event. Dev: input0, Type: 0, Code: 0, Value: 0
When I cat /proc/bus/input/devices, it shows this.
kobject: 'input0' (c7f659a0): fill_kobj_path: path = '/devices/platform/my-hcd/usb1/1-1/1-1:1.0/input/input0'
kobject: 'input1' (c7ccd9a0): fill_kobj_path: path = '/devices/platform/my-hcd/usb1/1-1/1-1:1.1/input/input1'
I: Bus=0003 Vendor=045e Product=0780 Version=0111
N: Name="Microsoft Comfort Curve Keyboard 3000"
P: Phys=usb-my-hcd-1/input0
S: Sysfs=/devices/platform/my-hcd/usb1/1-1/1-1:1.0/input/input0
U: Uniq=
H: Handlers=sysrq kbd event0 evbug
B: PROP=0
B: EV=120013
B: KEY=10000 7 ff800000 7ff febeffdf f3cfffff ffffffff fffffffe
B: MSC=10
B: LED=107

I: Bus=0003 Vendor=045e Product=0780 Version=0111
N: Name="Microsoft Comfort Curve Keyboard 3000"
P: Phys=usb-my-hcd-1/input1
S: Sysfs=/devices/platform/my-hcd/usb1/1-1/1-1:1.1/input/input1
U: Uniq=
H: Handlers=sysrq kbd event1 evbug
B: PROP=0
B: EV=10001f
B: KEY=4837fff 72ff32d bf544446 0 0 1 30f90 8b17c007 ffff7bfa d9415fff febeffdf ffefffff ffffffff fffffffe
B: REL=40
B: ABS=1 0
B: MSC=10
As shown above, I can print the key events in the debug event handler, but I don't know how to make the key values appear in the prompt. How do I make sure it's connected to correct event handler? Should I use any mapping to /dev/ttyx ?
Any suggestion will be appreciated. Thank you!

Last edited by flyxtop; 11-25-2013 at 08:40 PM.
 
Old 11-25-2013, 09:13 PM   #2
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 9,078
Blog Entries: 4

Rep: Reputation: 3179Reputation: 3179Reputation: 3179Reputation: 3179Reputation: 3179Reputation: 3179Reputation: 3179Reputation: 3179Reputation: 3179Reputation: 3179Reputation: 3179
Maybe you should be looking, not at the kernel level, but XWindows/XOrg?
 
Old 11-29-2013, 06:14 AM   #3
flyxtop
LQ Newbie
 
Registered: Apr 2013
Posts: 12

Original Poster
Rep: Reputation: Disabled
Wink

Quote:
Originally Posted by sundialsvcs View Post
Maybe you should be looking, not at the kernel level, but XWindows/XOrg?
I'm not using any graphial interface but just using terminal using UART (connected thru USB, the embedded system in the USB slave side and my Linux machine in the hub side). To make it clearer, I need to switch the input from uart to my USB keyboard so to speak. Any idea please?
 
  


Reply

Tags
keyboards, usb


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] where in the driver or kernel to look in when I can't hookup my USB keyboard.. flyxtop Linux - Software 1 11-28-2013 10:27 AM
Problem with SEAGATE storage device with USB hookup on Red Hat 9 mderf Linux - Networking 1 12-08-2006 12:03 AM
Kernel 2.6.8 - No USB-Keyboard and mouse chili_666 Debian 4 09-09-2004 08:48 AM
kernel support for usb keyboard? Dsteve768 Slackware 2 09-21-2003 12:49 PM
kernel 2.5.69 usb keyboard? StonedZealot Slackware 2 05-14-2003 01:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:27 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration