From owner-freebsd-bugs Fri Feb 28 4:50:10 2003 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 13D9A37B401 for ; Fri, 28 Feb 2003 04:50:08 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 991A443F93 for ; Fri, 28 Feb 2003 04:50:04 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id h1SCo4NS028215 for ; Fri, 28 Feb 2003 04:50:04 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id h1SCo4CH028214; Fri, 28 Feb 2003 04:50:04 -0800 (PST) Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 740FA37B401 for ; Fri, 28 Feb 2003 04:49:47 -0800 (PST) Received: from mail.rotfl.com.au (eth1779.sa.adsl.internode.on.net [150.101.235.242]) by mx1.FreeBSD.org (Postfix) with ESMTP id 334A043FCB for ; Fri, 28 Feb 2003 04:49:46 -0800 (PST) (envelope-from philk@rotfl.com.au) Message-Id: <20030228124944.E11C83F3@mail.rotfl.com.au> Date: Fri, 28 Feb 2003 23:19:44 +1030 (CST) From: Phil Kernick Reply-To: Phil Kernick To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: kern/48777: vidcontrol modes not restored on vt switch from X Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 48777 >Category: kern >Synopsis: vidcontrol modes not restored on vt switch from X >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Feb 28 04:50:04 PST 2003 >Closed-Date: >Last-Modified: >Originator: Phil Kernick >Release: FreeBSD 4.8-PRERELEASE i386 >Organization: >Environment: System: FreeBSD catbert.rotfl.com.au 4.8-PRERELEASE FreeBSD 4.8-PRERELEASE #0: Fri Feb 28 18:00:36 CST 2003 root@catbert.rotfl.com.au:/pub/FreeBSD/obj/pub/FreeBSD/branches/4.0-stable/src/sys/CATBERT i386 >Description: When switching virtual console from X to a text console, the vidcontol modes are not restored. >How-To-Repeat: Demonstration of the problem: # vidcontrol VGA_90x30 < /dev/ttyv0 Alt-F9 to switch to XFree86 Alt-F1 to switch back The screen is now in 80x25 mode, but it thinks it's in 90x30, meaning that each line is offset by 10 characters. However, after the screen saver has activated and then been deactivated, the vidcontrol settings are restored. Looking at the XFree86 source, when switching away it does this: ioctl(xf86Info.consoleFd, VT_ACTIVATE, key - KEY_F1 + 1); Looking in src/sys/dev/syscons/syscons.c for this ioctl, we have: return sc_switch_scr(sc, i); sc_switch_scr doesn't ever seem to call scrn_update which restores the screen. Can someone who is a syscons expert have a look at this? >Fix: Not known. >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message