View Single Post
Old 08-20-2018, 11:46 AM   #12
patrik
Guru
patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.patrik ought to be getting tired of karma fortunes by now.
 
Posts: 683
Karma: 4568205
Join Date: Jan 2010
Location: Sweden
Device: Kobo Forma
Kobo Aura HD

Code:
[root@(none) ~]# hexdump -x /dev/input/event1
0000000    e0b5    5b7a    6fb0    000a    0003    0001    024e    0000
0000010    e0b5    5b7a    7473    000a    0003    0000    0403    0000
0000020    e0b5    5b7a    7498    000a    0003    0018    0064    0000
0000030    e0b5    5b7a    74a5    000a    0001    014a    0001    0000
0000040    e0b5    5b7a    74b1    000a    0000    0000    0000    0000
0000050    e0b5    5b7a    106b    000b    0003    0000    0402    0000
0000060    e0b5    5b7a    1094    000b    0003    0018    0065    0000
0000070    e0b5    5b7a    10a6    000b    0000    0000    0000    0000
0000080    e0b5    5b7a    27c9    000b    0003    0018    0000    0000
0000090    e0b5    5b7a    27ec    000b    0001    014a    0000    0000
00000a0    e0b5    5b7a    27f4    000b    0000    0000    0000    0000
Code:
[root@(none) ~]# button_scan
[FBInk] Variable fb info: 1080x1440, 32bpp @ rotation: 1 (Clockwise, 90°)
[FBInk] Fontsize set to 24x24 (IBM base glyph size: 8x8)
[FBInk] Line length: 45 cols, Page size: 60 rows
[FBInk] It's a perfect fit!
[FBInk] Fixed fb info: ID is "mxc_epdc_fb", length of fb mem: 6684672 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 135 and 270 pixels wide!
Looking for buttons in a 810x432 rectangle, from (54, 792) to (864, 1224)
Failed end of match after 1 consecutive matches @ (522, 825)
Failed end of match after 1 consecutive matches @ (313, 826)
Failed end of match after 1 consecutive matches @ (385, 827)
Failed end of match after 1 consecutive matches @ (463, 827)
Failed end of match after 1 consecutive matches @ (501, 827)
Failed end of match after 1 consecutive matches @ (560, 827)
Failed end of match after 1 consecutive matches @ (120, 886)
Failed end of match after 1 consecutive matches @ (217, 902)
Failed end of match after 1 consecutive matches @ (110, 910)
Failed end of match after 1 consecutive matches @ (151, 914)
End of match 1 after 184 consecutive matches @ (390, 989)
End of match 2 after 184 consecutive matches @ (584, 989)
Matched on a 184x70 button! :)
x=1024, y=588
H2OČr1: x=415, y=491
Code:
[root@(none) ~]# button_scan -p
[FBInk] Variable fb info: 1080x1440, 32bpp @ rotation: 1 (Clockwise, 90°)
[FBInk] Fontsize set to 24x24 (IBM base glyph size: 8x8)
[FBInk] Line length: 45 cols, Page size: 60 rows
[FBInk] It's a perfect fit!
[FBInk] Fixed fb info: ID is "mxc_epdc_fb", length of fb mem: 6684672 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 135 and 270 pixels wide!
Looking for buttons in a 810x432 rectangle, from (54, 792) to (864, 1224)
Failed end of match after 1 consecutive matches @ (522, 825)
Failed end of match after 1 consecutive matches @ (313, 826)
Failed end of match after 1 consecutive matches @ (385, 827)
Failed end of match after 1 consecutive matches @ (463, 827)
Failed end of match after 1 consecutive matches @ (501, 827)
Failed end of match after 1 consecutive matches @ (560, 827)
Failed end of match after 1 consecutive matches @ (120, 886)
Failed end of match after 1 consecutive matches @ (217, 902)
Failed end of match after 1 consecutive matches @ (110, 910)
Failed end of match after 1 consecutive matches @ (151, 914)
End of match 1 after 184 consecutive matches @ (390, 989)
End of match 2 after 184 consecutive matches @ (584, 989)
Matched on a 184x70 button! :)
x=1024, y=588
H2OČr1: x=415, y=491
Pressing the Connect button . . .
On iteration nr. 0, pixel (540, 1439) was #FFFFFF
On iteration nr. 1, pixel (540, 1439) was #FFFFFF
On iteration nr. 2, pixel (540, 1439) was #FFFFFF
On iteration nr. 3, pixel (540, 1439) was #FFFFFF
On iteration nr. 4, pixel (540, 1439) was #FFFFFF
On iteration nr. 5, pixel (540, 1439) was #FFFFFF
On iteration nr. 6, pixel (540, 1439) was #FFFFFF
On iteration nr. 7, pixel (540, 1439) was #FFFFFF
On iteration nr. 8, pixel (540, 1439) was #FFFFFF
On iteration nr. 9, pixel (540, 1439) was #FFFFFF
On iteration nr. 10, pixel (540, 1439) was #FFFFFF
On iteration nr. 11, pixel (540, 1439) was #FFFFFF
On iteration nr. 12, pixel (540, 1439) was #FFFFFF
On iteration nr. 13, pixel (540, 1439) was #FFFFFF
On iteration nr. 14, pixel (540, 1439) was #FFFFFF
On iteration nr. 15, pixel (540, 1439) was #FFFFFF
On iteration nr. 16, pixel (540, 1439) was #FFFFFF
On iteration nr. 17, pixel (540, 1439) was #FFFFFF
On iteration nr. 18, pixel (540, 1439) was #FFFFFF
On iteration nr. 19, pixel (540, 1439) was #FFFFFF
[FBInk] Failed to press the Connect button!
patrik is offline   Reply With Quote