|My mouse has a fancy wheel. Can I use it in X?|
|Yes, if X is configured for a 5 button mouse. To do this, add the lines <literal>Buttons 5</literal> and <literal>ZAxisMapping 4 5</literal> to the <quote>InputDevice</quote> section of <filename>/etc/X11/xorg.conf</filename>, as seen in this example:|
Option "Protocol" "auto"
Option "Device" "/dev/sysmouse"
Option "Buttons" "5"
Option "ZAxisMapping" "4 5"
|The mouse can be enabled in <application>Emacs</application> by adding these lines to <filename>~/.emacs</filename>:|
;; wheel mouse
(global-set-key [mouse-4] 'scroll-down)
(global-set-key [mouse-5] 'scroll-up)
|My laptop has a Synaptics touchpad. Can I use it in X?|
|Yes, after configuring a few things to make it work.|
|In order to use the Xorg synaptics driver, first remove <literal>moused_enable</literal> from <filename>rc.conf</filename>.|
|To enable synaptics, add the following line to <filename>/boot/loader.conf</filename>:|
|Add the following to <filename>/etc/X11/xorg.conf</filename>:|
Option "Protocol" "psm"
Option "Device" "/dev/psm0"
|And be sure to add the following into the <quote>ServerLayout</quote> section:|
|InputDevice "Touchpad0" "SendCoreEvents"|
|How do I use remote X displays?|
|For security reasons, the default setting is to not allow a machine to remotely open a window.|
|To enable this feature, start <application>X</application> with the optional <option>-listen_tcp</option> argument:|
|<prompt>%</prompt> <userinput>startx -listen_tcp</userinput>|
|What is a virtual console and how do I make more?|
|Virtual consoles provide several simultaneous sessions on the same machine without doing anything complicated like setting up a network or running X.|
|When the system starts, it will display a login prompt on the monitor after displaying all the boot messages. Type in your login name and password to start working on the first virtual console.|
|To start another session, perhaps to look at documentation for a program or to read mail while waiting for an FTP transfer to finish, hold down <keycap>Alt</keycap> and press <keycap>F2</keycap>. This will display the login prompt for the second virtual console. To go back to the original session, press <keycombo action="simul"><keycap>Alt</keycap><keycap>F1</keycap></keycombo>.|
|The default FreeBSD installation has eight virtual consoles enabled. <keycombo action="simul"><keycap>Alt</keycap><keycap>F1</keycap></keycombo>, <keycombo action="simul"><keycap>Alt</keycap><keycap>F2</keycap></keycombo>, <keycombo action="simul"><keycap>Alt</keycap><keycap>F3</keycap></keycombo>, and so on will switch between these virtual consoles.|
|To enable more of virtual consoles, edit <filename>/etc/ttys</filename> (see <citerefentry><refentrytitle>ttys</refentrytitle><manvolnum>5</manvolnum></citerefentry>) and add entries for <filename>ttyv8</filename> to <filename>ttyvc</filename>, after the comment on <quote>Virtual terminals</quote>:|
# Edit the existing entry for ttyv8 in /etc/ttys and change
# "off" to "on".
ttyv8 "/usr/libexec/getty Pc" xterm on secure
ttyv9 "/usr/libexec/getty Pc" xterm on secure
ttyva "/usr/libexec/getty Pc" xterm on secure
ttyvb "/usr/libexec/getty Pc" xterm on secure
|The more virtual terminals, the more resources that are used. This can be problematic on systems with 8 MB RAM or less. Consider changing <literal>secure</literal> to <literal>insecure</literal>.|
|In order to run an X server, at least one virtual terminal must be left to <literal>off</literal> for it to use. This means that only eleven of the Alt-function keys can be used as virtual consoles so that one is left for the X server.|
|For example, to run X and eleven virtual consoles, the setting for virtual terminal 12 should be:|
|ttyvb "/usr/libexec/getty Pc" xterm off secure|
|The easiest way to activate the virtual consoles is to reboot.|
|How do I access the virtual consoles from X?|
No matching activity found.