drm: Add built-in EDID set of another common screen resolution
Subsystems (3)
cover drm: Add built-in EDID set of another common screen resolution
Several users were complaining that 1600x1200 screen resolution was lacking. Here is it.
-Carsten.
PATCH 1/1 drm: Add 1600x1200 (UXGA) screen resolution to the built-in EDIDs
The 1600x1200 (UXGA) screen resolution was lacking in the set of built-in selectable EDID screen resolutions that can be used to repair misbehaving monitor firmware.
This patch adds the related data set and expands the documentation.
--- Documentation/EDID/1600x1200.S | 44 ++++++++++++++++++++++++++++++++++++++++ Documentation/EDID/HOWTO.txt | 12 +++++----- drivers/gpu/drm/drm_edid_load.c | 21 ++++++++++++++++++- 3 files changed, 70 insertions(+), 7 deletions(-)
Documentation/EDID/1600x1200.S new file +44 -0
@@ -0,0 +1,44 @@ +/* + 1600x1200.S: EDID data set for standard 1600x1200 60 Hz monitor + + Copyright (C) 2013 Carsten Emde <[email protected]> + + This program is free software; you can redistribute it and/or + modify it under the terms of the GNU General Public License + as published by the Free Software Foundation; either version 2 + of the License, or (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. +*/ + +/* EDID */ +#define VERSION 1 +#define REVISION 3 + +/* Display */ +#define CLOCK 162000 /* kHz */ +#define XPIX 1600 +#define YPIX 1200 +#define XY_RATIO XY_RATIO_4_3 +#define XBLANK 560 +#define YBLANK 50 +#define XOFFSET 64 +#define XPULSE 192 +#define YOFFSET (63+1) +#define YPULSE (63+3) +#define DPI 72 +#define VFREQ 60 /* Hz */ +#define TIMING_NAME "Linux UXGA" +#define ESTABLISHED_TIMINGS_BITS 0x00 /* none */ +#define HSYNC_POL 1 +#define VSYNC_POL 1 +#define CRC 0x9d + +#include "edid.S"
Documentation/EDID/HOWTO.txt +6 -6
@@ -18,12 +18,12 @@ CONFIG_DRM_LOAD_EDID_FIRMWARE was introd individually prepared or corrected EDID data set in the /lib/firmware directory from where it is loaded via the firmware interface. The code (see drivers/gpu/drm/drm_edid_load.c) contains built-in data sets for -commonly used screen resolutions (1024x768, 1280x1024, 1680x1050, -1920x1080) as binary blobs, but the kernel source tree does not contain -code to create these data. In order to elucidate the origin of the -built-in binary EDID blobs and to facilitate the creation of individual -data for a specific misbehaving monitor, commented sources and a -Makefile environment are given here. +commonly used screen resolutions (1024x768, 1280x1024, 1600x1200, +1680x1050, 1920x1080) as binary blobs, but the kernel source tree does +not contain code to create these data. In order to elucidate the origin +of the built-in binary EDID blobs and to facilitate the creation of +individual data for a specific misbehaving monitor, commented sources +and a Makefile environment are given here. To create binary EDID and C source code files from the existing data material, simply type "make".
drivers/gpu/drm/drm_edid_load.c +20 -1
@@ -31,10 +31,11 @@ module_param_string(edid_firmware, edid_MODULE_PARM_DESC (edid_firmware,"Do not probe monitor, use specified EDID blob " "from built-in data or /lib/firmware instead. " ); -#define GENERIC_EDIDS 4 +#define GENERIC_EDIDS 5static char *generic_edid_name[GENERIC_EDIDS ] = {"edid/1024x768.bin" ,"edid/1280x1024.bin" , +"edid/1600x1200.bin" ,"edid/1680x1050.bin" ,"edid/1920x1080.bin" , };
@@ -79,6 +80,24 @@ static u8 generic_edid[GENERIC_EDIDS][12 {0x00 ,0xff ,0xff ,0xff ,0xff ,0xff ,0xff ,0x00 ,0x31 ,0xd8 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 , +0x05 ,0x16 ,0x01 ,0x03 ,0x6d ,0x37 ,0x29 ,0x78 , +0xea ,0x5e ,0xc0 ,0xa4 ,0x59 ,0x4a ,0x98 ,0x25 , +0x20 ,0x50 ,0x54 ,0x00 ,0x00 ,0x00 ,0xa9 ,0x40 , +0x01 ,0x01 ,0x01 ,0x01 ,0x01 ,0x01 ,0x01 ,0x01 , +0x01 ,0x01 ,0x01 ,0x01 ,0x01 ,0x01 ,0x48 ,0x3f , +0x40 ,0x30 ,0x62 ,0xb0 ,0x32 ,0x40 ,0x40 ,0xc0 , +0x13 ,0x00 ,0x2b ,0xa0 ,0x21 ,0x00 ,0x00 ,0x1e , +0x00 ,0x00 ,0x00 ,0xff ,0x00 ,0x4c ,0x69 ,0x6e , +0x75 ,0x78 ,0x20 ,0x23 ,0x30 ,0x0a ,0x20 ,0x20 , +0x20 ,0x20 ,0x00 ,0x00 ,0x00 ,0xfd ,0x00 ,0x3b , +0x3d ,0x4a ,0x4c ,0x11 ,0x00 ,0x0a ,0x20 ,0x20 , +0x20 ,0x20 ,0x20 ,0x20 ,0x00 ,0x00 ,0x00 ,0xfc , +0x00 ,0x4c ,0x69 ,0x6e ,0x75 ,0x78 ,0x20 ,0x55 , +0x58 ,0x47 ,0x41 ,0x0a ,0x20 ,0x20 ,0x00 ,0x9d , + }, + { +0x00 ,0xff ,0xff ,0xff ,0xff ,0xff ,0xff ,0x00 , +0x31 ,0xd8 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x00 ,0x05 ,0x16 ,0x01 ,0x03 ,0x6d ,0x2b ,0x1b ,0x78 ,0xea ,0x5e ,0xc0 ,0xa4 ,0x59 ,0x4a ,0x98 ,0x25 , 0x20, 0x50, 0x54, 0x00, 0x00, 0x00, 0xb3, 0x00,
Re: [PATCH 1/1] drm: Add 1600x1200 (UXGA) screen resolution to the built-in EDIDs
Dear Carsten,
thank you for the patch.
Am Samstag, den 06.04.2013, 18:01 +0200 schrieb Carsten Emde:
Quoted 6 lines
The 1600x1200 (UXGA) screen resolution was lacking in the set of built-in selectable EDID screen resolutions that can be used to repair misbehaving monitor firmware.
This patch adds the related data set and expands the documentation.
Quoted 7 lines
Signed-off-by Carsten Emde <[email protected]>--- Documentation/EDID/1600x1200.S | 44 ++++++++++++++++++++++++++++++++++++++++ Documentation/EDID/HOWTO.txt | 12 +++++----- drivers/gpu/drm/drm_edid_load.c | 21 ++++++++++++++++++- 3 files changed, 70 insertions(+), 7 deletions(-)
Thanks,
Paul
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel