Date: Fri, 28 Feb 2003 23:21:35 +1030 From: Phil Kernick <Phil@Kernick.org> To: freebsd-stable <freebsd-stable@FreeBSD.ORG> Subject: syscons does not restore vidcontrol settings Message-ID: <3E5F5B57.1000200@Kernick.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3E5F5B57.1000200>