View Single Post
Old 12-04-2012, 10:22 PM   #781
eureka
but forgot what it's like
eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.
 
Posts: 741
Karma: 2345678
Join Date: Dec 2011
Location: north (by northwest)
Device: Kindle Touch
It looks like touchscreen support can work on Kindle Touch too, but Kindle Touch isn't recognized yet. I can't compile kpv by myself as for now, but just for reference, here are useful bits.
Code:
[root@kindle root]# grep 'MX' /proc/cpuinfo | cut -d':' -f2 | awk {'print $2'}
MX50
For distinction between Kindle Touch and other i.MX508-based Kindles either presence of Home button, or presence of Neonode zForce touchscreen could be used:
Code:
[root@kindle root]# ls /sys/devices/platform/whitney-button/
driver     input      modalias   power      subsystem  uevent
[root@kindle root]# ls /sys/devices/platform/zforce.0/
bslreset   connected  driver     input      inputgpio  modalias   mode       power      subsystem  test       uevent     version
Home button events are available through event2. Example of evtest with pressing Home button:
Spoiler:
Code:
[root@kindle root]# evtest /dev/input/event2 
Input driver version is 1.0.0 
Input device ID: bus 0x19 vendor 0x1 product 0x1 version 0x100 
Input device name: "whitney-button" 
Supported events: 
  Event type 0 (Sync) 
  Event type 1 (Key) 
    Event code 102 (Home) 
Testing ... (interrupt to exit) 
Event: time 1351285342.043975, type 1 (Key), code 102 (Home), value 1 
Event: time 1351285342.043992, -------------- Report Sync ------------ 
Event: time 1351285342.293958, type 1 (Key), code 102 (Home), value 0 
Event: time 1351285342.293977, -------------- Report Sync ------------

Touchscreen events are available through event3. Example of evtest with touching as close to left upper corner as I could:
Spoiler:
Code:
[root@kindle root]# evtest /dev/input/event3 
Input driver version is 1.0.0 
Input device ID: bus 0x0 vendor 0x0 product 0x0 version 0x0 
Input device name: "zforce" 
Supported events: 
  Event type 0 (Sync) 
  Event type 1 (Key) 
    Event code 0 (Reserved) 
    Event code 1 (Esc) 
    Event code 325 (ToolFinger) 
    Event code 330 (Touch) 
    Event code 333 (Tool Doubletap) 
    Event code 334 (Tool Tripletap) 
  Event type 3 (Absolute) 
    Event code 0 (X) 
      Value      0 
      Min        0 
      Max     4095 
    Event code 1 (Y) 
      Value      0 
      Min        0 
      Max     4095 
    Event code 47 (MT Slot) 
      Value      0 
      Min        0 
      Max        1 
    Event code 53 (MT X) 
      Value      0 
      Min        0 
      Max     4095 
    Event code 54 (MT Y) 
      Value      0 
      Min        0 
      Max     4095 
    Event code 57 (MT Tracking ID) 
      Value      0 
      Min        0 
      Max      255 
Testing ... (interrupt to exit) 
Event: time 1351285403.594041, type 3 (Absolute), code 57 (MT Tracking ID), value 0 
Event: time 1351285403.594162, type 3 (Absolute), code 53 (MT X), value 212 
Event: time 1351285403.594180, type 3 (Absolute), code 54 (MT Y), value 164 
Event: time 1351285403.594995, type 1 (Key), code 330 (Touch), value 1 
Event: time 1351285403.595008, type 1 (Key), code 325 (ToolFinger), value 1 
Event: time 1351285403.595028, -------------- Report Sync ------------ 
Event: time 1351285403.644254, type 3 (Absolute), code 57 (MT Tracking ID), value -1 
Event: time 1351285403.644818, type 1 (Key), code 330 (Touch), value 0 
Event: time 1351285403.644831, type 1 (Key), code 325 (ToolFinger), value 0 
Event: time 1351285403.644843, -------------- Report Sync ------------

fake_events should work as-is.
eureka is offline   Reply With Quote