Subject: Re: Looking for docs on wscons configuration
To: None <port-i386@netbsd.org>
From: Kent Polk <kent@tiamat.goathill.org>
List: port-i386
Date: 03/19/1999 22:57:14
Havard.Eidnes@runit.sintef.no <Havard.Eidnes@runit.sintef.no> wrote:
>> I am trying to set up NetBSD-current for wscons support. Can anyone 
>> provide some pointers on how it is supposed to be done? Three main
>> things I need:
>>
>> 1) ctrl/capslock swap
>
>Pass.  Don't know.

The next message indicates to use:
wsconsctl -w encoding=us.swapctrlcaps
but it doesn't seem to accomplish anything.

$ wsconsctl -w encoding=us.swapctrlcaps
encoding -> us.swapctrlcaps
(but nothing changes)
ttyE3   "/usr/libexec/getty Pc"         vt220   on secure

>> 2) <wsmouse> support for a Logitech MouseMan PS/2 mouse

>Given that you have
>
>pms*            at pckbc?               # PS/2 mouse for wsmouse
>wsmouse*        at pms?
>
>in your kernel config.

Thanks. I had tried a few variations here, but guess I missed this
combination for the kernel. wsmouse0 wasn't getting hooked to pms0.

>> 3) proper way to add virtual terminals
>
>Now via /etc/wscons.conf, a short while ago via /etc/rc.wscons.
>
>Naturally, you will need to do "cd /dev; ./MAKEDEV wscons" with a
>reasonably new MAKEDEV.  Next step is of course to update
>/etc/ttys with the new virtual consoles you want a gettty to run
>on.

Ok. The new install already made the /dev/ttyEx's and /etc/ttys
already had them installed, but how do I activate/toggle between
them? And what is the format of /etc/wscons.conf?

/etc/ttys :
console "/usr/libexec/getty Pc"         pc3     off secure
ttyE0   "/usr/libexec/getty Pc"         vt220   on secure
ttyE1   "/usr/libexec/getty Pc"         vt220   on secure
ttyE2   "/usr/libexec/getty Pc"         vt220   on secure

$ wsconsctl /dev/ttyE0
wsconsctl: /dev/ttyE0: not found
$ wsconsctl /dev/wsmouse0
wsconsctl: /dev/wsmouse0: not found

(Note that I'm using wsmouse0 right now)
Any more info or examples?

Thanks Much!