From owner-freebsd-stable Fri Feb 28 4:51:38 2003 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D719737B401 for ; Fri, 28 Feb 2003 04:51:36 -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 2158843F93 for ; Fri, 28 Feb 2003 04:51:36 -0800 (PST) (envelope-from Phil@Kernick.org) Message-ID: <3E5F5B57.1000200@Kernick.org> Date: Fri, 28 Feb 2003 23:21:35 +1030 From: Phil Kernick User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.2.1) Gecko/20021130 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-stable Subject: syscons does not restore vidcontrol settings Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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? I've submitted it as a bug with id kern/48777. Thanks, Phil. -- _-_|\ Phil Kernick E-Mail: Phil@Kernick.org / \ ROTFL Enterprises Mobile: 041 61 ROTFL \_.-*_/ v Humourist, satirist, and probably a few more 'ists to boot! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message