old-www/HOWTO/XFree-Local-multi-user-HOWTO/ind_keyboards.html

368 lines
6.7 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML
><HEAD
><TITLE
>Using independent keyboards with XFree</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
REL="HOME"
TITLE="XFree Local Multi-User HOWTO"
HREF="index.html"><LINK
REL="UP"
TITLE="Setting up the X servers"
HREF="x_servers.html"><LINK
REL="PREVIOUS"
TITLE="Creating symbolic links"
HREF="sym_links.html"><LINK
REL="NEXT"
TITLE="Using independent mice with XFree"
HREF="ind_mouses.html"></HEAD
><BODY
CLASS="sect1"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
SUMMARY="Header navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>XFree Local Multi-User HOWTO</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="sym_links.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
>Chapter 4. Setting up the X servers</TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="ind_mouses.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="sect1"
><H1
CLASS="sect1"
><A
NAME="ind_keyboards"
></A
>4.4. Using independent keyboards with XFree</H1
><P
>Once you install the Backstreet Ruby/ Ruby-2.6 kernel and start it with <TT
CLASS="option"
>dumbcon=n</TT
>, you get n +1 independent consoles [1 VGA(or Framebuffer under Ruby-2.6) + n DUMB] . If you have enough keyboards connected to your PC, each of these consoles are associated with a given keyboard. This enables you to start multiple X servers on each of the consoles, using the keyboard associated with the corresponding console for input. Hence you get multiple independent X servers with independent keyboards, which in turn make it possible for one single PC to be used by several local X users simultaneously.</P
><P
>To start X on a given console (using a given independent keyboard) you pass it the argument <B
CLASS="command"
>vt[N]</B
>, where N is a number from a given tty range.</P
><P
></P
><UL
><LI
><P
>VGA(or Framebuffer for Ruby-2.6): tty1 to tty16</P
></LI
><LI
><P
>DUMB1: tty17</P
></LI
><LI
><P
>DUMB2: tty18</P
></LI
></UL
><P
>If you have 3 video cards, 3 keyboards, and you have started the Backstreet Ruby kernel with dumbcon=2, you can start 3 independent X servers for 3 simultaneous users with the following commands:</P
><DIV
CLASS="note"
><P
></P
><TABLE
CLASS="note"
WIDTH="100%"
BORDER="0"
><TR
><TD
WIDTH="25"
ALIGN="CENTER"
VALIGN="TOP"
><IMG
SRC="../images/note.gif"
HSPACE="5"
ALT="Note"></TD
><TH
ALIGN="LEFT"
VALIGN="CENTER"
><B
>Note</B
></TH
></TR
><TR
><TD
>&nbsp;</TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
><P
></P
><UL
><LI
><P
>For Mandrake and Debian users:</P
><P
>the XFree configuration files are normally /etc/X11/XF86Config-4 </P
></LI
><LI
><P
>For Red Hat, Gentoo, SuSE users:</P
><P
>the XFree configuration files are normally /etc/X11/XF86Config </P
></LI
></UL
></TD
></TR
></TABLE
></DIV
><DIV
CLASS="caution"
><P
></P
><TABLE
CLASS="caution"
WIDTH="100%"
BORDER="0"
><TR
><TD
WIDTH="25"
ALIGN="CENTER"
VALIGN="TOP"
><IMG
SRC="../images/caution.gif"
HSPACE="5"
ALT="Caution"></TD
><TH
ALIGN="LEFT"
VALIGN="CENTER"
><B
>Caution</B
></TH
></TR
><TR
><TD
>&nbsp;</TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
><P
>Have in mind that for the older Preferred Bus ID XFree Server (version 1) you have to specify the desired graphic card with parameter <SPAN
CLASS="QUOTE"
>"<B
CLASS="command"
>-prefbusid x:x:x</B
>"</SPAN
> where x:x:x is the Bus ID of the desired graphic card. Just append "-prefbusid x:x:x" with the correct Bus ID of the card you want to start right before the last argument vt[x]. If you omit this option the modified X server will act as a not modified/ standard XFree server and you wont be able to run multiple XFree instances at the same time.</P
></TD
></TR
></TABLE
></DIV
><P
></P
><P
>For the 1st X server with the 1st keyboard:</P
><P
><B
CLASS="command"
>$ startx -- /usr/X11R6/bin/X0 :0 -xf86config /etc/X11/XF86Config-4[for your 1st video card] vt7</B
></P
><P
>For the 2nd X server with the 2nd keyboard:</P
><P
><B
CLASS="command"
>$ startx -- /usr/X11R6/bin/X1 :1 -xf86config /etc/X11/XF86Config-4[for your 2nd video card] vt17</B
></P
><P
>For the 3rd X server with the 3rd keyboard:</P
><P
><B
CLASS="command"
>$ startx -- /usr/X11R6/bin/X2 :2 -xf86config /etc/X11/XF86Config-4[for your 3rd video card] vt18</B
></P
><P
>For the 1st X server you can skip the <TT
CLASS="option"
>-xf86config /etc/X11/XF86Config-4[for your 1st video card]</TT
> argument. In this case, the default configuration file, <TT
CLASS="filename"
>/etc/X11/XF86Config-4</TT
>, will be used.
</P
><DIV
CLASS="note"
><P
></P
><TABLE
CLASS="note"
WIDTH="100%"
BORDER="0"
><TR
><TD
WIDTH="25"
ALIGN="CENTER"
VALIGN="TOP"
><IMG
SRC="../images/note.gif"
HSPACE="5"
ALT="Note"></TD
><TH
ALIGN="LEFT"
VALIGN="CENTER"
><B
>Note</B
></TH
></TR
><TR
><TD
>&nbsp;</TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
><P
></P
><UL
><LI
><P
>VGA: tty0 to tty7</P
></LI
><LI
><P
>DUMB1: tty8 to tty15</P
></LI
><LI
><P
>DUMB2: tty16 to tty23</P
></LI
></UL
><P
>This means that you have to use different <B
CLASS="command"
>vt</B
> parameter for the additional X servers.</P
><P
>For the 2nd X server with the 2nd keyboard:</P
><P
><B
CLASS="command"
>$ startx -- /usr/X11R6/bin/X1 :1 -xf86config /etc/X11/XF86Config-4[for your 2nd video card] vt8</B
></P
><P
>For the 3rd X server with the 3rd keyboard:</P
><P
><B
CLASS="command"
>$ startx -- /usr/X11R6/bin/X2 :2 -xf86config /etc/X11/XF86Config-4[for your 3rd video card] vt16</B
></P
></TD
></TR
></TABLE
></DIV
><P
>You can also setup your display manager to start the independent X servers, once everything is properly configured. But don't rush to setup your display manager before the configuration is finished, because this could give you serious problems. When you are ready with the required configurations, you'll reach the section on configuring the display manager.
</P
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
SUMMARY="Footer navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="sym_links.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
ACCESSKEY="H"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="ind_mouses.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>Creating symbolic links</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="x_servers.html"
ACCESSKEY="U"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>Using independent mice with XFree</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>