From mboxrd@z Thu Jan 1 00:00:00 1970 From: Otto Solares Subject: Re: help with consolupdate on modechange in driver Date: Mon, 22 Sep 2003 16:46:25 -0600 Sender: linux-fbdev-devel-admin@lists.sourceforge.net Message-ID: <20030922224625.GB22713@guug.org> References: <20030922181651.GA22713@guug.org> Mime-Version: 1.0 Return-path: Received: from sc8-sf-mx1-b.sourceforge.net ([10.3.1.11] helo=sc8-sf-mx1.sourceforge.net) by sc8-sf-list1.sourceforge.net with esmtp (Cipher TLSv1:DES-CBC3-SHA:168) (Exim 3.31-VA-mm2 #1 (Debian)) id 1A1ZVP-00054s-00 for ; Mon, 22 Sep 2003 15:50:07 -0700 Received: from opensource-ca.org ([168.234.203.30] helo=guug.galileo.edu) by sc8-sf-mx1.sourceforge.net with esmtp (Exim 4.22) id 1A1ZVN-0005Zs-Jk for linux-fbdev-devel@lists.sourceforge.net; Mon, 22 Sep 2003 15:50:05 -0700 Content-Disposition: inline In-Reply-To: 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: James Simmons Cc: Linux Fbdev development list On Mon, Sep 22, 2003 at 07:50:50PM +0100, James Simmons wrote: > > > > I have just implemented modechange in my driver and while it > > > works, the consol *still* thinks we working in the old mode. > > > > > > How do I inform the console layer that the driver (through fbset) > > > have changed the actual mode on the screen? > > > > rivafb has this same problem. > > stty is the program you want to use to change the resolution on a tty. At > present fbset is not functioning. Patches are in the works to restore > this. probably we would not need fbset anymore if drivers support sysfs AND they export valid modes for the current card as the drivers know far better that crappy /etc/fb.modes, any progress or this is not the plan? In other point, i am including fb.h from the latest development linux kernel (2.6.0-test5-bk3) and is not suitable for use from userpace, here is a tiny patch to fix it, but i am not sure if the struct fb_pixmap is needed from userspace as i never have used it? 3a4,5 > #include > #include 4a7 > #include 326,327d328 < #ifdef __KERNEL__ < 345a347 > #ifdef __KERNEL__ 347,348d348 < #include < #include 351d350 < #include -solca ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf