From owner-freebsd-hackers Fri Aug 8 22:14:01 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id WAA07943 for hackers-outgoing; Fri, 8 Aug 1997 22:14:01 -0700 (PDT) Received: from nasu.utsunomiya-u.ac.jp (nasu.utsunomiya-u.ac.jp [160.12.128.3]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id WAA07938 for ; Fri, 8 Aug 1997 22:13:57 -0700 (PDT) Received: from outmail.utsunomiya-u.ac.jp (outmail.utsunomiya-u.ac.jp [160.12.196.3]) by nasu.utsunomiya-u.ac.jp (8.8.4+2.7Wbeta4/3.5Wpl3) with ESMTP id NAA02463; Sat, 9 Aug 1997 13:51:28 +0900 (JST) Received: from zodiac.mech.utsunomiya-u.ac.jp (aeVeJv9FYnIvFrspH41ANM6E9k31l+uC@zodiac.mech.utsunomiya-u.ac.jp [160.12.33.1]) by outmail.utsunomiya-u.ac.jp (8.8.4+2.7Wbeta4/3.5Wpl3) with ESMTP id NAA18448; Sat, 9 Aug 1997 13:51:27 +0900 (JST) Received: from zodiac.mech.utsunomiya-u.ac.jp (zodiac.mech.utsunomiya-u.ac.jp [160.12.33.1]) by zodiac.mech.utsunomiya-u.ac.jp (8.7.6+2.6Wbeta7/3.4W/zodiac-May96) with ESMTP id NAA04513; Sat, 9 Aug 1997 13:57:18 +0900 (JST) Message-Id: <199708090457.NAA04513@zodiac.mech.utsunomiya-u.ac.jp> To: Alfred Perlstein cc: hackers@freebsd.org, yokota@zodiac.mech.utsunomiya-u.ac.jp Subject: Re: reset screen hardware? In-reply-to: Your message of "Fri, 08 Aug 1997 12:59:19 GMT." References: Date: Sat, 09 Aug 1997 13:57:17 +0900 From: Kazutaka YOKOTA Sender: owner-freebsd-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >Last night X crashed on me, i thought my machine needed to be rebooted, >but first i tried to telnet into it, i was able and i killed X and had to >restart X twice to get it to work, well everything seemed fine after that, >however my Text consols were all fubar'd and i had no idea how to reset >the text part of my display to i wound up rebooting anyway. > >What could i have done to reset the text screens? Assuming X hasn't put your VGA hardware in a really strange state for which you definitely need VGA hardware reset to restore the screen, you may be able to put your display card back into the text mode by doing the following: 1. Quit X (you may have a garbled screen after this, but don't mind) 1. Login to the system via network. 2. Become root. 3. Load font as precaution. vidcontrol -f 8x16 /usr/share/syscons/fonts/_a_8x16_font_file_name_ 4. vidcontrol VGA_80x30 < /dev/ttyv0 5. Cycle through virtual terminals by pressing CTRL-ALT-Fn on the system's keyboard. The GENERIC kernel has four of them (ttyv0 through ttyv3). 6. vidcontrol VGA_80x25 < /dev/ttyv0 7. Cycle through virtual terminals. The idea is to force the console driver to program the VGA chip. When switching between virtual terminals, the console driver programs the VGA only if the mode of the next virtual terminal is different from the mode of the previous terminal. The step 4 in the above procedure puts the virtual terminal 0 into the 80x30 mode. The other terminals are in the 80x25 mode, so the console driver should touch the VGA when switching between the terminal 0 and the others. Kazu