HDMI disconnect behaviour

Moderators: odroid, mdrjr

HDMI disconnect behaviour

Unread postby benwillcox » Wed May 09, 2018 5:38 pm

Hi all,

Not sure if this is the best place for my issue, but I have a C2 with Android 6.0.1, and have noticed some Apps have an unwanted issue when I change my video board to another input and back again.
I guess that the C2 sees effectively the HDMI disconnect when I change my video board to VGA input, which causes TomTom navigator to redraw the screen when I switch back, and Netflix for example immediately restarts playback from the beginning when this happens.
Not sure if there is any way to block this from happening? I have my resolution fixed to 800x480 in Odroid Utility.

Thanks
Ben
benwillcox
 
Posts: 99
Joined: Wed Oct 05, 2016 6:34 pm
Location: United Kingdom
languages_spoken: english
ODROIDs: C1+
C2

Re: HDMI disconnect behaviour

Unread postby odroid » Thu May 10, 2018 1:39 am

Try to change "HPD" hot-plug-detect option in boot.ini file.
User avatar
odroid
Site Admin
 
Posts: 27740
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: HDMI disconnect behaviour

Unread postby benwillcox » Fri May 11, 2018 5:27 am

Thanks for the reply, I set:

setenv disablehpd "true"

but unfortunately it didn't make a difference. Is there any other option I could try?

Thanks,
Ben
benwillcox
 
Posts: 99
Joined: Wed Oct 05, 2016 6:34 pm
Location: United Kingdom
languages_spoken: english
ODROIDs: C1+
C2

Re: HDMI disconnect behaviour

Unread postby odroid » Fri May 11, 2018 6:43 am

Something weird since the HPD signal is the only way to check the HDMI connection.
What happens on the TomTom navigator when you unplug and plug the HDMI cable several times?
Does it always redraw the map?

Can you check "dmesg" output on the terminal app to doublecheck "disablehpd" Kernel parameter settigs?
User avatar
odroid
Site Admin
 
Posts: 27740
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: HDMI disconnect behaviour

Unread postby benwillcox » Thu May 17, 2018 3:10 am

Hi, thanks for the advice.

I checked the dmesg output and the disablehpd is set to true in the kernel parameters - in fact unplugging and plugging the HDMI doesn't cause the problem. It's only when I switch the video board (RTD2662 based) to another input and back again.
Could it be something like the video board sending some EDID data to the Odroid?

Ben
benwillcox
 
Posts: 99
Joined: Wed Oct 05, 2016 6:34 pm
Location: United Kingdom
languages_spoken: english
ODROIDs: C1+
C2

Re: HDMI disconnect behaviour

Unread postby odroid » Thu May 17, 2018 5:21 am

It seems to be a possible root cause.
Set the resolution to fixed 800x480 by editing the boot.ini file to skip the display detection process.
User avatar
odroid
Site Admin
 
Posts: 27740
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: HDMI disconnect behaviour

Unread postby benwillcox » Sat May 19, 2018 2:05 am

Hi, I looked in boot.ini but the resolution was already fixed and auto-detect set to false (I had set these already in Odroid Utility which I think changes these settings).
Is there anything else I could try?

Thanks,
Ben
benwillcox
 
Posts: 99
Joined: Wed Oct 05, 2016 6:34 pm
Location: United Kingdom
languages_spoken: english
ODROIDs: C1+
C2

Re: HDMI disconnect behaviour

Unread postby odroid » Sat May 19, 2018 4:16 am

Can you show us your boot.ini file?
User avatar
odroid
Site Admin
 
Posts: 27740
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: HDMI disconnect behaviour

Unread postby benwillcox » Sat May 19, 2018 5:33 am

Here it is:

Code: Select all
ODROIDC2-UBOOT-CONFIG

setenv dtbaddr 0x1000000
setenv loadaddr 0x20000000

# Resolution Configuration
# 'hdmimode' must be one of below to configure display resolution within
# supported by your TV or monitor.
#    Symbol             | Resolution
# ----------------------+-------------
#    "480x320p60hz"     | 480x320 Progressive 60Hz
#    "480p60hz"         | 720x480 Progressive 60Hz
#    "576p50hz"         | 720x576 Progressive 50Hz
#    "720p60hz"         | 1280x720 Progressive 60Hz
#    "720p50hz"         | 1280x720 Progressive 50Hz
#    "1080p60hz"        | 1920x1080 Progressive 60Hz
#    "1080p50hz"        | 1920x1080 Progressive 50Hz
#    "1080p30hz"        | 1920x1080 Progressive 30Hz
#    "1080p24hz"        | 1920x1080 Progressive 24Hz
#    "1080i60hz"        | 1920x1080 Interlaced 60Hz
#    "1080i50hz"        | 1920x1080 Interlaced 50Hz
#    "2160p60hz"        | 3840x2160 Progressive 60Hz
#    "2160p50hz"        | 3840x2160 Progressive 50Hz
#    "2160p30hz"        | 3840x2160 Progressive 30Hz
#    "2160p25hz"        | 3840x2160 Progressive 25Hz
#    "2160p24hz"        | 3840x2160 Progressive 24Hz
#    "2160p60hz420"     | 3840x2160 Progressive 60Hz YCbCr 4:2:0
#    "2160p50hz420"     | 3840x2160 Progressive 50Hz YCbCr 4:2:0
#    "640x480p60hz"     | 640x480 Progressive 60Hz
#    "800x480p60hz"     | 800x480 Progressive 60Hz
#    "800x600p60hz"     | 800x600 Progressive 60Hz
#    "1024x600p60hz"    | 1024x600 Progressive 60Hz
#    "1024x768p60hz"    | 1024x768 Progressive 60Hz
#    "1280x800p60hz"    | 1280x800 Progressive 60Hz
#    "1280x1024p60hz"   | 1280x1024 Progressive 60Hz
#    "1360x768p60hz"    | 1360x768 Progressive 60Hz
#    "1440x900p60hz"    | 1440x900 Progressive 60Hz
#    "1600x900p60hz"    | 1600x900 Progressive 60Hz
#    "1600x1200p60hz"   | 1600x1200 Progressive 60Hz
#    "1680x1050p60hz"   | 1680x1050 Progressive 60Hz
#    "1920x1200p60hz"   | 1920x1200 Progressive 60Hz
#    "2560x1080p60hz"   | 2560x1080 Progressive 60Hz
#    "2560x1440p60hz"   | 2560x1440 Progressive 60Hz
#    "2560x1600p60hz"   | 2560x1600 Progressive 60Hz
#    "3440x1440p60hz"   | 3440x1440 Progressive 60Hz
setenv hdmimode "800x480p60hz"

setenv rootopt "root=/dev/mmcblk0p2 rw init=/init rootwait"
setenv consoleopt "console=ttyS0,115200"
setenv androidopt "androidboot.hardware=odroidc2 androidboot.serialno=${fbt_id#}"
setenv logoopt "osd1,loaded,${fb_addr},${hdmimode}"
setenv selinuxopt "androidboot.selinux=disabled"

# HDMI/DVI Mode Configuration
# This will enforce the signal type of display
# "hdmi" - For HDMI interface
# "dvi" - For DVI interface
setenv vout_mode "hdmi"

# Display Auto Detection
# "false" or "true"
setenv display_autodetect "false"

# HPD enable/disable option
setenv disablehpd "true"

# Overscan offset configuration
# All offsets are zero and can be tuned by manual or ODROID Utility
setenv overscan_top "0"
setenv overscan_left "0"
setenv overscan_bottom "0"
setenv overscan_right "0"
setenv led_onoff "on"
suspend_hdmiphy=0

# Force HDMI to use RGB colorspace regardless of TV request
setenv hdmi_forcergb "0"      # Disabled
# setenv hdmi_forcergb "1"        # Enabled

# max cpu frequency in dvfs table / in MHz unit
# setenv max_freq "2016"  # 2.016GHz
# setenv max_freq "1944"  # 1.944GHz
# setenv max_freq "1920"  # 1.920GHz
# setenv max_freq "1896"  # 1.896GHz
# setenv max_freq "1752"  # 1.752GHz
# setenv max_freq "1680"  # 1.680GHz
# setenv max_freq "1656"  # 1.656GHz
# setenv max_freq "1536"  # 1.536GHz
setenv max_freq "1752"

# max cpu-cores
# setenv maxcpus "1"
# setenv maxcpus "2"
# setenv maxcpus "3"
setenv maxcpus "4"

# disable vu7
setenv disable_vu7 "false"

# invert touch screen x,y
setenv touch_invert_x "false"
setenv touch_invert_y "false"

# gpio power key : J2 (2x20) Pin#35, GPIOY.BIT3
#setenv gpiopower "214"

# usb timing tweak
setenv usbmulticam "false"

setenv hdmitx "hdmitx=${cecconfig}"
if test "${hdmi_forcergb}" = "1"; then setenv hdmitx "hdmitx=forcergb"; fi

if test "${display_autodetect}" = "true"; then usb pwren; hdmitx edid; fi
if test "${hdmimode}" = "custombuilt"; then setenv cmode "modeline=${modeline}"; fi

# Enable backlight_pwm
# disable : backlight "no"
# ODROID-VU5/7 : backlight "yes"
# ODROID-VU8 : backlight "invert"
setenv backlight_pwm "no"

showddrclk

setenv bootargs "${rootopt} ${consoleopt} hdmimode=${hdmimode} ${cmode} ${hdmitx} vout=${vout_mode} disablehpd=${disablehpd} logo=${logoopt} ${androidopt} ${selinuxopt} suspend_hdmiphy=${suspend_hdmiphy} led_onoff=${led_onoff} max_freq=${max_freq} maxcpus=${maxcpus} disable_vu7=${disable_vu7} touch_invert_x=${touch_invert_x} touch_invert_y=${touch_invert_y} usbmulticam=${usbmulticam} gpiopower=${gpiopower} backlight_pwm=${backlight_pwm} ddrclock=${ddrclock}"

save

showlogo ${hdmimode}
#usb pwren

movi read dtb 0 ${dtbaddr}
# load kernel from vat or boot partition.
movi read boot 0 ${loadaddr}
#fatload mmc 0:1 ${loadaddr} Image_android
booti ${loadaddr} - ${dtbaddr}
benwillcox
 
Posts: 99
Joined: Wed Oct 05, 2016 6:34 pm
Location: United Kingdom
languages_spoken: english
ODROIDs: C1+
C2

Re: HDMI disconnect behaviour

Unread postby odroid » Sat May 19, 2018 6:26 am

Right, There is nothing wrong in the boot.ini file.
I have no more idea at this moment.
User avatar
odroid
Site Admin
 
Posts: 27740
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID


Return to Android

Who is online

Users browsing this forum: No registered users and 2 guests