View Single Post
Old 07-26-2010, 03:22 PM   #10
pgf
Member
pgf began at the beginning.
 
Posts: 19
Karma: 10
Join Date: Jul 2010
Device: kindle
thanks. hadn't seen that log info yet.

fyi -- if you do "hexdump -C /dev/input/event0" while pressing keys, they keycode that you pass to "send DDD >/proc/keypad) appears in hex as byte 10 (counting from 0). NextPage is the 7c value in the following, where the first line is the press, and the second is the release:
Quote:
00000000 aa de 4d 4c 9f 24 0a 00 01 00 7c 00 01 00 00 00 |..ML.$....|.....|
00000010 aa de 4d 4c ba 31 0d 00 01 00 7c 00 00 00 00 00 |..ML.1....|.....|
(earlier bytes in the lines are timestamp and type information -- see linux/input.h)

in any case, i realized i don't need to inject those keytrokes, because one can grab a raw copy of the screen directly from /proc/eink_fb/virtual_fb.
pgf is offline   Reply With Quote