From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sven Luther Subject: Re: Some questions Date: Thu, 6 Mar 2003 11:31:56 +0100 Sender: linux-fbdev-devel-admin@lists.sourceforge.net Message-ID: <20030306103156.GA864@iliana> 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> Mime-Version: 1.0 Return-path: Received: from smtp-out-6.wanadoo.fr ([193.252.19.25] helo=mel-rto6.wanadoo.fr) by sc8-sf-list1.sourceforge.net with esmtp (Exim 3.31-VA-mm2 #1 (Debian)) id 18qsga-0005zC-00 for ; Thu, 06 Mar 2003 02:33:12 -0800 Content-Disposition: inline In-Reply-To: <1046945135.1209.76.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" Content-Transfer-Encoding: 7bit To: Antonino Daplas Cc: Thomas Winischhofer , James Simmons , Linux Fbdev development list 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. Friendly, Sven Luther ------------------------------------------------------- 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