Restructure the Laptop article. No content changes, only whitespace.
This commit is contained in:
parent
78335e92ee
commit
9a605db12c
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=13083
1 changed files with 122 additions and 119 deletions
|
@ -24,7 +24,7 @@
|
||||||
to different hardware requirements from desktops, are
|
to different hardware requirements from desktops, are
|
||||||
discussed below.</para>
|
discussed below.</para>
|
||||||
</abstract>
|
</abstract>
|
||||||
</articleinfo>
|
</articleinfo>
|
||||||
|
|
||||||
<para>FreeBSD is often thought of as a server operating system, but
|
<para>FreeBSD is often thought of as a server operating system, but
|
||||||
it works just fine on the desktop, and if you want to use it on
|
it works just fine on the desktop, and if you want to use it on
|
||||||
|
@ -39,143 +39,146 @@
|
||||||
Microsoft Windows). This article aims to discuss some of these
|
Microsoft Windows). This article aims to discuss some of these
|
||||||
issues.</para>
|
issues.</para>
|
||||||
|
|
||||||
<sect1>
|
<sect1>
|
||||||
<title>XFree86</title>
|
<title>XFree86</title>
|
||||||
|
|
||||||
<para>Recent versions of XFree86 work with most display adapters
|
<para>Recent versions of XFree86 work with most display adapters
|
||||||
available on laptops these days. Acceleration may not be
|
available on laptops these days. Acceleration may not be
|
||||||
supported, but a generic SVGA configuration should work.</para>
|
supported, but a generic SVGA configuration should work.</para>
|
||||||
|
|
||||||
<para>Check your laptop documentation for which card you have,
|
<para>Check your laptop documentation for which card you have,
|
||||||
and check in the XFree86 documentation (or setup program)
|
and check in the XFree86 documentation (or setup program)
|
||||||
to see whether it is specifically supported. If it is not, use
|
to see whether it is specifically supported. If it is not, use
|
||||||
a generic device (do not go for a name which just looks
|
a generic device (do not go for a name which just looks
|
||||||
similar). In XFree86 version 4, you can try your luck
|
similar). In XFree86 version 4, you can try your luck
|
||||||
with the command <userinput>XFree86 -configure</userinput>
|
with the command <userinput>XFree86 -configure</userinput>
|
||||||
which auto-detects a lot of configurations.</para>
|
which auto-detects a lot of configurations.</para>
|
||||||
|
|
||||||
<para>The problem often is configuring the monitor. Common
|
<para>The problem often is configuring the monitor. Common
|
||||||
resources for XFree86 focus on CRT monitors; getting a
|
resources for XFree86 focus on CRT monitors; getting a
|
||||||
suitable modeline for an LCD display may be tricky. You may
|
suitable modeline for an LCD display may be tricky. You may
|
||||||
be lucky and not need to specify a modeline, or just need to
|
be lucky and not need to specify a modeline, or just need to
|
||||||
specify suitable HorizSync and VertRefresh ranges. If that
|
specify suitable HorizSync and VertRefresh ranges. If that
|
||||||
does not work, the best option is to check web resources
|
does not work, the best option is to check web resources
|
||||||
devoted to configuring X on laptops (these are often
|
devoted to configuring X on laptops (these are often
|
||||||
linux-oriented sites but it does not matter because both systems
|
linux-oriented sites but it does not matter because both systems
|
||||||
use XFree86) and copy a modeline posted by someone for similar
|
use XFree86) and copy a modeline posted by someone for similar
|
||||||
hardware.</para>
|
hardware.</para>
|
||||||
|
|
||||||
<para>Most laptops come with two buttons on their pointing
|
<para>Most laptops come with two buttons on their pointing
|
||||||
devices, which is rather problematic in X (since the middle
|
devices, which is rather problematic in X (since the middle
|
||||||
button is commonly used to paste text); you can map a
|
button is commonly used to paste text); you can map a
|
||||||
simultaneous left-right click in your X configuration to
|
simultaneous left-right click in your X configuration to
|
||||||
a middle button click with the line</para>
|
a middle button click with the line</para>
|
||||||
|
|
||||||
<programlisting>
|
<programlisting>
|
||||||
Option "Emulate3Buttons"
|
Option "Emulate3Buttons"
|
||||||
</programlisting>
|
</programlisting>
|
||||||
|
|
||||||
<para>in the XF86Config file in the <literal>InputDevice</literal> section (for XFree86
|
<para>in the XF86Config file in the <literal>InputDevice</literal>
|
||||||
version 4; for version 3, put just the line <literal>Emulate3Buttons</literal>,
|
section (for XFree86 version 4; for version 3, put just the line
|
||||||
without the quotes, in the <literal>Pointer</literal> section.)</para>
|
<literal>Emulate3Buttons</literal>, without the quotes, in the
|
||||||
</sect1>
|
<literal>Pointer</literal> section.)</para>
|
||||||
|
</sect1>
|
||||||
|
|
||||||
<sect1>
|
<sect1>
|
||||||
<title>Modems</title>
|
<title>Modems</title>
|
||||||
<para>
|
<para>
|
||||||
Laptops usually come with internal (on-board) modems.
|
Laptops usually come with internal (on-board) modems.
|
||||||
Unfortunately, this almost always means they are <quote>winmodems</quote> whose
|
Unfortunately, this almost always means they are
|
||||||
functionality is implemented in software, for which only windows
|
<quote>winmodems</quote> whose
|
||||||
drivers are normally available (though a few drivers are beginning
|
functionality is implemented in software, for which only windows
|
||||||
to show up for other operating systems). Otherwise, you
|
drivers are normally available (though a few drivers are beginning
|
||||||
need to buy an external modem: the most compact option is
|
to show up for other operating systems). Otherwise, you
|
||||||
probably a PC-Card (PCMCIA) modem, discussed below, but
|
need to buy an external modem: the most compact option is
|
||||||
serial or USB modems may be cheaper. Generally, regular
|
probably a PC-Card (PCMCIA) modem, discussed below, but
|
||||||
modems (non-winmodems) should work fine.
|
serial or USB modems may be cheaper. Generally, regular
|
||||||
</para>
|
modems (non-winmodems) should work fine.
|
||||||
|
</para>
|
||||||
|
|
||||||
</sect1>
|
</sect1>
|
||||||
|
|
||||||
<sect1>
|
<sect1>
|
||||||
<title>PCMCIA (PC-card) devices</title>
|
<title>PCMCIA (PC-card) devices</title>
|
||||||
|
|
||||||
<para> Most laptops come with PCMCIA (also called PC-card)
|
<para> Most laptops come with PCMCIA (also called PC-card)
|
||||||
slots; these are supported fine under FreeBSD. Look through
|
slots; these are supported fine under FreeBSD. Look through
|
||||||
your boot-up messages (using dmesg) and see whether these were
|
your boot-up messages (using dmesg) and see whether these were
|
||||||
detected correctly (they should appear as
|
detected correctly (they should appear as
|
||||||
<devicename>pccard0</devicename>,
|
<devicename>pccard0</devicename>,
|
||||||
<devicename>pccard1</devicename> etc on devices like
|
<devicename>pccard1</devicename> etc on devices like
|
||||||
<devicename>pcic0</devicename>).</para>
|
<devicename>pcic0</devicename>).</para>
|
||||||
|
|
||||||
<para>FreeBSD currently supports 16-bit PCMCIA cards, but not
|
<para>FreeBSD currently supports 16-bit PCMCIA cards, but not
|
||||||
32-bit (<quote>CardBus</quote>) cards. A database of supported cards is in
|
32-bit (<quote>CardBus</quote>) cards. A database of supported
|
||||||
the file <filename>/etc/defaults/pccard.conf</filename>. Look
|
cards is in the file <filename>/etc/defaults/pccard.conf</filename>.
|
||||||
through it, and preferably buy cards listed there. Cards not
|
Look through it, and preferably buy cards listed there. Cards not
|
||||||
listed may also work as <quote>generic</quote> devices: in particular most
|
listed may also work as <quote>generic</quote> devices: in
|
||||||
modems (16-bit) should work fine, provided they are not
|
particular most modems (16-bit) should work fine, provided they
|
||||||
winmodems (these do exist even as PC-cards, so watch out). If
|
are not winmodems (these do exist even as PC-cards, so watch out).
|
||||||
your card is recognised as a generic modem, note that the
|
If your card is recognised as a generic modem, note that the
|
||||||
default pccard.conf file specifies a delay time of 10 seconds
|
default pccard.conf file specifies a delay time of 10 seconds
|
||||||
(to avoid freezes on certain modems); this may well be
|
(to avoid freezes on certain modems); this may well be
|
||||||
over-cautious for your modem, so you may want to play with it,
|
over-cautious for your modem, so you may want to play with it,
|
||||||
reducing it or removing it totally.</para>
|
reducing it or removing it totally.</para>
|
||||||
|
|
||||||
<para>Some parts of <filename>pccard.conf</filename> may need editing. Check the irq
|
<para>Some parts of <filename>pccard.conf</filename> may need
|
||||||
line, and be sure to remove any number already being used: in
|
editing. Check the irq line, and be sure to remove any number
|
||||||
particular, if you have an on board sound card, remove irq 5
|
already being used: in particular, if you have an on board sound
|
||||||
(otherwise you may experience hangs when you insert a card).
|
card, remove irq 5 (otherwise you may experience hangs when you
|
||||||
Check also the available memory slots; if your card is not
|
insert a card). Check also the available memory slots; if your
|
||||||
being detected, try changing it to one of the other allowed
|
card is not being detected, try changing it to one of the other
|
||||||
values (listed in the man page &man.pccardc.8;).
|
allowed values (listed in the man page &man.pccardc.8;).
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<para>If it is not running already, start the pccardd daemon.
|
<para>If it is not running already, start the pccardd daemon.
|
||||||
(To enable it at boot time, add
|
(To enable it at boot time, add
|
||||||
<programlisting>pccard_enable="YES"</programlisting> to
|
<programlisting>pccard_enable="YES"</programlisting> to
|
||||||
<filename>/etc/rc.conf</filename>). Now your cards should be
|
<filename>/etc/rc.conf</filename>). Now your cards should be
|
||||||
detected when you insert and remove them, and you should get
|
detected when you insert and remove them, and you should get
|
||||||
log messages about new devices being enabled.</para>
|
log messages about new devices being enabled.</para>
|
||||||
|
|
||||||
<para>There have been major changes to the pccard code
|
<para>There have been major changes to the pccard code
|
||||||
(including ISA routing of interrupts, for machines whose
|
(including ISA routing of interrupts, for machines whose
|
||||||
PCIBIOS FreeBSD can not seem to use) before the FreeBSD 4.4
|
PCIBIOS FreeBSD can not seem to use) before the FreeBSD 4.4
|
||||||
release. If you have problems, try upgrading your system.</para>
|
release. If you have problems, try upgrading your system.</para>
|
||||||
|
|
||||||
</sect1>
|
</sect1>
|
||||||
|
|
||||||
<sect1>
|
<sect1>
|
||||||
|
|
||||||
<title>Power management</title>
|
<title>Power management</title>
|
||||||
|
|
||||||
<para>Unfortunately, this is not very reliably supported under
|
<para>Unfortunately, this is not very reliably supported under
|
||||||
FreeBSD. If you are lucky, some functions may work reliably;
|
FreeBSD. If you are lucky, some functions may work reliably;
|
||||||
or they may not work at all.</para>
|
or they may not work at all.</para>
|
||||||
|
|
||||||
<para>To enable this, you may need to compile a kernel with
|
<para>To enable this, you may need to compile a kernel with
|
||||||
power management support (<literal>device apm0</literal>) or
|
power management support (<literal>device apm0</literal>) or
|
||||||
add the option <literal>enable apm0</literal> to <filename>/boot/loader.conf</filename>, and
|
add the option <literal>enable apm0</literal> to
|
||||||
also enable the apm daemon at boot time (line
|
<filename>/boot/loader.conf</filename>, and
|
||||||
<literal>apm_enable="YES"</literal> in
|
also enable the apm daemon at boot time (line
|
||||||
<filename>/etc/rc.conf</filename>). The apm commands are
|
<literal>apm_enable="YES"</literal> in
|
||||||
listed in the &man.apm.8; manpage. For instance,
|
<filename>/etc/rc.conf</filename>). The apm commands are
|
||||||
<command>apm -b</command> gives you battery status (or 255 if
|
listed in the &man.apm.8; manpage. For instance,
|
||||||
not supported), <command>apm -Z</command> puts the laptop on
|
<command>apm -b</command> gives you battery status (or 255 if
|
||||||
standby, <command>apm -z</command> (or zzz) suspends it. To
|
not supported), <command>apm -Z</command> puts the laptop on
|
||||||
shutdown and power off the machine, use <command>shutdown -p</command>.
|
standby, <command>apm -z</command> (or zzz) suspends it. To
|
||||||
Again, some or all of these functions may not work very well
|
shutdown and power off the machine, use <command>shutdown -p</command>.
|
||||||
or at all. You may find that laptop suspension/standby works
|
Again, some or all of these functions may not work very well
|
||||||
in console mode but not under X (that is, the screen does not
|
or at all. You may find that laptop suspension/standby works
|
||||||
come on again; in that case, switch to a virtual console
|
in console mode but not under X (that is, the screen does not
|
||||||
(using Ctrl-Alt-F1 or another function key) and then execute
|
come on again; in that case, switch to a virtual console
|
||||||
the apm command.
|
(using Ctrl-Alt-F1 or another function key) and then execute
|
||||||
</para>
|
the apm command.
|
||||||
|
</para>
|
||||||
|
|
||||||
<para>The X window system (XFree86) also includes display power
|
<para>The X window system (XFree86) also includes display power
|
||||||
management (look at the &man.xset.1; man page, and search for
|
management (look at the &man.xset.1; man page, and search for
|
||||||
dpms there). You may want to investigate this. However, this,
|
dpms there). You may want to investigate this. However, this,
|
||||||
too, works inconsistently on laptops: it
|
too, works inconsistently on laptops: it
|
||||||
often turns off the display but does not turn off the
|
often turns off the display but does not turn off the
|
||||||
backlight.</para>
|
backlight.</para>
|
||||||
|
|
||||||
</sect1>
|
</sect1>
|
||||||
</article>
|
</article>
|
||||||
|
|
Loading…
Reference in a new issue