Bug 9452 - CONFIG_INPUT_EVDEV not working with USB keyboard
Summary: CONFIG_INPUT_EVDEV not working with USB keyboard
Status: REJECTED INVALID
Alias: None
Product: Drivers
Classification: Unclassified
Component: Input Devices (show other bugs)
Hardware: All Linux
: P1 normal
Assignee: drivers_input-devices
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-11-24 10:16 UTC by Michele Schiavo
Modified: 2007-11-29 14:41 UTC (History)
0 users

See Also:
Kernel Version: 2.6.23.8
Subsystem:
Regression: ---
Bisected commit-id:


Attachments
.config (45.93 KB, application/octet-stream)
2007-11-24 10:24 UTC, Michele Schiavo
Details
evbug output (11.42 KB, text/plain)
2007-11-29 13:34 UTC, Michele Schiavo
Details

Description Michele Schiavo 2007-11-24 10:16:02 UTC
I use gentoo with splash and the F2 key is used betwing switch from silent and verbose splash boot.

with PS/2 keybord the press of F2 is working, with USB keyboard, splash will not change, because the CONFIG_INPUT_EVDEV seems not working.

I can see in console something like ]BB
Comment 1 Michele Schiavo 2007-11-24 10:24:53 UTC
Created attachment 13736 [details]
.config
Comment 2 Jiri Kosina 2007-11-28 05:49:01 UTC
You'll have to provide more information. Does the keyboard function well once the system is booted? Do you see any problem when you turn this splash completely off? This could be some gnetoo-splash-specific thing.
Comment 3 Michele Schiavo 2007-11-29 11:28:14 UTC
The keyboard is working good.
The only difference between USB and PS2 is EVDEV function.

PS/2 without EVDEV have the same problem (*) of
USB with EVDEV.

So i think EVDEV is not working with USB keyboard.


(*) Problem means splash is not switching between silent and verbose and on the pressure of F2 key on console appears something like [BBB

P.S. I have the same keyboard and i'm testing with o without USB/PS2 adapter.

There are something i can do for testing EVDEV from /proc or /sys ?
Comment 4 Dmitry Torokhov 2007-11-29 12:15:41 UTC
Do the both keyboards generate the same event if you monitor it with evbug? Do you see any problems with the keyboards besides the splash screen? If not then I would look there. I also do not understand why you think that only USB keyboard goes through EVDEV - PS/2 is accessible through EVDEV too (as well as USB is accessible through legacy console).
Comment 5 Michele Schiavo 2007-11-29 13:08:21 UTC
I switch to console pressing CTRL+F1, after that i cannot came back to splash image.
So after press CTRL+F1 i see console, with all the daemon starting.
If I press F keys  i see 
F1: ^]]]A 
F2: ^]]]B
F3: ^]]]C 

When i have PS/2 keyboard don't see that, when i press F2 i switch from console and splash.

But I change kernel with CONFIG_INPUT_EVDEV = N
with PS/2 keyboard i have the result like USB.

I found this problem because i correct CONFIG_INPUT_EVDEV  in the kernel 1 month ago, reading this http://dev.gentoo.org/~spock/projects/fbsplash/troubleshooting.php

Last week i change the keyboard (Logitech ex100) and this is USB.
With the new keyboard CONFIG_INPUT_EVDEV seem not working.

I try from BIOS to change lagacy, BIOS emulate PS/2 keyboard and mouse but the problem still present.


( this is my keyboard Bus 005 Device 002: ID 046d:c517 Logitech, Inc. )
Comment 6 Michele Schiavo 2007-11-29 13:10:38 UTC
I will try evbug now
Comment 7 Dmitry Torokhov 2007-11-29 13:34:39 UTC
Hmm, I thought we used Ctrl+Alt+Fx to switch between VTs.
Comment 8 Michele Schiavo 2007-11-29 13:34:54 UTC
Created attachment 13802 [details]
evbug output

I press F2 key from PS/2 keyboard and after USB key
I press it a lot of time
Comment 9 Michele Schiavo 2007-11-29 13:38:09 UTC
 Dmitry Torokhov  , yes sorry.
I did it and think after about the key pressed i was confused.
Comment 10 Dmitry Torokhov 2007-11-29 13:52:14 UTC
Both keyboards report keycode 60 which is KEY_F2. You can try using evtest utility to verify that you get the same data form both evdev interfaces.
Comment 11 Michele Schiavo 2007-11-29 14:15:25 UTC
usb : 

./a.out /dev/input/event2
......
Event: time 1196374395.246790, type 1 (Key), code 60 (F2), value 1
Event: time 1196374395.246795, -------------- Report Sync ------------
^[OQEvent: time 1196374395.350773, type 1 (Key), code 60 (F2), value 0
Event: time 1196374395.350778, -------------- Report Sync ------------
Event: time 1196374397.630426, type 1 (Key), code 29 (LeftControl), value 1
Event: time 1196374397.630430, -------------- Report Sync ------------
Event: time 1196374397.718415, type 1 (Key), code 46 (C), value 1
Event: time 1196374397.718420, -------------- Report Sync ------------





ps2:

./a.out /dev/input/event4

Testing ... (interrupt to exit)
Event: time 1196374451.937956, type 4 (Misc), code 4 (ScanCode), value 3c
Event: time 1196374451.937963, type 1 (Key), code 60 (F2), value 1
Event: time 1196374451.937963, -------------- Report Sync ------------
^[OQEvent: time 1196374452.032596, type 4 (Misc), code 4 (ScanCode), value 3c
Event: time 1196374452.032601, type 1 (Key), code 60 (F2), value 0
Event: time 1196374452.032602, -------------- Report Sync ------------
Comment 12 Michele Schiavo 2007-11-29 14:25:56 UTC
ps/2 have also with
Event: time 1196375114.066081, type 4 (Misc), code 4 (ScanCode), value 3c



USB:
Event: time 1196375087.469517, type 1 (Key), code 60 (F2), value 1
Event: time 1196375087.469520, -------------- Report Sync ------------
^[OQEvent: time 1196375087.549505, type 1 (Key), code 60 (F2), value 0
Event: time 1196375087.549508, -------------- Report Sync ------------

PS2:
Event: time 1196375114.066081, type 4 (Misc), code 4 (ScanCode), value 3c
Event: time 1196375114.066085, type 1 (Key), code 60 (F2), value 1
Event: time 1196375114.066086, -------------- Report Sync ------------
^[OQEvent: time 1196375114.132478, type 4 (Misc), code 4 (ScanCode), value 3c
Event: time 1196375114.132482, type 1 (Key), code 60 (F2), value 0
Event: time 1196375114.132483, -------------- Report Sync ------------
Comment 13 Michele Schiavo 2007-11-29 14:26:27 UTC
ps/2 have also this
Event: time 1196375114.066081, type 4 (Misc), code 4 (ScanCode), value 3c



USB:
Event: time 1196375087.469517, type 1 (Key), code 60 (F2), value 1
Event: time 1196375087.469520, -------------- Report Sync ------------
^[OQEvent: time 1196375087.549505, type 1 (Key), code 60 (F2), value 0
Event: time 1196375087.549508, -------------- Report Sync ------------

PS2:
Event: time 1196375114.066081, type 4 (Misc), code 4 (ScanCode), value 3c
Event: time 1196375114.066085, type 1 (Key), code 60 (F2), value 1
Event: time 1196375114.066086, -------------- Report Sync ------------
^[OQEvent: time 1196375114.132478, type 4 (Misc), code 4 (ScanCode), value 3c
Event: time 1196375114.132482, type 1 (Key), code 60 (F2), value 0
Event: time 1196375114.132483, -------------- Report Sync ------------
Comment 14 Dmitry Torokhov 2007-11-29 14:31:45 UTC
So both of them report the same event (F2) through evdev as well (Scancode is here to aide key remapping, don;t worry if it is missing. You will have to look in fbspalsh to see how they hanlde input.
Comment 15 Michele Schiavo 2007-11-29 14:41:40 UTC
Ok.
Thank's

i'll ask to gentoo bugs about splash.

sorry for the time lose.

Michele.

Note You need to log in before you can comment on or make changes to this bug.