HDMI PHY ON/OFF via sysfs 관련

Post Reply
swamp0613
Posts: 42
Joined: Tue Aug 20, 2019 5:54 pm
languages_spoken: korean
ODROIDs: C2
Has thanked: 0
Been thanked: 0
Contact:

HDMI PHY ON/OFF via sysfs 관련

Unread post by swamp0613 » Wed Dec 04, 2019 3:35 pm

문의사항이 있습니다.
C2 에 안드로이드를 올려 테스트 하고 있습니다.
echo 0 > /sys/class/amhdmitx/amhdmitx0/phy 로 Hdmi off 를 하면 수초 후

Code: Select all

[  379.995640@0] hdmitx: plugout
[  380.294677@0] hdmitx: system: irq 80000002
[  380.623489@0] hdmitx: plugin
[  380.753031@0] 00ffffffffffff003e048023000000001d1c0103804022782a4e65a9554d9c26
[  380.753031@0] 105054a54b00714f81c0810081809500a9c0b300010165d200c8f0703e805830
[  380.753031@0] 3500555c2100001a04740030f2705a8030203500204f3100001a000000fc0033
[  380.753031@0] 32344b532d482d48444d4933000000fd001e4b1f8c3c000a202020202020019b
[  380.753031@0] 
[  380.753031@0] 
[  380.779428@0] 020341f14f61605f5e5d101f200413121103020123097f07830100006d030c00
[  380.779428@0] 1000383c20006003020167d85dc401788803e305ff01e20f0300e60607016053
[  380.779428@0] 460e1f008051001e3040803700615c2100001e565e00a0a0a029503020360061
[  380.779428@0] 5c2100001e023a801871382d40582c4500615c2100001e0000000000000000aa
[  380.779428@0] 
[  380.779428@0] 
[  380.811332@0] EDID Parser:
[  380.814027@0] hdmitx: edid: find IEEEOUT
[  380.817875@0] 
[  380.819480@0] hdmitx: video: get current mode: 2160p30hz
[  380.824789@0] hdmitx: system: already init VIC = 0  Now VIC = 95
[  380.830690@0] hdmitx: rx has SCDC present indicator
[  380.837551@0] hdmitx: ddc rd8b error 0x54 0x01
[  380.839918@0] hdmirx version is 2.0
[  380.851390@0] hdmitx: system: set pll
[  380.851405@0] hdmitx: system: param->VIC:95
[  380.853612@0] hdmitx: set clk of VIC = 95 done
[  380.857976@0] hdmitx: set enc for VIC: 95
[  380.861977@0] hdmitx_set_hw[4552] set VIC = 95
[  380.995482@0] hdmitx: system: phy setting done
[  381.024502@0] Sink is HDMI device
[  381.024536@0] Source reading EDID
[  381.053501@0] hdmtix: set audio
[  381.053525@0] hdmitx tx_aud_src = 0
[  381.054478@0] hdmitx: system: irq 80000001
[  381.058622@0] Start = 0x10000100   End = 0x100001ff
[  381.063381@0] [0x10000103]: 0x00000008
[  381.067107@0] hdmitx aud_n_para = 6144
[  381.070815@0] hdmitx set channel status
[  381.074587@0] [0x10000104]: 0x00000001
[  381.078414@0] [0x10000170]: 0x00000010
[  381.081998@0] [0x10000180]: 0x000000ff
[  381.085791@0] hdmtix: set audio
[  381.088809@0] hdmitx tx_aud_src = 0
[  381.092277@0] hdmitx aud_n_para = 6144
[  381.095990@0] [0x10000181]: 0x000000ff
[  381.099674@0] [0x10000182]: 0x00000003
[  381.103371@0] [0x10000183]: 0x00000007
[  381.107138@0] hdmitx set channel status
[  381.111346@0] [0x10000184]: 0x0000003f
[  381.118000@0] [0x10000185]: 0x00000002
[  381.118299@0] [0x10000187]: 0x000000ff
[  381.122015@0] [0x10000188]: 0x00000003
이런 커널 메세지가 나오고 자동으로 Hdmi ON 이 됩니다.
어떤증상인가요?

User avatar
odroid
Site Admin
Posts: 32677
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 209 times
Been thanked: 364 times
Contact:

Re: HDMI PHY ON/OFF via sysfs 관련

Unread post by odroid » Wed Dec 04, 2019 3:37 pm

boot.ini파일을 수정하여 아래 옵션을 "1"로 변경해 보시길 바랍니다. 아니면 ODROID-Utility App 옵션 설정에도 비슷한 기능이 있는것으로 기억합니다.

Code: Select all

suspend_hdmiphy=0

swamp0613
Posts: 42
Joined: Tue Aug 20, 2019 5:54 pm
languages_spoken: korean
ODROIDs: C2
Has thanked: 0
Been thanked: 0
Contact:

Re: HDMI PHY ON/OFF via sysfs 관련

Unread post by swamp0613 » Wed Dec 04, 2019 4:29 pm

suspend_hdmiphy=0 를 1로 변경해도 같은 결과가 나옵니다.

Code: Select all

[   73.663660@0] hdmitx: system: irq 80000004
[   73.663718@0] hdmitx: plugout
[   73.963061@0] hdmitx: system: irq 80000002
[   74.292799@0] hdmitx: plugin
[   74.421663@0] 00ffffffffffff003e048023000000001d1c0103804022782a4e65a9554d9c26
[   74.421663@0] 105054a54b00714f81c0810081809500a9c0b300010165d200c8f0703e805830
[   74.421663@0] 3500555c2100001a04740030f2705a8030203500204f3100001a000000fc0033
[   74.421663@0] 32344b532d482d48444d4933000000fd001e4b1f8c3c000a202020202020019b
[   74.421663@0] 
[   74.421663@0] 
[   74.448081@0] 020341f14f61605f5e5d101f200413121103020123097f07830100006d030c00
[   74.448081@0] 1000383c20006003020167d85dc401788803e305ff01e20f0300e60607016053
[   74.448081@0] 460e1f008051001e3040803700615c2100001e565e00a0a0a029503020360061
[   74.448081@0] 5c2100001e023a801871382d40582c4500615c2100001e0000000000000000aa
[   74.448081@0] 
[   74.448081@0] 
[   74.480206@0] EDID Parser:
[   74.482646@0] hdmitx: edid: find IEEEOUT
[   74.486523@0] 
[   74.488114@0] hdmitx: video: get current mode: 2160p60hz
[   74.493425@0] hdmitx: system: already init VIC = 0  Now VIC = 97
[   74.499317@0] hdmitx: rx has SCDC present indicator
[   74.506179@0] hdmitx: ddc rd8b error 0x54 0x01
[   74.508546@0] hdmirx version is 2.0
[   74.511988@0] hdmitx: system: set pll
[   74.515632@0] hdmitx: system: param->VIC:97
[   74.519786@0] hdmitx: set clk of VIC = 97 done
[   74.524188@0] hdmitx: set enc for VIC: 97
[   74.528133@0] hdmitx_set_hw[4552] set VIC = 97
[   74.654790@0] hdmitx: system: phy setting done
[   74.654817@0] hdmitx: system: irq 80000001
[   74.657780@0] Start = 0x10000100   End = 0x100001ff
[   74.662509@0] [0x10000104]: 0x00000001
[   74.666380@0] [0x10000180]: 0x000000ff
[   74.669915@0] [0x10000181]: 0x000000ff
[   74.673699@0] [0x10000182]: 0x00000003
[   74.677351@0] [0x10000183]: 0x00000007
[   74.681031@0] [0x10000184]: 0x0000003f
[   74.684773@0] [0x10000185]: 0x00000002
[   74.688457@0] [0x10000187]: 0x000000ff
[   74.692177@0] [0x10000188]: 0x00000003
[   74.723795@0] Sink is HDMI device
[   74.723813@0] Source reading EDID
[   74.752790@0] hdmtix: set audio
[   74.752810@0] hdmitx tx_aud_src = 0
[   74.753775@0] hdmitx aud_n_para = 24576
[   74.757576@0] hdmitx set channel status
[   74.761436@0] hdmtix: set audio
[   74.764481@0] hdmitx tx_aud_src = 0
[   74.767932@0] hdmitx aud_n_para = 24576
[   74.771743@0] hdmitx set channel status
[   75.512817@0] hdmitx20: rx scrambler status

User avatar
odroid
Site Admin
Posts: 32677
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 209 times
Been thanked: 364 times
Contact:

Re: HDMI PHY ON/OFF via sysfs 관련

Unread post by odroid » Wed Dec 04, 2019 4:37 pm

ODROID-Utility app 메뉴에 HDMI 전원 관리 메뉴가 있는지 확인 부탁드립니다.

swamp0613
Posts: 42
Joined: Tue Aug 20, 2019 5:54 pm
languages_spoken: korean
ODROIDs: C2
Has thanked: 0
Been thanked: 0
Contact:

Re: HDMI PHY ON/OFF via sysfs 관련

Unread post by swamp0613 » Wed Dec 04, 2019 5:10 pm

확인해보았지만 hdmi-cec 메뉴가 있고
HDMI self-adaption, CEC Switch 만 있습니다.
그 밖에 HDMI 관련메뉴는 없어보입니다.

swamp0613
Posts: 42
Joined: Tue Aug 20, 2019 5:54 pm
languages_spoken: korean
ODROIDs: C2
Has thanked: 0
Been thanked: 0
Contact:

Re: HDMI PHY ON/OFF via sysfs 관련

Unread post by swamp0613 » Wed Dec 04, 2019 5:35 pm

boot.ini 에서 hdp 를 disable 하면 정상적으로 동작하긴 합니다. hotplug 때문에 그러는것 같은데 해당 옵션을 disable 하면
다른쪽에서 문제가 발생하지 않을까 예상됩니다.

User avatar
odroid
Site Admin
Posts: 32677
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 209 times
Been thanked: 364 times
Contact:

Re: HDMI PHY ON/OFF via sysfs 관련

Unread post by odroid » Thu Dec 05, 2019 9:50 am

HPD 설정은 HDMI cable을 제거했다가 다시 연결할때 display 드라이버를 다시 초기화할지 여부를 결정하는 옵션으로 기억합니다.
별다른 부작용은 없을것으로 생각됩니다만, 케이블을 여러번 탈착해보는 테스트는 필요해 보입니다.

swamp0613
Posts: 42
Joined: Tue Aug 20, 2019 5:54 pm
languages_spoken: korean
ODROIDs: C2
Has thanked: 0
Been thanked: 0
Contact:

Re: HDMI PHY ON/OFF via sysfs 관련

Unread post by swamp0613 » Thu Dec 05, 2019 10:10 am

일단 테스트는 많이 해봐야 겠네요 해당사항 관련해서는 업데이트 예정이 있으신가요?

User avatar
odroid
Site Admin
Posts: 32677
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 209 times
Been thanked: 364 times
Contact:

Re: HDMI PHY ON/OFF via sysfs 관련

Unread post by odroid » Thu Dec 05, 2019 10:18 am

Android의 screensaver 프레임웍과 연동되어있다면 sysfs에서의 설정이 override 될수도 있습니다만 관련 기능을 확인해 보도록 하겠습니다.

User avatar
codewalker
Posts: 786
Joined: Mon Feb 25, 2013 11:03 am
languages_spoken: english
ODROIDs: all
Has thanked: 30 times
Been thanked: 31 times
Contact:

Re: HDMI PHY ON/OFF via sysfs 관련

Unread post by codewalker » Thu Dec 05, 2019 10:45 am

Settings ->Display에서 Sleep을 15 sec으로 바꾸고 Daydream을 off 하시면 HDMI가 15초 화면과 전원이 꺼집니다.
그리고 외부 입력이 없으면 화면 꺼진 상태로 유지 됩니다.
swamp0613 wrote:
Wed Dec 04, 2019 3:35 pm
문의사항이 있습니다.
C2 에 안드로이드를 올려 테스트 하고 있습니다.
echo 0 > /sys/class/amhdmitx/amhdmitx0/phy 로 Hdmi off 를 하면 수초 후

Code: Select all

[  379.995640@0] hdmitx: plugout
[  380.294677@0] hdmitx: system: irq 80000002
[  380.623489@0] hdmitx: plugin
[  380.753031@0] 00ffffffffffff003e048023000000001d1c0103804022782a4e65a9554d9c26
[  380.753031@0] 105054a54b00714f81c0810081809500a9c0b300010165d200c8f0703e805830
[  380.753031@0] 3500555c2100001a04740030f2705a8030203500204f3100001a000000fc0033
[  380.753031@0] 32344b532d482d48444d4933000000fd001e4b1f8c3c000a202020202020019b
[  380.753031@0] 
[  380.753031@0] 
[  380.779428@0] 020341f14f61605f5e5d101f200413121103020123097f07830100006d030c00
[  380.779428@0] 1000383c20006003020167d85dc401788803e305ff01e20f0300e60607016053
[  380.779428@0] 460e1f008051001e3040803700615c2100001e565e00a0a0a029503020360061
[  380.779428@0] 5c2100001e023a801871382d40582c4500615c2100001e0000000000000000aa
[  380.779428@0] 
[  380.779428@0] 
[  380.811332@0] EDID Parser:
[  380.814027@0] hdmitx: edid: find IEEEOUT
[  380.817875@0] 
[  380.819480@0] hdmitx: video: get current mode: 2160p30hz
[  380.824789@0] hdmitx: system: already init VIC = 0  Now VIC = 95
[  380.830690@0] hdmitx: rx has SCDC present indicator
[  380.837551@0] hdmitx: ddc rd8b error 0x54 0x01
[  380.839918@0] hdmirx version is 2.0
[  380.851390@0] hdmitx: system: set pll
[  380.851405@0] hdmitx: system: param->VIC:95
[  380.853612@0] hdmitx: set clk of VIC = 95 done
[  380.857976@0] hdmitx: set enc for VIC: 95
[  380.861977@0] hdmitx_set_hw[4552] set VIC = 95
[  380.995482@0] hdmitx: system: phy setting done
[  381.024502@0] Sink is HDMI device
[  381.024536@0] Source reading EDID
[  381.053501@0] hdmtix: set audio
[  381.053525@0] hdmitx tx_aud_src = 0
[  381.054478@0] hdmitx: system: irq 80000001
[  381.058622@0] Start = 0x10000100   End = 0x100001ff
[  381.063381@0] [0x10000103]: 0x00000008
[  381.067107@0] hdmitx aud_n_para = 6144
[  381.070815@0] hdmitx set channel status
[  381.074587@0] [0x10000104]: 0x00000001
[  381.078414@0] [0x10000170]: 0x00000010
[  381.081998@0] [0x10000180]: 0x000000ff
[  381.085791@0] hdmtix: set audio
[  381.088809@0] hdmitx tx_aud_src = 0
[  381.092277@0] hdmitx aud_n_para = 6144
[  381.095990@0] [0x10000181]: 0x000000ff
[  381.099674@0] [0x10000182]: 0x00000003
[  381.103371@0] [0x10000183]: 0x00000007
[  381.107138@0] hdmitx set channel status
[  381.111346@0] [0x10000184]: 0x0000003f
[  381.118000@0] [0x10000185]: 0x00000002
[  381.118299@0] [0x10000187]: 0x000000ff
[  381.122015@0] [0x10000188]: 0x00000003
이런 커널 메세지가 나오고 자동으로 Hdmi ON 이 됩니다.
어떤증상인가요?

swamp0613
Posts: 42
Joined: Tue Aug 20, 2019 5:54 pm
languages_spoken: korean
ODROIDs: C2
Has thanked: 0
Been thanked: 0
Contact:

Re: HDMI PHY ON/OFF via sysfs 관련

Unread post by swamp0613 » Thu Dec 05, 2019 3:12 pm


Android framework 을 사용해서 screen 을 끄면 가능합니다.
C2 Application Note 에 나와있는대로 sysfs 를 사용하면 위와같은 증상이 발생되서 말씀드렸습니다.
답변 감사합니다.

User avatar
odroid
Site Admin
Posts: 32677
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 209 times
Been thanked: 364 times
Contact:

Re: HDMI PHY ON/OFF via sysfs 관련

Unread post by odroid » Thu Dec 05, 2019 5:20 pm

sysfs를 직접 제어하는 방식은 우분투나 일반 리눅스를 사용할때만 가능한것 같습니다.
안드로이드 프레임웍과 상충되는 부분이 있어 지원이 곤란해 보입니다.

위키 문서에 관련 내용 업데이트 하였습니다.
https://wiki.odroid.com/odroid-c2/appli ... _via_sysfs

Post Reply

Return to “C0/C1/C1+/C2”

Who is online

Users browsing this forum: No registered users and 0 guests