Difference between revisions of "Jetson TX2/28 Display debug"

From eLinux.org
Jump to: navigation, search
(Tips)
Line 9: Line 9:
  
 
==Tips==
 
==Tips==
 +
*Print current mode in dc
 +
sudo cat /sys/kernel/debug/tegradc.X/mode  #X=0,1,2.
 +
*Print current mode in fbcon
 +
sudo cat /sys/class/graphics/fb0/mode  #if more than one fb, just change the fbX to whatever you want.
 
*Capture edid
 
*Capture edid
 
  sudo cat /sys/kernel/debug/tegradc.X/edid  #X=0,1,2.
 
  sudo cat /sys/kernel/debug/tegradc.X/edid  #X=0,1,2.
Line 15: Line 19:
 
# set use_fallback = true; in tegra_edid_get_monspecs() under edid.c.
 
# set use_fallback = true; in tegra_edid_get_monspecs() under edid.c.
 
# fill in the known EDID to default_720p_edid[256].
 
# fill in the known EDID to default_720p_edid[256].
 
 
 
  
 
==Known issues==
 
==Known issues==

Revision as of 23:50, 8 January 2018

Get prepared

This section focuses on debug display driver issue on rel-28.x release.
Drivers of tegra display controller are under kernel source: https://developer.nvidia.com/embedded/downloads
Location:
For T210(TX1)
kernel/display/drivers/video/tegra/dc/
For T186(TX2). Note that TX2 still uses driver code of T210.
kernel/t18x/drivers/video/tegra/dc

Tips

  • Print current mode in dc
sudo cat /sys/kernel/debug/tegradc.X/mode  #X=0,1,2.
  • Print current mode in fbcon
sudo cat /sys/class/graphics/fb0/mode  #if more than one fb, just change the fbX to whatever you want.
  • Capture edid
sudo cat /sys/kernel/debug/tegradc.X/edid  #X=0,1,2.
  • Forcing edid
  1. Prepare a known 256byte EDID.
  2. set use_fallback = true; in tegra_edid_get_monspecs() under edid.c.
  3. fill in the known EDID to default_720p_edid[256].

Known issues