*BSD News Article 25726


Return to BSD News archive

Xref: sserve comp.windows.x.i386unix:6346 comp.os.386bsd.apps:832
Path: sserve!newshost.anu.edu.au!munnari.oz.au!bunyip.cc.uq.oz.au!harbinger.cc.monash.edu.au!yeshua.marcam.com!news.kei.com!eff!usenet.ins.cwru.edu!agate!headwall.Stanford.EDU!yergeau
From: yergeau@leland.Stanford.EDU (Dan Yergeau)
Newsgroups: comp.windows.x.i386unix,comp.os.386bsd.apps
Subject: Re: XF86_S3 doesn't reset screen properly on exit
Date: 8 Jan 1994 07:35:24 GMT
Organization: Stanford University, CA 94305, USA
Lines: 58
Message-ID: <2glnns$mkd@nntp2.Stanford.EDU>
References: <2ghfp9$3qj@nntp2.Stanford.EDU>
NNTP-Posting-Host: elaine24.stanford.edu

Here's a fix to the problem mentioned below.

In article <2ghfp9$3qj@nntp2.Stanford.EDU>,
Dan Yergeau <yergeau@leland.Stanford.EDU> wrote:
>In short: I just got a spiffy new S3 based graphics adaptor, and the
>accelerated X server doesn't reset the screen properly on exit.

>    kernel uses pccons console driver
>X: XFree86-2.0 S3 server 
>Adaptor: Orchid Fahrenheit 1280+ VLB (S3-805)

It appears that newer 1280+ (BIOS version 2.0) does not properly
restore the fonts after exiting X.  The pccons driver does not
provide this functionality, but the syscons driver does.  So, I
switched to the syscons driver.

Since configuring the syscons driver is not well documented, I will
summarize it here.

1. Edit your config file and change the pc0 line to

	device		sc0	at isa? port "IO_KBD" tty irq 1 vector scintr

   and add

	options "NCONS=8"

2. Config a new kernel (see the FAQ).
3. Make the kernel.
4. cd to /dev and
     sh MAKEDEV vty08
5. Edit /etc/ttys to change 
	vga	"/usr/libexec/getty Pc"	pc3	on secure
   to
	ttyv0	"/usr/libexec/getty Pc"	cons25	on secure
	ttyv1	"/usr/libexec/getty Pc" cons25	on secure
	ttyv2	"/usr/libexec/getty Pc" cons25	on secure
	ttyv3	"/usr/libexec/getty Pc" cons25	on secure
	ttyv4	"/usr/libexec/getty Pc" cons25	on secure
	ttyv5	"/usr/libexec/getty Pc" cons25	on secure
	ttyv6	"/usr/libexec/getty Pc" cons25	on secure
	ttyv7	"/usr/libexec/getty Pc" cons25	on secure
6. Install the kernel.
7. Reboot

(Have a boot floppy handy in case the above doesn't work).

Switching of virtual consoles is done via CTRL-ALT-Fn (1<=n<=9).

--
Dan Yergeau                         You are in a twisty little passage
yergeau@gloworm.Stanford.EDU        of standards, all conflicting.
#include <std.disclaimer>
-- 
--
Dan Yergeau                         You are in a twisty little passage
yergeau@gloworm.Stanford.EDU        of standards, all conflicting.
#include <std.disclaimer>