SHARE
TWEET

Untitled

a guest Apr 25th, 2018 6 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. `evemu-describe` output:
  2.  
  3.     > evemu-describe /dev/input/event3
  4.     # EVEMU 1.3
  5.     # Kernel: 4.12.0-2-amd64
  6.     # DMI: dmi:bvnLENOVO:bvr8DET50WW(1.20):bd07/07/2011:svnLENOVO:pn4290CZ2:pvrThinkPadX220:rvnLENOVO:rn4290CZ2:rvrNotAvailable:cvnLENOVO:ct10:cvrNotAvailable:
  7.     # Input device name: "TekGear Twiddler"
  8.     # Input device ID: bus 0x03 vendor 0x4d8 product 0xf5c1 version 0x111
  9.     # Supported events:
  10.     #   Event type 0 (EV_SYN)
  11.     #     Event code 0 (SYN_REPORT)
  12.     #     Event code 1 (SYN_CONFIG)
  13.     #     Event code 2 (SYN_MT_REPORT)
  14.     #     Event code 3 (SYN_DROPPED)
  15.     #     Event code 4 ((null))
  16.     #     Event code 5 ((null))
  17.     #     Event code 6 ((null))
  18.     #     Event code 7 ((null))
  19.     #     Event code 8 ((null))
  20.     #     Event code 9 ((null))
  21.     #     Event code 10 ((null))
  22.     #     Event code 11 ((null))
  23.     #     Event code 12 ((null))
  24.     #     Event code 13 ((null))
  25.     #     Event code 14 ((null))
  26.     #     Event code 15 (SYN_MAX)
  27.     #   Event type 1 (EV_KEY)
  28.     #     Event code 1 (KEY_ESC)
  29.     #     Event code 2 (KEY_1)
  30.     #     Event code 3 (KEY_2)
  31.     #     Event code 4 (KEY_3)
  32.     #     Event code 5 (KEY_4)
  33.     #     Event code 6 (KEY_5)
  34.     #     Event code 7 (KEY_6)
  35.     #     Event code 8 (KEY_7)
  36.     #     Event code 9 (KEY_8)
  37.     #     Event code 10 (KEY_9)
  38.     #     Event code 11 (KEY_0)
  39.     #     Event code 12 (KEY_MINUS)
  40.     #     Event code 13 (KEY_EQUAL)
  41.     #     Event code 14 (KEY_BACKSPACE)
  42.     #     Event code 15 (KEY_TAB)
  43.     #     Event code 16 (KEY_Q)
  44.     #     Event code 17 (KEY_W)
  45.     #     Event code 18 (KEY_E)
  46.     #     Event code 19 (KEY_R)
  47.     #     Event code 20 (KEY_T)
  48.     #     Event code 21 (KEY_Y)
  49.     #     Event code 22 (KEY_U)
  50.     #     Event code 23 (KEY_I)
  51.     #     Event code 24 (KEY_O)
  52.     #     Event code 25 (KEY_P)
  53.     #     Event code 26 (KEY_LEFTBRACE)
  54.     #     Event code 27 (KEY_RIGHTBRACE)
  55.     #     Event code 28 (KEY_ENTER)
  56.     #     Event code 29 (KEY_LEFTCTRL)
  57.     #     Event code 30 (KEY_A)
  58.     #     Event code 31 (KEY_S)
  59.     #     Event code 32 (KEY_D)
  60.     #     Event code 33 (KEY_F)
  61.     #     Event code 34 (KEY_G)
  62.     #     Event code 35 (KEY_H)
  63.     #     Event code 36 (KEY_J)
  64.     #     Event code 37 (KEY_K)
  65.     #     Event code 38 (KEY_L)
  66.     #     Event code 39 (KEY_SEMICOLON)
  67.     #     Event code 40 (KEY_APOSTROPHE)
  68.     #     Event code 41 (KEY_GRAVE)
  69.     #     Event code 42 (KEY_LEFTSHIFT)
  70.     #     Event code 43 (KEY_BACKSLASH)
  71.     #     Event code 44 (KEY_Z)
  72.     #     Event code 45 (KEY_X)
  73.     #     Event code 46 (KEY_C)
  74.     #     Event code 47 (KEY_V)
  75.     #     Event code 48 (KEY_B)
  76.     #     Event code 49 (KEY_N)
  77.     #     Event code 50 (KEY_M)
  78.     #     Event code 51 (KEY_COMMA)
  79.     #     Event code 52 (KEY_DOT)
  80.     #     Event code 53 (KEY_SLASH)
  81.     #     Event code 54 (KEY_RIGHTSHIFT)
  82.     #     Event code 55 (KEY_KPASTERISK)
  83.     #     Event code 56 (KEY_LEFTALT)
  84.     #     Event code 57 (KEY_SPACE)
  85.     #     Event code 58 (KEY_CAPSLOCK)
  86.     #     Event code 59 (KEY_F1)
  87.     #     Event code 60 (KEY_F2)
  88.     #     Event code 61 (KEY_F3)
  89.     #     Event code 62 (KEY_F4)
  90.     #     Event code 63 (KEY_F5)
  91.     #     Event code 64 (KEY_F6)
  92.     #     Event code 65 (KEY_F7)
  93.     #     Event code 66 (KEY_F8)
  94.     #     Event code 67 (KEY_F9)
  95.     #     Event code 68 (KEY_F10)
  96.     #     Event code 69 (KEY_NUMLOCK)
  97.     #     Event code 70 (KEY_SCROLLLOCK)
  98.     #     Event code 71 (KEY_KP7)
  99.     #     Event code 72 (KEY_KP8)
  100.     #     Event code 73 (KEY_KP9)
  101.     #     Event code 74 (KEY_KPMINUS)
  102.     #     Event code 75 (KEY_KP4)
  103.     #     Event code 76 (KEY_KP5)
  104.     #     Event code 77 (KEY_KP6)
  105.     #     Event code 78 (KEY_KPPLUS)
  106.     #     Event code 79 (KEY_KP1)
  107.     #     Event code 80 (KEY_KP2)
  108.     #     Event code 81 (KEY_KP3)
  109.     #     Event code 82 (KEY_KP0)
  110.     #     Event code 83 (KEY_KPDOT)
  111.     #     Event code 86 (KEY_102ND)
  112.     #     Event code 87 (KEY_F11)
  113.     #     Event code 88 (KEY_F12)
  114.     #     Event code 96 (KEY_KPENTER)
  115.     #     Event code 97 (KEY_RIGHTCTRL)
  116.     #     Event code 98 (KEY_KPSLASH)
  117.     #     Event code 99 (KEY_SYSRQ)
  118.     #     Event code 100 (KEY_RIGHTALT)
  119.     #     Event code 102 (KEY_HOME)
  120.     #     Event code 103 (KEY_UP)
  121.     #     Event code 104 (KEY_PAGEUP)
  122.     #     Event code 105 (KEY_LEFT)
  123.     #     Event code 106 (KEY_RIGHT)
  124.     #     Event code 107 (KEY_END)
  125.     #     Event code 108 (KEY_DOWN)
  126.     #     Event code 109 (KEY_PAGEDOWN)
  127.     #     Event code 110 (KEY_INSERT)
  128.     #     Event code 111 (KEY_DELETE)
  129.     #     Event code 119 (KEY_PAUSE)
  130.     #     Event code 125 (KEY_LEFTMETA)
  131.     #     Event code 126 (KEY_RIGHTMETA)
  132.     #     Event code 127 (KEY_COMPOSE)
  133.     #   Event type 4 (EV_MSC)
  134.     #     Event code 4 (MSC_SCAN)
  135.     #   Event type 17 (EV_LED)
  136.     #     Event code 0 (LED_NUML)
  137.     #        State 0
  138.     #     Event code 1 (LED_CAPSL)
  139.     #        State 0
  140.     #     Event code 2 (LED_SCROLLL)
  141.     #        State 0
  142.     #     Event code 3 (LED_COMPOSE)
  143.     #        State 0
  144.     #     Event code 4 (LED_KANA)
  145.     #        State 0
  146.     #   Event type 20 (EV_REP)
  147.     #     Event code 0 (REP_DELAY)
  148.     #     Event code 1 (REP_MAX)
  149.     # Properties:
  150.     N: TekGear Twiddler
  151.     I: 0003 04d8 f5c1 0111
  152.     P: 00 00 00 00 00 00 00 00
  153.     B: 00 0b 00 00 00 00 00 00 00
  154.     B: 01 fe ff ff ff ff ff ff ff
  155.     B: 01 ff ff cf 01 df ff 80 e0
  156.     B: 01 00 00 00 00 00 00 00 00
  157.     B: 01 00 00 00 00 00 00 00 00
  158.     B: 01 00 00 00 00 00 00 00 00
  159.     B: 01 00 00 00 00 00 00 00 00
  160.     B: 01 00 00 00 00 00 00 00 00
  161.     B: 01 00 00 00 00 00 00 00 00
  162.     B: 01 00 00 00 00 00 00 00 00
  163.     B: 01 00 00 00 00 00 00 00 00
  164.     B: 01 00 00 00 00 00 00 00 00
  165.     B: 01 00 00 00 00 00 00 00 00
  166.     B: 02 00 00 00 00 00 00 00 00
  167.     B: 03 00 00 00 00 00 00 00 00
  168.     B: 04 10 00 00 00 00 00 00 00
  169.     B: 05 00 00 00 00 00 00 00 00
  170.     B: 11 1f 00 00 00 00 00 00 00
  171.     B: 12 00 00 00 00 00 00 00 00
  172.     B: 14 03 00 00 00 00 00 00 00
  173.     B: 15 00 00 00 00 00 00 00 00
  174.     B: 15 00 00 00 00 00 00 00 00
  175.  
  176. For reference, my regular keyboard shows the following, with a couple of
  177. more keys defined, including the ones I've been trying to get from the
  178. Twiddler:
  179.  
  180.     root@freeside:~# evemu-describe /dev/input/event28
  181.     # EVEMU 1.3
  182.     # Kernel: 4.12.0-2-amd64
  183.     # DMI: dmi:bvnLENOVO:bvr8DET50WW(1.20):bd07/07/2011:svnLENOVO:pn4290CZ2:pvrThinkPadX220:rvnLENOVO:rn4290CZ2:rvrNotAvailable:cvnLENOVO:ct10:cvrNotAvailable:
  184.     # Input device name: "geekhack GH60"
  185.     # Input device ID: bus 0x03 vendor 0xfeed product 0x6060 version 0x111
  186.     # Supported events:
  187.     #   Event type 0 (EV_SYN)
  188.     #     Event code 0 (SYN_REPORT)
  189.     #     Event code 1 (SYN_CONFIG)
  190.     #     Event code 2 (SYN_MT_REPORT)
  191.     #     Event code 3 (SYN_DROPPED)
  192.     #     Event code 4 ((null))
  193.     #     Event code 5 ((null))
  194.     #     Event code 6 ((null))
  195.     #     Event code 7 ((null))
  196.     #     Event code 8 ((null))
  197.     #     Event code 9 ((null))
  198.     #     Event code 10 ((null))
  199.     #     Event code 11 ((null))
  200.     #     Event code 12 ((null))
  201.     #     Event code 13 ((null))
  202.     #     Event code 14 ((null))
  203.     #     Event code 15 (SYN_MAX)
  204.     #   Event type 1 (EV_KEY)
  205.     #     Event code 1 (KEY_ESC)
  206.     #     Event code 2 (KEY_1)
  207.     #     Event code 3 (KEY_2)
  208.     #     Event code 4 (KEY_3)
  209.     #     Event code 5 (KEY_4)
  210.     #     Event code 6 (KEY_5)
  211.     #     Event code 7 (KEY_6)
  212.     #     Event code 8 (KEY_7)
  213.     #     Event code 9 (KEY_8)
  214.     #     Event code 10 (KEY_9)
  215.     #     Event code 11 (KEY_0)
  216.     #     Event code 12 (KEY_MINUS)
  217.     #     Event code 13 (KEY_EQUAL)
  218.     #     Event code 14 (KEY_BACKSPACE)
  219.     #     Event code 15 (KEY_TAB)
  220.     #     Event code 16 (KEY_Q)
  221.     #     Event code 17 (KEY_W)
  222.     #     Event code 18 (KEY_E)
  223.     #     Event code 19 (KEY_R)
  224.     #     Event code 20 (KEY_T)
  225.     #     Event code 21 (KEY_Y)
  226.     #     Event code 22 (KEY_U)
  227.     #     Event code 23 (KEY_I)
  228.     #     Event code 24 (KEY_O)
  229.     #     Event code 25 (KEY_P)
  230.     #     Event code 26 (KEY_LEFTBRACE)
  231.     #     Event code 27 (KEY_RIGHTBRACE)
  232.     #     Event code 28 (KEY_ENTER)
  233.     #     Event code 29 (KEY_LEFTCTRL)
  234.     #     Event code 30 (KEY_A)
  235.     #     Event code 31 (KEY_S)
  236.     #     Event code 32 (KEY_D)
  237.     #     Event code 33 (KEY_F)
  238.     #     Event code 34 (KEY_G)
  239.     #     Event code 35 (KEY_H)
  240.     #     Event code 36 (KEY_J)
  241.     #     Event code 37 (KEY_K)
  242.     #     Event code 38 (KEY_L)
  243.     #     Event code 39 (KEY_SEMICOLON)
  244.     #     Event code 40 (KEY_APOSTROPHE)
  245.     #     Event code 41 (KEY_GRAVE)
  246.     #     Event code 42 (KEY_LEFTSHIFT)
  247.     #     Event code 43 (KEY_BACKSLASH)
  248.     #     Event code 44 (KEY_Z)
  249.     #     Event code 45 (KEY_X)
  250.     #     Event code 46 (KEY_C)
  251.     #     Event code 47 (KEY_V)
  252.     #     Event code 48 (KEY_B)
  253.     #     Event code 49 (KEY_N)
  254.     #     Event code 50 (KEY_M)
  255.     #     Event code 51 (KEY_COMMA)
  256.     #     Event code 52 (KEY_DOT)
  257.     #     Event code 53 (KEY_SLASH)
  258.     #     Event code 54 (KEY_RIGHTSHIFT)
  259.     #     Event code 55 (KEY_KPASTERISK)
  260.     #     Event code 56 (KEY_LEFTALT)
  261.     #     Event code 57 (KEY_SPACE)
  262.     #     Event code 58 (KEY_CAPSLOCK)
  263.     #     Event code 59 (KEY_F1)
  264.     #     Event code 60 (KEY_F2)
  265.     #     Event code 61 (KEY_F3)
  266.     #     Event code 62 (KEY_F4)
  267.     #     Event code 63 (KEY_F5)
  268.     #     Event code 64 (KEY_F6)
  269.     #     Event code 65 (KEY_F7)
  270.     #     Event code 66 (KEY_F8)
  271.     #     Event code 67 (KEY_F9)
  272.     #     Event code 68 (KEY_F10)
  273.     #     Event code 69 (KEY_NUMLOCK)
  274.     #     Event code 70 (KEY_SCROLLLOCK)
  275.     #     Event code 71 (KEY_KP7)
  276.     #     Event code 72 (KEY_KP8)
  277.     #     Event code 73 (KEY_KP9)
  278.     #     Event code 74 (KEY_KPMINUS)
  279.     #     Event code 75 (KEY_KP4)
  280.     #     Event code 76 (KEY_KP5)
  281.     #     Event code 77 (KEY_KP6)
  282.     #     Event code 78 (KEY_KPPLUS)
  283.     #     Event code 79 (KEY_KP1)
  284.     #     Event code 80 (KEY_KP2)
  285.     #     Event code 81 (KEY_KP3)
  286.     #     Event code 82 (KEY_KP0)
  287.     #     Event code 83 (KEY_KPDOT)
  288.     #     Event code 85 (KEY_ZENKAKUHANKAKU)
  289.     #     Event code 86 (KEY_102ND)
  290.     #     Event code 87 (KEY_F11)
  291.     #     Event code 88 (KEY_F12)
  292.     #     Event code 89 (KEY_RO)
  293.     #     Event code 90 (KEY_KATAKANA)
  294.     #     Event code 91 (KEY_HIRAGANA)
  295.     #     Event code 92 (KEY_HENKAN)
  296.     #     Event code 93 (KEY_KATAKANAHIRAGANA)
  297.     #     Event code 94 (KEY_MUHENKAN)
  298.     #     Event code 95 (KEY_KPJPCOMMA)
  299.     #     Event code 96 (KEY_KPENTER)
  300.     #     Event code 97 (KEY_RIGHTCTRL)
  301.     #     Event code 98 (KEY_KPSLASH)
  302.     #     Event code 99 (KEY_SYSRQ)
  303.     #     Event code 100 (KEY_RIGHTALT)
  304.     #     Event code 102 (KEY_HOME)
  305.     #     Event code 103 (KEY_UP)
  306.     #     Event code 104 (KEY_PAGEUP)
  307.     #     Event code 105 (KEY_LEFT)
  308.     #     Event code 106 (KEY_RIGHT)
  309.     #     Event code 107 (KEY_END)
  310.     #     Event code 108 (KEY_DOWN)
  311.     #     Event code 109 (KEY_PAGEDOWN)
  312.     #     Event code 110 (KEY_INSERT)
  313.     #     Event code 111 (KEY_DELETE)
  314.     #     Event code 113 (KEY_MUTE)
  315.     #     Event code 114 (KEY_VOLUMEDOWN)
  316.     #     Event code 115 (KEY_VOLUMEUP)
  317.     #     Event code 116 (KEY_POWER)
  318.     #     Event code 117 (KEY_KPEQUAL)
  319.     #     Event code 119 (KEY_PAUSE)
  320.     #     Event code 121 (KEY_KPCOMMA)
  321.     #     Event code 122 (KEY_HANGEUL)
  322.     #     Event code 123 (KEY_HANJA)
  323.     #     Event code 124 (KEY_YEN)
  324.     #     Event code 125 (KEY_LEFTMETA)
  325.     #     Event code 126 (KEY_RIGHTMETA)
  326.     #     Event code 127 (KEY_COMPOSE)
  327.     #     Event code 128 (KEY_STOP)
  328.     #     Event code 129 (KEY_AGAIN)
  329.     #     Event code 130 (KEY_PROPS)
  330.     #     Event code 131 (KEY_UNDO)
  331.     #     Event code 132 (KEY_FRONT)
  332.     #     Event code 133 (KEY_COPY)
  333.     #     Event code 134 (KEY_OPEN)
  334.     #     Event code 135 (KEY_PASTE)
  335.     #     Event code 136 (KEY_FIND)
  336.     #     Event code 137 (KEY_CUT)
  337.     #     Event code 138 (KEY_HELP)
  338.     #     Event code 140 (KEY_CALC)
  339.     #     Event code 142 (KEY_SLEEP)
  340.     #     Event code 150 (KEY_WWW)
  341.     #     Event code 152 (KEY_COFFEE)
  342.     #     Event code 158 (KEY_BACK)
  343.     #     Event code 159 (KEY_FORWARD)
  344.     #     Event code 161 (KEY_EJECTCD)
  345.     #     Event code 163 (KEY_NEXTSONG)
  346.     #     Event code 164 (KEY_PLAYPAUSE)
  347.     #     Event code 165 (KEY_PREVIOUSSONG)
  348.     #     Event code 166 (KEY_STOPCD)
  349.     #     Event code 173 (KEY_REFRESH)
  350.     #     Event code 176 (KEY_EDIT)
  351.     #     Event code 177 (KEY_SCROLLUP)
  352.     #     Event code 178 (KEY_SCROLLDOWN)
  353.     #     Event code 179 (KEY_KPLEFTPAREN)
  354.     #     Event code 180 (KEY_KPRIGHTPAREN)
  355.     #     Event code 183 (KEY_F13)
  356.     #     Event code 184 (KEY_F14)
  357.     #     Event code 185 (KEY_F15)
  358.     #     Event code 186 (KEY_F16)
  359.     #     Event code 187 (KEY_F17)
  360.     #     Event code 188 (KEY_F18)
  361.     #     Event code 189 (KEY_F19)
  362.     #     Event code 190 (KEY_F20)
  363.     #     Event code 191 (KEY_F21)
  364.     #     Event code 192 (KEY_F22)
  365.     #     Event code 193 (KEY_F23)
  366.     #     Event code 194 (KEY_F24)
  367.     #     Event code 240 (KEY_UNKNOWN)
  368.     #   Event type 4 (EV_MSC)
  369.     #     Event code 4 (MSC_SCAN)
  370.     #   Event type 17 (EV_LED)
  371.     #     Event code 0 (LED_NUML)
  372.     #        State 0
  373.     #     Event code 1 (LED_CAPSL)
  374.     #        State 0
  375.     #     Event code 2 (LED_SCROLLL)
  376.     #        State 0
  377.     #     Event code 3 (LED_COMPOSE)
  378.     #        State 0
  379.     #     Event code 4 (LED_KANA)
  380.     #        State 0
  381.     #   Event type 20 (EV_REP)
  382.     #     Event code 0 (REP_DELAY)
  383.     #     Event code 1 (REP_MAX)
  384.     # Properties:
  385.     N: geekhack GH60
  386.     I: 0003 feed 6060 0111
  387.     P: 00 00 00 00 00 00 00 00
  388.     B: 00 0b 00 00 00 00 00 00 00
  389.     B: 01 fe ff ff ff ff ff ff ff
  390.     B: 01 ff ff ef ff df ff be fe
  391.     B: 01 ff 57 40 c1 7a 20 9f ff
  392.     B: 01 07 00 00 00 00 00 01 00
  393.     B: 01 00 00 00 00 00 00 00 00
  394.     B: 01 00 00 00 00 00 00 00 00
  395.     B: 01 00 00 00 00 00 00 00 00
  396.     B: 01 00 00 00 00 00 00 00 00
  397.     B: 01 00 00 00 00 00 00 00 00
  398.     B: 01 00 00 00 00 00 00 00 00
  399.     B: 01 00 00 00 00 00 00 00 00
  400.     B: 01 00 00 00 00 00 00 00 00
  401.     B: 02 00 00 00 00 00 00 00 00
  402.     B: 03 00 00 00 00 00 00 00 00
  403.     B: 04 10 00 00 00 00 00 00 00
  404.     B: 05 00 00 00 00 00 00 00 00
  405.     B: 11 1f 00 00 00 00 00 00 00
  406.     B: 12 00 00 00 00 00 00 00 00
  407.     B: 14 03 00 00 00 00 00 00 00
  408.     B: 15 00 00 00 00 00 00 00 00
  409.     B: 15 00 00 00 00 00 00 00 00
  410.  
  411. Pressing the keys in question, should've been volume up, down and mute:
  412.  
  413.     root@freeside:~# hexdump -C /dev/hidraw0
  414.     00000000  00 00 80 00 00 00 00 00  00 00 00 00 00 00 00 00  |..r.............|
  415.     00000010  00 00 81 00 00 00 00 00  00 00 00 00 00 00 00 00  |..s.............|
  416.     00000020  00 00 7f 00 00 00 00 00  00 00 00 00 00 00 00 00  |..q.............|
  417.  
  418. Respectively keycodes 128, 129 and 127, all of which are as per the
  419. spec.  Nothing arrives via e.g. `evtest` though.
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top