Android Things: display isn't working

孤街醉人 提交于 2019-11-27 04:48:26

问题


Earlier I was using my RaspberryPi with Waveshare LCD and Raspbian was installed so there was no issue with display, but now I have Android Things SDK so how can I get display working with it? As Waveshare was providing different image for Raspbian OS, but how to get its driver for Android Things OS?

I was following this and this for installation on raspberry-pi.


回答1:


As of now Android Things image isn't shipped with a default configuration for display in config.txt file which is located in the root of your SD card (see the boot partition). The configuration should be added manually. Look for an appropriate display configuration in the supplied documentation or manufacturer's website.

For example, in my case for Waveshare 5inch 800x480 HDMI LCD (B) the following lines needed to be appended to config.txt:

max_usb_current=1
hdmi_group=2
hdmi_mode=87
hdmi_cvt 800 480 60 6 0 0 0

In fact, the max_usb_current, hdmi_group and hdmi_mode parameters with the values above should work for a wide range of displays from different manufacturers. Screen resolution in hdmi_cvt will vary.




回答2:


Latest versions of Android things OS automatically detect any kind of display and reform the settings for it.

So first I will recommend you to check whether your raspberry pi boot up from your sd card or not bcz the latest version i.e 5.0 & 5.1 not working with raspberry pi appropriately (personal experience).

Thus, first check that your raspberry pi give you an ACT light blanking instead of just stable red light.



来源:https://stackoverflow.com/questions/41163195/android-things-display-isnt-working

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!