Date: Fri, 28 Feb 2003 23:19:44 +1030 (CST) From: Phil Kernick <philk@rotfl.com.au> To: FreeBSD-gnats-submit@FreeBSD.org Subject: kern/48777: vidcontrol modes not restored on vt switch from X Message-ID: <20030228124944.E11C83F3@mail.rotfl.com.au>
next in thread | raw e-mail | index | archive | help
>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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030228124944.E11C83F3>
