One DocBook source in docs/guide produces the manual pages, one HTML file, the PDF and an MCDE information library. The guide follows the structure of The NetBSD Guide, describes Makronix 0.99.10 (Camouflage), and has its own chapters for MCDE, the Information Manager and the display. The forms are installed by the release: /usr/share/doc/makronix/makronix-guide.html /usr/share/doc/makronix/makronix-guide.pdf /usr/share/doc/makronix/infolib/makronix.dti/ (base-sys-share) /usr/share/man/man7/makronix-guide*.7 (man-reference-man) /etc/dt/config/Xsession.d/0000makronix (etc-sys-etc) /etc/dt/infolib/en_US.UTF-8/makronix.dti (symlink) The information library is built with MCDE's dtdocbook2infolib from a small Lua writer for the CDE DocBook SGML dialect; tools/test-tools.sh runs docs/guide/check.sh on the installed copies and proves that a missing manual page falls red.
95 lines
4.3 KiB
XML
95 lines
4.3 KiB
XML
<!-- License: CNCL 1.0 (Could Not Care Less), see LICENSE at the top of the tree. -->
|
|
<chapter id="printing">
|
|
<title>Printing, Sound and Power</title>
|
|
|
|
<para>Three things a desktop is expected to get right, and three things
|
|
NetBSD leaves to the administrator: a printer, sound, and what happens
|
|
when the machine is idle or the battery is low.</para>
|
|
|
|
<sect1 id="printing-cups">
|
|
<title>Printing with CUPS</title>
|
|
|
|
<para>Makronix uses the Common UNIX Printing System. The packages
|
|
<application>cups</application> and <application>cups-filters</application>
|
|
are on the medium; the service is <literal>cupsd</literal> in
|
|
<filename>/etc/rc.conf</filename>. With the service running, a printer
|
|
is added with <citerefentry><refentrytitle>lpadmin</refentrytitle><manvolnum>8</manvolnum></citerefentry>:</para>
|
|
|
|
<screen># echo 'cupsd=YES' >> /etc/rc.conf
|
|
# /etc/rc.d/cupsd start
|
|
# lpadmin -p office -E -v ipp://printer.example/ipp/print -m everywhere
|
|
# lpadmin -d office
|
|
# lpstat -t</screen>
|
|
|
|
<para><option>-m everywhere</option> asks the printer for its own
|
|
description, which is the modern way; a printer that does not answer it
|
|
needs a driver package and a PPD file. The web interface at
|
|
<filename>http://localhost:631</filename> does the same through a
|
|
browser, and <command>lpoptions -p office -l</command> lists the
|
|
options of the printer.</para>
|
|
|
|
<para>Printing a file is <citerefentry><refentrytitle>lpr</refentrytitle><manvolnum>1</manvolnum></citerefentry>:</para>
|
|
|
|
<screen>$ lpr -P office document.pdf
|
|
$ lpq -P office</screen>
|
|
|
|
<para>CUPS keeps its queues and its logs in
|
|
<filename>/var/spool/cups</filename> and
|
|
<filename>/var/log/cups</filename>. A job that stays in the queue is
|
|
usually a wrong device address or a printer that is off; the error log
|
|
says which.</para>
|
|
</sect1>
|
|
|
|
<sect1 id="printing-sound">
|
|
<title>Sound</title>
|
|
|
|
<para>NetBSD's audio device is configured with
|
|
<citerefentry><refentrytitle>audioctl</refentrytitle><manvolnum>1</manvolnum></citerefentry>
|
|
and <citerefentry><refentrytitle>mixerctl</refentrytitle><manvolnum>1</manvolnum></citerefentry>;
|
|
<citerefentry><refentrytitle>audiocfg</refentrytitle><manvolnum>1</manvolnum></citerefentry>
|
|
lists the devices and lets you test them:</para>
|
|
|
|
<screen>$ audiocfg list
|
|
$ audiocfg test 0
|
|
$ mixerctl -a
|
|
$ mixerctl -w outputs.master=180</screen>
|
|
|
|
<para>MCDE shows the volume in the bar at the top: a slider in the menu,
|
|
a mute switch, and the wheel over the speaker. The setting is the same
|
|
mixer that <command>mixerctl</command> changes.</para>
|
|
|
|
<para>The package <application>pulseaudio</application> and its volume
|
|
control <application>pavucontrol</application> are on the medium for
|
|
programs that expect a PulseAudio server; MCDE itself does not need one.
|
|
<citerefentry><refentrytitle>audioplay</refentrytitle><manvolnum>1</manvolnum></citerefentry>
|
|
plays a WAV file without a server, and
|
|
<citerefentry><refentrytitle>aucat</refentrytitle><manvolnum>1</manvolnum></citerefentry>
|
|
records and plays audio and can act as a sound server.</para>
|
|
</sect1>
|
|
|
|
<sect1 id="printing-power">
|
|
<title>Power and temperature</title>
|
|
|
|
<para><citerefentry><refentrytitle>envstat</refentrytitle><manvolnum>8</manvolnum></citerefentry>
|
|
shows the sensors the machine has: temperatures, fan speeds, voltages
|
|
and the battery. <citerefentry><refentrytitle>powerd</refentrytitle><manvolnum>8</manvolnum></citerefentry>
|
|
adjusts the CPU frequency to the load, which is what keeps a laptop
|
|
cool and quiet:</para>
|
|
|
|
<screen># echo 'powerd=YES' >> /etc/rc.conf
|
|
# /etc/rc.d/powerd start
|
|
$ envstat
|
|
$ sysctl -a | grep -E 'cpu.frequency|machdep.cpu'</screen>
|
|
|
|
<para>A desktop machine can run at full speed all the time; a laptop
|
|
should not. The MCDE bar shows the battery when the machine has one,
|
|
and System Settings has the screen and sleep settings. On a machine
|
|
that supports it, <citerefentry><refentrytitle>apm</refentrytitle><manvolnum>8</manvolnum></citerefentry>
|
|
reports the battery and the AC state as well.</para>
|
|
|
|
<para>A machine that shuts down without warning is usually hot or has a
|
|
failing power supply. Read <command>envstat</command> before you blame
|
|
the software; the temperatures are the first number to look at.</para>
|
|
</sect1>
|
|
</chapter>
|