From owner-freebsd-current@FreeBSD.ORG Thu Jun 2 15:11:56 2005 Return-Path: X-Original-To: current@freebsd.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6E3A116A41C; Thu, 2 Jun 2005 15:11:56 +0000 (GMT) (envelope-from antoine@mna75-2-82-67-196-50.fbx.proxad.net) Received: from barton.dreadbsd.org (madhouse.dreadbsd.org [82.67.196.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id DEF7B43D4C; Thu, 2 Jun 2005 15:11:55 +0000 (GMT) (envelope-from antoine@mna75-2-82-67-196-50.fbx.proxad.net) Received: from barton.dreadbsd.org (localhost [127.0.0.1]) by barton.dreadbsd.org (8.13.3/8.13.1) with ESMTP id j52FACQd018109; Thu, 2 Jun 2005 17:11:55 +0200 (CEST) (envelope-from antoine@mna75-2-82-67-196-50.fbx.proxad.net) Received: (from antoine@localhost) by barton.dreadbsd.org (8.13.3/8.13.1/Submit) id j52FACme018108; Thu, 2 Jun 2005 17:10:12 +0200 (CEST) (envelope-from antoine) Date: Thu, 2 Jun 2005 17:10:12 +0200 From: Antoine Brodin To: Antoine Brodin Message-Id: <20050602171012.61b4568e.antoine.brodin@laposte.net> In-Reply-To: <20050602134523.7adcf516.antoine.brodin@laposte.net> References: <20050602134523.7adcf516.antoine.brodin@laposte.net> X-Mailer: Sylpheed version 1.9.12 (GTK+ 2.6.7; i386-portbld-freebsd6.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: delphij@freebsd.org, current@freebsd.org Subject: Re: Recent vesa changes X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Jun 2005 15:11:56 -0000 Antoine Brodin wrote: > Hi, > > The recent vesa changes cause a problem on my laptop. > During startup, when ispcvt is called by syscons_precmd > (in /etc/rc.d/syscons), it clears my screen and the screen keeps > cleared. > > I investigated a bit, and chmod'ing -x ispcvt solves the problem. > > Vidcontrol -i mode shows that mode 369 is supported so I think that > there is perhaps an ioctl collision between > . this mode: _IO('V', 369 - 256) > . and VGAPCVTID: _IOWR('V',113, struct pcvtid) A quick workaround is attached %%% Index: scvesactl.c =================================================================== RCS file: /home/ncvs/src/sys/dev/syscons/scvesactl.c,v retrieving revision 1.21 diff -u -p -r1.21 scvesactl.c --- scvesactl.c 29 May 2005 08:43:43 -0000 1.21 +++ scvesactl.c 2 Jun 2005 14:56:09 -0000 @@ -115,7 +115,9 @@ vesa_ioctl(struct cdev *dev, u_long cmd, mode = (cmd & 0xff) + M_VESA_BASE; - if ((mode > M_VESA_FULL_1280) && + /* Avoid collisions with pcvt. */ + if (((cmd & IOC_DIRMASK) == IOC_VOID) && + (mode > M_VESA_FULL_1280) && (mode < M_VESA_MODE_MAX)) return sc_set_graphics_mode(scp, tp, mode); } %%%