레이블이 hdmi인 게시물을 표시합니다. 모든 게시물 표시
레이블이 hdmi인 게시물을 표시합니다. 모든 게시물 표시

2015년 6월 9일 화요일

HDMI Portrait on ODROID-XU/XU3(Lollipop Android-5.1.1) CM-12.1

First boot Landscape.

Set HDMI Rotation at ODROID-Utility app.


Rotated Screen and Reboot.


After boot.

Run quick setting.

Landscape->Auto-rotate -> Portrait
Screen is rotated.

Reboot.


Screen is rotate automatically.



Patch for HDMI Portrait Screen.

https://github.com/codewalkerster/android_frameworks_base-1/commit/d2ad29b868e80e9c66222e870d9127a890e36137

https://github.com/codewalkerster/android_device_hardkernel_odroidxu3-1/commit/aa8c0fe4d5e059206009c62fd67589436ec71b62

2014년 6월 27일 금요일

Optimized settings for Low DPI


Resolution : 1280 x 720
HDMI : 720P
ro.sf.lcd_density : 180


Resolution : 640 x 480
HDMI : 480P
ro.sf.lcd_density : 120


change resolution
# vi /sdcard/boot.ini

ODROID4412-UBOOT-CONFIG
setenv v_out "hdmi"
setenv fake_fb "true"
setenv fb_x_res "640"
setenv fb_y_res "480"
setenv hdmi_phy_res "480"
setenv led_blink        "1"
setenv bootcmd      "movi read kernel 0 40008000;movi read rootfs 0 41000000 100
setenv bootargs     "console=/dev/ttySAC1,115200n8 androidboot.console=ttySAC1 v
boot


change density
# su
$ mount -o rw,remount /
$ vi /build.prop
ro.sf.lcd_density=180 <- fix

2013년 7월 12일 금요일

Portrait HDMI for ODROID(Exynos4412)

for Exynos4412(mali)

edit build.prop and add this.

ro.sf.hwrotation=90


http://codewalkerster.blogspot.kr/2013/06/hdmi-screen-rotation-issue-for-odroid.html

edit device/samsung/exynos4/libhdmi/libhdmiservice/SecTVOutService.cpp


#include <cutils/properties.h>

void SecTVOutService::setHdmiRotate(uint32_t rotVal, uint32_t hwcLayer)
{
    //codewalker
    return;


---------------------------------------------------------------------------------------------------------




    void SecTVOutService::setHdmiStatus(uint32_t status)
    {   

        LOGD("%s HDMI cable status = %d", __func__, status);
        {   
            Mutex::Autolock _l(mLock);

            bool hdmiCableInserted = (bool)status;

            if (mHdmiCableInserted == hdmiCableInserted)
                return;

            if (hdmiCableInserted == true) {
                if (mSecHdmi.connect() == false) {
                    LOGE("%s::mSecHdmi.connect() fail", __func__);
                    hdmiCableInserted = false;
                }   
        #if 1  //yqf, 2012-6-18, keep it, first plug in cable with device landscape mode    
            else{ 
                   //added yqf, STAR00030984 & update roate value to hdmi after connect->disconnect->connect
                //codewalker
                int angle = 0;
                char value[PROPERTY_VALUE_MAX]; 
                property_get("ro.sf.hwrotation", value, NULL); 
                if (value != NULL)
                    angle = atoi(value);

                     mSecHdmi.setUIRotation(globalRotate, angle);
            if(mSecHdmi.mRotateInfoChange)
                mSecHdmi.mRotateInfoChange=false;
                    } 








2013년 6월 20일 목요일

HDMI screen rotation issue for ODROID(Exynos4412)

for Exynos4412(mali)

1080P(Full HD)

Tumblr.


720P -> enable Portrait HDMI Screen



1080P -> not allow Portrait HDMI Screen.





device/samsung/exynos4/libhdmi/libhdmiservice/SecTVOutService.cpp


291     void SecTVOutService::setHdmiRotate(uint32_t rotVal, uint32_t hwcLayer)
292     {
293         //codewalker
294         // 1080p is spec out.
295         if (mLCD_height == 1080)
296             return;