rk3288 开机动态切换lvds屏幕显示(三)主副屏幕设置
生活随笔
收集整理的這篇文章主要介紹了
rk3288 开机动态切换lvds屏幕显示(三)主副屏幕设置
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
?設(shè)置主副屏幕顯示
修改主副屏幕配置屬性
device/rockchip/rk3288/system.prop
-sys.hwc.device.primary=LVDS -sys.hwc.device.extend=HDMI-A,eDP +persist.hwc.device.primary=LVDS +persist.hwc.device.extend=HDMI-A,eDPframeworks/base/services/core/jni/com_android_server_rkdisplay_RkDisplayModes.cpp
@@ -118,7 +118,7 @@ static void updateConnectors(){}ALOGD("crtc: %d %d foundHdmi %d", crtcId1, crtcId2, foundHdmi);char property[PROPERTY_VALUE_MAX]; - property_get("sys.hwc.device.primary", property, "null"); + property_get("persist.hwc.device.primary", property, "null");if (crtcId1 == crtcId2 && foundHdmi && strstr(property, "HDMI-A") == NULL) {for (auto &conn : drm_->connectors()) {if (builtInHdmi(conn->get_type()) && conn->state() == DRM_MODE_CONNECTED) { @@ -365,7 +365,7 @@ static void saveHwcInitalInfo(struct file_base_paramer *base_paramer, int dpy){base_paramer->main.hwc_info.framebuffer_height = 1080;base_paramer->main.hwc_info.fps = 60.00;memset(property,0,sizeof(property)); - len = property_get("sys.hwc.device.primary", property, NULL); + len = property_get("persist.hwc.device.primary", property, NULL);if (len) {memcpy(base_paramer->main.hwc_info.device, property, strlen(property));} else { @@ -378,7 +378,7 @@ static void saveHwcInitalInfo(struct file_base_paramer *base_paramer, int dpy){base_paramer->aux.hwc_info.framebuffer_height = 1080;base_paramer->aux.hwc_info.fps = 60.00;memset(property,0,sizeof(property)); - len = property_get("sys.hwc.device.extend", property, NULL); + len = property_get("persist.hwc.device.extend", property, NULL);if (len)memcpy(base_paramer->aux.hwc_info.device, property, strlen(property));elseframeworks/base/services/core/jni/rkdisplay/drmresources.cpp
- primary_length = property_get("sys.hwc.device.primary", primary_name, NULL); - extend_length = property_get("sys.hwc.device.extend", extend_name, NULL); + primary_length = property_get("persist.hwc.device.primary", primary_name, NULL); + extend_length = property_get("persist.hwc.device.extend", extend_name, NULL);hardware/rockchip/hwcomposer/drmresources.cpp
- primary_length = property_get("sys.hwc.device.primary", primary_name, NULL); - extend_length = property_get("sys.hwc.device.extend", extend_name, NULL); + primary_length = property_get("persist.hwc.device.primary", primary_name, NULL); + extend_length = property_get("persist.hwc.device.extend", extend_name, NULL);關(guān)于主副屏幕切換問題已在第一篇的服務(wù)中介紹,在U盤rk_lcd_screen文件中添加
????????primary=LVDS(主屏幕顯示) ????????extend=HDMI-A(副屏幕顯示) 服務(wù)會將設(shè)置的屏幕添加到系統(tǒng)屬性中。總結(jié)
以上是生活随笔為你收集整理的rk3288 开机动态切换lvds屏幕显示(三)主副屏幕设置的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Maya 2013 语言切换
- 下一篇: 51单片机_9-2 8x8点阵动画显示