From owner-cvs-src@FreeBSD.ORG Sun May 29 08:43:44 2005 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D611016A41C; Sun, 29 May 2005 08:43:44 +0000 (GMT) (envelope-from delphij@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id B05C443D1D; Sun, 29 May 2005 08:43:44 +0000 (GMT) (envelope-from delphij@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j4T8hicW070576; Sun, 29 May 2005 08:43:44 GMT (envelope-from delphij@repoman.freebsd.org) Received: (from delphij@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j4T8hiHS070575; Sun, 29 May 2005 08:43:44 GMT (envelope-from delphij) Message-Id: <200505290843.j4T8hiHS070575@repoman.freebsd.org> From: Xin LI Date: Sun, 29 May 2005 08:43:44 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/dev/syscons scmouse.c scvesactl.c scvgarndr.c scvidctl.c syscons.c syscons.h src/usr.sbin/vidcontrol vidcontrol.1 vidcontrol.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 29 May 2005 08:43:45 -0000 delphij 2005-05-29 08:43:44 UTC FreeBSD src repository Modified files: sys/dev/syscons scmouse.c scvesactl.c scvgarndr.c scvidctl.c syscons.c syscons.h usr.sbin/vidcontrol vidcontrol.1 vidcontrol.c Log: Add VESA mode support for syscons, which enables the support of 15, 16, 24, and 32 bit modes. To use that, syscons(4) must be built with the compile time option 'options SC_PIXEL_MODE', and VESA support (a.k.a. vesa.ko) must be either loaded, or be compiled into the kernel. Do not return EINVAL when the mouse state is changed to what it already is, which seems to cause problems when you have two mice attached, and applications are not likely obtain useful information through the EINVAL caused by showing the mouse pointer twice. Teach vidcontrol(8) about mode names like MODE_, where is the video mode number from the vidcontrol -i mode output. Also, revert the video mode if something fails. Obtained from: DragonFlyBSD Discussed at: current@ with patch attached [1] PR: kern/71142 [2] Submitted by: Xuefeng DENG [1], Cyrille Lefevre [2] Revision Changes Path 1.37 +6 -12 src/sys/dev/syscons/scmouse.c 1.21 +14 -0 src/sys/dev/syscons/scvesactl.c 1.17 +424 -51 src/sys/dev/syscons/scvgarndr.c 1.33 +24 -8 src/sys/dev/syscons/scvidctl.c 1.436 +6 -0 src/sys/dev/syscons/syscons.c 1.83 +5 -0 src/sys/dev/syscons/syscons.h 1.56 +10 -5 src/usr.sbin/vidcontrol/vidcontrol.1 1.52 +565 -165 src/usr.sbin/vidcontrol/vidcontrol.c