Subject: Wscons Question
To: None <port-i386@netbsd.org>
From: Rob Becker <becker@ab.edu>
List: port-i386
Date: 01/23/2000 13:12:04
	Anyone know how to configure wscons to default to 80x50 with white on blue
text for regular use, not just for the kernel? Here is what I have found out
so far: 
	The documentaion for wscons is a bit sparse, but I would be willing
to help add to it or write a howto if I can get some comprehensive information.
I know to set WSCONS_SUPPORT_PCVTFONTS as a kernel option, did that and can load
pcvt fonts with impunity. Also I can change to 80x50 mode if I "wsconscfg -dF 1" and
"wsconscfg -t 80x50 -e vt100 1" like it says in the manpage, but the screen is
corrupted if I start X. My /etc/rc.conf has "wscons=YES" set with no flags. My
wscons.conf is as follows:

#	$NetBSD: wscons.conf,v 1.1.2.1 1999/04/09 17:05:35 drochner Exp $
#
# workstation console configuration

# fonts to load
#	name	width	height	enc	file
font	ibm	-	8	ibm	/usr/share/pcvt/fonts/vt220l.808

# Note: "pcvt" encoded fonts are only useful with the "*bf" screen types
#  of the "vga" driver. The kernel must be compiled with the option
#  "WSCONS_SUPPORT_PCVTFONTS" turned on. See vga(4).
#font	pcvt	-	-	pcvt	/usr/share/pcvt/fonts/vt220h.816
#font	pcvt	-	8	pcvt	/usr/share/pcvt/fonts/vt220h.808

# screens to create
#	idx	screen	emul
#screen	0	-	vt100
screen	1	80x50	vt100
screen	2	80x50	vt100
screen	3	80x50	vt100
screen	4	80x50	vt100
#screen	4	80x50	vt100
#screen	5	80x50	vt100

And here is my dmesg output:

NetBSD 1.4.1 (LUNA) #0: Sat Jan 22 14:43:17 PST 2000
    root@luna.ab.edu:/usr/src/sys/arch/i386/compile/LUNA
cpu0: family 6 model 3 step 4
cpu0: Intel Pentium II (686-class)
real mem  = 133824512
avail mem = 82272256
using 2822 buffers containing 46735360 bytes of memory
mainbus0 (root)
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o enabled, memory enabled
pchb0 at pci0 dev 0 function 0
pchb0: Intel 82443LX PCI AGP Controller (PAC) (rev. 0x03)
ppb0 at pci0 dev 1 function 0: Intel 82443LX AGP Interface (PAC) (rev. 0x03)
pci1 at ppb0 bus 1
pci1: i/o enabled, memory enabled
vga1 at pci1 dev 0 function 0: Matrox MGA Millennium II 2164WA-B AG (rev. 0x00)
wsdisplay0 at vga1: console (80x25, vt100 emulation) /* Here it seems to add the
wsdisplay0: screen 1 added (80x25, vt100 emulation)     screens incorrectly */
wsdisplay0: screen 2 added (80x25, vt100 emulation)
wsdisplay0: screen 3 added (80x25, vt100 emulation)
wsdisplay0: screen 4 added (80x25, vt100 emulation)
wsdisplay0: screen 5 added (80x25, vt100 emulation)
wsdisplay0: screen 6 added (80x25, vt100 emulation)
wsdisplay0: screen 7 added (80x25, vt100 emulation)
--cut--
pckbc0 at isa0 port 0x60-0x64
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0
--cut--
wscons: wskbd0 glued to wsdisplay0 (console)

And I still get the "WSDISPLAYIO ADDSCREEN: Device busy" message on bootup.
Anybody know what I'm doing wrong? Also have no clue as to how to change the text
colors. Thanks in advance.


-- 
C makes it easy to shoot yourself in the foot; C++ makes it harder but when you
do you blow your whole leg off.
		-Bjarne Stroustrup