To apply the patches changes Android Framework, so it's necessary to update-api before compile. Then Android Setting->Display adds a new menu named "Advanced Display", and it's empty if HDMI cable is not plugged. Can I know if you see overscan control panel? Doesn't that work?
Yes we did a make update-api after applying the patches. Yes we see the control panel, but adjusting the sliders does not change the overscan. Even after a restart it is not changed.
I am also looking into this patch. As you suggested, I placed a print in ConfigDisplay function of SurfaceFlinger.cpp and further into HWComposer.cpp. the overscan values seem to be there, however, the result you have shown does not reproduce. There is no change whatsoever to the visual display even though the overscan values get configured.
This patch is going to change Android Transform Matrix, to resize logic display to physical display.
Unless the overscan value results in invalid frame rect, Transform Matrix should change. I can't duplicate your case in my side. Could you do me a favor to check if the Transform Matrix changes by the following debug message? Thanks,
D/SurfaceFlinger( 2235): Test 0x00000005 (ROT_0 , SCALE TRANSLATE )
D/SurfaceFlinger( 2235): 0.6396 0.0000 25.0000
D/SurfaceFlinger( 2235): 0.0000 0.6667 40.0000
D/SurfaceFlinger( 2235): 0.0000 0.0000 1.0000
E/SurfaceFlinger( 2235): width: 1280; height: 800
However, the display is actually 1920x1080. I can see that the system is detecting the HDMI 1080p display, but also some ldb display of 1280x800 which is perhaps causing the confusion. I only have one 1080p HDMI display connected.
Then Android recognizes real HDMI display as Buit-in screen. But my patch only works for external screen, you should see your the screen size with fb2 changes.
--
I/DisplayManagerService( 2656): Display device added: DisplayDeviceInfo{"Built-in Screen": 1920 x 1080, 60.000004 fps, density 160, 213.0 x 213.0 dpi, touch INTERNAL, FLAG_DEFAULT_DISPLAY, FLAG_ROTATES_WITH_CONTENT, FLAG_SECURE, FLAG_SUPPORTS_PROTECTED_BUFFERS, rotation 0, type BUILT_IN, address null}
I/DisplayManagerService( 2656): Display device added: DisplayDeviceInfo{"HDMI Screen": 1024 x 768, 60.000004 fps, density 227, 227.0 x 227.0 dpi, touch EXTERNAL, FLAG_SECURE, FLAG_SUPPORTS_PROTECTED_BUFFERS, rotation 0, type HDMI, address null}
I can see that the overscan patch is now working on hdmi output. When switching to this configuration, I can see graphics and Android system, however, the video playback output on hdmi is no longer working correctly.
You can refer to Android Developers, and prepare the Android development environment.
Regarding "patch", it supposes it's Linux built-in utility. You will need a linux environment or Apple OS to build Android. Please refer to Android Developers
I have compiled the android JB to the board to boot it from SDcard. The board is able to able from the SDcard, but the problem is android zygote is failing. Not able to trace out the reason, why it is failing for every 30 to 40 Sec. Can you please help me out, for past I am truck in this issue.
while applying the freescale patches I got some warnings, but finally I got READY TO BUILD..