From owner-freebsd-stable Wed Oct 21 09:29:37 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA06801 for freebsd-stable-outgoing; Wed, 21 Oct 1998 09:29:37 -0700 (PDT) (envelope-from owner-freebsd-stable@FreeBSD.ORG) Received: from axl.training.iafrica.com (axl.training.iafrica.com [196.31.1.175]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id JAA06784 for ; Wed, 21 Oct 1998 09:29:21 -0700 (PDT) (envelope-from sheldonh@axl.training.iafrica.com) Received: from sheldonh (helo=iafrica.com) by axl.training.iafrica.com with local-esmtp (Exim 2.05 #1) id 0zW17w-0001GT-00 for freebsd-stable@freebsd.org; Wed, 21 Oct 1998 18:28:48 +0200 From: Sheldon Hearn To: freebsd-stable@FreeBSD.ORG Subject: Re: i386/7695: rc.i386 only enables mouse support for ttyv0 Date: Wed, 21 Oct 1998 18:28:48 +0200 Message-ID: <4864.908987328@iafrica.com> Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Submitted as followup to PR7695 on Tue, 29 Sep 1998 11:32:51 +0200: Having done a little more research, I now know that -CURRENT already has a knob in rc.conf and some magic in rc.i386 to do vidcontrol stuff to all virtual terminals. The appropriate code has had 8 months to mature in -CURRENT, I think it's ready for an MFC. :-) I've tested the patches that were applied to the -CURRENT branch, and they apply perfectly to the -STABLE sources now. I've tested them on my 2.2-STABLE box with no ill effects. The diffs are attached below, for your convenience. Ciao, Sheldon. Index: rc.conf =================================================================== RCS file: /home/ncvs/src/etc/rc.conf,v retrieving revision 1.41 retrieving revision 1.43 diff -u -d -r1.41 -r1.43 --- rc.conf 1998/03/09 08:50:27 1.41 +++ rc.conf 1998/04/02 15:33:36 1.43 @@ -124,6 +124,7 @@ moused_type="auto" # See man page for rc.conf(5) for available settings. moused_port="/dev/cuaa0" # Set to your mouse port. moused_flags="" # Any additional flags to moused. +allscreens_flags="" # Set this vidcontrol mode for all virtual screens ############################################################## Index: etc.i386/rc.i386 =================================================================== RCS file: /home/ncvs/src/etc/etc.i386/rc.i386,v retrieving revision 1.32 retrieving revision 1.34 diff -u -d -r1.32 -r1.34 --- rc.i386 1998/03/07 09:02:08 1.32 +++ rc.i386 1998/04/02 15:33:49 1.34 @@ -103,6 +103,15 @@ echo -n ' moused' moused ${moused_flags} -p ${moused_port} -t ${moused_type} vidcontrol <${viddev} -m on +fi + +# set this mode for all virtual screens +if [ "X${allscreens_flags}" != X"" ] ; then + echo -n ' allscreens' + for ttyv in /dev/ttyv* + do + vidcontrol <$ttyv ${allscreens_flags} + done fi echo '.' To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message