View Single Post
Old 08-17-2018, 11:41 AM   #6
jsonora
Member
jsonora understands when you whisper 'The dog barks at midnight.'jsonora understands when you whisper 'The dog barks at midnight.'jsonora understands when you whisper 'The dog barks at midnight.'jsonora understands when you whisper 'The dog barks at midnight.'jsonora understands when you whisper 'The dog barks at midnight.'jsonora understands when you whisper 'The dog barks at midnight.'jsonora understands when you whisper 'The dog barks at midnight.'jsonora understands when you whisper 'The dog barks at midnight.'jsonora understands when you whisper 'The dog barks at midnight.'jsonora understands when you whisper 'The dog barks at midnight.'jsonora understands when you whisper 'The dog barks at midnight.'
 
Posts: 12
Karma: 42890
Join Date: Feb 2015
Location: Japan
Device: Kindle PW1/PW2/Voyage, Kobo Glo/Aura
I have tested it on my Glo HD and Glo.

Glo HD:
Code:
~ # hexdump -x /dev/input/event1
0000000    0148    0000    3ee4    0000    0003    0039    0001    0000
0000010    0148    0000    3ee7    0000    0003    0030    0001    0000
0000020    0148    0000    3ee9    0000    0003    0032    0001    0000
0000030    0148    0000    3eed    0000    0003    0035    03eb    0000
0000040    0148    0000    3eef    0000    0003    0036    0237    0000
0000050    0148    0000    3ef3    0000    0003    0018    0400    0000
0000060    0148    0000    3ef6    0000    0001    014a    0001    0000
0000070    0148    0000    3ef9    0000    0000    0002    0000    0000
0000080    0148    0000    3efb    0000    0000    0000    0000    0000
0000090    0148    0000    4357    0003    0003    0039    0001    0000
00000a0    0148    0000    435c    0003    0003    0030    0000    0000
00000b0    0148    0000    435e    0003    0003    0032    0000    0000
00000c0    0148    0000    4361    0003    0003    0035    03eb    0000
00000d0    0148    0000    4364    0003    0003    0036    0237    0000
00000e0    0148    0000    4367    0003    0003    0018    0000    0000
00000f0    0148    0000    4369    0003    0001    014a    0000    0000
0000100    0148    0000    436b    0003    0000    0002    0000    0000
0000110    0148    0000    436d    0003    0000    0000    0000    0000

~ # button_scan -p
[FBInk] Variable fb info: 1072x1448, 32bpp @ rotation: 3 (Counter Clockwise, 270°)
[FBInk] Fontsize set to 24x24 (IBM base glyph size: 8x8)
[FBInk] Line length: 44 cols, Page size: 60 rows
[FBInk] Fixed fb info: ID is "mxc_epdc_fb", length of fb mem: 6782976 bytes & line length: 4352 bytes
[FBInk] Kernel's HZ value appears to be 100
Button color is expected to be #D9D9D9
We need to match two buttons each between 134 and 268 pixels wide!
Looking for buttons in a 804x434 rectangle, from (53, 796) to (857, 1230)
Failed end of match after 1 consecutive matches @ (233, 835)
Failed end of match after 1 consecutive matches @ (499, 837)
Failed end of match after 1 consecutive matches @ (529, 840)
Failed end of match after 1 consecutive matches @ (530, 845)
Failed end of match after 1 consecutive matches @ (509, 847)
Failed end of match after 1 consecutive matches @ (408, 857)
Failed end of match after 1 consecutive matches @ (515, 858)
Failed end of match after 1 consecutive matches @ (504, 859)
Failed end of match after 1 consecutive matches @ (317, 911)
Failed end of match after 1 consecutive matches @ (478, 916)
Failed end of match after 1 consecutive matches @ (777, 918)
Failed end of match after 1 consecutive matches @ (686, 919)
Failed end of match after 1 consecutive matches @ (483, 925)
Failed end of match after 1 consecutive matches @ (722, 925)
Failed end of match after 1 consecutive matches @ (309, 926)
Failed end of match after 1 consecutive matches @ (788, 929)
Failed end of match after 1 consecutive matches @ (488, 934)
Failed end of match after 1 consecutive matches @ (342, 935)
Failed end of match after 1 consecutive matches @ (788, 935)
End of match 1 after 205 consecutive matches @ (403, 969)
End of match 2 after 205 consecutive matches @ (618, 969)
Matched on a 205x70 button! :)
x=1004, y=556
H2OČr1: x=443, y=515
Pressing the Connect button . . .
On iteration nr. 0, pixel (536, 1447) was #FFFFFF
On iteration nr. 1, pixel (536, 1447) was #FFFFFF
On iteration nr. 2, pixel (536, 1447) was #FFFFFF
On iteration nr. 3, pixel (536, 1447) was #000000
. . . appears to have been a success!
Glo:
Code:
~ # hexdump -x /dev/input/event1
0000000    d68b    5b76    d7b5    000c    0003    0001    019b    0000
0000010    d68b    5b76    dc74    000c    0003    0000    02cc    0000
0000020    d68b    5b76    de15    000c    0003    0018    0064    0000
0000030    d68b    5b76    df7e    000c    0001    014a    0001    0000
0000040    d68b    5b76    e0b9    000c    0000    0000    0000    0000
0000050    d68b    5b76    11ea    000e    0003    0001    019c    0000
0000060    d68b    5b76    146c    000e    0003    0000    02ce    0000
0000070    d68b    5b76    148a    000e    0003    0018    0065    0000
0000080    d68b    5b76    149d    000e    0000    0000    0000    0000
0000090    d68b    5b76    367a    000e    0003    0018    0000    0000
00000a0    d68b    5b76    36dd    000e    0001    014a    0000    0000
00000b0    d68b    5b76    3708    000e    0000    0000    0000    0000

~ # button_scan -p
[FBInk] Variable fb info: 758x1024, 32bpp @ rotation: 3 (Counter Clockwise, 270 °)
[FBInk] Fontsize set to 16x16 (IBM base glyph size: 8x8)
[FBInk] Line length: 47 cols, Page size: 64 rows
[FBInk] Fixed fb info: ID is "mxc_epdc_fb", length of fb mem: 3145728 bytes & line length: 3072 bytes
[FBInk] Kernel's HZ value appears to be 100
Button color is expected to be #D9D9D9
We need to match two buttons each between 94 and 189 pixels wide!
Looking for buttons in a 569x307 rectangle, from (37, 563) to (606, 870)
Failed end of match after 1 consecutive matches @ (134, 601)
Failed end of match after 1 consecutive matches @ (404, 609)
Failed end of match after 1 consecutive matches @ (206, 617)
Failed end of match after 1 consecutive matches @ (299, 620)
Failed end of match after 1 consecutive matches @ (371, 620)
Failed end of match after 1 consecutive matches @ (467, 662)
Failed end of match after 1 consecutive matches @ (558, 662)
Failed end of match after 1 consecutive matches @ (356, 669)
Failed end of match after 1 consecutive matches @ (306, 670)
Failed end of match after 1 consecutive matches @ (326, 672)
Failed end of match after 1 consecutive matches @ (461, 677)
End of match 1 after 148 consecutive matches @ (261, 700)
End of match 2 after 148 consecutive matches @ (419, 700)
Matched on a 148x56 button! :)
x=728, y=413
H2OČr1: x=295, y=344
Pressing the Connect button . . .
On iteration nr. 0, pixel (379, 1023) was #FFFFFF
On iteration nr. 1, pixel (379, 1023) was #FFFFFF
On iteration nr. 2, pixel (379, 1023) was #FFFFFF
On iteration nr. 3, pixel (379, 1023) was #FFFFFF
On iteration nr. 4, pixel (379, 1023) was #FFFFFF
On iteration nr. 5, pixel (379, 1023) was #FFFFFF
On iteration nr. 6, pixel (379, 1023) was #FFFFFF
On iteration nr. 7, pixel (379, 1023) was #FFFFFF
On iteration nr. 8, pixel (379, 1023) was #FFFFFF
On iteration nr. 9, pixel (379, 1023) was #FFFFFF
On iteration nr. 10, pixel (379, 1023) was #FFFFFF
On iteration nr. 11, pixel (379, 1023) was #FFFFFF
On iteration nr. 12, pixel (379, 1023) was #FFFFFF
On iteration nr. 13, pixel (379, 1023) was #FFFFFF
On iteration nr. 14, pixel (379, 1023) was #FFFFFF
On iteration nr. 15, pixel (379, 1023) was #FFFFFF
On iteration nr. 16, pixel (379, 1023) was #FFFFFF
On iteration nr. 17, pixel (379, 1023) was #FFFFFF
On iteration nr. 18, pixel (379, 1023) was #FFFFFF
On iteration nr. 19, pixel (379, 1023) was #FFFFFF
[FBInk] Failed to press the Connect button!
jsonora is offline   Reply With Quote