Skip to contentSkip to conversation

drm/edid: request HDMI underscan by default

PATCH Applied Daniel Drake 4 participants 4 messages Feb 27, 2014 – Mar 3, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/edid: request HDMI underscan by default

Working with HDMI TVs is a real pain as they tend to overscan by default, meaning that the pixels around the edge of the framebuffer are not displayed. This is well explained here:
http://mjg59.dreamwidth.org/8705.html

There is a bit in the HDMI info frame that can request that the remote display shows the full pixel data ("underscan"). For the remote display, the HDMI spec states that this is optional - it doesn't have to listen. That means that most TVs will probably ignore this.

But, maybe there are a handful of TVs for which this would help the situation. As we live in a digital world, ask the remote display not to overscan by default.

---
 drivers/gpu/drm/drm_edid.c | 1 +
 1 file changed, 1 insertion(+)

Replaces the patch titled "video: hdmi: request underscan by default" This version moves the change to the DRM layer, as requested by Ville Syrjälä.

drivers/gpu/drm/drm_edid.c +1 -0
index b924306..f8d8a1d 100644
@@ -3599,6 +3599,7 @@ drm_hdmi_avi_infoframe_from_display_mode(struct hdmi_avi_infoframe *frame,
 
 	frame->picture_aspect = HDMI_PICTURE_ASPECT_NONE;
 	frame->active_aspect = HDMI_ACTIVE_ASPECT_PICTURE;
+	frame->scan_mode = HDMI_SCAN_MODE_UNDERSCAN;
 
 	return 0;
 }
Signature · 6 lines
1.8.3.2

_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
Reviewed-by on v1 1/1
#1 lore raw
Quoted 11 lines · Daniel Drake

Working with HDMI TVs is a real pain as they tend to overscan by default, meaning that the pixels around the edge of the framebuffer are not displayed. This is well explained here:
http://mjg59.dreamwidth.org/8705.html

There is a bit in the HDMI info frame that can request that the remote display shows the full pixel data ("underscan"). For the remote display, the HDMI spec states that this is optional - it doesn't have to listen. That means that most TVs will probably ignore this.

Quoted 5 lines

But, maybe there are a handful of TVs for which this would help the situation. As we live in a digital world, ask the remote display not to overscan by default.

Quoted 22 lines
---
 drivers/gpu/drm/drm_edid.c | 1 +
 1 file changed, 1 insertion(+)

Replaces the patch titled "video: hdmi: request underscan by default" This version moves the change to the DRM layer, as requested by Ville Syrjälä.

drivers/gpu/drm/drm_edid.c +1 -0
index b924306..f8d8a1d 100644
@@ -3599,6 +3599,7 @@ drm_hdmi_avi_infoframe_from_display_mode(struct hdmi_avi_infoframe *frame,
 
 	frame->picture_aspect = HDMI_PICTURE_ASPECT_NONE;
 	frame->active_aspect = HDMI_ACTIVE_ASPECT_PICTURE;
+	frame->scan_mode = HDMI_SCAN_MODE_UNDERSCAN;
 
 	return 0;
 }
Signature · 1 line
1.8.3.2
Signature · 2 lines
Ville Syrjälä
Intel OTC
Reviewed-by
#2 lore raw
Quoted 12 lines · Ville Syrjälä
Quoted 11 lines · Daniel Drake

Working with HDMI TVs is a real pain as they tend to overscan by default, meaning that the pixels around the edge of the framebuffer are not displayed. This is well explained here:
http://mjg59.dreamwidth.org/8705.html

There is a bit in the HDMI info frame that can request that the remote display shows the full pixel data ("underscan"). For the remote display, the HDMI spec states that this is optional - it doesn't have to listen. That means that most TVs will probably ignore this.

Quoted 7 lines
Quoted 5 lines

But, maybe there are a handful of TVs for which this would help the situation. As we live in a digital world, ask the remote display not to overscan by default.

As a small note, I never managed to find a TV (out of the 2 I have around) that honour that flag, which is why I haven't pushed that patch before. I also had the hope that we could automatically overscan with the right amount at some point (with some sort of database) and with that flag set, we don't know if the sink is overscanning or not, but then I guess we could include whether the TV honour in that flag in a db as well.

In any case, I echo the review:

Signature · 1 line
Damien
#3 lore raw
Quoted 29 lines · Damien Lespiau
Quoted 12 lines · Ville Syrjälä
Quoted 11 lines · Daniel Drake

Working with HDMI TVs is a real pain as they tend to overscan by default, meaning that the pixels around the edge of the framebuffer are not displayed. This is well explained here:
http://mjg59.dreamwidth.org/8705.html

There is a bit in the HDMI info frame that can request that the remote display shows the full pixel data ("underscan"). For the remote display, the HDMI spec states that this is optional - it doesn't have to listen. That means that most TVs will probably ignore this.

Quoted 7 lines
Quoted 5 lines

But, maybe there are a handful of TVs for which this would help the situation. As we live in a digital world, ask the remote display not to overscan by default.

As a small note, I never managed to find a TV (out of the 2 I have around) that honour that flag, which is why I haven't pushed that patch before. I also had the hope that we could automatically overscan with the right amount at some point (with some sort of database) and with that flag set, we don't know if the sink is overscanning or not, but then I guess we could include whether the TV honour in that flag in a db as well.

Quoted 3 lines

In any case, I echo the review:

Applied to my topic/core-stuff grab-bag branch, thanks for patch&review. -Daniel

Signature · 3 lines
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch