From: Bruno =?UTF-8?B?UHLDqW1vbnQ=?= Subject: Re: How to find out modeline without attaching actual device? Date: Sun, 12 Aug 2012 18:17:39 +0200 Message-ID: <20120812181739.789466e7@neptune.home> References: <1344784193.4275.21.camel@mattotaupa> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from smtprelay.restena.lu (smtprelay.restena.lu [158.64.1.62]) by gabe.freedesktop.org (Postfix) with ESMTP id DBAB09E7EB for ; Sun, 12 Aug 2012 09:27:24 -0700 (PDT) In-Reply-To: <1344784193.4275.21.camel@mattotaupa> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org Errors-To: dri-devel-bounces+sf-dri-devel=m.gmane.org@lists.freedesktop.org To: Paul Menzel Cc: dri-devel@lists.freedesktop.org List-Id: dri-devel@lists.freedesktop.org Hi Paul, On Sun, 12 August 2012 Paul Menzel wrote: > Dear Linux folks, > > regarding modelines problems with some TVs [1] and EDID quirks, Ian sent > nice patches for [2], is there a way to test what modeline the DRM > subsystem would choose without actually attaching the device? > > The problem is, the TV is at a different place and I rarely have access > to it. So it would be great if I could just use some kind of simulator > and pass the EDID to it, what connector it is on (though this should not > matter) and I get the calculated modeline as a result. > > This should be enough since I already know what modeline works. I think you can, by plugging a monitor of your choice and injecting the EDID you want to test with drm_kms_helper's edid_firmware parameter. It will then load the EDID from /lib/firmware/ instead of asking the monitor. Select CONFIG_DRM_LOAD_EDID_FIRMWARE, then when loading drm_kms_helper.ko set edid_firmware=VGA1:edid/myedid.bin module option to load EDID from /lib/firmware/edid/myedid.bin. See also Documentation/EDID/HOWTO.txt Bruno > Thanks, > > Paul > > > [1] https://bugs.freedesktop.org/show_bug.cgi?id=26294 > [2] http://lists.freedesktop.org/archives/dri-devel/2012-August/026264.html