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>
{
//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;property_get("ro.sf.hwrotation", value, NULL);
if (value != NULL)
angle = atoi(value);
if(mSecHdmi.mRotateInfoChange)
mSecHdmi.mRotateInfoChange=false;
}