Hi

On 12/09/2015 08:39 PM, Karsten Merker wrote:
On Wed, Dec 09, 2015 at 08:19:35PM +0100, Karsten Merker wrote:
On Wed, Dec 09, 2015 at 10:31:59AM +0100, Hans de Goede wrote:
On 08-12-15 21:26, Karsten Merker wrote:

[Olimex A20-SOM-EVB]

LRADC keys
==========
[...]
I have now also tried evemu-record, but I don't get any output
from it at all where showkeys prints keyevents:
[...]
   root@a20som:~# evemu-record
   Available devices:
   /dev/input/event0:      1c22800.lradc
   Select the device event number [0-0]:

[pressing keys several times, but no output]

   ^C

Oops, I just found why evemu-record doesn't produce any output
for me: just pressing return to get the default device doesn't
work - one doesn't get any error message, but the program just
sits silently and waits for the user to specify the device
number.  If I explicitly enter "0", I see the key events:

root@a20som:~# evemu-record
Available devices:
/dev/input/event0:      1c22800.lradc
Select the device event number [0-0]: 0
# EVEMU 1.2
# Input device name: "1c22800.lradc"
# Input device ID: bus 0x19 vendor 0x01 product 0x01 version 0x100
# Supported events:
#   Event type 0 (EV_SYN)
#     Event code 0 (SYN_REPORT)
#     Event code 1 (SYN_CONFIG)
#     Event code 2 (SYN_MT_REPORT)
#     Event code 3 (SYN_DROPPED)
#     Event code 4 ((null))
#     Event code 5 ((null))
#     Event code 6 ((null))
#     Event code 7 ((null))
#     Event code 8 ((null))
#     Event code 9 ((null))
#     Event code 10 ((null))
#     Event code 11 ((null))
#     Event code 12 ((null))
#     Event code 13 ((null))
#     Event code 14 ((null))
#   Event type 1 (EV_KEY)
#     Event code 1 (KEY_ESC)
#     Event code 28 (KEY_ENTER)
#     Event code 114 (KEY_VOLUMEDOWN)
#     Event code 115 (KEY_VOLUMEUP)
#     Event code 139 (KEY_MENU)
#     Event code 172 (KEY_HOMEPAGE)
#     Event code 217 (KEY_SEARCH)
# Properties:
N: 1c22800.lradc
I: 0019 0001 0001 0100
P: 00 00 00 00 00 00 00 00
B: 00 0b 00 00 00 00 00 00 00
B: 01 02 00 00 10 00 00 00 00
B: 01 00 00 00 00 00 00 0c 00
B: 01 00 08 00 00 00 10 00 00
B: 01 00 00 00 02 00 00 00 00
B: 01 00 00 00 00 00 00 00 00
B: 01 00 00 00 00 00 00 00 00
B: 01 00 00 00 00 00 00 00 00
B: 01 00 00 00 00 00 00 00 00
B: 01 00 00 00 00 00 00 00 00
B: 01 00 00 00 00 00 00 00 00
B: 01 00 00 00 00 00 00 00 00
B: 01 00 00 00 00 00 00 00 00
B: 02 00 00 00 00 00 00 00 00
B: 03 00 00 00 00 00 00 00 00
B: 04 00 00 00 00 00 00 00 00
B: 05 00 00 00 00 00 00 00 00
B: 11 00 00 00 00 00 00 00 00
B: 12 00 00 00 00 00 00 00 00
B: 14 00 00 00 00 00 00 00 00
B: 15 00 00 00 00 00 00 00 00
B: 15 00 00 00 00 00 00 00 00
################################
#      Waiting for events      #
################################
E: 0.000000 0001 0073 0001      # EV_KEY / KEY_VOLUMEUP         1
E: 0.000000 0000 0000 0000      # ------------ SYN_REPORT (0) ----------
E: 0.551489 0001 0073 0000      # EV_KEY / KEY_VOLUMEUP         0
E: 0.551489 0000 0000 0000      # ------------ SYN_REPORT (0) ----------
E: 2.234170 0001 0072 0001      # EV_KEY / KEY_VOLUMEDOWN       1
E: 2.234170 0000 0000 0000      # ------------ SYN_REPORT (0) ----------
E: 2.855343 0001 0072 0000      # EV_KEY / KEY_VOLUMEDOWN       0
E: 2.855343 0000 0000 0000      # ------------ SYN_REPORT (0) ----------
E: 4.134495 0001 008b 0001      # EV_KEY / KEY_MENU             1
E: 4.134495 0000 0000 0000      # ------------ SYN_REPORT (0) ----------
E: 4.736982 0001 008b 0000      # EV_KEY / KEY_MENU             0
E: 4.736982 0000 0000 0000      # ------------ SYN_REPORT (0) ----------
E: 5.575861 0001 00d9 0001      # EV_KEY / KEY_SEARCH           1
E: 5.575861 0000 0000 0000      # ------------ SYN_REPORT (0) ----------
E: 6.215481 0001 00d9 0000      # EV_KEY / KEY_SEARCH           0
E: 6.215481 0000 0000 0000      # ------------ SYN_REPORT (0) ----------
E: 6.808894 0001 00ac 0001      # EV_KEY / KEY_HOMEPAGE         1
E: 6.808894 0000 0000 0000      # ------------ SYN_REPORT (0) ----------
E: 7.471850 0001 00ac 0000      # EV_KEY / KEY_HOMEPAGE         0
E: 7.471850 0000 0000 0000      # ------------ SYN_REPORT (0) ----------
E: 8.074495 0001 0001 0001      # EV_KEY / KEY_ESC              1
E: 8.074495 0000 0000 0000      # ------------ SYN_REPORT (0) ----------
E: 8.681679 0001 0001 0000      # EV_KEY / KEY_ESC              0
E: 8.681679 0000 0000 0000      # ------------ SYN_REPORT (0) ----------
E: 9.835880 0001 001c 0001      # EV_KEY / KEY_ENTER            1
E: 9.835880 0000 0000 0000      # ------------ SYN_REPORT (0) ----------
E: 10.405982 0001 001c 0000     # EV_KEY / KEY_ENTER            0
E: 10.405982 0000 0000 0000     # ------------ SYN_REPORT

This works even when showkey doesn't print any more keyevents.

Then the kernel part is fine, as said showkeys is not the best tool
to check non keyboards with.

Regards,

Hans

--
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to