From owner-freebsd-hackers Sat Feb 4 14:13:33 1995 Return-Path: hackers-owner Received: (from root@localhost) by freefall.cdrom.com (8.6.9/8.6.6) id OAA11309 for hackers-outgoing; Sat, 4 Feb 1995 14:13:33 -0800 Received: from dkuug.dk (dkuug.dk [193.88.44.89]) by freefall.cdrom.com (8.6.9/8.6.6) with SMTP id OAA11303 for ; Sat, 4 Feb 1995 14:13:30 -0800 Received: from login.dknet.dk by dkuug.dk with SMTP id AA01207 (5.65c8/IDA-1.4.4j for ); Sat, 4 Feb 1995 23:13:18 +0100 Received: by login.dknet.dk (4.1/SMI-4.1DKnet00) id AA25866; Sat, 4 Feb 95 23:10:47 +0100 From: sos@login.dknet.dk (S|ren Schmidt) Message-Id: <9502042210.AA25866@login.dknet.dk> Subject: Re: Help hacking vidcontrol, possibly syscons To: eblood@winky.reno.nv.us (Eric Blood) Date: Sat, 4 Feb 95 23:10:46 MET Cc: freebsd-hackers@FreeBSD.org In-Reply-To: <199502041957.LAA00372@winky>; from "Eric Blood" at Feb 4, 95 11:57 am X-Charset: ASCII X-Char-Esc: 29 Sender: hackers-owner@FreeBSD.org Precedence: bulk You just have to redirect stdin as in: vidcontrol VGA_80x50 < /dev/ttyv4 No mods are nessesary to either vidcontrol or syscons. > I would like to be able to make different settings for each > virtual console on startup. The problem is that vidcontrol > only modifies the console tied to stdin (which in the case > of starting up is only ttyv0). > > I quickly modified vidcontrol to open /dev/ttyv3, O_RDONLY > and then passed that file descriptor to the ioctl call > just as vidcontrol originally did (except with just stdin). > The result is the virtual terminal running the modified > vidcontrol is the one to change, not the hardwired /dev/ttyv3. > > Can I just change vidcontrol to do what I need? If so, how. > Or, will I need to change syscons? If so, how much. > > Thanks. > > EVB > -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Soren Schmidt (sos@FreeBSD.org | sos@login.dknet.dk) FreeBSD Core Team So much code to hack -- so little time ..