View Single Post
Old 12-31-2011, 05:14 PM   #22
geekmaster
Всё гениальное просто.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 5,066
Karma: 6789001
Join Date: Nov 2011
Location: Щедрость не имеет пределов.
Device: *.*
Quote:
Originally Posted by boskyout View Post
In the first spoiler, why it showed "info X:makexconfig:Accelerometer device: N/A !!:" I remembered that yifanlu once said that KT has the Accelerometer device, what does it exactly mean?
I was wondering that same thing, and I posted that question to the IRC channel.

Not only does the touch have a accelerometer, but it is enabled, and you can see the live accelerometer data stream with:
.
hd /dev/input/event3
.
Here is some sample output from the above command when I shook my Kindle Touch from top-to-bottom and from side-to-side (velocity sensing), and with it held in front of me by rotating it sideways past 45-degree angles (gravity sensing):

Spoiler:
Code:
[root@kindle input]# hd event3
00000000  36 86 ff 4e 42 79 04 00  01 00 3e 00 01 00 00 00  |6..NBy....>.....|
00000010  36 86 ff 4e 62 79 04 00  01 00 3e 00 00 00 00 00  |6..Nby....>.....|
00000020  36 86 ff 4e 69 79 04 00  00 00 00 00 00 00 00 00  |6..Niy..........|
00000030  36 86 ff 4e 87 63 05 00  01 00 3d 00 01 00 00 00  |6..N.c....=.....|
00000040  36 86 ff 4e a5 63 05 00  01 00 3d 00 00 00 00 00  |6..N.c....=.....|
00000050  36 86 ff 4e ac 63 05 00  00 00 00 00 00 00 00 00  |6..N.c..........|
00000060  36 86 ff 4e ef 44 0a 00  01 00 3c 00 01 00 00 00  |6..N.D....<.....|
00000070  36 86 ff 4e 10 45 0a 00  01 00 3c 00 00 00 00 00  |6..N.E....<.....|
00000080  36 86 ff 4e 16 45 0a 00  00 00 00 00 00 00 00 00  |6..N.E..........|
00000090  36 86 ff 4e 08 93 0a 00  01 00 3e 00 01 00 00 00  |6..N......>.....|
000000a0  36 86 ff 4e 25 93 0a 00  01 00 3e 00 00 00 00 00  |6..N%.....>.....|
000000b0  36 86 ff 4e 2c 93 0a 00  00 00 00 00 00 00 00 00  |6..N,...........|
000000c0  36 86 ff 4e f4 9f 0d 00  01 00 3b 00 01 00 00 00  |6..N......;.....|
000000d0  36 86 ff 4e 17 a0 0d 00  01 00 3b 00 00 00 00 00  |6..N......;.....|
000000e0  36 86 ff 4e 1e a0 0d 00  00 00 00 00 00 00 00 00  |6..N............|
000000f0  37 86 ff 4e 1a 1c 01 00  01 00 3e 00 01 00 00 00  |7..N......>.....|
00000100  37 86 ff 4e 39 1c 01 00  01 00 3e 00 00 00 00 00  |7..N9.....>.....|
00000110  37 86 ff 4e 40 1c 01 00  00 00 00 00 00 00 00 00  |7..N@...........|
00000120  37 86 ff 4e cb 76 04 00  01 00 3b 00 01 00 00 00  |7..N.v....;.....|
00000130  37 86 ff 4e e9 76 04 00  01 00 3b 00 00 00 00 00  |7..N.v....;.....|
00000140  37 86 ff 4e f0 76 04 00  00 00 00 00 00 00 00 00  |7..N.v..........|
00000150  b4 86 ff 4e 03 36 02 00  01 00 3d 00 01 00 00 00  |...N.6....=.....|
00000160  b4 86 ff 4e 27 36 02 00  01 00 3d 00 00 00 00 00  |...N'6....=.....|
00000170  b4 86 ff 4e 2e 36 02 00  00 00 00 00 00 00 00 00  |...N.6..........|
00000180  b5 86 ff 4e ce 3f 05 00  01 00 3b 00 01 00 00 00  |...N.?....;.....|
00000190  b5 86 ff 4e ed 3f 05 00  01 00 3b 00 00 00 00 00  |...N.?....;.....|
000001a0  b5 86 ff 4e f5 3f 05 00  00 00 00 00 00 00 00 00  |...N.?..........|
000001b0  b5 86 ff 4e ae 6e 0a 00  01 00 3e 00 01 00 00 00  |...N.n....>.....|
000001c0  b5 86 ff 4e ce 6e 0a 00  01 00 3e 00 00 00 00 00  |...N.n....>.....|
000001d0  b5 86 ff 4e d5 6e 0a 00  00 00 00 00 00 00 00 00  |...N.n..........|
000001e0  b7 86 ff 4e 35 f8 07 00  01 00 3d 00 01 00 00 00  |...N5.....=.....|
000001f0  b7 86 ff 4e 55 f8 07 00  01 00 3d 00 00 00 00 00  |...NU.....=.....|
00000200  b7 86 ff 4e 5c f8 07 00  00 00 00 00 00 00 00 00  |...N\...........|
00000210  b7 86 ff 4e bf 52 0b 00  01 00 3e 00 01 00 00 00  |...N.R....>.....|
00000220  b7 86 ff 4e de 52 0b 00  01 00 3e 00 00 00 00 00  |...N.R....>.....|
00000230  b7 86 ff 4e e5 52 0b 00  00 00 00 00 00 00 00 00  |...N.R..........|
00000240  b7 86 ff 4e fe a0 0b 00  01 00 3b 00 01 00 00 00  |...N......;.....|
00000250  b7 86 ff 4e 1c a1 0b 00  01 00 3b 00 00 00 00 00  |...N......;.....|
00000260  b7 86 ff 4e 23 a1 0b 00  00 00 00 00 00 00 00 00  |...N#...........|
00000270  b8 86 ff 4e 9f 7b 09 00  01 00 3c 00 01 00 00 00  |...N.{....<.....|
00000280  b8 86 ff 4e bc 7b 09 00  01 00 3c 00 00 00 00 00  |...N.{....<.....|
00000290  b8 86 ff 4e c3 7b 09 00  00 00 00 00 00 00 00 00  |...N.{..........|
000002a0  b8 86 ff 4e 89 d5 0c 00  01 00 3b 00 01 00 00 00  |...N......;.....|
000002b0  b8 86 ff 4e 96 d5 0c 00  01 00 3b 00 00 00 00 00  |...N......;.....|
000002c0  b8 86 ff 4e 98 d5 0c 00  00 00 00 00 00 00 00 00  |...N............|
000002d0  b8 86 ff 4e 8f a9 0e 00  01 00 3c 00 01 00 00 00  |...N......<.....|
000002e0  b8 86 ff 4e 9a a9 0e 00  01 00 3c 00 00 00 00 00  |...N......<.....|
000002f0  b8 86 ff 4e 9b a9 0e 00  00 00 00 00 00 00 00 00  |...N............|
00000300  b9 86 ff 4e 8b 97 04 00  01 00 3b 00 01 00 00 00  |...N......;.....|
00000310  b9 86 ff 4e a9 97 04 00  01 00 3b 00 00 00 00 00  |...N......;.....|
00000320  b9 86 ff 4e b0 97 04 00  00 00 00 00 00 00 00 00  |...N............|

"Shake mode" could be used (with appropriate software) to skip forward and backward in a media playlist, and probably has other great uses limited only by your imagination. Perhaps it could participate in the global earthquake detector network, for example.

"Gravity sensing" mode could be used to rotate the screen between portrait and landscape mode just like in the Kindles DX Graphite. Unless a way can be found to acquire accelerometer data events besides crossing 45-degree boundaries, it cannot yet be used for some of the fancy things like you can do with an android device or an ipad.

You can also read the touchscreen with:
.
hd /dev/input/event4
.
This datastream contains events defined in GPL source code. It supports sensing the position of one or two fingers. Here is sample output for moving one and two fingers:

Spoiler:
Code:
[root@kindle input]# hd event4
00000000  23 87 ff 4e 06 04 06 00  03 00 39 00 00 00 00 00  |#..N......9.....|
00000010  23 87 ff 4e 44 04 06 00  03 00 35 00 65 08 00 00  |#..ND.....5.e...|
00000020  23 87 ff 4e 53 04 06 00  03 00 36 00 97 06 00 00  |#..NS.....6.....|
00000030  23 87 ff 4e 8e 06 06 00  01 00 4a 01 01 00 00 00  |#..N......J.....|
00000040  23 87 ff 4e 9c 06 06 00  01 00 45 01 01 00 00 00  |#..N......E.....|
00000050  23 87 ff 4e ad 06 06 00  00 00 00 00 00 00 00 00  |#..N............|
00000060  23 87 ff 4e e6 9d 06 00  03 00 35 00 5c 08 00 00  |#..N......5.\...|
00000070  23 87 ff 4e 30 9e 06 00  00 00 00 00 00 00 00 00  |#..N0...........|
00000080  23 87 ff 4e dd be 06 00  03 00 35 00 49 08 00 00  |#..N......5.I...|
00000090  23 87 ff 4e 0b bf 06 00  03 00 36 00 9a 06 00 00  |#..N......6.....|
000000a0  23 87 ff 4e 33 bf 06 00  00 00 00 00 00 00 00 00  |#..N3...........|
000000b0  23 87 ff 4e b9 f8 06 00  03 00 35 00 13 08 00 00  |#..N......5.....|
000000c0  23 87 ff 4e 03 f9 06 00  00 00 00 00 00 00 00 00  |#..N............|
000000d0  23 87 ff 4e 60 34 07 00  03 00 35 00 b5 07 00 00  |#..N`4....5.....|
000000e0  23 87 ff 4e 8a 34 07 00  03 00 36 00 90 06 00 00  |#..N.4....6.....|
000000f0  23 87 ff 4e b0 34 07 00  00 00 00 00 00 00 00 00  |#..N.4..........|
00000100  23 87 ff 4e 5d 6f 07 00  03 00 35 00 44 07 00 00  |#..N]o....5.D...|
00000110  23 87 ff 4e 85 6f 07 00  03 00 36 00 80 06 00 00  |#..N.o....6.....|
00000120  23 87 ff 4e ad 6f 07 00  00 00 00 00 00 00 00 00  |#..N.o..........|
00000130  23 87 ff 4e ae a9 07 00  03 00 35 00 d3 06 00 00  |#..N......5.....|
00000140  23 87 ff 4e d7 a9 07 00  03 00 36 00 6c 06 00 00  |#..N......6.l...|
00000150  23 87 ff 4e fd a9 07 00  00 00 00 00 00 00 00 00  |#..N............|
00000160  23 87 ff 4e 09 e3 07 00  03 00 35 00 66 06 00 00  |#..N......5.f...|
00000170  23 87 ff 4e 31 e3 07 00  03 00 36 00 4d 06 00 00  |#..N1.....6.M...|
00000180  23 87 ff 4e 57 e3 07 00  00 00 00 00 00 00 00 00  |#..NW...........|
00000190  23 87 ff 4e db 21 08 00  03 00 35 00 03 06 00 00  |#..N.!....5.....|
000001a0  23 87 ff 4e 05 22 08 00  03 00 36 00 2c 06 00 00  |#..N."....6.,...|
000001b0  23 87 ff 4e 2e 22 08 00  00 00 00 00 00 00 00 00  |#..N."..........|
000001c0  23 87 ff 4e 3a 5a 08 00  03 00 35 00 b6 05 00 00  |#..N:Z....5.....|
000001d0  23 87 ff 4e 65 5a 08 00  03 00 36 00 07 06 00 00  |#..NeZ....6.....|
000001e0  23 87 ff 4e 8c 5a 08 00  00 00 00 00 00 00 00 00  |#..N.Z..........|
000001f0  23 87 ff 4e bd 93 08 00  03 00 35 00 73 05 00 00  |#..N......5.s...|
00000200  23 87 ff 4e eb 93 08 00  03 00 36 00 d8 05 00 00  |#..N......6.....|
00000210  23 87 ff 4e 14 94 08 00  00 00 00 00 00 00 00 00  |#..N............|
00000220  23 87 ff 4e ac cb 08 00  03 00 35 00 38 05 00 00  |#..N......5.8...|
00000230  23 87 ff 4e d5 cb 08 00  03 00 36 00 a3 05 00 00  |#..N......6.....|
00000240  23 87 ff 4e fa cb 08 00  00 00 00 00 00 00 00 00  |#..N............|
00000250  23 87 ff 4e 06 07 09 00  03 00 35 00 0f 05 00 00  |#..N......5.....|
00000260  23 87 ff 4e 2f 07 09 00  03 00 36 00 66 05 00 00  |#..N/.....6.f...|
00000270  23 87 ff 4e 56 07 09 00  00 00 00 00 00 00 00 00  |#..NV...........|
00000280  23 87 ff 4e 08 41 09 00  03 00 35 00 f0 04 00 00  |#..N.A....5.....|
00000290  23 87 ff 4e 2e 41 09 00  03 00 36 00 20 05 00 00  |#..N.A....6. ...|
000002a0  23 87 ff 4e 55 41 09 00  00 00 00 00 00 00 00 00  |#..NUA..........|

There are other input devices as well, including the home button. These input device commands only output data while an event is happening. The data streams begin with a timestamp so that velocity and acceleration can be determined, which is great for gesture recognition and handwriting analysis on the touchscreen.

Due to the coarse nature of the IR elements in the touchscreen, you need a fat stylus for handwriting. The fat end of a round chopstick from a Chinese restaurant works well as a stylus, when held perpendicular to the screen. The thin end does not work reliably.

Enjoy playing with your new toy!

Last edited by geekmaster; 01-05-2012 at 03:39 AM.
geekmaster is offline   Reply With Quote