Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Sep 1998 02:40:03 -0700 (PDT)
From:      Sheldon Hearn <axl@iafrica.com>
To:        freebsd-bugs@FreeBSD.ORG
Subject:   Re: i386/7695: rc.i386 only enables mouse support for ttyv0
Message-ID:  <199809290940.CAA20046@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR i386/7695; it has been noted by GNATS.

From: Sheldon Hearn <axl@iafrica.com>
To: freebsd-gnats-submit@freebsd.org
Cc:  Subject: Re: i386/7695: rc.i386 only enables mouse support for ttyv0
Date: 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 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-bugs" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199809290940.CAA20046>