From mboxrd@z Thu Jan 1 00:00:00 1970 From: Antonino Daplas Subject: Re: Some questions Date: 06 Mar 2003 18:51:58 +0800 Sender: linux-fbdev-devel-admin@lists.sourceforge.net Message-ID: <1046947834.1209.89.camel@localhost.localdomain> References: <1046913411.1206.185.camel@localhost.localdomain> <3E670B82.30900@winischhofer.net> <1046942633.1330.54.camel@localhost.localdomain> <3E671848.5020506@winischhofer.net> <1046945135.1209.76.camel@localhost.localdomain> <20030306103156.GA864@iliana> <1046947667.1330.87.camel@localhost.localdomain> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: Received: from pine.compass.com.ph ([202.70.96.37]) by sc8-sf-list1.sourceforge.net with smtp (Exim 3.31-VA-mm2 #1 (Debian)) id 18qsxW-0000No-00 for ; Thu, 06 Mar 2003 02:50:42 -0800 In-Reply-To: <1046947667.1330.87.camel@localhost.localdomain> Errors-To: linux-fbdev-devel-admin@lists.sourceforge.net List-Help: List-Post: List-Subscribe: , List-Id: List-Unsubscribe: , List-Archive: Content-Type: text/plain; charset="us-ascii" To: Antonino Daplas Cc: Sven Luther , Thomas Winischhofer , James Simmons , Linux Fbdev development list On Thu, 2003-03-06 at 18:48, Antonino Daplas wrote: > On Thu, 2003-03-06 at 18:31, Sven Luther wrote: > > On Thu, Mar 06, 2003 at 06:05:37PM +0800, Antonino Daplas wrote: > > > Yes, there is. Using the "stale" pixelclock, htotal and vtotal, > > > calculate hsync and vsync. Compare this with your monitor's limit -- if > > > any fall outside, the entire mode, pixelclock and all is not valid. > > > > > > (see fb_get_mode() and fb_validate_mode() in fbmon.c) > > > > > > And if you use very narrow vsync and hsync ranges, then the "stale" > > > pixelclock will always most certainly be invalid. > > > > BTW, do we have an easy way of knowing if it is an LCD or analog monitor > > which is attached to the card (or even a TV) ? I think the radeonfb > > knows how to do this, not sure though. > > > > There's an EDID parser in fbmon.c. I think it will work only for the > PPC. This is currently used by rivafb and radeonfb. For the rest, either > we implement DDC or just have something similar to XF86Config's > HorizSync and VertRefresh. We can load this either as a kernel/module > option or passed via ioctl/sysfs. > > I'm already doing this with the i810fb (as boot/module option), which > greatly simplified mode switching. > Oops, totally missed your question :-) But yes, I think the EDID block contains information about the monitor type, not sure thogh. Tony ------------------------------------------------------- This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger for complex code. Debugging C/C++ programs can leave you feeling lost and disoriented. TotalView can help you find your way. Available on major UNIX and Linux platforms. Try it free. www.etnus.com