简体   繁体   English

调整Android Mako上的显示驱动程序以仅使用显示的固定部分

[英]Tweaking display driver on Android Mako to use only fixed part of the display

I am trying to find out whether it is possible to change the display on Nexus 4(WXGA) to 400x400 for designing application for wearables of any similar resolution. 我正在尝试确定是否可以将Nexus 4(WXGA)上的显示更改为400x400,以设计适用于任何类似分辨率的可穿戴设备的应用程序。

Till now I have tried changing the video panel coordinates from 768x1280 to 400x400 in display driver file: mipi_lgit_video_wxga_pt.c . 到目前为止,我已经尝试将显示驱动程序文件mipi_lgit_video_wxga_pt.c中的视频面板坐标从768x1280更改为400x400。 But only the display is changing to 400x400. 但是只有显示更改为400x400。 Touchscreen is still mapped to the original resolution. 触摸屏仍映射到原始分辨率。

I am starting to doubt that whether this is possible or not with the display driver of Nexus 4. 我开始怀疑Nexus 4的显示驱动程序是否可行。

Any help will be really appreciated. 任何帮助将不胜感激。

I think this is not possible as MIPI displays use microcontroller with data lanes that work at a very specific frequency and data BW. 我认为这是不可能的,因为MIPI显示器使用带有数据通道的微控制器,这些通道以非常特定的频率和数据带宽工作。 As from the interface you don't have control on how the data you send is being drawn to LCD. 从界面开始,您无法控制如何将发送的数据绘制到LCD。

You can however 'fool' the driver by sending black pixels as filler, but you probably need to patch the display HAL and framework which is not easy and I'm not sure it will give you trustworthy testing tool 但是,您可以通过发送黑色像素作为填充物来“愚弄”驱动程序,但您可能需要修补显示HAL和框架,这并不容易,而且我不确定它是否会为您提供值得信赖的测试工具

As an alternative, you can try buying some R-PI or similar and using HDMI connection to get the resolution you want. 或者,您可以尝试购买一些R-PI或类似产品,并使用HDMI连接以获得所需的分辨率。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM