Linux Laptop-HOWTO <author>Werner Heuser <htmlurl url ="mailto:wehe@tuxmobil.org" name="<wehe@tuxmobil.org>"> <date>v2.2b, 27 February 2003 <abstract> Laptops are different from desktops/towers. They use certain hardware such as PCMCIA cards, infrared ports, batteries, docking stations. Often their hardware is more limited (e.g. disk space, CPU speed), though the performance gap is becoming smaller. In many instances, laptops can become a desktop replacement. Hardware support for Linux (and other operating systems) on laptops is sometimes more limited (e.g. graphic chips, internal modems). Laptops often use specialized hardware, hence finding a driver can be more difficult. Laptops are often used in changing environments, so there is a need for multiple configurations and additional security strategies. Though there are laptop related HOWTOs available already, this HOWTO contains a concise survey of laptop related documents. Also, laptop related Linux features, such as installation methods for laptops (via PCMCIA, without CD drive, etc.), laptop hardware features and configurations for different (network) environments are described. Besides there are some notes on PDAs, Handheld PCs and other mobile computer devices (digital cameras, cellular phones, calculators). And though some caveats Linux is a better choice for laptops, than most other operating systems. Because it supports numerous installation methods, works in many heterogenoues environments and needs smaller resources. </abstract> <toc> <sect>Preface <p> Life is the first gift, love is the second, and understanding is the third. -- <url url="http://www.capecod.net/~tmpiercy/" name="Marge Piercy"> <sect1>About the Author <p> People like either <idx>laptops</idx> or <idx>desktops</idx>. I like to work with laptops rather than with desktops. I like Linux too. My first HOWTO was the <url url="http://tuxmobil.org/howtos.html" name="Linux/IR-HOWTO"> about infrared support for Linux. My second is this one and my third the Ecology-HOWTO, about some ways to use Linux in an ecology aware manner. <p> Also I have written some pages about Linux with certain laptops: <url url="http://tuxmobil.org/echos133.html" name="Olivetti Echos 133 DM (German)"> (together with Kurt Saetzler), <url url="http://tuxmobil.org/hp800e.html" name="HP OmniBook 800CT">, <url url="http://tuxmobil.org/hp3100e.html" name="HP OmniBook 3100"> (together with Friedhelm Kueck) <url url="http://tuxmobil.org/armada1592dte.html" name="COMPAQ Armada 1592 DT"> and <url url="http://tuxmobil.org/c286lte.html" name="COMMODORE C286LT">. <p> During the work with the Laptop-HOWTO I have collected some surveys about laptop related hardware: <url url="http://tuxmobil.org/graphic_linux.html" name="graphic chips">, <it>unofficially</it> <url url="http://tuxmobil.org/pcmcia_linux.html" name="supported PCMCIA cards">, <url url="http://tuxmobil.org/modem_linux.html" name="internal modems"> and <url url="http://tuxmobil.org/ir_misc.html" name="infrared chips">. <p> But I don't claim to be a laptop guru, I just had the opportunity to install Linux on some laptops and I simply want to share the information I collected. <p> Since I don't own a non-Intel based machine, this HOWTO might not contain all the details for non-Intel systems or may contain inaccuracies. Sorry. <sect1>Sponsoring <p> This HOWTO is free of charge and free in the sense of the General Public Licence - GPL. Though it requires much work and could gain more quality if I would have some more hardware. So if you have a spare laptop, even an old one or one which requires repair, please let me know. Especially I need one with infrared port, USB port, DVD drive, WinModem and a non Intel machine. The according chapters need a major rewrite. For the curious, this HOWTO is written on a <url url="http://tuxmobil.org/hp800e.html" name="HP OmniBook 800CT 5/100">. <p> Or sponsor a banner ad at my WWW pages <url url="http://tuxmobil.org/ " name="TuxMobil">. <p> You can hire me for readings or workshops on <it>Linux with Laptops</it>, <it>Repairing of Laptops</it> and other Linux topics, too. <sect1>About the Document (Mirrors, Translations, Versions, Formats, URLs) <p> Many times I have mentioned <it>MetaLab</it> formerly known as <it>SunSite</it>. This site carries a heavy load, so do yourself a favor, use one of the <url url="http://metalab.unc.edu/pub/Linux/MIRRORS.html" name="MetaLab mirrors"> . <p> For <it>Debian/GNU Linux</it> the mirror URLs are organized in this scheme <tt>http://www.<country code, e.g. uk>.debian.org</tt> . <p> This text is included in the <url url="http://tldp.org/" name="LINUX DOCUMENTATION PROJECT - LDP"> . <p> Richard Worwood mirrors this HOWTO at <url url="http://www.felch01.demon.co.uk/laptop-howto.html" name="http://www.felch01.demon.co.uk/laptop-howto.html"> . <p> Lionel, &dquot;trollhunter&dquot; Bouchpan-Lerust-Juery, <trollhunter@linuxfr.org> provides a translation into French. You can download or browse it at <url url="http://infonomade.linuxfr.org/portables/ressourcesfr.html#howto" name="http://infonomade.linuxfr.org/portables/ressourcesfr.html#howto"> . And he mirrors the English version at <url url="http://infonomade.linuxfr.org/portables/ressourcesen.html#howto" name="http://infonomade.linuxfr.org/portables/ressourcesen.html#howto "> <p> He has also written a HOWTO about portables and wearables, please look at his pages <url url="http://infonomade.linuxfr.org/index.html" name="http://infonomade.linuxfr.org/index.html "> (French version) <url url="http://infonomade.linuxfr.org/indexen.html" name="http://infonomade.linuxfr.org/indexen.html"> (English version). <p> Translations into Japanese (Ryoichi Sato <rsato@ipf.de>), Italian (Alessandro Grillo <Alessandro_Grillo@tivoli.com>), Portuguese (Gledson Evers <pulga_linux@bol.com.br> the translation will be announced at <url url="http://www.linuxall.org" name="LinuxALL">) and Greek (Vassilis Rizopoulos <mscyvr@scs.leeds.ac.uk>) are under construction. <p> Please contact me before starting a translation to avoid double work. Since a translation is a great amount of work, I recommend to do this work as a group. <p> Nearly all of the programms I mention are available as <url url="http://www.debian.org" name="Debian/GNU Linux"> packages, or as RPM packages, look up your favorite RPM server, for instance <url url="http://rufus.w3.org/linux/RPM/ByName.html" name="RUFUS"> . <p> The latest version of this document is available in different formats at <url url="http://tuxmobil.org/" name="TuxMobil"> . <sect1>Contact <p> This document isn't ready yet. If you like to write a chapter or even a smaller part by yourself, please feel free to contact me. Also your suggestions and recommendations and critics are welcome. But please don't expect me to solve your laptop related problems if the solution is already documented. Please read all according manual pages, HOWTOs and WWW sites first, than you may consider to contact me or the other resources mentioned below. <p> Since I want to write much more stuff about mobile computing and Linux I'm thinking about turning this HOWTO into a book. <p> Werner Heuser <wehe@tuxmobil.org> <sect>Copyright, Disclaimer and Trademarks <p> Copyright © 1999 by Werner Heuser. This document may be distributed under the terms set forth in the <url url="http://metalab.unc.edu/LDP/COPYRIGHT.html" name="LDP license"> . <p> This is free documentation. It is distributed in the hope that it will be useful, but without any warranty. The information in this document is correct to the best of my knowledge, but there's a always a chance I've made some mistakes, so don't follow everything too blindly, especially if it seems wrong. Nothing here should have a detrimental effect on your computer, but just in case I take no responsibility for any damages incurred from the use of the information contained herein. <p> Some laptop manufacturers don't like to see a broken laptop with an operating system other than the one shipped with it, and may reload MS-Windows if you complain of a hardware problem. They may even declare the warranty void. Though IMHO this isn't legal or at least not fair. Always have a backup of both the original configuration and your Linux installation if you have to get your laptop repaired. <p> Though I hope trademarks will be superfluous sometimes (you may see what I mean at <url url="http://www.opensource.org/osd.html" name="Open Source Definition">) : If certain words are trademarks, the context should make it clear to whom they belong. For example &dquot;MS Windows NT&dquot; implies that &dquot;Windows NT&dquot; belongs to Microsoft (MS). Mac is a trademark by Apple Computer. All trademarks belong to their respective owners. <sect>Which Laptop to Buy? <p> <sect1>Introduction <p> Portable computers may be divided into different categories. This is a subjective decision, but I try to do so. My groupings roughly follow the generally accepted marketing categories. The criteria could be: <enum> <item> Weight: Often expressed in terms like Portables, Laptops/Notebooks, Sub/Mini-Notebooks, Palmtops/PDAs. There is no standard method to define the weight of a laptop, therefore the data provided by the manufacturers (and which are given below) have to be considered as approximations. The question is how the power supply (wether external or internal) or swappable parts like CD and floppy drive, are included in the weight. <p> Most peripheral cables are appallingly heavy. If you get a subnotebook and carry it around with a bunch of external drives, cables, and <it>port expander</it> dongles and power converter, you may be lugging a heavier bag than if it were all in one box. Subnotebooks are useful mainly if you can afford to leave all the other junk behind.</item> <item> Supported Operations Systems: proprietary versus open</item> <item> Price: NoName versus Brand</item> <item> Hardware Features: display size, harddisk size, CPU speed, battery type, etc.</item> <item> Linux Support: graphic chip, sound card, infrared controller (IrDA), internal modem, etc.</item> </enum> <sect1>Portables, Laptops/Notebooks, Sub/Mini-Notebooks, Palmtops, PDAs/HPCs <p> <sect2>Portables <p> Weight greater than 4.0 kg (9 lbs). Features like a PC, but in a smaller box and with LCD display. Examples: lunchbox or ruggedized laptops (e.g., <url url="http://www.bsicomputer.com/" name="http://www.bsicomputer.com/">) <sect2>Laptops/Notebooks <p> Weight between 1.7 and 4.0 kg (4 to 9 lbs). Features custom hardware and usually a special CPU. Examples: HP OmniBook 3100, COMPAQ Armada 1592DT. The terms <it>laptop</it> and <it>notebook</it> seem equivalent to me. <sect2>Sub-Notebooks/Mini-Notebooks <p> Weight between 1.3 and 1.7 kg (3 to 4 lbs). Features: external floppy drive, external CD drive. Examples: HP OmniBook 800CT, Toshiba Libretto 100, COMPAQ Aero, SONY VAIO 505. <sect2>Palmtops <p> Weight between 0.7 and 1.3 kg (1.5 to 3 lbs). Features: proprietary commercial operating systems. Examples: HP200LX. <sect2>Personal Digital Assistants (PDAs)/Handheld PCs (HPCs) <p> Weight below 0.7 kg (1.5 lbs). Features: proprietary commercial operating systems and often non-Intel CPU with commercial operating systems like PalmOS, EPOC32, GEOS, Windows CE. Examples: Newton Message Pad, Palm III (former Pilot), Psion Series 3 and 5, CASIO Z-7000. <sect2>Wearables <p> Watches, digital pens, calculators, digital cameras, cellular phones and other wearables. <sect1>Linux Features <p> Due to a lack of support by some <idx>hardware manufacturers</idx>, not every feature of a laptop is always supported or fully operational. The main devices which may cause trouble are: graphic chip, IrDA port, sound card, PCMCIA controller , PnP devices and internal modem. Please try to get as much information about these topics before buying a laptop. But often it isn't quite easy to get the necessary information. Sometimes even the specifications or the hotline of the manufacturer aren't able to provide the information. Therefore I have included a Linux <idx>Compatibility Check</idx> chapter in the Hardware In Detail sections below. <p> Depending on your needs, you might investigate one of the vendors that provide laptops pre-loaded with Linux. By purchasing a pre-loaded Linux laptop, much of the guesswork and time spent downloading additional packages could be avoided. See the <url url="http://tuxmobil.org/laptop_manufacturer.html" name="Linux Laptop Manufacturer Survey">. <sect1>Main Hardware Features <p> Besides its Linux features, there often are some <it>main features</it> which have to be considered when buying a laptop. For <it>Linux features</it> please see the Hardware In Detail section below. <sect2>Weight <p> Don't underestimate the weight of a laptop. This weight is mainly influenced by: <enum> <item> screen size</item> <item> battery type</item> <item> internal components, such as CD drive, floppy drive</item> <item> power supply</item> <item> material used for the case, usually they are either from plastics or from magnesium. </enum> <sect2>Display <p> Laptops come with one of two types of displays: <it>active</it> matrix (TFT) and <it>passive</it> matrix (DSTN). Active matrix displays have better color and contrast, but usually cost more and use more power. Also consider the screen size. Laptops may be purchased with screens up to 15&dquot;. A bigger screen weighs more, costs more, and is harder to carry, but is good for a portable desktop replacement. <sect2>Batteries <p> The available battery types are <it>Lithium Ion (LiIon)</it>, <it>Nickel Metal Hydride ( NiMH)</it> and <it>Nickel Cadmium (NiCd)</it>. LiIon batteries are the most expensive ones but a lot lighter than NiCd for the same energy content, and have minimal -- but present -- memory effects. NiMH is better than NiCd, but still rather heavy and does suffer some (although less than NiCd) memory effects. Unfortenately most laptops come with a proprietary battery size. So they are not interchangeable between different models. <sect2>CPU <p> <sect3>Supported CPU Families <p> For details about systems which are supported by the Linux Kernel, see the <url url="http://www.cl.cam.ac.uk/users/iwj10/linux-faq/" name="Linux FAQ"> . See also <url url="http://www.ctv.es/USERS/xose/linux/linux_ports.html" name="Current ports of Linux OS"> <enum> <item>i286: Linux doesn't support this CPU family yet. But there are some efforts at <url url="http://www.elks.ecs.soton.ac.uk/" name="ELKS">. If you like, you may use <url url="http://www.cs.vu.nl/~ast/minix.html" name="Minix"> one of the predecessors of Linux. Minix supports 8088 to 286 with as little as 640K memory. Actually there are some laptops with ELKS around, for instance the <url url="http://tuxmobil.org/c286lte.html" name="Commodore C286LT"> <item>i386: This covers PCs based on Intel-compatible processors, including Intel's 386, 486, Pentium, Pentium Pro and Pentium II, and compatible processors by AMD, Cyrix and others. Most of the currently available laptops use Intel compatible CPUs and have quite good Linux support. <item>m68k: This covers Amigas and Ataris having a Motorola 680x0 processor for x>=2; with MMU. And the early Apple/Macintosh computers. <p> There was a long series of Apple PowerBooks and other laptops based on the m68k chip. Macintosh Portable (an ugly 16-pound first attempt); PowerBook 100, 140, 170, 145, 160, 180c, 165c, 520c, 540c, 550c, 190; Duo 210, 230, 250, 270c, 280. The PowerBook Duos were available at the same time as the PowerBooks, they were a sort of subnotebook, but were designed so that you could plug them into a base station (a DuoDock) with more RAM, peripherals, etcetera, so that they could also act as a desktop computer. The first PowerPC PowerBooks were the ill-starred PowerBook 5300 (after the 190) and the Duo 2300c. <p> For a complete list of all Macintosh computers ever made, with specifications, see <url url="http://www.apple-history.com/gallery.html" name="Apple-History">. <p> Note also that readers should *not* go to www.linuxppc.org for hardware compatibility with 68k laptops--as the name implies, LinuxPPC is only for PowerPC machines. The proper place to go for information on running Linux on m68k Macintoshes is: <url url="http://www.mac.linux-m68k.org/" name="linux-m68k">. <p> In particular, their hardware compatibility list is at: <url url="http://www.mac.linux-m68k.org/status/sysreq.html" name="linux-m68k-status"> and it states in regards to laptops: <p> &dquot;Much like laptops of the Intel/Linux world, Mac laptops have generally different setups that can be very hard to figure out. Also, because of a general lack of machines to test, we are only aware of boots on the Powerbook 145, Powerbook 150, Powerbook 170, Powerbook 180, and Powerbook 190. Even if it boots, we currently have no support for Powerbook-style ADB, the APM support, or just about anything else on them. This means the only way to log in is with a terminal hooked up to the serial interface, this has been tested on the 170.&dquot; <p> &dquot;Several Powerbooks have internal IDE which is supported. PCMCIA drivers will be forthcoming if someone can supply the necessary hardware information to write a driver. As always, an FPU is needed also. Many of the later models have the 68LC040 processor without FPU, and many of these processors are broken with respect to the FPU trap mechanism so they can't run regular Linux binaries even with FPU emulation. Current status on Powerbooks 140, 160, 165, 165c, 180c, 190, 520 and Duos 210, 230, 250, 270c, 280, and 280c is unknown.&dquot; <p> Also there are two Atari laptops, for which I don't have enough information. The following quotations are from the <url url="http://capybara.sk-pttsc.lj.edus.si/yescrew/eng/atari.htm" name="Atari Gallery">. <p> &dquot;The <it>STacy</it> was released shortly after the <it>Mega ST</it> to provide a portable means of Atari computing. STacy computers were shipped with TOS v1.04. <p> Designed to replace the <it>STacy</it> as the defacto portable ST computer, the <it>ST Book</it> brought the basic computing power of an ST to a lightweight notebook computer. This machine was only released in Europe and Atari only shipped a very small quantity. The ST Book was shipped with TOS v2.06.&dquot; <p> Is there an Amiga notebook? <item>PowerPC (PPC): Although some driver support present in Intel based Linux is still missing for Linux PPC, it is a fully usable system for Macintosh PowerBooks. See <url url="http://www.linuxppc.org/hardware/" name="LinuxPPC"> for a current list of supported machines. <p> BTW: The team at <url url="http://www.imaclinux.net" name="iMac Linux"> has managed to get the iMac DV to boot Linux to a usable point. You may get information about the iBook there as well. <item>Alpha, Sparc, Sparc64 architectures: These are currently under construction. AFAIK there are only the Tadpole SPARC and ALPHA laptops, and some other ALPHA laptops available. <item>StrongARM: a very low-power CPU found in Rebel.com's popular NetWinder (some kind of mobile computer, too), and actively supported in the Debian project, it is also in several WinCE machines, such as HP's Jornadas. Only the lack of tech specs prevents Linux from being ported to these tiny, long-battery-life machines. A full-scale StrongARM-based laptop would make a superb Linux platform, but none exists yet. <p> For PDAs with ARM/StrongARM CPU see the PDA chapter below. <item>MIPS: Used in SGI mainframes and Cobalt Micro intranet appliances, chips based on this architecture are used in many Wince machines. Linux has been ported to a few of these, including the lovely little Vadem Clio. Vadem has been admirably cooperative. <p> More about Linux on Wince boxes may be found at <url url="http://www.2gn.com/~jjorgens/linuxce_faq.html" name="LinuxCE-FAQ">. </enum> <sect3>Miscellaneous <p> At higher speed, a CPU consumes more power and generates more heat. Therefore, in many laptops a special low-power CMOS CPU is used. Usually, this special CPU doesn't use as much power as a similar processor used in a desktop. These special CPUs are also more expensive. As a side effect you may find that laptops with a desktop CPU often have a fan which seems quite loud. <sect2>Cooling <p> An enormously important issue. Anything based on PPC or Pentium will generate enormous amounts of heat which must be dissipated.Generally, this means either a fan, or a heat sink the size of the case.If it's a fan, the air path had better not ever get blocked, or it will overhead and burn out.This means machines with a fan mounted in the bottom are a big, big mistake: you can't use them on a soft surface. <sect2>Keyboard Quality <p> Though you might use your desktop computer to do longer writings, a good keyboard can save you some headaches and finger-aches. Look especially for the location of special keys like: <tt><ESC></tt>, <tt><TAB></tt>, <tt><Pos1></tt>, <tt><End></tt>, <tt><PageDown></tt>, <tt><PageUp></tt> and the cursor keys. <p> <sect2>Price <p> Laptops are quite expensive if you compare them with desktops. So you may decide between a brand or no-name product. Though I would like to encourage you to take a <it>no-name</it> product, there are some caveats. I have experienced that laptops break often, so you are better off, when you have an after sales warranty, which is usually only offered with brand products. Or you may decide to take a <it>second hand</it> machine. When I tried this, I discovered that the laptop market is changing quite often. A new generation is released approximately every three months (compared by CPU speed, harddisk capacity, screen size etc.). So laptops become old very quick. But this scheme often isn't followed by the prices for second hand laptops. They seem too expensive to me. Anyway if you plan on purchasing a second hand machine, review my recommendations on checking the machine. For German readers there is an online market place at <url url="http://www.hardware.de" name="http://www.hardware.de">, which offers a good survey about current prices for second hand machines. <sect2>Power Supply <p> If you travel abroad pay attention to the voltage levels which are supported by the power supply. Also the power supply is often one of the heavier parts of a laptop. <sect1>Sources of More Information <p> Specifications, manuals and manufacturer support often are not helpful. Therefore you should retrieve information from other sources too: <enum> <item> Highly recommended is the survey by Kenneth E. Harker <url url="http://www.linux-on-laptops.com/" name=" http://www.linux-on-laptops.com/"> .</item> <item> <url url="ftp://tsx-11.mit.edu/pub/linux/packages/laptops/" name=" ftp://tsx-11.mit.edu/pub/linux/packages/laptops/"> .</item> <item> Hardware-HOWTO</item> <item> open hardware - The Open Hardware Certification Program <url url="http://www.debian.org/OpenHardware/" name=" http://www.debian.org/OpenHardware/"> </item> <item>HARDWARE.doa.org - dedicated to the hardware aspects of (Linux) computing <url url="http://hardware.doa.org/" name=" http://hardware.doa.org/"> </item> <item>How to Build a PC FAQ - excellent hardware overview by Billy Newsom <url url="http://www.motherboards.org/build.html" name="http://www.motherboards.org/build.html"></item> <item> Last but not least the WWW itself.</item> </enum> <sect1>Linux Compatibility Check <p> <sect2>Related HOWTOs <p> <enum> <item> Hardware-HOWTO</item> <item> Kernel-HOWTO</item> <item> PCMCIA-HOWTO</item> <item> PCI-HOWTO</item> <item> Plug-and-Play-mini-HOWTO</item> </enum> <sect2>Check Methods in General <p> If you can't find the necessary information through the above mentioned sources, you are on your own. Luckily, Linux provides many means to help. For details see the Hardware on Detail section below. In general you may use: <enum> <item> First of all the kernel itself. Look up what kind of hardware is detected by the kernel. You get this information during boot time or usually by <tt>dmesg</tt> or by looking into <file>/var/log/messages</file>. <item> If your kernel supports the <file>/proc</file> file system you may get detailed information about PCI devices by <tt>cat /proc/pci</tt> Please read the kernel documentation <file>pci.txt</file>. You may get further information about unknown PCI devices at the database from Craig Hart at <url url="http://members.hyperlink.net.au/~chart" name="http://members.hyperlink.net.au/~chart">. From 2.1.82 kernels on you may use the <tt>lspci</tt> command from the <tt>pci-utils</tt> package. <item> To retrieve information about Plug-and-Play (PNP) devices use <tt>isapnp-tools</tt> . <item> Use <tt>scsi_info</tt> by David Hinds for SCSI devices or <tt>scsiinfo</tt>. </enum> If you don't want to install a complete Linux you may retrieve this information by using a micro Linux ( see appendix A). The package <tt>muLinux</tt> provides even a small <tt>systest</tt> program and <tt>TomsRtBt</tt> comes with <tt>memtest</tt>. To use <tt>memtest</tt> you have to copy it on a floppy <tt>dd if=/usr/lib/memtest of=/dev/fd0</tt> and to reboot from this floppy. <p> If your laptop came with Windows, you may determine a lot of hardware settings from the installation. Boot into DOS or Windows to get the information you need. <p> Using Windows9x/NT to get hardware settings, basically boot Windows, then <tt>Start -> Settings -> Control Panel -> System -> Device Manager</tt> and write down everything, or make a hardcopy from the display using the <tt><PRINT></tt> key, plus keep a log of settings, hardware, memory, etc. <p> Using MS-DOS and Windows3.1x you can use the command <tt>msd</tt>, which is an akronym for MicroSoft Diagnostics. Or you might try one of the numerous DOS shareware utilities: <tt>CHECK-IT</tt>, <tt>DR.HARD</tt> and others. <p> Sometimes it's difficult to know what manufacturer has built the machine or parts of it actually. The <url url="http://www.fcc.gov/fcc-bin/ead" name="FCC"> &dquot;Federal Communications Commission On-line Equipment Authorization Database may be used, if you are having problems identifying the manufacturer of a laptop or notebook computer (or other electronic device,) this site lets you search the FCC database based on the FCC ID number you can usually find on the equipment if it was marketed in the United States of America.&dquot; <p> <url url="http://www.linux-mandrake.com/lothar/" name="The Lothar Project"> is a Mandrake-related project to provide a GUIed interface to get at hardware configuration information on Linux-based systems. It provides a library for different system informations, too. <p> Many laptops are no more compatible with Windows than Linux. David Hinds, author of the PCMCIA drivers, points out that Toshiba notebooks use a proprietary Toshiba PCMCIA bridge chip that exhibits the same bugs under Windows as under Linux. IBM Thinkpads have serious BIOS problems that affect delivery of events to the power management daemon <tt>apmd</tt>. These bugs also affect MS-Windows, and are listed in IBM's documentation as <it>considerations</it>. <p> Some incompatibilities are temporary, for instance laptops that have Intel's USB chip will probably get full USB support, eventually. <sect1>Writing a Device Driver <p> If you encounter a device which is not yet supported by Linux, don't forget it's also possible to write a driver by yourself. You may look at the book from Alessandro Rubini, Andy Oram: Linux Device Drivers. <sect1>Buying a Second Hand Laptop <p> Some recommendations to check an used laptop, before buying it: <enum> <item> Review the surface of the case for visible damages.</item> <item> Check the display for pixel faults. Maybe it's useful to take a magnifying glass therefore.</item> <item> Do an IO stress-test, .e.g. with the tool <tt>bonnie</tt>.</item> <item> You may use <tt>memtest</tt> and <tt>crashme</tt> to achieve a memory test. <item> Do a CPU stress test, e.g. with the tool <tt>Byte</tt> or by compiling a kernel.</item> <item> Check the floppy drive by formatting a floppy.</item> <item> Check the CD drive by reading a CD.</item> <item> To check the battery seems difficult, because it needs some time: one charge and one work cycle.</item> <item> To check the surface of the harddisk you may take <tt>e2fsck</tt>. There is also a Linux tool <tt>dosfsck</tt> or the other <tt>fsck</tt> tools.</item> <item> To test the entire disk (non-destructively), time it for performance, and determine its size, as root do: <tt>time dd if=/dev/hda of=/dev/null bs=1024k</tt> . <item> Check wether the machine seems stolen. I have provided a <url url="http://tuxmobil.org/stolen_laptops.html" name="survey of databases for stolen laptops">. </enum> AFAIK there is no Linux tool like the DOS tools CHECK-IT, DR. HARD, SYSDIAG and others. These tools include many of the tests in one integrated suite. One of the best IMHO is the tool <tt>PC Diagnostics 95</tt> made by Craig Hart <url url="http://members.hyperlink.net.au/~chart" name="http://members.hyperlink.net.au/~chart"> . Despite the 95 in its name it's plain DOS, tiny (76KB programm and 199KB data) reliable and free. Unfortenately it contains no check for the IrDA port. <p> Please note this quotation from the disclaimer: &dquot;This program is written with the target audience being a trained, experienced technician. It is NOT designed to be used by those ignorant of computer servicing. Displays are not <it>pretty</it> but functional. Information is not explained since we are not trying to educate. This software should be considered to be just like any other tool in a tech's toolbox. It is to be applied with care, in the right situation, in order to find answers to specific problems. If you are an end user who is less than confident of dealing with computer hardware, this is probably not a program for you.&dquot; <p> Laptop computers, unlike desktop machines, really do get used up. <it>Lithium batteries</it> are good for no more than 400 recharge cycles, sometimes much fewer. <it>Keyboards</it> wear out. <it>LCD screen backlighting</it> grows dim. <it>Mouse buttons</it> fail. Worst of all, <it>connectors</it> get loose as a result of vibration, causing intermittent failures (e.g. only when you hit the <Enter> key). We have heard of a machine used on the table in a train being shaken to unusability in one trip. <sect1>No Hardware Recommendations <p> It's difficult to give any recommendations for a certain laptop model in general. Your personal needs have to be taken into account. Also the market is changing very quickly. I guess every three months a new generation of laptops (according to harddisk space, CPU speed, display size, etc.) comes into the market. So I don't give any model or brand specific recommendations. <sect>Laptop Distribution <p> <sect1>Requirements <p> From the Battery-HOWTO I got this recommendation (modified by WH): A Message to Linux Distributors If you happen to be a Linux distributor, thank you for reading all this. Laptops are becoming more and more popular, but still most Linux distributions are not very well prepared for portable computing. Please make this section of this document obsolete, and make a few changes in your distribution. The installation routine should include a configuration, optimized for laptops. The <it>minimal install</it> is often not lean enough. There are a lot of things that a laptop user does not need on the road. Just a few examples. There is no need for three different versions of vi (as found in Suse Linux). Most portable systems do not need printing support (they will never be connected to a printer, printing is usually done with the desktop system at home). Quite a few laptops do not need any network support at all. Don't forget to describe <it>laptop-specific installation problems</it>, e. g. how to install your distribution without a cd-rom drive or how to setup the plip network driver. Add better <it>power management</it> and seamless <it>PCMCIA support</it> to your distribution. Add a recompiled kernel and an alternative set of PCMCIA drivers with <it>apm support</it> that the user can install on demand. Include a precompiled <it>apmd package</it> with your distribution. Add support for dynamically <it>switching network configurations</it>. Most Linux laptops travel between locations with different network settings (e. g. the network at home, the network at the office and the network at the university) and have to change the network ID very often. Changing a Linux system's network ID is a pain with most distributions. Add a <it>convenient PPP dialer</it> with an address book, that does not try to start multiple copies of the PPP daemon if you click on the button twice (e.g., the RedHat <tt>usernet</tt> tool). It would be nice to have the PPP dialer also display the connection speed and some statistics. One nice command line dialer that autodetects modems and PPP services is <tt>wvdial</tt> from Worldvisions <url url="http://www.worldvisions.ca/wvdial/" name="http://www.worldvisions.ca/wvdial/">. <sect1>Recommendation <p> The <url url="http://www.debian.org" name="Debian/GNU Linux"> has most of the desired features for a laptop installation. The distribution has a quite flexible installation tool. The installation process is well documented, especially concerning the methods which are useful at laptops. All the binaries are tiny, because they are stripped. A mailing list <it>debian-laptop</it> including a searchable archiv is provided. And Debian/GNU Linux is free. <p> At the end of August 1999 the <url url="http://tuxmobil.org/debian_linux.html" name="Debian Laptop Distribution - Proposal"> was issued. And some more laptop related packages and a Debian <it>meta-package</it> dedicated to laptops are on the way. <p> Note: I know other Linux distributions work well with laptops, too. I even tried some of them, see my pages about certain laptops mentioned above. <sect>Installation <p> <sect1>Related HOWTOs <p> <enum> <item> CDROM-HOWTO</item> <item> Config-HOWTO</item> <item> Diskless-mini-HOWTO</item> <item> Installation-HOWTO</item> <item> Pre-Installation-Checklist-mini-HOWTO</item> <item> Update-mini-HOWTO</item> <item> Hard-Disk-Upgrade-mini-HOWTO</item> <item> Installation and getting started by Matt Welsh and others available at the LINUX DOCUMENTATION PROJECT <url url="http://metalab.unc.edu/LDP" name="http://metalab.unc.edu/LDP"></item> <item> Installing Debian Linux 2.1 For x86 by Bruce Perens, Sven Rudolph, Igor Grobman, James Treacy, Adam P. Harris <url url="ftp://ftp.debian.org/debian/dists/slink/main/disks-i386/current/install.html" name="ftp://ftp.debian.org/debian/dists/slink/main/disks-i386/current/install.html"> <item> Install-From-Zip-mini-HOWTO</item> <item> <url url="http://www.torque.net/~campbell" name="ZIP-Drive-mini-HOWTO "> </item> </enum> <sect1>Prerequisites - Partitioning <p> Partitioning can be done in a very sophisticated way. Currently I have only some first thoughts. I assume that with laptops there are still some reasons (e.g. updating the firmware of PCMCIA cards and BIOS) to share Linux and Windows9x/NT. Depending on your needs and the features of your laptop you could create the following partitions: <itemize> <item>BIOS, some current BIOSes use a separate partition <item>suspend to disk, some laptops support this feature <item>swap space Linux <item>swap space Windows9x/NT <item>Linux base <item>Linux <file>/home</file> or data <item>common data between Linux and Windows9x/NT </itemize> Note this chapter isn't ready yet. Please read the according HOWTOs first. <sect1>Linux Tools to Repartition a Hard Disk <p> <sect2>GNU parted <p> <url url="http://www.alphalink.com.au/~clausen/parted/" name="GNU parted"> allows you to create, destroy, resize and copy partitions. It currently supports ext2 and fat (fat16 and fat32) filesystems, and MS-DOS disklabels. This program can destroy data, and is not yet safe for general use. <tt>parted</tt> is currently in its early developement stage. <sect2>ext2resize <p> <url url="http://www.dsv.nl/~buytenh/ext2resize/" name="ext2resize"> is a program capable of resizing (shrinking and growing) ext2 filesystems. Checks whether the new size the user gave is feasible (i.e. whether the fs isn't too occupied to shrink it), connected to the <tt>parted</tt> project. <sect2>fixdisktable <p> Something was recently published on the <linux-kernel@vger.kernel.org> mailing list about a partition recovery program. I have not used this, nor examined it, nor read much about it (except for the HTML page.) It may be useful to some of you if you have problems with FIPS, Ranish Partition Manager/Utility or Partition Magic destroying your partition information. You can find information on this partition-fixer named &dquot;fixdisktable&dquot; at <url url="http://bmrc.berkeley.edu/people/chaffee/fat32.html" name="http://bmrc.berkeley.edu/people/chaffee/fat32.html ">. It is quite a ways down in that page. Or look for it via ftp in <url url="ftp://bmrc.berkeley.edu/pub/linux/rescue/" name=" ftp://bmrc.berkeley.edu/pub/linux/rescue/"> and locate the latest &dquot;fixdisktable&dquot; in that ftp directory. (Source and binary dist should be available.) <sect2>Caveats <p> Before repartitioning your harddisk take care about the disk layout. Especially look for hidden disk space or certain partitions used for <it>suspend to disk</it> or <it>hibernation</it> mode. Some laptops come with a partition which contains some BIOS programs (e.g. COMPAQ Armada 1592DT). Search the manual carefully for tools like <tt>PHDISK.EXE</tt>, Suspend to Disk, Diagnostic TOOLS. <p> Please see chapter <ref id="dostools" name="DOS Tools to Repartition a Hard Disk">, too. <p> By Nathan Myers from <url url="http://www.linuxlaptops.com" name="LL - LinuxLaptops">: &dquot;I partitioned a 10G Thinkpad drive last week and then none of fdisk, cfdisk, or sfdisk would read the partition table any more. It turns out I had created a partition that started on cylinder 1024, and there's a bug common to all three programs that makes them fail in that case. (I didn't try Disk Druid.) So, maybe you should add some advice about not starting partitions on that cylinder.&dquot; <sect2>Multi Boot <p> Please see the Different Environments chapter, for information about booting different operating systems from the same harddisk. <sect1>Installation Methods <p> From the Battery-HOWTO:&dquot;Installing and using Linux on a laptop is usually no problem at all, so go ahead and give it a try. Unlike some other operating systems, Linux still supports and runs well on even very old hardware, so you might give your outdated portable a new purpose in life by installing Linux on it.&dquot; <p> One of the great benefits of Linux are its numerous and flexible installation features, which I don't want to describe in detail. Instead I try to focus on <it>laptop specific methods</it>, which are necessary only in certain circumstances. <p> Most current distributions support installation methods which are useful for laptops, including installation from CD-ROM, via PCMCIA and NFS (or maybe SMB). Please see the documents which are provided with these distributions for further details or take a look at the above mentioned manuals and HOWTOs. <sect1>From a Boot Floppy plus CD-ROM - The Usual Way <p> With modern laptops, the usual Linux <idx>installation</idx> (one Boot Floppy, one Support Floppy, one Packages CD-ROM) should be no problem, if there is are floppy drive and a CD-ROM drive available. Though with certain laptops you might get trouble if you can not simultaneously use the <it>floppy drive and CD-ROM drive </it>, or if the floppy drive is <it>only available as a PCMCIA device</it>, as with the Toshiba Libretto 100. Some laptops support also booting and therefore installation completely from a CD drive, as reported for the SONY VAIO in the VAIO-HOWTO. Note: Check the BIOS for the CD boot option and make sure your Linux distribution comes on a bootable CD. <p> Certain laptops will only boot <it>zImage</it> kernels. <it>bzImage</it> kernels won't work. This is a known problem with the IBM Thinkpad 600 and Toshiba Tecra series, for instance. Some distributions provide certain boot floppies for these machines or for machines with limited memory resources, Debian/GNU Linux <url url="http://www.debian.org" name="http://www.debian.org"> for instance. <sect1>From a DOS or Windows Partition at the Same Machine <p> This is a short description of how to install from a CD-ROM under DOS without using boot or supplemental floppy diskettes. This is especially useful for notebooks with <it>swappable floppy and CD-ROM components</it> (if both are mutually exclusive) or if they are <it>only available as PCMCIA devices</it>. I have taken this method from &dquot;Installing Debian GNU/Linux 2.1 For Intel x86 - Chapter 5 Methods for Installing Debian&dquot; <url url="http://www.debian.org" name="http://www.debian.org"> : <enum> <item>Get the following files from your nearest Debian FTP mirror and put them into a directory on your DOS partition: <tt>resc1440.bin drv1440.bin base2_1.tgz root.bin linux install.bat</tt> and <tt>loadlin.exe</tt>. <item>Boot into DOS (not Windows) without any drivers being loaded. To do this, you have to press <<tt>F8</tt>> at exactly the right moment. <item>Execute <tt>install.bat</tt> from that directory in DOS. <item>Reboot the system and install the rest of the distribution, you may now use all the advanced features such as PCMCIA, PPP and others. </enum> This should work for other distributions with similar changes. For RedHat see <url url="http://www.linux-on-laptops.com/install_advice.html" name="How to Install from CD-ROM without Boot and Supplemental Disks"> . <p> Some new laptops may be able to boot a Linux distribution on a bootable CD-ROM (e.g., RedHat). This would allow installation without a floppy disk drive. <sect1>From a Second Machine With a Micro Linux On a Floppy <p> <sect2>Introduction <p> Because of their small or non-existent footprint, micro-Linuxes are especially suited to run on laptops, particularly if you use a company-provided laptop running Windows9x/NT. Or for installation purposes using another non Linux machine. There are several <it>micro</it> Linux distributions out there that boot from one or two floppies and run off a ramdisk. See appendix A for a listing of distributions. <p> I tried the following with <tt>muLinux</tt> <url url="http://mulinux.firenze.linux.it/" name="http://mulinux.firenze.linux.it/"> to clone my HP OmniBook 800 to a COMPAQ Armada 1592DT. Thanks to Michele Andreoli, maintainer of muLinux for his support. Since <tt>muLinux</tt> doesn't support PCMCIA yet, you may use <tt>TomsRtBt</tt> instead. In turn <tt>TomsRtBt</tt> doesn't support <tt>PPP</tt> but provides <tt>slip</tt>. Note: Since version 7.0 <tt>muLinux</tt> provides an Add-On with PCMCIA support. <p> I have described how to copy an already existing partition, but it might be also possible to achieve a customized installation. Note: Usually you would try to achieve an installation via NFS, which is supported by many distributions. Or if your sources are not at a Linux machine you might try the SMB protocol with SAMBA, which is also supported by <tt>muLinux</tt> . <sect2>Prerequisites <p> You need two machines equipped with Linux. With the laptop (client/destination) on which you want to install Linux use the muLinux floppy. The other machine (server/source) may be a usual Linux box or also using muLinux. Though its low transfer rate I use a serial null modem cable because its cheap. You may apply the according method using a PCMCIA network card and a crossover network cable or a HUB, or a parallel &dquot;null modem&dquot; cable and PLIP. As the basic protocol I used PPP, but you may also use SLIP. For the data-transfer I used <tt>nc</tt>. Note: this is an abbrevation for <tt>netcat</tt>, some distributions use this as the program name. You may use <tt>ftp</tt>, <tt>tftp</tt>, <tt>rsh</tt>, <tt>ssh</tt>, <tt>dd</tt>, <tt>rcp</tt>, <tt>kermit</tt>, <tt>NFS</tt>, <tt>SMB</tt> and other programs instead. Basic requirements are: <enum> <item> A good knowledge about using Linux. You have to know exactly what you are doing, if not you might end destroying former installations.</item> <item> A nullmodem serial cable.</item> </enum> <sect2>Source Machine <p> At your <it>source</it> machine issue the following commands (attention: IP address, port number, partition and tty are just examples!): <enum> <item> Edit <file>/etc/ppp/options</file>, it should contain only: <code> /dev/ttyS0 115200 passive </code></item> <item>With muLinux versions 3.x you may even use the convenient command <tt>setup -f ppp</tt> .</item> <item> Start PPP: <tt>pppd</tt> .</item> <item> Configure the PPP network device: <tt>ifconfig ppp0 192.168.0.1</tt> .</item> <item> Add the default route: <tt>route add default gw 192.168.0.1</tt> .</item> <item> Check the network connection: <tt>ping 192.168.0.2</tt>, though the destination machine isn't up yet.</item> <item> Start the transfer from another console, remember <tt><LEFT-ALT><Fx></tt>: <tt>cat /dev/hda2 | gzip -c | nc -l -p 5555</tt> .</item> <item> After the transfer (there are no more harddisk writings) stop the ping: <tt>killall ping</tt> .</item> </enum> <sect2> Destination Machine <p> At the <it>destination</it> machine issue: <enum> <item> Edit <file>/etc/ppp/options</file>, it should contain only: <code> /dev/ttyS0 115200 passive </code></item> <item>With muLinux versions >= 3.x you may even use the convenient command <tt>setup -f ppp</tt> .</item> <item> Start PPP: <tt>pppd</tt> .</item> <item> Configure the PPP network device: <tt>ifconfig ppp0 192.168.0.2</tt> .</item> <item> Add the default route: <tt>route add default gw 192.168.0.2</tt> .</item> <item> Check the network connection, by pinging to the source machine: <tt>ping 192.168.0.1</tt> .</item> <item> Change to another console and get the data from the server: <tt>nc 192.168.0.1 5555 | gzip -dc >/dev/hda4</tt> .</item> <item> 400 MB may take app. 6 hours, but YMMV.</item> <item> Stop the transfer, when it is finished with: <tt><CTL><C></tt> . This can probably be avoided (but I didn't test it) by adding a timeout of 3 seconds using the <tt>-w 3</tt> parameter for <tt>nc</tt> at the destination machine <tt>nc -w 3 192.168.0.1 5555 | gzip -dc >/dev/hda4</tt></item> <item> After the transfer is completed, stop the ping: <tt>killall ping</tt> .</item> </enum> <sect2>Configuration of the Destination Machine after the Transfer <p> <enum> <item> Edit <file>/etc/fstab</file> .</item> <item> Edit <file>/etc/lilo.conf</file> and <file>/etc/lilo.msg</file> and start <tt>lilo</tt> .</item> <item> Set the new root device to the kernel: <tt>rdev image root_device</tt> .</item> </enum> <sect2>Miscellaneous <p> <enum> <item> You may use <tt>bzip2</tt> the same way as <tt>gzip</tt> (untested). <item> Since <tt>rshd</tt>, <tt>sshd</tt>, <tt>ftpd</tt> daemons are not available with muLinux you have to build your own daemon with <tt>nc</tt> aka <tt>netcat</tt>, as described above.</item> <item> I had to set up both PPP sides very quick or the connection broke, I don't know why.</item> <item> Speed optimization has to be done, <tt>asyncmap 0</tt> or <tt>local</tt>?</item> <item> I checked this only with a destination partition greater than the source partition. Please check <tt>dd</tt> instead of <tt>cat</tt> therefore. <p> Or do the following (untested): At the destination machine <tt>cd</tt> into the root directory <file>/</file> and do <tt>nc -l -p 5555 | bzip2 -dc | tar xvf -</tt>. At the source machine machine <tt>cd</tt> into the root directory <file>/</file> and do <tt>tar cvf - . | bzip2 | nc -w 3 192.168.0.2 5555</tt>. This should shorten the time needed for the operation, too. Because only the allocated blocks need to be transfered. <item> Don't <tt>mount</tt> the destination partition.</item> </enum> <sect1>From a Second Machine With a 2.5&dquot; Hard Disk Adapter <p> From Adam Sulmicki adam@cfar.unc.edu I got this hint: Most but not all harddisks in laptops are removable, but this might be not an easy task. You could just buy one of those cheap 2.5&dquot; IDE converters/adapters which allow you to connect this harddisk temporarily to a PC with IDE subsystem, and install Linux as usual using that PC. You may do so using the harddisk as the first IDE drive or besides as the second IDE drive. But than you need to be sure that lilo writes to the right partition. Also you have to make sure that you use the same translation style as your laptop is going to use (i.e. LBA vs. LARGE vs. CHS ). You find additional information in the Hard-Disk-Upgrade-mini-HOWTO. You might copy an existing partition, but it is also possible to achieve a customized installation. <sect1>From a PCMCIA Device <p> Since I don't have a laptop which comes with a PCMCIA <it>floppy drive</it> (for instance Toshiba Libretto 100), I couldn't check this method. Please see the chapter Booting from a PCMCIA Device in the PCMCIA-HOWTO. Also I couldn't check whether booting from a PCMCIA <it>harddisk</it> is possible. <p> Anyway, when you are able to boot from a floppy and the laptop provides a PCMCIA slot, it should be possible to use different PCMCIA cards to connect to another machine, to an external SCSI device, different external CD and ZIP drives and others. Usually these methods are described in the documentation which is provided with the distribution. <sect1>From a Parallel Port Device (ZIP Drive, CD Drive) <p> I couldn't check this method by myself, because I don't have such a device. Please check the according Install-From-Zip-mini-HOWTO and CD-HOWTO. Also I don't know how much these installation methods are supported by the Linux distributions or the micro Linuxes. I suppose you have to fiddle around a bit to get this working. <sect1>From a Second Machine Using the Parallel Port - PLIP Network Install <p> I got this courtesy by Nathan Myers <ncm@cantrip.org>: &dquot;Many distributions support installing via a network, using FTP, HTTP, or NFS. It is increasingly common for laptops to have only a single PCMCIA slot, already occupied by the boot floppy drive. Usually the boot floppy image has drivers for neither the floppy drive itself, nor the PCMCIA subsystem. Thus, the only network interface available may be the parallel port. <p> Installation via the parallel port using the PLIP protocol has been demonstrated on, at least, Red Hat. All you need is a <it>Laplink</it> parallel cable, cheap at any computer store. See the PLIP-mini-HOWTO for details on setting up the connection. Note that (uniquely) the RedHat installation requires that the other end of the PLIP connection be configured to use ARP (apparently because RedHat uses the DOS driver in their installer). On the host, either <tt>export</tt> your CD file system on NFS, or <tt>mount</tt> it where the ftp or web daemon can find it, as needed for the installation.&dquot; <p> The PLIP Install HOWTO by Gilles Lamiral describes how to install the Debian GNU-Linux distribution on a computer without ethernet card, nor cdrom, but just a local floppy drive and a remote nfs server attached by a Null-Modem parallel cable. The nfs server has a cdrom drive mounted and exported. <sect1>Installing Linux on Small Machines <p> If you have less than 8MB memory and want to install via NFS you may get the message &dquot;fork: out of memory&dquot;. To handle this problem, use <tt>fdisk</tt> to make a swap partition (<tt>fdisk</tt> should be on the install floppy or take one of the mini Linuxes described above). Then try to boot from the install floppy again. Before configuring the NFS connection change to another console (for instance by pressing <ALT><2>) and issue <tt>swapon /dev/xxx</tt> (xxx = swap partition ). Thanks to Thomas Schmaltz. <sect> Hardware In Detail <p> <sect1> PCMCIA Controller <p> <sect2> Linux Compatibility Check <p> With the <tt>probe</tt> command, which is included in the PCMCIA-CS package by David Hinds you can get the type of the PCMCIA controller. Often this shows also up with <tt>cat /proc/pci</tt> . <sect2> Related HOWTOs <p> <enum> <item> PCMCIA-HOWTO</item> </enum> <sect2>PCMCIA Configuration - Survey <p> In the mailing lists where I'm a member, the question &dquot;How can I set up PCMCIA support, after the Linux installation?&dquot; comes up sometimes. Therefore I try to give a short survey. But the authoritative source for the latest information about the <it>PCMCIA Card Services for Linux</it>, including documentation, files, and generic PCMCIA information is the <url url="http://pcmcia.sourceforge.org" name="Linux PCMCIA Information Page"> . For problems with PCMCIA and APM see the APM chapter. <sect3>Software <p> <enum> <item> Read the PCMCIA HOWTO, usually included in the PCMCIA-CS package.</item> <item> Install the newest available PCMCIA-CS package, if you take a rpm or deb package it is quite easy.</item> <item> If necessary, install a new kernel. Note: With 2.2.x kernels PCMCIA kernel support seems no longer necessary. I had no time to look this up yet. Please read the according documents.</item> <item> Make sure your kernel has module support and PCMCIA support enabled (and often APM support)</item> <item> Make sure your kernel also includes support for the cards you want to use, e.g. network support for a NIC card, serial support for a modem card, SCSI support for a SCSI card and so on.</item> <item> If you have a custom made kernel, don't forget to compile the PCMCIA-CS source against your kernel. </enum> <sect3>PCMCIA Controller <p> <enum> <item> Use the <tt>probe</tt> command to get information whether your PCMCIA controller is detected or not.</item> <item> Edit the file <file>/etc/sysconfig/pcmcia</file>. It should include <tt>PCMCIA=y</tt> and the type of your PCMCIA controller, e.g. <tt>PCIC=i82365</tt>. </item> <item> Start the PCMCIA services typically via <tt>/etc/init.d/pcmcia start</tt>. If you get two high beeps, everything should be fine.</item> <item> If something doesn't work, check the messages in <file>/var/log/messages</file> . </item> </enum> <sect3> PCMCIA Card <p> <enum> <item> Check your card with <tt>cardctl ident</tt> .</item> <item> If your card is not in <file>/etc/pcmcia/config</file>, edit the file <file>/etc/pcmcia/config.opts</file> accordingly. Take an entry in the first file as a model. You may try every driver, just in case it might work, for instance the <tt>pcnet_cs</tt> supports many NE2000 compatible PCMCIA network cards. <item> A list of supported cards is included in the PCMCIA-CS package. The current list you may find at <url url="http://pcmcia-cs.sourceforge.net" name=" SUPPORTED.CARDS">. <p> Since there are not all cards mentioned I have set up a page <url url="http://tuxmobil.org/pcmcia_linux.html" name="PCMCIA Cards &dquot;Unofficially&dquot; Supported by Linux"> . <item> If you use X, you can use <tt>cardinfo</tt> to insert, suspend, or restart a PCMCIA card via a nice graphical interface. </enum> <sect1>Infrared Port <p> <sect2>Linux Compatibility Check <p> To get the IrDA port of your laptop working with Linux/IrDA you may use StandardInfraRed (SIR) or FastInfraRed (FIR). <sect3>SIR <p> Up to 115.200bps, the infrared port emulates a serial port like the 16550A UART. This will be detected by the kernel serial driver at boot time, or when you load the <file>serial</file> module. If infrared support is enabled in the BIOS, for most laptops you will get a kernel message like: <code> Serial driver version 4.25 with no serial options enabled ttyS00 at 0x03f8 (irq = 4) is a 16550A #first serial port /dev/ttyS0 ttyS01 at 0x3000 (irq = 10) is a 16550A #e.g. infrared port ttyS02 at 0x0300 (irq = 3) is a 16550A #e.g. PCMCIA modem port </code> <sect3>FIR <p> If you want to use up to 4Mbps, your machine has to be equipped with a certain FIR chip. You need a certain Linux/IrDA driver to support this chip. Therefore you need exact information about the FIR chip. You may get this information in one of the following ways: <enum> <item>Read the <it>specification</it> of the machine, though it is very rare that you will find enough and reliable information there. <item>Try to find out wether the FIR chip is a <it>PCI</it> device. Do a <tt>cat /proc/pci</tt> . The according files for 2.2.x kernels are in <file>/proc/bus/pci</file> . Though often the PCI information is incomplete. You may find the latest information about PCI devices and vendor numbers in the kernel documentation usually in <file>/usr/src/linux/Documentation</file> or at the page of Craig Hart <url url="http://members.hyperlink.net.au/~chart" name="http://members.hyperlink.net.au/~chart"> . From kernel 2.1.82 on, you may use <tt>lspci</tt> from the <tt>pci-utils</tt> package, too. <item>Use the <it>DOS tool</it> <tt>CTPCI330.EXE</tt> provided in ZIP format by the German computer magazine CT <url url="http://www.heise.de/ct/ftp/pci.shtml" name=" http://www.heise.de/ct/ftp/pci.shtml"> . The information provided by this program is sometimes better than that provided by the Linux tools. <item>Try to get information about <it>Plug-and-Play (PnP)</it> devices. Though I didn't use them for this purpose yet, the <tt>isapnp</tt> tools, could be useful. <item>If you have installed the <it>Linux/IrDA software</it> load the FIR modules and watch the output of <tt>dmesg</tt>, whether FIR is detected or not. <item>Another way how to figure it out explained by Thomas Davis (modified by WH): &dquot;Dig through the FTP site of the vendor, find the <it>Windows9x FIR drivers</it>, and they have (for a SMC chip): <code> -rw-rw-r-- 1 ratbert ratbert 743 Apr 3 1997 smcirlap.inf -rw-rw-r-- 1 ratbert ratbert 17021 Mar 24 1997 smcirlap.vxd -rw-rw-r-- 1 ratbert ratbert 1903 Jul 18 1997 smcser.inf -rw-rw-r-- 1 ratbert ratbert 31350 Jun 7 1997 smcser.vxd </code> If in doubt, always look for the .inf/.vxd drivers for Windows95. Windows95 doesn't ship with _ANY_ FIR drivers. (they are all third party, mostly from Counterpoint, who was assimilated by ESI).&dquot <item>Also Thomas Davis found a package of small <it>DOS utilities made by SMC</it>. Look at <url url="http://www.smsc.com/ftppub/chips/appnote/ir_utils.zip" name="http://www.smsc.com/ftppub/chips/appnote/ir_utils.zip"> . The package contains <tt>FINDCHIP.EXE</tt>. And includes a <tt>FIRSETUP.EXE</tt> utility that is supposed to be able to set all values except the chip address. Furthermore it contains <tt>BIOSDUMP.EXE</tt>, which produces this output: <p> Example 1 (from a COMPAQ Armada 1592DT) <code> In current devNode: Size = 78 Handle = 14 ID = 0x1105D041 = 'PNP0511' -- Generic IrDA SIR Types: Base = 0x07, Sub = 0x00, Interface = 0x02 Comm. Device, RS-232, 16550-compatible Attribute = 0x80 CAN be disabled CAN be configured BOTH Static & Dynamic configuration Allocated Resource Descriptor Block TAG's: TAG=0x47, Length=7 I/O Tag, 16-bit Decode Min=0x03E8, Max=0x03E8 Align=0x00, Range=0x08 TAG=0x22, Length=2 IRQ Tag, Mask=0x0010 TAG=0x79, Length=1 END Tag, Data=0x2F </code> Result 1: <p> <tt>Irq Tag, Mask (bit mapped - ) = 0x0010 = 0000 0000 0000 0001 0000</tt> so, it's IRQ 4. (start at 0, count up ..), so this is a SIR only device, at IRQ=4, IO=x03e8. <p> <p> Example 2 (from an unknown machine) <code> In current devNode: Size = 529 Handle = 14 ID = 0x10F0A34D = 'SMCF010' -- SMC IrCC Types: Base = 0x07, Sub = 0x00, Interface = 0x02 Comm. Device, RS-232, 16550-compatible Attribute = 0x80 CAN be disabled CAN be configured BOTH Static & Dynamic configuration Allocated Resource Descriptor Block TAG's: TAG=0x47, Length=7 I/O Tag, 16-bit Decode Min=0x02F8, Max=0x02F8 Align=0x00, Range=0x08 TAG=0x22, Length=2 IRQ Tag, Mask=0x0008 TAG=0x47, Length=7 I/O Tag, 16-bit Decode Min=0x02E8, Max=0x02E8 Align=0x00, Range=0x08 TAG=0x2A, Length=2 DMA Tag, Mask=0x02, Info=0x08 TAG=0x79, Length=1 END Tag, Data=0x00 </code> Result 2: <p> a) it's a SMC IrCC chip <p> b) one portion is at 0x02f8, has an io-extent of 8 bytes; irq = 3 <p> c) another portion is at 0x02e8, io-extent of 8 bytes; dma = 1 (0x02 =0000 0010) <p> <p> Thomas Davis has placed some device information at <url url="http://www.jps.net/tadavis/irda/devids.txt" name="http://www.jps.net/tadavis/irda/devids.txt"> . <p> WARNING: The package is not intended for the end user, and some of the utilities could be harmful. The only documentation in the package is in M$ Word format. Linux users may read this with <tt>catdoc</tt>, available at <url url="http://www.fe.msk.ru/~vitus/catdoc/" name="http://www.fe.msk.ru/~vitus/catdoc/"> . <item>Use the <it>Device Manager</it> of Windows9x/NT. <item>You may also use the <it>hardware surveys</it> mentioned below. <item>And as a last ressort, you may even <it>open the laptop</it> and look at the writings at the chipsets themselfs. </enum> <sect3>Hardware Survey <p> I have made a hardware survey at <url url="http://tuxmobil.org/ir_misc.html" name="http:/www.snafu.de/~wehe/ir_misc.html">. This list also contains information about infrared capable devices which are not mentioned here (mice, printers, remote control, transceivers, etc.). <p> To make this list more valuable, it is necessary to collect more information about the infrared devices in different hardware. You can help by sending me a short e-mail containing the exact name of the hardware you have and which type of infrared controller is used. <p> Please let me know also how well Linux/IrDA worked (at which tty, port and interrupt it works and the corresponding infrared device, e.g. printer, cellular phone). <p> Also you can help by contributing detailed technological information about some infrared devices, which is necessary for the development of drivers for Linux. <sect2>Related HOWTOs <p> <enum> <item> Linux/IR-HOWTO</item> </enum> <sect2>IrDA Configuration - Survey <p> <sect3>IrDA <p> The Linux infrared support is still experimental, but rapidly improving. I try to describe the installation in a short survey. Please read my <url url="http://tuxmobil.org/howtos.html" name="Linux/IR-HOWTO"> for detailed information. <sect4>Kernel <p> <enum> <item> Get a 2.2.x kernel.</item> <item> Compile it with all IrDA options enabled.</item> <item> Also enable experimental, sysctl, serial and network support.</item> </enum> <sect4>Software <p> <enum> <item> Get the Linux/IrDA software <tt>irda-utils</tt> at <url url="http://irda.sourceforge.net" name="The Linux IrDA Project"> .</item> <item> Untar the package.</item> <item> Do a <tt>make depend; make all; make install</tt></item> </enum> <sect4>Hardware <p> <enum> <item> Enable the IrDA support in the BIOS.</item> <item> Check for SIR or FIR support, as described above.</item> <item> Start the Linux/IrDA service with <tt>irmanager -d 1</tt> .</item> <item> Watch the kernel output with <tt>dmesg</tt> .</item> </enum> <sect3>Linux Remote Control - LiRC <p> Linux Remote Control <url url="http://fsinfo.cs.uni-sb.de/~columbus/lirc/" name="http://fsinfo.cs.uni-sb.de/~columbus/lirc/"> is maintained by Christoph Bartelmus. &dquot;Lirc is a package that supports receiving and sending IR signals of the most common IR remote controls. It contains a device driver for hardware connected to the serial port, a daemon that decodes and sends IR signals using this device driver, a mouse daemon that translates IR signals to mouse movements and a couple of user programs that allow to control your computer with a remote control.&dquot; I don't have valid information about how much infrared remote control is working with laptop infrared devices. <sect1>Graphic Chip <p> <sect2>Linux Compatibility Check <p> <sect3>Video Mode <p> The tool <tt>SuperProbe</tt> is part of XFree86 and is able to check many graphic chips. Please read the documentation carefully, because it might crash your hardware. From <tt>man SuperProbe</tt>: <p> &dquot;SuperProbe is a a program that will attempt to determine the type of video hardware installed in an EISA/ISA/VLB-bus system by checking for known registers in various combinations at various locations (MicroChannel and PCI machines may not be fully supported; many work with the use of the <tt>-no_bios</tt> option). This is an error-prone process, especially on Unix (which usually has a lot more esoteric hardware installed than MS-DOS system do), so SuperProbe may likely need help from the user. ... At this time, SuperProbe can identify MDA, Hercules, CGA, MCGA, EGA, VGA, and an entire horde of SVGA chipsets (see the -info option, below). It can also identify several HiColor/True-color RAMDACs in use on SVGA boards, and the amount of video memory installed (for many chipsets). It can identify 8514/A and some derivatives, but not XGA, or PGC (although the author intends to add those capabilities). Nor can it identify other esoteric video hardware (like Targa, TIGA, or Microfield boards).&dquot: For testing reasons start the X server with <tt>X 2> <error.msg></tt>. And try to change the resolution by typing <tt><CTL><ALT><+></tt> or <tt><CTL><ALT><-></tt>. Note: the + or - sign have to be taken from the numeric pad, which can be emulated at the letter pad by some laptops. <sect3>Text Mode <p> Just watch the display and determine if it works properly. If not, try to enable different video modes at startup time. Setting up X can sometimes be an exercise in trial and error. <sect2>Related HOWTOs <p> <enum> <item> XFree86-HOWTO</item> <item> XFree86-Video-Timings-HOWTO</item> <item> XFree86-XInside-HOWTO</item> <item> X-Big-Cursor-mini-HOWTO (useful when running X on a notebook with low contrast LCD)</item> <item> Keyboard-and-Console-HOWTO</item> <item> vesafb-mini-HOWTO</item> </enum> <sect2>Survey X-Servers <p> You might discover that some features of your laptop are not supported by XFree86, e.g. high resolutions, accelerated X or an external monitor. Therefore I give a survey of available X servers. <enum> <item> XFree86 <url url="http://www.xfree86.org" name="http://www.xfree86.org"></item> <item> VESA Frame-Buffer-Device, available with 2.2.x kernels and XFree86 3.3.2 </item> <item> Xinside aka AcceleratedX <url url="http://www.xig.com" name="http://www.xig.com"> , commercial </item> <item> SciTech <url url="http://www.scitechsoft.com" name="http://www.scitechsoft.com"> , commercial</item> <item> Metro-X at <url url="http://www.metrolink.com" name=" http://www.metrolink.com">, commercial . </enum> If you can't get an appropriate X server working, but don't want to effort a commercial X server you may try the VGA16 or the mono server included in XFree86. <sect2>Resources <p> You may find a survey about X windows resources at Kenneth E. Harker's page <url url="http://www.linux-on-laptops.com/" name="Linux on Laptops"> and a survey about current graphic chips used in laptops at <url url="http://tuxmobil.org/" name="TuxMobil">. <sect2>External Monitor <p> There are several different methods to activate support for an external monitor: as a <it>BIOS option</it> or during runtime with a <it>keystroke</it> e.g. <tt><Fn>+<F4></tt>. Maybe you have to edit <file>/etc/XF86Config</file> by configuring <tt>int_disp</tt> and <tt>ext_disp</tt>. If you can't get this to work with XFree, try a demo version of the commercial X servers mentioned above. Also check with the RedHat and SuSE WWW sites as they may have new, binary-only, X servers that may work with your laptop. <sect2>Miscellaneous <p> Sometimes you may encounter a display not working properly in text mode. Currently I don't have any recommendations, please see Keyboard-Console-HOWTO. Take care of the <it>backlight</it> AFAIK this device can only bear a limited number of uptime circles. So avoid using screensavers too much. For problems with X windows and APM please see the APM chapter. <sect1>Sound <p> <sect2>Linux Compatibility Check <p> The only way I know to check this, is to compile the different sound drivers into the kernel and check whether they are detected or not. The best way to do so, is to compile them as modules because it's easier to load different parameters such as interrupts and IO ports than. For the new 2.2.x kernels, read the <file>/usr/src/linux/Documentation/sound/Introduction</file> document by Wade Hampton. This document may help you get started with sound. Also, you might try one of the commercial sound drivers mentionend below. <sect2>Related HOWTOs <p> <enum> <item> Sound-HOWTO <item> Visual-Bell-mini-HOWTO </enum> <sect2>Survey Sound Drivers <p> Many new laptops come with 16-bit sound. But MWave and some other sound technologies won't work or are very hard to get working, e.g. booting to DOS, loading a driver, then using the soundcard as a standard SB-PRO. So you might need a commercial sound driver. With the recent announcement of Linux support by IBM, it would be GREAT if IBM supported the MWave under Linux (hint, hint...). As a last ressort you may try the speaker module <tt>pcsnd</tt>, which tries to emulate a soundcard. <enum> <item> Kernel Sound Driver by Hannu Savolainen</item> <item> ALSA <url url="http://alsa.jcu.cz" name="Advanced Linux Sound Architecture"> , commercial or at least non-GPL (since I found a Debian/GNU Linux package I'm not sure anymore, about the commercial status)</item> <item> OSS <url url="http://www.4front-tech.com/usslite/ossfree.html" name="UNIX Sound System Lite / OSS">, commercial or at least non-GPL (since the 2.2.x kernels I'm not sure about the commercial status), also available from <url url="http://www.opensound.com" name="http://www.opensound.com"> .</item> </enum> <sect1>Keyboard <p> <sect2>Linux Compatibility Check <p> Usually there are no problems with Linux and the keyboard. Though there are two minor caveats: First the <tt>setleds</tt> program might not work. Second the key mapping might not fit your needs. Some Unix users and <tt>vi</tt> users expect to find the <CONTROL> key to the left of the <A> key. Many PC-type keyboards have the <CAPS-LOCK> key there. You may use <tt>xmodmap</tt> or <tt>loadkeys</tt> to re-map the keyboard. Some laptops (e.g., Toshiba) allow you to swap the <CAPS-LOCK> and <CONTROL> keys. Mark Alexander offered this solution in the linux-laptop mailing list: On RedHat, it's a one-line patch to <file>/usr/lib/kbd/keytables/us.map</file> , or whatever file is referenced in <file>/etc/sysconfig/keyboard</file>: <code> *** us.map~ Tue Oct 31 14:00:07 1995 --- us.map Thu Aug 28 13:36:03 1997 *************** *** 113,119 **** keycode 57 = space space control keycode 57 = nul alt keycode 57 = Meta_space ! keycode 58 = Caps_Lock keycode 59 = F1 F11 Console_13 control keycode 59 = F1 alt keycode 59 = Console_1 --- 113,119 ---- keycode 57 = space space control keycode 57 = nul alt keycode 57 = Meta_space ! keycode 58 = Control keycode 59 = F1 F11 Console_13 control keycode 59 = F1 alt keycode 59 = Console_1 </code> <sect2>External (Second) Keyboard <p> A second (or external) keyboard can be attached using the PS/2 port (I suppose this is not possible via the serial port, since there is no keyboard controller for the serial port). Also there is one laptop with a detachable keyboard the Siemens Scenic Mobile 800. This machine uses an infrared connection to the keyboard, but I don't know whether this works with Linux. WARNING: Don't plug the external keyboard in while the laptop is booted, or plug the mouse in the keyboard port and the keyboard in the mouse port. On a Toshiba, this caused one user to have to completely shutdown the laptop, remove the keyboard/mouse, and do a cold reboot. <p> For PS/2 ports there are so called Y-Cable available, which make it possible to use external mouse and external keyboard at the same time if your laptop supports this feature. <p> <url url="http://www.suse.cz/development/input/" name=" Parport to AUX port adapter"> In some cases one kbd port and one aux port is not enough and you may want to add another keyboard or mouse. You can use this adapter, together with the <tt>parkbd.c</tt> module for that. <p> On some laptops a splitter works to allow both mouse and keyboard to be plugged in; on others it doesn't work at all.If you might want to use both you had better check that it works, or you may find yourself waiting anxiously for USB support. <p> <url url="http://www.suse.cz/development/input/" name="Sun keyboard to PC serial port adapter">: Many people have dreamed having their Sun Type 5 keyboard attached to their Linux box up to now. And with this adapter, it is finally possible. Because the standard Sun keyboards use TTL RS232 at 1200 bps to talk to the Suns, it's very easy to make them talk to any non-Sun computer by converting this to true RS232. All what you need is a MAX232 chip that'll take care about the correct voltage levels, and also some chip to invert the signals (CD4049 in the pic, I've used a 7400 quad-nand myself), since the MAX232 inverts them as well, and we don't need this. This all easily fits into a 25-pin serial connector. <sect1>Pointing Devices - Mice and Their Relatives <p> <sect2>Linux Compatibility Check <p> You may check your mouse with the <tt>mev</tt> command from the GPM package. <sect2>Related HOWTOs <p> <enum> <item> 3-Button-Mouse-mini-HOWTO for serial mice</item> <item> Bus-Mouse-HOWTO</item> <item> Kernel-HOWTO</item> </enum> <sect2>Mice Species <p> <enum> <item> Trackpad, Touchpad, used with the majority of current laptops</item> <item> Trackball, e.g. COMPAQ LTE</item> <item> Pop-up-Mouse, e.g. HP OmniBook 800</item> <item> Trackpoint, Mouse-Pin, e.g. IBM ThinkPad and Toshiba</item> <item> 3 Button Mice, e.g. IBM Thinkpads at least the 600s. I have heard rumor about a 3 button mouse for Texas Instruments Travelmates, but couldn't verify this yet. </item> </enum> <sect2>PS/2 Mice <p> Most of the mice used in laptops are PS/2 mice (actually I don't know one with another mouse protocol). You may communicate with the PS/2 mouse through <file>/dev/psaux</file> or <file>/dev/psmouse</file>. If you use X windows this device and the protocol has to be set in <file>/etc/XF86Config</file>, too. In earlier releases, sometimes the GPM mouse manager and X windows had trouble sharing a mouse when enabled at the same time. But AFAIK this is no problem anymore for the latest versions. <p> Speaking of Emulate3Buttons, 100ms is usually better than the 50ms allowed in most default setups of <file>/etc/X11/XF86Config</file>. <code> Section &dquot;Pointer&dquot; Protocol &dquot;PS/2&dquot; Device &dquot;/dev/psaux&dquot; Emulate3Buttons Emulate3Timeout 100 EndSection </code> <sect2>Touchpad <p> Usually a touchpad works with the PS/2 mouse driver. A tip: I've heard that tipping with one , two or three fingers on the touchpad simultaneously results in pressing the left, middle and respectively the right mouse-button (by Martin Hoffmann <mh@rrz.uni-hamburg.de> for an IPC-Radiance 900). <p> There is also a dedicated touchpad driver available. <url url="http://www.pdos.lcs.mit.edu/~cananian/Synaptics/" name="The Synaptics Touchpad Linux Driver"> supports pointing devices used in notebooks by Acer, Compaq, Dell, Gateway, Olivetti, Texas Instruments, Winbook, and others. Other URL <url url="http://compass.com/synaptics/" name="N.N.">. <p> The recent <tt>gpm</tt> package (<url url="ftp://ftp.prosa.it/pub/gpm/" name="gpm >=1.8">) includes the above mentioned synaptics touchpad device driver. This device driver has been developed by H. Davies <hdavies@ameritech.net>. Instead of using the PS/2 compatibility mode of touchpad devices, you can now use native touchpad mode with some pretty impressive features. <p> In addition to translating finger motion into mouse motion and supporting the buttons, this support currently has several features (from the README): <itemize> <item>a &dquot;tap&dquot; on the TouchPad causes a left mouse click <item>a &dquot;tap&dquot; followed quickly by a finger motion causes a left button drag type action. <item>a &dquot;tap&dquot; in one of the corners causes an action the default configuration is upper right causes middle mouse click and lower right causes right mouse click <item>more pressure on the touch pad speeds the motion of the cursor <item>a &dquot;tap&dquot; with a motion component (default > 2mm) initiates a toss and catch sequence. This is terminated by a finger touch on the pad (the toss also ends after 1 sec since that is the idle timeout period for the touchpad). <item>if the finger moves close to an edge then the mouse motion will be continued in that direction so that you don't need to pick up your finger and start moving again. This continued motion is pressure sensitive (more pressure is faster motion). </itemize> These features can be enabled/disabled and many of them have time and speed parameters which can be adjusted to the taste of the user. <p> It seems <tt>gpm</tt> is best known as a console biased tool. This is true, but you may use it as an X input device. <tt>gpm</tt> is used as a repeater device. In this way you can use both the built-in synaptics touchpad with all the features and at the same time a serial mouse (with three buttons). This all works smoothly together. X reads the mouse events from a named pipe <file>/dev/gpmdata</file> in a protocol it understands, which in my case is <it>Mouse-Systems-Compatible</it> (5bytes). Most 3-button mice use the default protocol. So a simple reconfiguration in XF86Config is all that is required, after starting <tt>gpm</tt> in an appropriate way, of course. <p> <tt>gpm</tt> could be started on your laptop with the following arguments : <tt>/usr/bin/gpm -t synps2 -M -t ms -m /dev/ttyS0</tt> . Both touchpad and serial mouse work in console and X mode. You do have to create the named pipe <file>/dev/gpmdata</file> yourself. <p> Tapping with two fingers simultaneously to simulate a middle mouse button works on Logitech touchpads used in a few machines. <p> Thanks to Geert Van der Plas for most of the touchpad chapter. <sect2>Touchscreen <p> The only laptop I know which includes a touchscreen is the Fujitsu Biblo 112. It may work in PS/2 or serial mouse compatibility mode. But I couldn't check this yet. <sect2>COMPAQ Concerto Pen <p> The latest version of the <url url="http://www.cs.nmsu.edu/~pfeiffer/#pen" name="Linux Compaq Concerto Pen Driver"> is available from Joe Pfeiffer's home page. <sect2>External Mouse <p> For better handling, e.g. with a 3 button mouse you may use an external mouse. This usually a serial mouse or a PS/2 mouse, according to the port your laptop offers. Usually this is no problem. <p> For PS/2 ports there are so called Y-Cable available, which make it possible to use external mouse and external keyboard at the same time if your laptop supports this feature. <p> WARNING: Don't plug in the external mouse while powered up. If you have separate mouse and keyboard ports, make sure you plug the mouse in the mouse port and the keyboard in the keyboard port. If you don't, you may have to do a hard reboot of the laptop to get it to recover. <sect1>Advanced Power Management - APM <p> <sect2>Linux Compatibility Check <p> From the Battery-Powered-mini-HOWTO &dquot; .. for APM to work on any notebook or energy-conscious desktop, the system BIOS ROM in the machine must support the <htmlurl url="http://www.intel.ocm/IAL/powermgm" name="APM Specification"> standard. Furthermore, for APM to work with the Linux operating system, the system BIOS ROM must support either the 1.0 or 1.1 version of the APM standard, and it must also support 32-bit protected mode connections. A system that supports APM 1.1 is preferred, as it provides more features that the device driver and supporting utilities can take advantage of.&dquot; You may get information about the APM version with the <tt>dmesg</tt> command and in the <file>/proc/apm</file> file. <sect2>Introduction <p> Features of APM according to <file>Documentation/Configure.help</file>: &dquot;The system time will be reset after a USER RESUME operation, the <file>/proc/apm</file> device will provide battery status information, and user-space programs will receive notification of APM <it>events</it> (e.g., battery status change). &dquot; APM support consists of two parts: <it>kernel</it> support and <it>user-land</it> support. <sect3>Kernel Land <p> For <it>kernel</it> support, enable the parameters in the corresponding kernel section. Some features need special tweaking with certain machines (e.g. IBM ThinkPad) or even don't work, (&dquot;TI 4000M TravelMate and the ACER 486/DX4/75 because they don't have compliant BIOSes&dquot;). Currently all distributions I know don't provide a kernel with APM support enabled. So you usually have to compile your custom kernel. Please see Kernel-HOWTO or distribution manual for details. The available APM options are (please see <file>Documentation/Configure.help</file> in the kernel source tree for more details): <itemize> <item><tt>CONFIG_APM_IGNORE_USER_SUSPEND</tt> Just a workaround for some NEC Versa M series laptops. <item><tt>CONFIG_APM_DO_ENABLE</tt> Enable APM features at boot time. <item><tt>CONFIG_APM_CPU_IDLE</tt>. Puts CPU in power save mode, if there is nothing to do for the kernel. <item><tt>CONFIG_APM_DISPLAY_BLANK</tt> Some laptops can use this to turn off the LCD backlight when the screen blanker of the Linux virtual console blanks the screen. Note that this is only used by the virtual console screen blanker, and won't turn off the backlight when using the X Window system. <item><tt>CONFIG_APM_POWER_OFF</tt> Turns the machine completely down, when using <tt>halt</tt>. This feature works with most laptops without problems. <item><tt>CONFIG_APM_IGNORE_MULTIPLE_SUSPEND</tt> Just a workaround for IBM ThinkPad 560. <item><tt>CONFIG_APM_IGNORE_SUSPEND_BOUNCE</tt> Just a workaround for Dell Inspiron 3200 and other notebooks. <item><tt>CONFIG_APM_RTC_IS_GMT</tt> Stores time in Greenwich Mean Time format. It is in fact recommended to store GMT in your real time clock (RTC) in the BIOS. <item><tt>CONFIG_APM_ALLOW_INTS</tt> Resolves some problems with <it>Suspend to Disk</it> for some laptops, for instance many newer IBM ThinkPads. </itemize> <p> Joey Hess <joey@kitenet.net> wrote at debian-laptop@lists.debian.org &dquot;I just installed kernel 2.2.12 on my laptop, and was having some trouble getting apm working. it said <it>apm disabled on user request</it> at boot time. Well, some grepping the kernel sources found that passing <tt>apm=on</tt> to the kernel at boot time enables it now. I can't find any record or docs of this change. <sect3>User Land <p> The utilities for <it>userland</it> support may be found at <url url="http://worldvisions.ca/~apenwarr/apmd/" name="http://worldvisions.ca/~apenwarr/apmd/">. APMD is a set of programs that control the Advanced Power Management system found in most modern laptop computers. If you run a 2.2.x kernel and want to experiment, Gabor Kuti <seasons@falcon.sch.bme.hu> has made a kernel patch that allows you to <it>hibernate</it> any Linux system to disk, even if your computers APM BIOS doesn't support it directly. IMHO you don't need this features if your laptop provides a function key to invoke suspend mode directly. When you first install Linux, you will probably have to recompile the kernel. The kernel that came with your distribution probably does not have APM enabled. Please see the Battery Powered Linux Mini-HOWTO by <kontakt@hanno.de> <url url="http://www.hanno.de" name="Hanno Mueller"> and the page of <url url="http://www.linux-on-laptops.com/" name="Kenneth E. Harker"> for detailed information. <p> README <tt>apmd</tt>?:On laptop computers, the APM support provides access to battery status information and may help you to conserve battery power, depending on your laptop and the APM implementation. Rik Faith <faith@acm.org> has transferred maintenance of the Linux apmd package over to me, Avery Pennarun <apenwarr@worldvisions.ca> and I'm finally getting around to making a release with the many updates we've collected since the last release back in 1996. Here's what <tt>apmd</tt> can do: <itemize> <item>apmd(8): logs the battery status to syslog every now and then and handles background power management tasks; <item>apm(1): a command-line tool to print the current battery status or suspend the computer; <item>xapm(1x): provides a battery meter for X; <item>libapm.a: a library for writing similar APM applications. </itemize> Richard Gooch wrote: I'have had a look at the beta version of <tt>apmd</tt>, and I still don't like it, because: <itemize> <item> Only supports one command to run at suspend time. <item> Doesn't distinguish between user and system suspends. <item>doesn't provide a way to disable policy (the <tt>sync()</tt>; <tt>sleep(0) </tt>; <tt>sync()</tt>; <tt>sleep(1)</tt>; sequence) <item> Does not document extra features. <item> And I'm not sure that what we want is a single super daemon. A collection of smaller daemons might be better, since it allows people to pick and choose. A super daemon is bloat for those who only want one small feature. </itemize> Though this topic was discussed controversly Richard Gooch has put together a package <tt>suspendd</tt> at <url url="http://www.atnf.csiro.au/~rgooch/linux/" name="http://www.atnf.csiro.au/~rgooch/linux/"> . Also, have a look at <tt>apmcd</tt> (<tt>apm</tt> based crontab) at <url url="ftp://ftp.binary9.net/pub/linux/" name="ftp://ftp.binary9.net/pub/linux/"> . A tool made by Nicolas J. Leon <nicholas@binary9.net> <url url="http://mrnick.binary9.net/" name="http://mrnick.binary9.net/">. Note: I didn't check wether this features are merged into one package (<tt>apmd</tt> eventually) already. <sect2>Caveats <p> If you have another operating system preinstalled or use another operating system at the same disk, make sure there is no &dquot;hibernation&dquot; or &dquot;suspend&dquot; tool installed, which could severely interfere with Linux, e.g. it might use disk space which is occupied by Linux or vice versa. <sect2>Troubleshooting <p> If your machine worked with 2.0.x kernels but not with the 2.2.x series, take this advice from Klaus Franken kfr@klaus.franken.de : &dquot;The default changed in 2.2. Search in the init-scripts for <tt>halt</tt> and change it to <tt>halt -p</tt> or <tt>poweroff</tt>. See <tt>man halt</tt> , if you don't have this option you need a newer version of <tt>halt</tt>.&dquot; You may find it in the <tt>SysVinit</tt> package. <p> On some new machines (for instance HP Omnibook 4150 - 366 MHz model) when accessing <file>/proc/apm</file>, you may get a kernel fault <tt>general protection fault: f000</tt>. Stephen Rothwell <Stephen.Rothwell@canb.auug.org.au> <url url="http://www.canb.auug.org.au/~sfr/" name="http://www.canb.auug.org.au/~sfr/"> explaines: &dquot;This is your APM BIOS attempting to use a real mode segment while in protected mode, i.e. it is a bug in your BIOS. .. We have seen a few of these recently, except all the others are in the power off code in the BIOS wher we can work around it by returning to real mode before attempting to power off. Here we cannot do this.&dquot; <p> <tt> apmd-rhcn-2.4phil-1</tt> by RedHat <url url="ftp://rhcn.redhat.com/pub/rhcn/" name="ftp://rhcn.redhat.com/pub/rhcn/"> contains an unofficial patch for shutting down the PCMCIA sockets before a suspend and patches for multiple batteries. <p> According to <file>Documentation/Configure.help</file>: &dquot;Some other things you should try when experiencing seemingly random, <it>weird</it> problems: <enum> <item>make sure that you have enough swap space and that it is enabled. <item>pass the <tt>no-hlt</tt> option to the kernel. <item>switch on floating point emulation in the kernel and pass the <tt>no387</tt> option to the kernel. <item>pass the <tt>floppy=nodma</tt> option to the kernel. <item>pass the <tt>mem=4M</tt> option to the kernel (thereby disabling all but the first 4 MB of RAM). <item>make sure that the CPU is not over clocked. <item>read the sig11 FAQ at <url url="http://www.bitwizard.nl/sig11/" name="http://www.bitwizard.nl/sig11/"> . <item>disable the cache from your BIOS settings. <item>install a fan for the video card or exchange video RAM. <item>install a better fan for the CPU. <item>exchange RAM chips. <item>exchange the motherboard. </enum> <sect2>APM and PCMCIA <p> PCMCIA Card Services and Advanced Power Management (from the PCMCIA-HOWTO): <p> "Card Services can be compiled with support for APM (Advanced Power Management) if you've configured your kernel with APM support. ... The PCMCIA modules will automatically be configured for APM if a compatible version is detected on your system. Whether or not APM is configured, you can use <tt>cardctl suspend</tt> before suspending your laptop, and <tt>cardctl resume</tt> after resuming, to cleanly shut down and restart your PCMCIA cards. This will not work with a modem that is in use, because the serial driver isn't able to save and restore the modem operating parameters. APM seems to be unstable on some systems. If you experience trouble with APM and PCMCIA on your system, try to narrow down the problem to one package or the other before reporting a bug. Some drivers, notably the PCMCIA SCSI drivers, cannot recover from a suspend/resume cycle. When using a PCMCIA SCSI card, always use <tt>cardctl eject</tt> prior to suspending the system.". <sect2>APM and Resuming X Windows <p> &dquot;Many (most?) BIOSes fail to save and restore display controller chip registers, and X has no protocol to be notified of resume events, so on many systems suspend/resume is more-or-less incompatible with X.&dquot; <htmlurl url="http://www.linuxlaptops.com/ll/xresume.html" name="Linux Laptops"> has created a fix for this problem. <p> Sometimes X windows and APM don't work smoothly together, the machine might even hang. A recommendation from Steve Rader: Some linux systems have their X server hang when doing <tt>apm -s</tt>. Folks with this affliction might want switch to the console virtual terminal then suspend <tt>chvt 1; apm -s</tt> as root, or, more appropiately.<tt>sudo chvt 1; sudo apm -s</tt>. I have these commands in a script, say, <tt>my-suspend</tt> and then do <tt>xapmload --click-command my-suspend</tt> . <sect2>Modularization of APM <p> As far as I remember this is controversly discussed, but I don't remember the URL. It isn't a kernel feature yet. <sect2>APM Resume Options <p> The new 3.0beta versions add a new feature to apmd: it can run arbitrary commands (like <tt>cardctl suspend</tt>) when you suspend or resume your system. It also supports BIOS clocks that are set to UTC time. <sect2>APM and Sound <p> Lots of BIOSes fail to restore sound chip registers, so you may get a squeal of feedback when you wake up the machine. A script in <file>/etc/apm/event.d</file> can use <tt>aumix</tt> to save and restore sound mixer settings. <sect2> Software Suspend <p> <htmlurl url="http://falcon.sch.bme.hu/˜seasons/linux/swsusp.html" name="Software suspend"> enables the possibilty of suspendig machine. It doesn't need APM. You may suspend your machine by either pressing Sysrq-d or with 'swsusp' or 'shutdown -z (patch for sysvinit needed). It creates an image which is saved in your active swaps. By the next booting the kernel detects the saved image, restores the memory from it and then it continues to run as before you've suspended. If you don't want the previous state to continue use the 'noresume' kernel option. <sect1>ACPI <p> ACPI stands for <it>Advanced Configuration and Power Interface</it>. This is a specification by Toshiba, Intel and Microsoft. Besides many other things it also defines power management. This is why it is often compared to APM. <p> The ACPI4Linux project has started at the beginning of 1999. The ACPI4Linux project is a kernel driver project aimed at implementing full ACPI support for Linux, including fan control, dock/undock detection and a WindowMaker dockable temperature meter. You may reach it at <url url="http://phobos.fachschaften.tu-muenchen.de/acpi/" name="ACPI4Linux">. <sect1>Batteries <p> For information about available battery types, take a look at the Hardware Features chapter above. Please see Battery Powered Linux Mini-HOWTO by Hanno Mueller <kontakt@hanno.de> <url url="http://www.hanno.de/" name="http://www.hanno.de"> <url url="http://tuxmobil.org/energy_laptops.html" name="Power Supplies for Laptops - (Draft)"> for further information. Stephen Rothwell <url url="http://www.canb.auug.org.au/~sfr/" name="http://www.canb.auug.org.au/~sfr/"> is currently integrating a patch that will add multiple battery support to the kernel APM. From the <tt>mobile-update</tt> page (modified by WH): Discharge the battery. If your battery runs only for about 20 minutes, you probably suffer from memory effects. Most laptops do not discharge the battery properly. With low powered devices like old computer fans they can be discharged completely. This removes memory effects. You should do so even with LiIon batteries, though they don't suffer much from memory effext (the manual of an IBM Thinkpad says to cycle the batteries through a full charge/discharge cycle 3 times every few months or so). WARNING: Try this at your own risk! Make sure the voltage of the fans is compatible to your battery. It works for me. In the US, this company has most batteries for anything and can rebuild many that are no longer manufactured: Batteries Plus, 2045 Pleasant Hill Road, Duluth, GA 30096 +1 770 495 1644. <sect1>Memory <p> Unfortenately most laptops come with a proprietary memory chips. So they are not interchangeable between different models. But this seems changing. <sect1>Plug-and-Play Devices (PnP) <p> The <it>Plug and Play driver project</it> for Linux is a project to create support within the Linux kernel (see Linux.Org for more information) for handling Plug and Play (and other semi-PnP) devices in a clean, consistent way. It aims to allow a driver of any type of hardware to have this hardware configured by the PnP driver in the kernel. This driver is then notified when the device is reconfigured, or even removed from the system, so as to allow for graceful action in these circumstances <url url="http://www.io.com/~cdb/mirrors/lpsg/pnp-linux.html" name="http://www.io.com/~cdb/mirrors/lpsg/pnp-linux.html"> . <p> <it>ISA PnP tools</it> is another useful package. <p> And there is a project at RedHat <url url="http://www.redhat.com/pnp/overview.html" name="http://www.redhat.com/pnp/overview.html"> . <p> The latest PCMCIA driver package (>>3.1.0) has utilities <tt>lspnp</tt> and <tt>setpnp</tt> to manipulate PNP settings. Note that in 3.1.0 you may need this patch to compile them: <code> -#ifdef __GLIBC__ +#if 0 /* def __GLIBC__ */ #include <byteswap.h> #else </code> <sect1>Docking Station / Port Replicator <p> <sect2>Definitions <p> First some definitions. There is a difference between <it>docking station</it> and <it>port replicator</it>. I use the term <it>docking station</it> for a box which contains slots to put some interface cards in, and space to put a harddisk, etc. in. This box can be permanently connected to a PC. A <it>port replicator</it> is just a copy of the laptop ports which may be connected permanently to a PC. <sect2>Other Solutions <p> I don't use a docking station. They seem really expensive and I can't see any usefulness. OK you have to mess up with some more cables, but is it worth so much money? Docking stations are useful in an office environment when you have a permanent network connection, or need the docking station's SCSI adaptor (e.g., for a CD-R). Also all docking stations I know are proprietary models, so if you change your laptop you have to change this device, too. I just found one exception a docking station which connects to your laptop via IrDA the IRDocking IR-660 by Tekram <url url="http://www.tekram.com/Hot_Products.asp?Product=IR-660" name="http://www.tekram.com/Hot_Products.asp?Product=IR-660"> . It supports these connectors: 10Base-T (RJ-45); PS/2 Keyboard; PS/2 Mouse; 25-Pin Printer Port (LPT); IR Transceiver; Power (6 VDC). So it seems that a VGA port and a port to connect a desktop PC directly are missing. This device should work with Linux/IrDA, though I couldn't check it out. I would prefer to buy a PC instead and connect it via <it>network</it> to the laptop. Or use an external display, which usually works well as described above, and an external keyboard and mouse. If your laptop supports an extra PS/2 port you may use a cheap solution a <it>Y cable</it>, which connects the PS/2 port to an external keyboard and an external monitor. Note: Your laptop probably has support for the <it>Y cable</it> feature, e.g. the COMPAQ Armada 1592DT. <sect2>Connection Methods <p> AFAIK there are <it>three solutions</it> to connect a laptop to a docking station: <enum> <item> SCSI port</item> <item> parallel port</item> <item> (proprietary) docking port</item> </enum> From <url url="http://www.mjedev.demon.co.uk/index.html" name="Martin J. Evans martin@mjedev.demon.co.uk "> &dquot;The main problem with docking stations is getting the operating system to detect you are docked. Fortunately, if you configure your kernel with the /proc file system (does anyone not do this?) you can examine the devices available and thus detect a docked state. With this in mind a few simple scripts is all you need to get your machine configured correctly in a docked state. You may want to build support for the docking station hardware as modules instead of putting it directly into the kernel. This will save space in your kernel but your choice probably largely depends on how often you are docked. <p> 1) Supporting <it>additional disks</it> on the docking station SCSI card <p> To my mind the best way of doing this is to: <enum> <item> Either build support for the SCSI card into the kernel or build it as a module.</item> <item> Put the mount points into <file>/etc/fstab</file> but use the &dquot;noauto&dquot; flag to prevent them from being mounted automatically with the <tt>mount -a</tt> flag. In this way, when you are docked you can explicitly mount the partitions off any disk connected to the docking station SCSI card.</item> </enum> <p> 2) Supporting <it>additional network adaptors</it> in the docking station <p> You can use a similar method to that outlined above for the graphics card. Check the <file>/proc</file> filesystem in your rc scripts to see if you are docked and then set up your network connections appropriately. &dquot; Once you determine this information, you may use a script, similar to the following example, to configure the connection to your docking station at startup. The script is provided by Friedhelm Kueck: <p> <code> # check, if Laptop is in docking-station (4 PCMCIA slots available) # or if it is standalone (2 slots available) # Start after cardmgr has started # # Friedhelm Kueck mailto:fk@impress.de # 08-Sep-1998 # # Find No. of Sockets SOCKETS=`tail -1 /var/run/stab | cut -d &dquot:&dquot; -f 1` case &dquot;$SOCKETS&dquot; in &dquot;Socket 3&dquot;) echo Laptop is in Dockingstation ... echo Disabeling internal LCD Display for X11 echo cp /etc/XF86Config_extern /etc/XF86Config # # Setup of PCMCIA Network Interface after start of cardmge # echo echo &dquot;Setting up eth0 for use at Network ...&dquot; echo /sbin/ifconfig eth0 10.1.9.5 netmask 255.255.0.0 broadcast 10.1.255.255 /sbin/route add -net 10.1.0.0 gw 10.1.9.5 /sbin/route add default gw 10.1.10.1 ;; &dquot;Socket 1&dquot;) echo Laptop is standalone echo Disabling external Monitor for X11 cp /etc/XF86Config_intern /etc/XF86Config echo echo Network device NOT setup ;; esac </code> <sect1>Network Connections <p> <sect2>Related HOWTOs <p> <enum> <item> PLIP-mini-HOWTO</item> <item> NET-3-HOWTO</item> <item> Ethernet-HOWTO</item> <item> Term-Firewall-mini-HOWTO</item> </enum> <sect2>Connection Methods <p> <sect3>PCMCIA Network Card <p> If your laptop supports PCMCIA this is the easiest and fastest way to get network support. Make sure your card is supported before buying one. <sect3>Serial Null Modem Cable <p> Probably the cheapest way to connect your laptop to another computer, but quite slow. You may use PPP or SLIP to start the connection. <sect3>Parallel Port NIC (Pocket Adaptor) <p> <url url="http://www.unix-ag.uni-siegen.de/~nils/accton_linux.html" name="Accton Pocket Ethernet and Linux"> This ethernet adaptor uses a parallel port and delivers approximately 110k Bytes/s throughput for those notebooks that do not have PCMCIA slots. <url url="http://www.linux-on-laptops.com/linksys.html" name="Linux and Linksys Ethernet Adaptors"> A short note on the use of the Linksys parallel-port ethernet adaptor under Linux. This is a widely available networking adaptor that doesn't require a PCMCIA slot. <sect3>Parallel &dquot;Null&dquot; Modem Cable <p> Offers more speed than a serial connection. Some laptops use chipsets that will not work with PLIP. Please see PLIP-HOWTO for details. <sect3>Docking Station NIC <p> I don't have experience with a NIC in a docking station yet. <sect1>Modem <p> <sect2>Modem Types <p> There are three kinds of modems available: internal, PCMCIA card or external serial port modems. But some internal modems will NOT work with Linux such as the MWave modems (IBM) or if the laptop has a WinModem. This is caused by non-standard hardware. So you have to use either a PCMCIA card modem or an external modem. Quotation from the Kernel-FAQ: &dquot;9.Why aren't WinModems supported? (REG, quoting Edward S. Marshall) The problem is the lack of specifications for this hardware. Most companies producing so-called <it>WinModems</it> refuse to provide specifications which would allow non-Microsoft operating systems to use them. The basic issue is that they don't work like a traditional modem; they don't have a DSP, and make the CPU do all the work. Hence, you can't talk to them like a traditional modem, and you -need- to run the modem driver as a realtime task, or you'll have serious data loss issues under any kind of load. They're simply a poor design.&dquot; &dquot;<it>Win</it> modems are lobotomized modems which expect Windows to do some of their thinking for them. If you do not have Windows, you do not have a connection. &dquot; Anyway, I have set up a page collecting information on laptops with internal modems at <url url="http://tuxmobil.org/" name="http://tuxmobil.org/"> . Maybe it's possible to run such modems with MS-Windows9x/NT emulators like <tt>wine</tt> or <tt>VMware</tt>, but I don't know it. <p> Recently there is a driver for Lucent WinModems (alpha) available at <url url="http://www.suse.cz/development/ltmodem/" name="SuSE - Labs"> and <url url="http://www.close.u-net.com" name="LTModem diagnostic tool">. <sect2>Caveats <p> WARNING: Pay attention to the different kinds of phone lines: analog and ISDN. You can't connect an analog modem to an ISDN port and vice versa. Though there might be hybrid modems available. Connecting to the wrong port may even destroy your modem. Trick: If you are looking for an analog phone port in an office building which is usually wired with ISDN, take a look at the fax lines, they are often analog lines. For tracking the packets on PPP you may use <tt>pppstats</tt>. Or <tt>pload</tt> this provides a graphical view of the traffic (in and out) of the PPP connection. It is based on athena widgets hence is very portable. It also uses very little CPU time. The home of <tt>pload</tt> is <url url="http://www.engr.utk.edu/~mdsmith/pload/" name="http://www.engr.utk.edu/~mdsmith/pload/"> . <sect1>SCSI <p> <sect2>Hardware Compatibility Check <p> If unsure about the right SCSI support, compile a kernel with all available SCSI drivers as modules. Load each module step by step until you get the right one. <sect2>Related HOWTOs <p> <enum> <item> SCSI-HOWTO</item> </enum> <sect2>Survey <p> AFAIK there is no laptop yet with a SCSI harddisk. Though there are two models with a built in SCSI port: Texas Instruments TI 4000 and HP OmniBook 800. Maybe the PowerBook G3 has a SCSI disk, but I didn't check this yet. The old Apple Powerbook Duo models had a SCSI hard disk. <p> For other models, if you need SCSI support you may get it by using a SCSI-PCMCIA card or via a SCSI adapter in a docking station. <sect1>Universal Serial Bus - USB <p> <sect2>Linux Compatibility Check <p> You should get information about the USB controller with <tt>cat /proc/pci</tt> and about USB devices with <tt>cat /proc/bus/usb/devices</tt>. <sect2>Miscelleaneous <p> Newer laptops come with the Universal Serial Bus (USB). I haven't tried it on any of my systems because I don't have any USB devices. <p> Visit <url url="http://www.linux-usb.org" name="http://www.linux-usb.org"> for the USB Linux home page. Also I have set up a page collecting information about laptops and USB at <url url="http://tuxmobil.org/" name="TuxMobil"> . <sect1>Floppy Drive <p> <sect2>Linux Compatibility Check <p> Usually there are no problems connecting a floppy drive to a Linux laptop. But with a laptop floppy drive you may sometimes not be able to use every feature. I encountered the <tt>superformat</tt> command (from the fdutils package) couldn't format more than 1.44MB with my HP OmniBook 800. You may also have difficulty when the floppy drive and CD drive are mutually exclusive, or when the floppy drive is a PCMCIA device (as with the Toshiba Libretto 100). With older laptops, there might be a minor problem if they use a 720K drive. AFAIK all distributions come with support for 1.44M (and sometimes 1.2M) floppies only. Though it's possible to install Linux anyway. Please see Installation chapter. Please see kernel documentation for boot time parameters concerning certain laptop floppy drives, for instance IBM ThinkPad. Or <tt>man bootparam</tt> . <sect1>CD Drive <p> Most notebooks today come with CD drives. If floppy and CD drive are swappable they are usually mutually exclusive. Sometimes they come as PCMCIA devices. Or as SCSI device (HP OmniBook 800). AFAIK there are discmans available which have a port to connect them to a computer or even a SCSI port. I found an article published by Ziff-Davis Publishing Company (September 1996 issue, but missed to note the URL) written by Mitt Jones: &dquot;Portable PC Card CD-ROM drives transform laptops into mobile multimedia machines&dquot;, which listed: Altec Lansing AMC2000 Portable Multimedia CD-ROM Center; Axonix ProMedia 6XR; CMS PlatinumPortable; EXP CDS420 Multimedia Kit; H45 QuickPCMCIA CD; Liberty 115CD; Panasonic KXL-D740; Sony PRD-250WN CD-ROM Discman. <sect1>DVD Drive <p> <url url="http://livid.on.openprojects.net" name="The Linux Video and DVD Project"> has made great headway since its start last February. They have just released the source code ( http://livid.on.openprojects.net/css.tgz) so that a DVD decoder card can unlock and read the DVD. Also provided on the site are links to various documents discussing DVD chipset specifications. The Linux Video and DVD Project is avidly seeking help from the opensource community for development. <p> <url url="http://www.trylinux.com/projects/udf/index.html" name="Universal Disk Format (UDF) Driver">: &dquot;UDF is a newer CDROM filesystem standard that's required for DVD roms. It's meant to be a replacement for the ISO9660 filesystem used on today's CDROMs, but the immediate impact for most will be DVD. DVD multimedia cdroms use the UDF filesystem to contain MPEG audio and video streams. To access DVD cdroms you would need a DVD cdrom drive, the kernel driver for the cdrom drive, some kind of MPEG video support, and a UDF filesystem driver (like this one). Some DVD cdroms may contain both UDF filesystems and ISO9660 filesystems. In that case, you could get by without UDF support.&dquot; <sect1>Harddisk <p> <sect2>Linux Compatibility Check <p> Useful programms are <tt>hdparm</tt>, <tt>dmesg</tt>, <tt>fsck</tt> and <tt>fdisk</tt> . <sect2>Miscellaneous <p> Be careful when using your laptop abroad. I have heard about some destroyed harddisks due to a magnetic field emitted from the magnetic-holds at the backresttable of the seats in a german railway waggon. <p> Though I am quite satisfied with the quality of the harddisk in my laptop, when I removed it from the case I unintendedly dropped it, I recommend to be very careful. <sect2>Form Factors <p> AFAIK there is only one form factor for harddisks used in laptops the 2.5&dquot; format. This format seems to be available in different heights (Please note I couldn't verify this information yet): <itemize> <item> 18mm: laptops build before 1996 usually have drives 18mm high <item>12.7mm: I got a report about such disks but without a notebook model or manufacturer name <item> 11mm: since 1996 the drives are 11mm high <item> 9mm: many laptops, including the subnotebooks, now use a 9mm-high disk drive. The largest available in this format in late 1999 is IBM <it>12GN</it>. <item> 9.5mm: Toshiba Libretto L70 and L100 have a 9.5mm HD <item>8.45mm: Toshiba Libretto 20, 30, 50 and 60 have 8.45mm tall HDs <item>6.35mm: Toshiba Libretto L1000 has a 6.35mm HD </itemize> It might be possible to use a hard disk wich doesn't fit with some case modifications. <p> Some laptops come with a removable hard disk in a tray, for instance the KAPOK 9600D. There seem to be no SCSI drives for laptops available. <sect1>Video Port / ZV Port <p> Some high end laptops come with a video or ZV port (NTSC/PAL). Since I don't have a laptop with a ZV or video port yet, I can provide only some URLs <url url="http://www.thp.uni-koeln.de/~rjkm/linux/bttv.html" name=" http://www.thp.uni-koeln.de/~rjkm/linux/bttv.html "> (driver) <url url="http://www.mathematik.uni-kl.de/~wenk/xwintv.html" name=" http://www.mathematik.uni-kl.de/~wenk/xwintv.html "> (tvviewer). For further information see video4linux at <url url=" http://roadrunner.swansea.uk.linux.org/v4l.shtml" name="http://roadrunner.swansea.uk.linux.org/v4l.shtml">. To collect information about laptops with video port I have setup a page at <url url="http://tuxmobil.org/" name="http://tuxmobil.org/"> . Alternatively to the ZV port you might use the USB port. <sect>Palmtops, Personal Digital Assistants - PDAs, Handheld PCs - HPCs <p> Palmtops and PDAs are currently not much covered in this HOWTO. Anyway it may be useful therefore, too. I just include some links, most of them are from <url url="http://www.linux-on-laptops.com/" name="Kenneth E. Harker's page"> : <enum> <item> Highly recommended is the page by Russell King <url url="http://www.arm.uk.linux.org/~rmk/" name=" ARM Linux "> about PDAs with ARM CPU and with links to other Linux related PDA sites. <item> PalmOS-HOWTO (former Pilot-HOWTO) by David H. Silber. <item> <url url="http://privat.swol.de/ReinholdSchoeb/Newton/"name="Newton and Linux Mini-HOWTO"> . <item><url url="http://www.tcel.com/~aehall/newtl/" name="Newtl: Newton/Linux Communications System"> Newtl allows a Linux machine to communicate with a Newton PDA. Automatically send e-mail, print, and fax outboxes through your Linux machine, and more. <item> <url url="ftp://ryeham.ee.ryerson.ca/pub/PalmOS/" name="PilotLink and XCoPilot"> PilotLink is an utility that performs data transfers from 3com PalmPilot handheld computers to your Linux machine. XCoPilot is an emulator of the PalmPilot operating system that runs under Linux. <item> <url url="http://www.icsi.berkeley.edu/~minenko/PalmVNC" name="PalmVNC"> is an implementation of the Virtual Network Client architecture that will allow you to use a Linux or other UNIX machine to put up a (tiny) X Window on a 3COM PalmPilot. <item>PDAs and infrared remote control, see <url url="http://hp.vector.co.jp/authors/VA005810/remocon/remocone.htm" name="Hiromu Okada"> <item> AFAIK you can run Linux on the IBM PC110 (a tiny PC handheld that's no longer manufactured). There's a HOWTO on it running around somewhere but I don't have an URL, instead I found a description in <url url="http://boardwatch.internet.com/mag/97/jul/bwm70.html" name=" LINUX REDUX July 1997"> by Alan Cox. <item> For more information on Virtual Network Computing, see <url url="http://www.uk.research.att.com/vnc" name="VNC"> . <item> There is also the <url url="http://www.cdpubs.com/hhsys/archives.html" name="Handheld Systems(TM) On-line Archives"> and a search engine about palmtop related topics <url url="http://www.palmtop.net/" name="Palmtop.Net/"> . <item> I have setup a small page about <url url="http://tuxmobil.org/pda_linux.html" name="Linux with PDAs and Handheld PCs">, too. </enum> <sect>Cellular Phones, Pagers, Calculators, Digital Cameras, Wearable Computing <p> Though in my opinion related to the topic, these devices are not much covered in this text, yet. For general information about Embedded Systems, see <url url="http://www.embedded.com" name="http://www.embedded.com ">. For Linux information, see <url url="http://www.elks.ecs.soton.ac.uk/" name="ELKS"> and the <url url="http://ryeham.ee.ryerson.ca/uClinux" name=" uCLinux"> project. See news:comp.arch.embedded <sect1>Cellular Phones <p> For NOKIA cellular phones see <url url="http://multivac.fatburen.org/gnokii/" name="GNOKII project"> . And <url url="http://www.users.globalnet.co.uk/~syrinx/nserver/index.html" name="Linux Nserver">. This project aim is to produce a GPL replacement for Nokia's Windows Nserver, and maybe improve upon it along the way. Initially it will emulate the Windows 3.1 version (ie. allow backup, restore and install). <p> <url url="http://www.openwap.org/" name="openWAP"> is an open source project for the implementation of the Wireless Application Protocol (WAP) for use with browsers, servers and tools. WAP is used by PDA devices, cell phones, pagers and other wireless devices to transmit internet content to these devices. The project is still in its early stages and nothing can be downloaded yet. <p> <url url="http://www.pxh.de/fs/gsmlib/download/" name="GSMLIB"> is a library to access GSM mobile phones through GSM modems. Features include: modification of phonebooks stored in the mobile phone or on the SIM card, reading and writing of SMS messages stored in the mobile phone, sending and reception of SMS messages. Additionally, some simple command line programs are provided to use these features. <sect1>Pagers - SMS Messages <p> <url url="http://www.qpage.org/" name="QuickPage"> is a client/server software package that enables you to send messages to an alphanumeric pager. The client accepts a message from the user and forwards it to a server using SNPP. The server uses a modem to transmit the message to the recipient's paging service using the TAP protocol (also known as the IXO protocol). <p> <url url="http://www.fts.frontec.se/~dast/mail2sms/" name="mail2sms"> converts a (MIME) mail to a short message, allowing search/replace, conditional rules, date/time dependent actions, customizing the output format, etc. The output defaults to 160 characters, which is perfectly suitable for sending the text to a GSM telephone as an SMS message. This software does not include any code for actually sending the text to anything else but another program or stdout. <p> <url url="http://www.new.ox.ac.uk/~adam/computing/email2sms/" name="email2sms"> is a filter written in Perl which converts an e-mail into a form suitable for sending as an SMS message. Its main advantage over the alternatives is that it uses the CPAN module <it>Lingua::EN::Squeeze</it> to compress the text down to as little as 40% of its original size, so you can get much more of your e-mail into the 160 character limit imposed by SMS. It is fully MIME compatible, and has many configurable options, including removal of quoted text. Ideal for use with procmail. A Perl script for sending the output to a typical e-mail to SMS web gateway is included. <p> <url url="http://www.styx.demon.co.uk/smslink/" name="SMSLink"> implements a client/server gateway to the SMS protocol (short messages on the mobile phones). It requires the use of dedicated hardware though (a serial GSM module). Both SMS emission and reception are supported. The server only runs under Linux at the present time and also supports interactive mode via <tt>telnet</tt>. The command-line client already exists for Linux, Solaris and HP-UX. A basic web interface is provided. A Win32 client is in the works. <p> <url url="http://lide.pruvodce.cz/~wayne/" name="nmsms"> is a very simple program to announce incoming email to an SMS address (email address) defined at compile time. The original <it>From:</it> and <it>Subject:</it> header are included in each mail announced. <p> <url url="http://www.hof-berlin.de/mepl/" name="mepl"> is a software for 3COM/USRobotics Messagemodems to control the self-employed-mode. This program can be used for downloading the messages and saving or mailing them in gsm or fax-format. <sect1>Digital Cameras <p> For information about cellular phones and digital cameras see some links at my page about <url url="http://tuxmobil.org/ir_misc.html" name="Linux with Infrared Devices"> and my IR-HOWTO. <p> Newsgroup: rec.photo.digital . <p> The Flashpath adapter is a diskette like device which is used to transfer data from a digital camera to a computer. See <url url="http://www.schou.dk/flashpath/" name="Flashpath for Linux"> and James Radley's <url url="http://www.susie.demon.co.uk/flashpath.html" name="flashpath homepage">. <sect1>Calculators <p> Information about calculators e.g. HP-48 is at <url url="http://www.hpcalc.org" name="HP-Calculator.Org"> and <url url="http://www.gmi.edu/~madd0118/hp48/" name="Keith's HP-48 Page">. <url url="http://www.columbia.edu/kermit/hp48.html" name="HP-48 Kermit Hints and Tips"> shows how to talk to the HP48 via its serial-line Kermit protocol. The HP-48 may also be used as a <url url="http://panic.et.tudelft.nl/~costar/hp48" name="Linux terminal">. <p> See also at my page about <url url="http://tuxmobil.org/ir_misc.html" name="Linux with Infrared Devices">. <p> <url url="http://www.tunbury.demon.co.uk/casio/" name="Backup utility for the CASIO diary">. It is a package ported from DOS to allow communication to the CASIO series of hand-held organizers. It allows backup from CASIO to your computer and restore a backup file from your computer to the CASIO. It can also output human readable file from CASIO. Currently supports: phone, calendar, schedule, memo, and reminder. See also http://www.aloha.net/~alank/ http://www.casioworld.com , http://home.t-online.de/home/Milan.Urosevic/ and http://sunsite.unc.edu/pub/Linux/apps/ <p> <url url="http://www.multimania.com/rlievin/" name="GtkTiLink"> is a program which allows you to transfer data between a Texas Instruments calculator and a computer. It works with all cables (parallel, serial, Black and Gray TI Graph Link). It supports the TI82, TI89, TI92 and TI92+ calculators. It can send/receive data and backups, make a capture of the calculator screen and do remote control. <sect1>Wearable Computing <p> Also related to this topic but not covered yet seems wearable computing, see <url url="http://lcs.www.media.mit.edu/projects/wearables/" name="http://lcs.www.media.mit.edu/projects/wearables/"> , the page of Lionel, &dquot;trollhunter&dquot; Bouchpan-Lerust-Juery, <url url="http://infonomade.linuxfr.org/indexen.html" name="http://infonomade.linuxfr.org/indexen.html"> for further information and <url url="http://wearables.blu.org" name="http://wearables.blu.org"> and <url url="http://www.wearcomp.org/" name="http://www.wearcomp.org/">. <p> <url url="http://wearables.essex.ac.uk/sulawesi/" name="Sulawesi"> was developed due to the problems running a desktop GUI on a wearable computer. It has been designed and implemented to tackle what has been considered to be important challenges in a wearable user interface, the ability to accept input from any number of input devices, such as machine vision, speech recognition, portable keyboards, GPS devices, infra-red, etc. and to allow services to manipulate the information and generate a suitable output such as speech generation, graphics using a headmounted display, vibrotactile stimuli, etc. The <it>Gili</it> user interface has been updated, more documentation has been added, and the <it>Spatial Reminder</it> has been introduced. <sect1>Watches <p> The <url url="http://datalink.fries.net/" name="datalink library"> allows sending information to the Timex DataLink watches. The original datalink library supports the model 150 and possibly the model 70 watch. This version has been extended to work with the DataLink Ironman Triathlon watch. It has been tested with the SVGA output on the Ironman watch only, other output devices and other watches may or may not work, I have no reports either way. The display must be a CRT display (not a LCD). <sect>Accessories <p> <sect1>PCMCIA Cards <p> <sect2>Card Families <p> <enum> <item> Ethernet adapter</item> <item> Token Ring adapter</item> <item> Ethernet + Modem / GSM</item> <item> Fax-Modem / GSM adapter</item> <item> SCSI adapter</item> <item> I/O cards: RS232, LPT, RS422, RS485, GamePort, IrDA, Radio, Video</item> <item> Memory cards</item> <item> harddisks</item> <item> 2.5&dquot; harddisk adapters</item> </enum> For desktops there are PCMCIA slots for ISA and PCI bus available. Source: <url url="http://www.lapshop.de" name="http://www.lapshop.de"> <sect2>Linux Compatibility Check <p> With the command <tt>cardctl ident</tt> you may get information about your card. Put this information into <file>/etc/pcmcia/config.opts</file> if necessary. But this may not be enough to get the card to work, but works sometimes for no-name network cards or modem cards. If you get a card to work or have written a new driver please don't forget to announce this to <url url="http://pcmcia.sourceforge.org" name="the developer of the PCMCIA-CS package David Hinds"> . Look the current issue of his file <url url=" http://pcmcia.sourceforge.org" name="SUPPORTED.CARDS"> to get information about supported cards. <p> Since there are not all cards mentioned I have set up a page <url url="http://tuxmobil.org/" name="PCMCIA Cards &dquot;Unofficially&dquot; Supported by Linux"> . <sect1>SmartCards <p> SmartCard reader, see Project Muscle - <url url="http://www.linuxnet.com/smartcard/index.html" name="Movement for the Use of Smart Cards in a Linux Environment"> <sect1>Memory Technology Devices - RAM and Flash Cards <p> <url url="http://www.linux-mtd.infradead.org/" name="The Linux Memory Technology Device"> project aims to provide a unified subsystem for handling RAM and Flash cards (Memory Technology Devices). It is intended to be compatible with the Linux PCMCIA code, to prevent duplication of code and effort, yet its main target is small embedded systems, so it will be possible to compile the drivers into the kernel for use as a root filesystem, and a close eye will be kept on the memory footprint. <sect1>Printers <p> Survey about small mobile printers: <enum> <item> CANON: BJC-80, for infrared connections to this printer see the links at my page about <url url="http://tuxmobil.org/ir_misc.html" name="Linux and Infrared Devices"></item> <item> CANON: BJ-30</item> <item> HP: DeskJet 340Cbi. This is a small, portable, low-duty-cycle printer. It prints either black, or color (3 color). I have had some problems with it loading paper. Overall, the small size and portability make it a nice unit for use with laptops. I use the HP 500/500C driver with Linux. </item> <item> Olivetti: JP-90</item> </enum> AFAIK only the HP and the BJC-80 machine have an infrared port. Pay attention to the supplied voltage of the power supply if you plan to travel abroad. Source: <url url="http://www.lapshop.de" name="http://www.lapshop.de"> <sect1>Power and Phone Plugs, Power Supply <p> When travelling abroad you might consider to take a set of different power and phone plugs with you. Also, it's useful if you can change the input voltage of the power supply, for instance from 110V in the US to 220V in Germany. There also power supplies for 12V batteries from cars. Some models of power plugs: <code> ____ / () \ _ _ _ frontal view: |() ()| (_)=(_) (_) N.N. ------ abbrevation.: C13 C8 ?? PS/2 symbol......: ?? ?? -O)- N.N. </code> Caveats: Though some -O)- plug may seem to be compatible to your laptop, because of the according physical size, take extremely care it uses the same plus-minus voltage scheme, for instance plus for the inner ring and minus for the outer one. Often but not always there are the according symbols near the plug. <sect1>Bags and Suitcases <p> You probably wonder, why I include this topic here. But shortly after using my COMPAQ Armada 1592DT I recognized that the rear side of the machine (where the ports are arranged) was slightly damaged. Though I have taken much care when transporting the laptop, this was caused by putting the bag on the floor. It seems that the laptop has so much weight, that it bounces inside the bag on its own rear side. So I decided to put a soft pad into the bag before loading the laptop. A good bag is highly recommended if you take your laptop on trips, or take it home every night. <p> Laptops computers are frequently demolished in their carrying bag. The two main causes of demolition are poking the LC display and banging the edges.A good case has very stiff sides to spread out pokes, and lots of energy-absorbent padding around the edges to help when you whack it on the door jamb.Few cases actually have either of these features. <p> More laptops are lost to theft than damage, so camouflage is a wise too. Emerson, Tom # El Monte <TOMEMERSON@ms.globalpay.com> wrote: &dquot;I use for a laptop <it>travelling bag</it>: a Pyrex <it>casserole carrier</it> bag. Yup, you might think it <it>odd</it> to use a casserole bag for a laptop, but it turns out it has several advantages: <itemize> <item> The one I use has a microwavable heating pad in it -- while I don't actually heat this pad (it's meant to keep food warm while in transport), it does provide padding underneath the laptop. The carrier I have only has a lower - heating - pad, but there is also a similar carrier that has both a lower - heating - pad and an upper - cooling - pad - placed in the freezer to get it cold - -- the intent is that you keep one or the other in the bag to keep your food hot or cold as desired. A secondary advantage to the - cooling pad - pad is that if you've - chilled - it before taking the computer out for the day, it will keep the CPU cooler while you're running the laptop... <item> the top of the bag has a zipper on three sides, so it - opens - the same way as my laptop -- I don't even need to take it out of the carrier to use the laptop <item> there is enough room at the side of the bag to store the external power supply, a regular Logitech mouseman, and the network - dongle - with BNC/TP ports - and if I had it, the modem/phone port as well - <item> there is enough clearance on top of the machine to include a handful of CD's or diskettes, if needed... <item> when it's left - unattended - in a car, it's less likely to be stolen -- think about it, if you were a thief walking through a parking lot and eyeing the contents of cars, a - laptop bag - is instantly recognizable as holding a laptop computer -- something that can be fenced at a pretty hefty profit, but if you saw a casserole carrier in the front seat of a car, would you think it contained anything OTHER than a casserole? - and probably half-eaten, at that... - Unless you are a hungry thief, chances are you'll skip this and move on... <item> likewise, I've heard that keeping a laptop computer in a diaper bag is another good - camouflage - technique -- who in their right mind is going to steal a bag of - dirty - diapers?&dquot; </itemize> <sect>Different Environments - On the Road <p> <sect1>Related HOWTOs <p> <enum> <item> Security-HOWTO</item> <item> Multiboot-with-LILO-mini-HOWTO</item> <item> Ethernet-HOWTO</item> <item> NET-3-HOWTO</item> <item> Offline-Mailing-mini-HOWTO</item> <item> Plip-mini-HOWTO</item> <item> Slip-PPP-Emulator-mini-HOWTO</item> </enum> <sect1>Configuration Tools <p> <sect2>NetEnv <p> Do you use your laptop in different network environments? At home? In the office? At a customers site? If yes, the small package &dquot;netenv&dquot; might be useful for you. When booting your laptop it provides you with a simple interface from which you can choose the current network environment. The first time in a new environment, you can enter the basic data and save it for later reuse. Netenv sets up a file containing variable assignments which describe the current environment. This can be used by the PCMCIA setup scheme, e.g. like the one that comes with Debian/GNU Linux and perhaps others. The netenv data can be used for things like: <enum> <item> Network Device: Configure the network device for different environments.</item> <item> Choose a proper <file>XF86Config</file>: Think of using your laptop standalone with touchpad vs. connected to a CRT monitor along with an external mouse. For example, a wheel mouse could be used when docked, but the driver is not compatible with the normal trackpoint or touchpad.</item> <item> Windowmanager: You can set up your windowmanager according to the current location of your machine.</item> <item> Printing Environment: The netenv data can easily be used to set up the printing environment.</item> </enum> Netenv is available as Debian/GNU Linux package as well as tarball. It depends on <tt>dialog(1)</tt> for the menu system. It is developed by Gerd Bavendiek <htmlurl url="mailto:bav@rw.sni.de" name="bav@rw.sni.de"> you may get it at <url url="http://www.uni-bielefeld.de/~portgym/net/netenv.html" name="http://www.uni-bielefeld.de/~portgym/net/netenv.html"> . <sect2>divine <p> <url url="http://www.fefe.de/divine/" name="divine"> is an utility for people who use their machines in different networks all the time. &dquot;The idea is this: <itemize> <item> you describe the possible networks in /etc/divine.conf, including one or more machines that are probably up (routers and NIS servers come to mind). <item> at boot time, you run divine. <item> <tt>divine</tt> starts a thread that injects fake arp requests into the network. The thread will try again up to three times, pausing 1 second between retries. If the last try times out again, the thread will print an error message, leave the interface in the original state and exit cleanly. <item> the main thread just looks for arp replies and exits if one is found. <item> You have one resolv.conf per network, for example <file>/etc/resolv.conf.default</file> and <file>/etc/resolv.conf.work</file>, and <tt>divine</tt> will symlink one of them to <file>/etc/resolv.conf</file> for you. <item> You can specify a proxy server plus port and divine will write the proxy server to <file>/etc/proxy</file>. This can be evaluated inside your shell startup script, like this (<tt>zsh</tt>): <code> export http_proxy="http://`</etc/proxy`/" </code> The included perl script edit-netscape-proxy.pl will edit the proxy settings in your Netscape 4 preferences file. <item> You can even specify an additional script to be run for each selection. You can use this to edit <file>/etc/printcap</file> or <file>/etc/issue</file> or do something else I forgot. </itemize> <p> The point about <tt>divine</tt> in contrast to other solutions is that other solutions normally use <tt>ping</tt> or something like that. <tt>divine</tt> can check a large number of networks instantaneously, assuming that the machines you ping answer within one second (.4 seconds are normal on Ethernets). And pinging an unknown address will do an arp request anyway, so why not do an arp request in the first place?&dquot; <sect2>Mobile IP <p> From the NET3-4-HOWTO: &dquot;The term <it>IP Mobility</it> describes the ability of a host that is able to move its network connection from one point on the Internet to another without changing its IP address or losing connectivity. Usually when an IP host changes its point of connectivity it must also change its IP address. IP Mobility overcomes this problem by allocating a fixed IP address to the mobile host and using IP encapsulation (tunneling) with automatic routing to ensure that datagrams destined for it are routed to the actual IP address it is currently using.&dquot; <p> <url url="http://www.cs.hut.fi/Research/Dynamics/Dynamics" name="HUT Mobile IP"> is a dynamical, hierarchical Mobile IP system for Linux operating system. The implementation enables a hierarchical model for IP mobility, thus decreasing the location update times as a mobile host moves. Dynamics system has been designed Wireless LAN technology in mind, and the system has optimized functionality for mobility in WLAN. There is now a mailing list available. You can join it by sending <it>subscribe</it> on the subject line to <dynamics-user-request@cs.hut.fi> - or you can simply check the <url url="http://www.cs.hut.fi/Research/Dynamics/mail/user" name=" mail archive">. <sect3>Resources <p> <enum> <item> <url url="http://anchor.cs.binghamton.edu/~mobileip/" name="Linux Mobile-IP"> <item> <url url="http://hplbwww.hpl.hp.com/people/jt/MobileIP/index.html" name="Linux Mobile IP from HP Labs Bristol by Manuel Rodríguez"> <item> <url url="http://mosquitonet.Stanford.EDU/software/mip.html" name="MosquitoNet Mobile IP"> <item> <url url="http://mip.ee.nus.sg/" name="Mobile IP at NUS"> <item> <url url="http://anchor.cs.binghamton.edu/~mobileip/" name="Linux Mobile-IP"> <item> <url url="http://http.cs.berkeley.edu/~randy/Daedalus/BARWAN/" name="Bay Area Research Wireless Access Network (BARWAN)"> </enum> Sources: Kenneth E. Harker and Dag Brattli <sect2>DHCP/BootP <p> DHCP and BootP are also useful for working in different environments. Please see the DHCP-HOWTO and BootP-HOWTO. <sect2>PPPD Options <p> The <tt>pppd</tt> command can be configured via several different files: <tt>pppd file /etc/ppp/<your_options></tt> . <sect2>/etc/init.d <p> You may even choose to do your configuration by editing the <file>/etc/init.d</file> files manually. <sect2>PCMCIA - Schemes <p> How can I have separate PCMCIA device setups for home and work? This is fairly easy using PCMCIA <it>scheme</it> support. Use two configuration schemes, called <tt>home</tt> and <tt>work</tt>. For details please read the according chapter in the PCMCIA-HOWTO by David Hinds. <sect2>Bootloaders <p> <sect3>LILO <p> From <url url="http://www.mjedev.demon.co.uk/index.html" name="http://www.mjedev.demon.co.uk/index.html"> <Martin J. Evans martin@mjedev.demon.co.uk> I have taken this recommendation: The first point to note is that <tt>init</tt> will take any arguments of the form <tt>name=value</tt> as environment variable assignments if they are not recognized as something else. This means you can set environment variables from the LILO boot prompt before your rc scripts run. I set the <tt>LOCATION</tt> environment variable depending on where I am when I boot Linux. e.g. <code>LILO: linux LOCATION=home</code> Or <code>LILO: linux LOCATION=work</code> Or simply <code>LILO: linux</code> where failing to set <tt>LOCATION</tt> means the same as <tt>LOCATION=home</tt> (i.e. my default). Instead of typing <tt>LOCATION=place</tt> each time you boot you can add an entry to your <file>/etc/lilo.conf</file> file and use the append instruction. e.g. <code> # Linux bootable partition for booting Linux at home # image = /vmlinuz root = /dev/hda3 label = linux read-only # Linux bootable partition config ends # # Linux bootable partition for booting Linux at work # image = /vmlinuz root = /dev/hda3 label = work read-only append=&dquot;LOCATION=work&dquot; # Linux bootable partition config ends </code> With the example above you can use &dquot;linux&dquot; for booting at home and &dquot;work&dquot; for booting at work. Armed with the facility above, you can now edit the relevant rc scripts to test ENVIRONMENT before running <tt>ifconfig</tt>, setting up <tt>route</tt> etc. <sect3>Other Bootloaders <p> There are several other bootloaders which are often overlooked. Besides LILO, have a look at loadlin, CHooseOS (CHOS) (not GPL), GRand Unified Bootloader (GRUB), System Commander and take a look at <url url="ftp://metalab.unc.edu/pub/Linux/system/boot/loaders/" name="ftp://metalab.unc.edu/pub/Linux/system/boot/loaders/">. The NT boot loader or OS/2 boot loader may even be used. <sect2>X-Windows <p> From Steve <steve@cygnet.co.uk> I got a configuration for X windows with an external monitor: Note that I have introduced a neat trick! For my nice 17&dquot; monitor I start X with no options and get the default 16-bit 1152x864 display - but when using the LCD screen I specify a 15-bit display (<tt>startx -- -bpp 15</tt>) and get the correct 800x600 resolution automatically. This saves having to have two XConfig files. <sect2>E-Mail <p> A short introduction about how to setup email on a laptop used at home (dial-up) and work (ethernet) by Peter Englmaier <ppe@pa.uky.edu>: <sect3>Features <p> As a laptop user, I have special demands for my email setup. The setup described below, enables me to: <itemize> <item> Read my email from <it>home</it> using a POP email server, which is supplied by my university, but could also be setup on a <it>work</it> place computer.</item> <item> Write email from home with the <it>right</it> return address in the email (which does not mention my computer name).</item> <item> Read/write my email while working on a workstation without access to my laptop or the POP email server (as a backup).</item> <item> Read my email while working on my laptop connected to the ethernet of our institut.</item> <item> Direct email while connected via ethernet (faster than the fetchmail method).</item> <item> Indirect email (over pop mail server) while not connected to the ethernet at work (either at home via modem or somewhere else via ethernet).</item> <item> Use any emailer, e.g. <tt>elm</tt> or the simple <tt>mail</tt> command.</item> <item> Sort incomming email, delete spam, split email-collections (digests) into seperate emails</item> </itemize> The configuration is based on <tt>sendmail</tt>, <tt>fetchmail</tt>, and a <it>remote pop account</it> for email. <sect3>Configuration of sendmail <p> This is the most complicated part. Having installed the <tt>sendmail-cf</tt> package, I created a file named <file>/usr/lib/sendmail-cf/laptop.mc</file>: <code> divert(-1) include(`../m4/cf.m4') define(`confDEF_USER_ID',''8:12'') define(`confBIND_OPTS',`-DNSRCH -DEFNAMES') define(`confDOMAIN_NAME',''pa.uky.edu'') <---- here you define your domain OSTYPE(`linux') undefine(`UUCP_RELAY') undefine(`BITNET_RELAY') define(`SMART_HOST',`server1.pa.uky.edu') <---- there we send outgoing email define(`LUSER_RELAY',`server1.pa.uky.edu') <---- there we send mail to users my laptop does not know MASQUERADE_AS(pa.uky.edu) <---- again the domain, we want to be seen as FEATURE(allmasquerade) FEATURE(nouucp) FEATURE(nodns) FEATURE(nocanonify) FEATURE(redirect) FEATURE(always_add_domain) FEATURE(use_cw_file) FEATURE(local_procmail) MAILER(procmail) MAILER(smtp) HACK(check_mail3,`hash -a@JUNK /etc/mail/deny') HACK(use_ip,`/etc/mail/ip_allow') HACK(use_names,`/etc/mail/name_allow') HACK(use_relayto,`/etc/mail/relay_allow') HACK(check_rcpt4) HACK(check_relay3) </code> This looks more complicated as it is. All it does is, that it redirectes outbound mail to server1 (SMART_HOST) and also mail for local users which are not known (LUSER_RELAY). That way, I can write email to my colleques without using their full email address. More important: the From line in my email points back to my MASQUARADE_AS domain and not directly to my laptop. If this where not the case, email returned with the <it>reply</it> button might not reach me. You must restart <tt>sendmail</tt> for changes to take effect. Note: this configuration is for Redhat 5.2 systems. You may have to change some details. Now, all what is needed is to generate the <file>/etc/sendmail.cf </file>file <tt>m4 laptop.mc >/etc/sendmail.cf</tt> and to add all possible domain names my laptop should respond to in <file>/etc/sendmail.cw</file>: <code> # sendmail.cw - include all aliases for your machine here. laptop laptop.pa.uky.edu 128.17.18.30 guest1 guest1.somewhere.org </code> It is important to have all aliases in this file, otherwise <tt>sendmail</tt> will not accept the mail (and will reply <it>we don't relay</it> to the sender). Finally, you must now test the setup by sending email, replying to mail for all possible configurations. Any missconfiguration can result in loss of email. <sect3>Configuration for fetchmail on Laptop <p> One method to get the email into your machine is through <tt>fetchmail</tt>. Fetchmail periodically checks for new email at one or more remote mail servers. I use the following fetchmail configuration file (in my user home directory): <file>fetchmailrc</file> <code> set postmaster &dquot;myusername&dquot; set daemon 900 poll pop.uky.edu with proto POP3 user &dquot;mypopusername&dquot; there with password &dquot;mypoppassword&dquot; is mylaptopusername here </code> Fetchmail will just get the the email and send it to <tt>sendmail</tt> which will it deliver into your <file>/var/spool/mail/$USER</file> file. <sect3>Forward E-Mail to the Laptop <p> On my work station I have the following <file>.forward</file> file: <code> me@pop.acount.edu,me@server1 </code> Here server1 is the machine where I keep my mailbox. All email is send to the pop account to be picked up later by my laptop (using <tt>fetchmail</tt>). However, when my laptop is connected via ethernet, I want my email to go directly to the laptop, instead of pop: <code> me@laptop,me@server1 </code> In both cases, a backup of my email is send to server1 (where I also can read it, in case I cannot get my laptop). I keep/store all email on the laptop. <p> Switching is done by three script files and a crontab file (on the workstation): <file>forward_pop</file> <code> #!/bin/sh echo &dquot;me@pop.acount.edu,me@server1&dquot; > ${HOME}/.forward </code> <file>forward_laptop</file> <code> #!/bin/sh echo &dquot;ppe@laptop,ppe@server1&dquot; > ${HOME}/.forward crontab ${HOME}/mycrontab ${HOME}/utl/check_laptop </code> <file>check_laptop</file> <code> #!/bin/sh if /usr/sbin/ping -c 1 laptop >/dev/null 2>&1 ; then : else # redirect mail to pop ${HOME}/utl/forward_pop sleep 10 if /usr/sbin/ping -c 1 laptop >/dev/null 2>&1 ; then # back to normal ${HOME}/utl/forward_laptop else # deactivate crontab check /bin/crontab -l | grep -v check_laptop >${HOME}/tmp/mycrontab.tmp /bin/crontab ${HOME}/tmp/mycrontab.tmp rm -f ${HOME}/tmp/mycrontab.tmp fi fi </code> <file>mycrontab</file> <code> # mycrontab 0,10,20,30,40,50 * * * * ${HOME}/utl/check_laptop </code> Each time I connect the laptop to the ethernet, I have to run <tt>forward_laptop</tt>, and each time I disconnect I run forward_pop. In case I forget to run <tt>forward_pop</tt>, the crontab job runs it for me less then 10 minutes later. To do all that automatically, I change the network script files on my laptop as follows: <file>/sbin/ifdown</file> (this script runs, whenever a network device is stopped, new stuff between BEGIN and END) <code> ... fi # BEGIN new stuff # turn off forwarding email mail ppe <<EOF turning off forwarding email device = ${DEVICE} hostname = `hostname` EOF if [ &dquot;${DEVICE}&dquot; = &dquot;eth0&dquot; -a &dquot;`hostname`&dquot; = &dquot;laptop&dquot; ]; then su -lc &dquot;ssh -l myusername server1 utl/forward_pop&dquot; myusername >& /dev/null fi # END new stuff ifconfig ${DEVICE} down exec /etc/sysconfig/network-scripts/ifdown-post $CONFIG </code> Note, that the script checks for the value of hostname. In case, I am connected to a foreign ethernet, my hostname and ip-address will be something else, e.g. guest1. <file>/etc/sysconfig/network-scripts/ifup-post</file> (this script is run, whenever a network device is started) <code> # Notify programs that have requested notification do_netreport # BEGIN new stuff # check for email -- I'm using fetchmail for this if [ &dquot;${DEVICE}&dquot; = &dquot;eth0&dquot; -o &dquot;${DEVICE}&dquot; = &dquot;ppp0&dquot; ]; then su -lc fetchmail myusername >& /dev/null & fi # set clock if connected to ethernet, redirect email if [ &dquot;${DEVICE}&dquot; = &dquot;eth0&dquot; -a dquot;`hostname`&dquot; = &dquot;zaphod&dquot; ]; then ( rdate -s server1 ; hwclock --systohc --utc ) >& /dev/null & # forward email su -lc &dquot;ssh -l myusername gradj utl/forward_laptop&dquot; myusername >& /dev/null & fi # END new stuff exit 0 </code> <sect3>Processing Incomming E-Mail with procmail <p> This step is completely optional. The above described sendmail configuration calls <tt>procmail</tt> for each received email, but you could have called <tt>procmail</tt> using the <tt>.forward</tt> file (see the procmail man page). Procmail is a handy tool to block spam and to sort incomming email. You need to setup a <tt>.procmailrc</tt> file to use <tt>procmail</tt>. See the man page for procmail, procmailrc, and procmailex (examples). My setup demonstrates, how to ignore certain email messages and split email-collections (digest) into pieces: <code> # -- mail filtering -- procmail is called by sendmail -- PATH=/bin:/usr/bin MAILDIR=$HOME/Mail LOGFILE=$MAILDIR/from # keep in mind: # use &dquot;:0:&dquot; when writing to a file # use &dquot;:0&dquot; when writing to a device, e.g. /dev/null, or send email # - make first a backup of *all* incomming email (but ignore mail tagged below) - :0 c: *! ˆSissa-Repro backup # - keep only last 50 messages :0 ic | cd backup && rm -f dummy `ls -t msg.* | sed -e 1,50d` # - delete email comming through the 'postdocs' email list, when # it is not of any interest :0 * ˆFrom.*postdocs * ˆFrom.*Ernst Richter /dev/null :0 * ˆFrom.*postdocs * ˆSubject.*card charge /dev/null # Split mailing list from the sissa preprint server into individual emails # - this is quite complicated :( I can flip through the list much # faster and ignore preprints which have uninteresting titles. Instead of # having to browse through the whole list, my mailer will just present a # list of papers. # 1. split it in individual messages :0 * ˆFrom no-reply@xxx.lanl.gov | formail +1 -de -A &dquot;Sissa-Repro: true&dquot; -s procmail # 2. reformat messages a bit # 2.1. extract 'Title:' from email-Body and add to email-header as 'Subject:' :0 b * ˆSissa-Repro *! ˆSubject TITLE=| formail -xTitle: :0 a |formail -A &dquot;Subject: $TITLE &dquot; -s procmail # 2.2. store in my incomming sissa-email folder. Here, we could # also reject (and thereafter delete) uninteresting 'Subjects' # we could also mark more interesting subjects as urgend or send a copy # to regular mail box. :0: * ˆSissa-Repro * ˆSubject *! ˆreplaced with sissa </code> BTW, there is a <tt>tk</tt> GUI tool to configure <tt>procmail</tt> (I think it is called <tt>dotfiles</tt>). <sect2>Email with UUCP <p> Another possible solution for Email is to use UUCP. This software was made for disconnected machines, and is by far the easiest solution if you have several users on your laptop (we are talking about Unix, remember?), each with his/her own account. Unlike what most people think, UUCP does not need a serial connection: it works fine over TCP/IP, so your UUCP partner can be any machine on the Internet, if it is reachable from your network attachment point. Here is the UUCP <file>sys</file> for a typical laptop: <tscreen> <verb> system mylaptop time any chat &dquot;&dquot; \d\d\r\c ogin: \d\L word: \P address uucp.mypartner.org port TCP </verb> </tscreen> <sect2>More Info <p> <url url="http://www.ssc.com/lg/issue20/laptop.html" name="Using a Laptop in Different Environments"> by <htmlurl url="mailto:bav@rw.sni.de" name="Gerd Bavendiek"> . This article appeared in the August, 1997 issue of the <url url="http://www.ssc.com/lg/" name="Linux Gazette">. This is an excellent, short technical article describing an easy way to setup your Linux notebook to boot into different network and printing configurations, especially useful for those who use their machines at home as well as other locations such as in the office, at school, or at a customer site. <sect1>Data Transport Between Different Machines <p> I don't have experience with this topic yet. So just a survey about some means of data transport and maintaining data consistency between different machines. <sect2>Hardware <p> <enum> <item> external harddisks</item> <item> ZIP drive</item> </enum> Wade Hampton wrote: &dquot;You may use MS-DOS formatted ZIP and floppy discs for data transfer. You may be able to also use LS120. If you have SCSI, you could use JAZ, MO or possibly DVD-RAM (any SCSI disc that you could write to). I have the internal ZIP for my Toshiba 700CT. It works great (I use <tt>automount</tt> to mount it). I use VFAT on the ZIP disks so I can move them to Windows boxes, Linux boxes, NT, give them to coworkers, etc. One problem, I must SHUTDOWN to swap the internal CD with the ZIP.&dquot; <sect2>Software <p> <sect3>Version Management Software <p> Although it is certainly not their main aim, version management software like CVS (Concurrent Version System) are a perfect tool when you work on several machines and you have trouble keeping them in sync (something which is often called "disconnected filesystems" in the computer science literature). Unlike programs like rsync, which are assymetric (one side is the master and its files override those of the slave), CVS accept that you make changes on several machines, and try afterwards to merge them. Assymetric tools are good only when you can respect a strict discipline, when you switch from one machine to another. On the contrary, tools like CVS are more forgetful. To synchronize two or more machines (typically a desktop and a laptop), just choose a CVS repository somewhere on the network. It can be on one of the machines you want to synchronize or on a third host. Anyway, this machine should be easily reachable via the network and have good disks. Then, <tt>cvs co</tt> the module you want to work on, edit it, and <tt>cvs commit</tt> when you reached a synch point and are connected. If you made changes on both hosts, CVS will try to merge them (it typically succeeds automatically) or give in and ask you to resolve it by hand. The typical limits of this solution: CVS does not deal well with binary files, so this solution is more for users of vi or emacs than for GIMP fans. CVS has trouble with some Unix goodies like symbolic links. For more information on CVS, see the <htmlurl name="Web page" url="http://www.loria.fr/~molli/cvs-index.html">. The CVS documentation is excellent (in info format). <sect3>CODA Filesystem <p> The Coda File System is a descendant of the Andrew File System. Like AFS, Coda offers location-transparent access to a shared Unix file name-space that is mapped on to a collection of dedicated file servers. But Coda represents a substantial improvement over AFS because it offers considerably higher availability in the face of server and network failures. The improvement in availability is achieved using the complementary techniques of server replication and disconnected operation. Disconnected operation proven especially valuable in supporting portable computers <url url="http://www.coda.cs.cmu.edu/" name=" http://www.coda.cs.cmu.edu/"> . <sect3>WWWsync <p> This is a program written in Perl that will update your web pages by ftp from your local pages. This was originally written for updating Demon home-pages, but will work with other providers which provide direct FTP access to your web pages. I didn't check this for laptop purposes yet. You may get the program at <url url="http://www.alfie.demon.co.uk/wwwsync/" name="http://www.alfie.demon.co.uk/wwwsync/"> . <sect3>rsync <p> <tt>rsync</tt> is a program that allows files to be copied to and from remote machines in much the same way as <tt>rcp</tt>. It has many more options than <tt>rcp</tt>, and uses the <it>rsync remote-update protocol</it> to greatly speedup file transfers when the destination file already exists. The <it>rsync remote-update protocol</it> allows <tt>rsync</tt> to transfer just the differences between two sets of files across the network link. <sect3>Xfiles - file tree synchronization and cross-validation <p> Xfiles is an interactive utility for comparing and merging one file tree with another over a network. It supports freeform work on several machines (no need to keep track of what files are changed on which machine). Xfiles can also be used as a cross-validating disk <-gt; disk backup strategy (portions of a disk may go bad at any time, with no simple indication of which files were affected. Cross-validate against a second disk before backup to make sure you aren't backing up bad data). A client/server program (GUI on the client) traverses a file tree and reports any files that are missing on the server machine, missing on the client machine, or different. For each such file, the file size/sizes and modification date(s) are shown, and a comparison (using Unix diff) can be obtained. For files that are missing from one tree, <it>similarly named</it> files in that tree are reported. Inconsistent files can then be copied in either direction or deleted on either machine. The file trees do not need to be accessible via nfs. Files checksums are computed in parallel, so largely similar trees can be compared over a slow network link. The client and server processes can also be run on the same machine. File selection and interaction with a revision control system such as RCS can be handled by scripting using jpython. Requirements Java1.1 or later and JFC/Swing1.1 are needed. <url url="http://www.idiom.com/~zilla" name="Xfiles">. <sect3>sitecopy <p> Sitecopy is for copying locally stored websites to remote web servers. The program will upload files to the server which have changed locally, and delete files from the server which have been removed locally, to keep the remote site synchronized with the local site, with a single command. The aim is to remove the hassle of uploading and deleting individual files using an FTP client. <url url="http://www.lyra.org/sitecopy" name="sitecopy"> . <sect3>KBriefcase <p> The KDE tool <url url="http://netnow.micron.net/~mrolig/kbriefcase/" name="Kbriefcase"> tries to achieve a similar goal as the Windows briefcase, but in a different way. Rather than pulling your files from the desktop, they are pushed to the laptop. You drag a file from the local location to the briefcase. You are then asked for the remote path to copy it to. It will then copy the file to the remote location and make the original read-only. When you restore and remove, the file is copied back and write permissions are given back. The read-only status, of course, makes sure you don't start editing the file again before you've brought your changes back from the remote location. <sect1>Security in Different Environments <p> <sect2>Introduction <p> I am not a computer security expert. Please read the Security-HOWTO for more information. I just collected some information below. Note, these means are just small steps to additional security, though I recommend that you use them. <p> LASG Please read <url url="https://www.seifried.org/lasg/" name="Linux Administrator's Security Guide (LASG) - FAQ"> by Kurt Seifried. <sect2>Means of Security <p> <enum> <item> International Kernel Patch: The idea of the <url url="http://www.kerneli.org/" name="International Kernel Patch"> is to collect all crypto patches so that using crypto in the kernel will be easier than today. The patch includes a number of crypto patches including a crypto API including Blowfish, CAST-128, DES, DFC, IDEA, MARS, RC6, Rijndael, Safer, Serpent, and Twofish, an encrypted filesystem loopback device using the crypto API, CIPE VPN and EnSKIP patches. <item> Kennsington Lock: AFAIK proprietary lock solution with different laptops <url url="http://www.kennsington.com" name="http://www.kennsington.com "> </item> <item> SmartCards: by DESKO <url url="http://www.desko.de" name=" http://www.desko.de "> are not available for Linux yet. The only available laptop with a SmartCard builtin is the Siemens Scenic Mobile 800.</item> <item> User passwords: can be easily bypassed if the intruder gets physical access to your machine</item> <item> BIOS passwords: are also easily crackable, though sometimes harder than with desktops</item> <item> Name plates: to reduce the possibility of theft, you may want to have a nameplate made and affixed to the cover of the laptop. A nice one will cost you about $12, and can be made by any good trophy shop. They'll glue it on for you too. You could use double-sided tape instead, but glue is more permanent. You may even make an engravement into the laptop cover.</item> <item> Boot loader: a boot loader may be used to put your name and phone number (or whatever text you choose) into the boot sequence before the operating system is loaded. This provides a label that can't be removed by editing files or even doing a simple format of the harddisk.</item> <item> Antivirus policy: I have seen an <tt>antivir</tt> RPM somewhere. Check the BIOS for an option to disable writing at the boot sector.</item> <item> Database of stolen laptops: I have provided a <url url="http://tuxmobil.org/stolen_laptops.html" name="survey of databases for stolen laptops">. <item> Laptop as a security risk itself: Since a laptop can easily be used to intrude a network, it seems a good policy to ask the system administrator for permission before connecting a laptop to a network. <item> Secure Protocol: When connecting to a remote server always use a secure protocol.</item> </enum> <sect1>Dealing with Down Times (Cron Jobs) <p> A cron-like program that doesn't go by time: <tt>anacron</tt> (like &dquot;anac(h)ronistic&dquot;) is a periodic command scheduler. It executes commands at intervals specified in days. Unlike <tt>cron</tt>, it does not assume that the system is running continuously. It can therefore be used to control the execution of daily, weekly and monthly jobs (or anything with a period of n days), on systems that don't run 24 hours a day. When installed and configured properly, <tt>anacron</tt> will make sure that the commands are run at the specified intervals as closely as machine-uptime permits. <p> <tt>hc-cron</tt> This program is a modified version of Paul Vixie's <paul@vixie.com> widely used <tt>cron</tt> daemon. Like the original program it runs specified jobs at periodic intervals. However, the original <tt>crond</tt> relies on the computer running continuously, otherwise jobs will be missed. This problem is addressed by <tt>hc-cron</tt>, that is indended for use on <it>home-computers</it> that are typically turned off several times a day; <tt>hc-cron</tt> will remember the time when it was shut down and catch up jobs that have occurred during down time when it is started again. Felix Braun <fbraun@atdot.org> is the author of the programm, it is available at <url url="http://metalab.unc.edu /pub/Linux/system/daemons/cron" name="http://metalab.unc.edu /pub/Linux/system/daemons/cron"> . <sect1>Noise Reduction <p> Due to the proliferation of cellular phones and walkmans it's not quite common in our days to take care of a quiet environment. Anyway I want to give some recommendations for the polite ones. <sect2>Console (Shell) and X <p> For the console <tt>setterm -blength 0</tt> and for X <tt>xset b off</tt> turns the bell off. See also PCMCIA-HOWTO, and much more details in the Visible-Bell-mini-Howto by Alessandro Rubini. <sect2>PCMCIA <p> When starting your laptop with PCMCIA-CS configured correctly, this will be shown by two high beeps. If you want to avoid this put <tt>CARDMGR_OPTS=&dquot;-q&dquot;</tt> into the PCMCIA configuration file, e.g. <file>/etc/pcmcia.conf</file> for Debian/GNU Linux. <p> To avoid the dialtones during the modem dialing add <code> module &dquot;serial_cs&dquot; opts &dquot;do_sound=0&dquot; </code> to <file>/etc/pcmcia/config.opts</file> (from <tt>man serial_cs</tt>). This will disable speaker output completely, but the <tt>ATM</tt> command should let you selectively control when the speaker is active. <sect2>Miscellaneous Applications <p> You may configure <tt>vi</tt> with the <tt>flash</tt> option, so it will use a flash in case of an error, instead of a bell. <p> For at least one laptop series, the Toshiba models, there seems to be a Linux package available to control the fan and other features. <sect>Other Resources <p> Kenneth E. Harker maintains a quite valuable database at <url url="http://www.linux-on-laptops.com/ " name="http://www.linux-on-laptops.com/"> . Please have a look at his site to get current information about laptop related mailing lists, newsgroups, magazines and newsletters, WWW sites and a big database about many different laptop pages. <p> To join the <it>linux-laptop@tuxmobil.org</it> mailing list visit the subsription page at <url url="http://tuxmobil.org/mobilix_ml.html" name="http://tuxmobil.org/mobilix_ml.html">. There you may also find the list archiv. <p> To join the other <it>Linux-Laptop-Mailing-List</it> write a mail to <majordomo@vger.kernel.org> with <tt>subscribe linux-laptop</tt> in the subject. You will get a confirmation message than, which you have to reply accordingly. As far as I know there is no list archiv. <p> There is now a <it>debian-laptop mailing list</it>. Any questions or discussions concerning running the Debian/GNU Linux operating system(s) on laptops are welcome. Send mail to <debian-laptop-request@lists.debian.org> with a subject of <tt>subscribe</tt>. Or visit the<url url="http://www.debian.org" name="http://www.debian.org"> site and use the online form. <p> Also recently founded was <it>Running Linux on IBM ThinkPads</it>, to join send an email to <tt>linux-thinkpad-subscribe@topica.com</tt>, to post send mail to <tt>linux-thinkpad@topica.com</tt> . See <url url="http://www.topica.com/lists/linux-thinkpad/" name="http://www.topica.com/lists/linux-thinkpad/">. <p> Lionel, &dquot;trollhunter&dquot; Bouchpan-Lerust-Juery, <trollhunter@linuxfr.org> has written a similar HOWTO, please look at his laptop pages <url url="http://infonomade.linuxfr.org/index.html" name=" http://infonomade.linuxfr.org/index.html "> (French version) <url url="http://infonomade.linuxfr.org/indexen.html" name=" http://infonomade.linuxfr.org/indexen.html "> (English version). <p> Newsgroups are comp.os.linux.portable, comp.sys.laptops . <sect>Repairing the Hardware <p> There are several different reasons that could make it necessary to open the case of a laptop. <enum> <item> repairing broken hardware</item> <item> get some hardware info, which isn't available otherwise</item> <item> remove the speakers (speakerrektomie, as described in Visual-Bell-mini-HOWTO)</item> <item> install overdrive for CPU</item> <item> change BIOS battery</item> <item> upgrade harddisk</item> <item> upgrade memory</item> </enum> Repairing a laptop can be quite expensive if you don't have a manufacturer's warranty. Sometimes professional support is bad. But opening a laptop case can be difficult. Often the procedures to upgrade the memory and the harddisk are described in the manual. For further details, you should try to get the maintainance/technical manual. Just be extremely careful and make notes as to where each screw goes. You must get most of them back in the right hole or you could ruin the machine by damaging the system board. Also after you get all the screws to an assembly out (some will be hidden) the parts are usually held together with plastic clips molded in, so you still must exercise care to separate them. Sometimes you need certain tools, for instance TORX screw drivers or a solder kit. Good luck. WARNING: Usually laptop manufacturers declare the warranty to be void if the case was opened by people other than their own staff. <sect>Solutions with Laptops <p> <sect1>Introduction <p> The power and capabilities of laptops are sometimes limited as described above. But in turn, they have a feature which desktops don't have, their mobility. I try to give a survey about applications which make sense in connection with laptops. Since I couldn't try all of them, there is currently little documentation. If you can provide further material, please contact me. <sect1>Mobile Network Analyzer <p> I'm not an expert in this field, so I just mention the tools I know. Please check also for other applications. Besides the usual tools <tt>tcpdump</tt>, <tt>netcat</tt>, there are two applications I prefer, which may be used to analyze network traffic: The <it>Multi Router Traffic Grapher (MRTG)</it> is a tool to monitor the traffic load on network-links. MRTG generates HTML pages containing GIF images which provide a LIVE visual representation of this traffic. Check <url url="http://www.ee.ethz.ch/stats/mrtg/" name=" http://www.ee.ethz.ch/stats/mrtg/"> for an example. MRTG is based on Perl and C and works under UNIX and Windows NT. Network Top - <tt>ntop</tt> <url url="http://www-serra.unipi.it/~ntop/" name="http://www-serra.unipi.it/~ntop/"> is a Unix tool that shows the network usage, similar to what the popular top Unix command does. <tt>ntop</tt> is based on <tt>libpcap</tt> and it has been written in a portable way in order to virtually run on every Unix platform and on Win32 as well. <tt>ntop</tt> can be used in both interactive or web mode. In the first case, <tt>ntop</tt> displays the network status on the user's terminal. In web mode a web browser (e.g. netscape) can attach to <tt>ntop</tt> (that acts as a web server) and get a dump of the network status. In the latter case, <tt>ntop</tt> can be seen as a simple RMON-like agent with an embedded web interface. <sect1>Mobile Router <p> Though designed to work from a single floppy, the <it>Linux Router Project (LRP) </it>, seems useful in combination with a laptop, too. <sect1>Hacking and Cracking Networks <p> When thinking about the powers of laptops, hacking and cracking networks may come into mind. Though I don't want to handle this topic here, but instead recommend the Security-HOWTO. <sect1>Lectures <p> If you are giving lectures, readings or presentations in different places, a laptop might suit your needs. You can combine it with an overhead display, a beamer or a second monitor. For a second monitor or a beamer make sure it is supported by your laptop. <p> Though Microsoft's PowerPoint is often used for such things, there are also Linux solutions: <itemize> <item> <url url="http://www.tug.org/applications/pdftex/" name="pdftex"> creates PDF files from Tex files, which can be used toghether with certain LaTeX pakcages for presentations, see the example <it>screen designed users manual</it>. <item> <url url="http://www.math.uakron.edu/~dpstory/webeq.html" name="The Web and Exerquiz Packages"> also a sophisticated method to create presentations with LaTex. <item> <url url="http://www-sp.iti.informatik.tu-darmstadt.de/software/ppower4/" name="PPower"> <item> <url url="http://www.lysator.liu.se/~alla/dia/" name="Dia"> is a program for creating diagrams of all kinds. The current version can do UML class diagrams, Entity-Relationship modeling, network diagrams, and much more. The engine is very flexible and dynamically loads diagram-types from disk. It can currently export to postscript and load/save in an xml format. <item> See also the software maps at KDE (K-Office) <url url="http://www.kde.org" name="http://www.kde.org"> for the program <tt>KPresenter</tt> and others. And GNOME <url url="http://www.gnome.org/" name="http://www.gnome.org/"> . <item> <it>MagicPoint</it> or <tt>mgp</tt>, is an X11-based presentation tool. The home page is <url url="http://www.Mew.org/mgp" name="http://www.Mew.org/mgp"> or <url url="ftp://ftp.Mw.org/pub/MagicPoint/" name="ftp://ftp.Mew.org/pub/MagicPoint/"> or <url url="http://jiji.mew.org/mgp/" name="http://jiji.mew.org/mgp/"> . <item> Commercial packages are: <it>Applixware</it> <url url="http://www.applix.com/appware/linux/slideshow/gfx011.html" name="http://www.applix.com/appware/linux/slideshow/gfx011.html"> and Staroffice, see article 15 in LinuxFocus <url url="http://vesta.astro.amu.edu.pl/Library/Linux/LinFocus/May1998/" name="http://vesta.astro.amu.edu.pl/Library/Linux/LinFocus/May1998/">. </itemize> <sect1>Mobile Data Collecting <p> <sect2>Related HOWTOs <p> <enum> <item> Coffee-mini-HOWTO <item> AX-25-HOWTO <item> HAM-HOWTO <item> Serial-HOWTO <item> Serial-Programming-HOWTO </enum> <sect2>Applications <p> A Linux laptop can be used to collect data outside an office, e.g. geodesy data, sales data, network checks, patient data in a hospital and others. There is support for wireless data connections via cellular phone modems and amateur radio. I am not sure whether PCMCIA radio cards are supported, see Aironet Wireless Communications <url url="http://www.aironet.com/" name=" http://www.aironet.com/">. <sect2>Specific Environments <p> There are laptops available with cases build for a rugged environment (even waterproof laptops). In some environments, for instance in hospitals, take care of the Electro-Magnetic-Compatibility of the laptop. This is influenced by many factors, for instance by the material used to build the case. Usually magnesium cases shield better than the ones made of plastics. <sect1>Mobile Office <p> With KDE <url url="http://www.kde.org" name="http://www.kde.org"> (K-Office), GNOME, <url url="http://www.gnome.org/" name="http://www.gnome.org/"> and the commercial products WordPerfect, Staroffice and Applixware <url url="http://www.applix.com/" name=" http://www.applix.com/"> Linux has more and more business software applications. With the corresponding hardware, e.g. a portable printer and a cellular phone which connects to your laptop, you will have a very nice mobile office. <sect1>Connection to Digital Camera <p> AFAIK there are currently three methods to connect a digital camera to a laptop: the infrared port (IrDA), serial port and maybe USB. There are also some auxiliary programs for conversion of pictures, etc. <p> Eric <dago@tkg.att.ne.jp> wrote: &dquot;I finally succeeded in downloading pictures from my digital camera, but not exactly the way I expected, i.e. not through USB port but using pcmcia card port and memory stick device, part of digital camera hardware. Anyway, some interesting things to mention: <p> Sony (pretending using a standard) uses the msdos format to store images as JPEG files ; so the best way to have your OS recognizing them is to mount the raw device like a msdos filesystem; using mount directly doesn't work (don't know why) but an entry in the /etc/fstab file allows you to mount the device correctly. i.e.: <code> /dev/hde1 /mnt/camera msdos user,noauto,ro 0 0 </code> Of course, <tt>newfs</tt> before <tt>mount</tt> works too, but there is nothing to see at all ;-) I think both <tt>noauto</tt> and <tt>ro</tt> are important flags; I tried without it and it didn't work. Somehow the mount I got seems buggy . And if <tt>ro</tt> is missing, the camera doesn't recognize back the memory stick and it needs to be msdos-formatted. <p> According to the camera documentation , both pcmcia and USB port behave the same (for Mac and Windoze - i.e. you see a file system auto mounted) - I deduce for Linux it should be the same thing too, as long as the USB driver is installed. I think now that mounting USB raw device the way I did with pcmcia should work, but I still couldn't find which device to use.&dquot; <p> <url url="http://digitalux.netpedia.net/" name="OpenDiS (Open Digita Support)"> is a library and utility program for cameras such as the Kodak DC-220, DC-260, DC-265, and DC-280, that run Flashpoint's Digita operating system. The library is a unix implementation of the Digita Host Interface Specification, intended for embedding Digita support in other products such as <tt>gPhoto</tt>. The utility is a simple command-line program for standalone downloading of photos from the cameras. <p> <url url="http://www.gphoto.org/" name="gPhoto"> enables you to take a photo from any digital camera, load it onto your PC running a free operating system like GNU/Linux, print it, email it, put it on your web site, save it on your storage media in popular graphics formats or just view it on your monitor. <tt>gPhoto</tt> sports a new HTML engine that allows the creation of gallery themes (HTML templates with special tags) making publishing images to the world wide web a snap. A directory browse mode is implemented making it easy to create an HTML gallery from images already on your computer. Support for the Canon PowerShot A50, Kodak DC-240/280 USB, and Mustek MDC-800 digital cameras. <p> <url url="http://www.lightner.net/lightner/bruce/ppc_use.html" name="photopc"> is is a library and a command-line frontend to manipulate digital still cameras based on Fujitsu chipset and Siarra Imaging firmware. The program is known to work with Agfa, Epson and Olympus cameras. Should also work with Sanyo, but this is untested. The cameras typically come with software for Windows and for Mac, and no description of the protocol. With this tool, they are manageable from a UNIX box. Bruce D. Lightner <lightner@metaflow.com> has added support for Win32 and DOS platforms. Note that the program does not have any GUI, it is plain command-line even on Windows. For a GUI, check out the <tt>phototk</tt> program. <sect1>Connection to QuickCam (Video) <p> AFAIK there are currently two methods to connect a video camera to a laptop: a ZV port and maybe USB, but I don't know how this works with Linux. I have heard rumors about using a sound card for video data transfer to a Linux box, see <url url="http://worldvisions.ca/~apenwarr/" name="http://worldvisions.ca/~apenwarr/"> . I have heard rumors about a Linux-QuickCam-mini-HOWTO, but couldn't find a reliable URL yet. Check the <tt>sane</tt> package which is build for scanner support, this should contain support for still-grabbers as well. <p> <url url="http://rainbow.uchicago.edu/~muet/linux/kmc/kmc_utils.html" name="kmc_remote"> provides a graphical interface for controlling Kodak Motion Corder fast digital cameras over a serial connection. kmc_remote is built on the kmc_serial library, part of the kmc_utils package. kmc_remote provides a virtual button panel and simple one-touch commands for changing system variables which would involve multiple button operations on the real camera button console. Buttons, record settings (image size, record rate, shutter speed, trigger mode, burst mode), and playback rate control should be fully functional. All camera models are supported, as well as both PAL and NTSC video. <p> <url url=" http://www.intel.com/PCcamera/" name="Intel PC Camera Pro Pack"> is one of the first webcams with USB ports. Also SONY has announced a webcam with USB port. See a survey at <url url="http://www.steves-digicams.com/text_navigator.html" name="Steve's Digicams">. <sect1>Connection to Television Set <p> If you have a ZV port in the laptop, it should be easy to connect it to a TV set, using either NSCA or PAL, but I don't know whether either works with Linux. <sect1>Connection to Cellular Phone <p> AFAIK there are two methods to connect a cellular phone to a laptop: via the <it>infrared port</it> (IrDA) or via the <it>serial port</it>. See the Linux/IrDA project for the current status of IrDA connections. AFAIK only the Ericsson SH888, the Nokia 8110 and the Siemens S25 provide infrared support. <sect1>Connection to Global Positioning System (GPS) <p> From the Hardware-HOWTO I know there is Trimble Mobile GPS available. You may also connect a GPS via a serial port. Most GPS receivers have a data port and can connect to a PC with a special serial cable. <itemize> <item> <tt>dgpsip</tt> provides correct GPS location with DGPS signal from internet. <item> <url url="http://www.mayko.com/gpsd.html" name="gpsd"> is a daemon that listens to a GPS or Loran receiver and translates the positional data to simplified format that can be more easily used by other programs, like chart plotters. The package comes with a sample client that plots the location of the currently visible GPS satellites (if available) and a speedometer. Added support for the DeLame EarthMate as well as a new 'speedometer' mini client. <item> The <url url="http://www.gbdirect.co.uk/" name="QtGPS"> package contains a piece of software for Unix/Linux/X and a GPS receiver. It performs logging and replaying of a journey, supporting a moving-map display. QtGPS works with Lat/Long and British OSGB (Ornance Survey) co-ordinate systems. <item> <url url="http://www.geog.uni-hannover.de/grass/welcome.html" name="GRASS"> (Geographic Resources Analysis Support System) is a free software raster and vector based GIS, image processing system, graphics production system, and spatial modeling system. </itemize> <sect1>Connection via Amateur Radio (HAM) <p> AFAIK laptops are used in HAM contests. Please see <url url="http://sunsite.unc.edu/mdw/HOWTO/HAM-HOWTO.html" name="HAM-HOWTO"> by Terry Dawson, <it>VK2KTJ</it>, <terry@perf.no.itg.telstra.com.au> . <sect1>Satellite Watching <p> Together with an antenna and software like <tt>seesat</tt> or <tt>sattrack</tt> you can use a laptop to locate a satellite for visual observation. You could also use <tt>xephem</tt> on a laptop when stargazing. <sect1>Aviation <p> Many people are using laptops for aviation related topics. The <url url="http://metalab.unc.edu/fplan/Aviation-HOWTO/" name="Aviation HOWTO"> is an FAQ, HOWTO <it>like</it> document that provides pointers to software packages that run under the Linux operating system and are useful to private, commercial, or military pilots. The ultimate goal is to enable pilots to use the Linux operating system for all their aviation related computing needs. <sect1>Blind or Visually Impaired Users <p> There are some groups of which could gain a specific profit by using laptops. For instance blind or visually impaired people (I explicitly avoid to say handicapped people). See ACCESS-HOWTO and <url url="http://leb.net/blinux/" name="Blinux - Linux for blind people"> for more information. <tt>BRLTTY</tt> is a program which supports different braille terminals. <tt>Festival</tt> is a speech synthesis system. Screen and cursor magnifiers are available. <sect>Other Operating Systems <p> <sect1>DOS/Windows9x/NT <p> <sect2>Introduction <p> Unfortunately, there are a few reasons which might make it necessary to put DOS/Windows and Linux together on one laptop. Often the support for the flash ROM of PCMCIA cards and modems is not available for Linux, or you have to retrieve hardware information, which is not visible with Linux, due to a lack of support by some hardware manufacturers. I'm not sure wether this tasks can be achieved under an emulation like DOS-EMU or WINE. If you want Linux with X, Netscape, etc., and Windows95, things will be tight in a 1GB harddisk. Though I do so with a 810MB disk. <sect2><label id="dostools">DOS Tools to Repartition a Hard Disk <p> Often you get a preinstalled version of Windows on your laptop. If you just want to shrink the Windows partition, you need a tool to resize the partition. Or you can remove the partition first, repartition, then reinstall. Most of the following information I found at the page of Michael Egan <Michael.Egan@sonoma.edu> at <url url="http://libweb.sonoma.edu/mike/fujitsu/" name=" http://libweb.sonoma.edu/mike/fujitsu/"> . A well known and reliable, but commercial product is <it>Partition Magic</it> <url url="http://www.powerquest.com/product/pm/index.html" name="http://www.powerquest.com/product/pm/index.html"> from Power Quest. Many people have used <it>FIPS 15c</it> (which may support FAT-32) <url url="http://bmrc.berkeley.edu/people/chaffee/fips/fips.html" name="http://bmrc.berkeley.edu/people/chaffee/fips/fips.html"> for repartitioning FAT partition sizes.) Also, another version from a different source is FIPS 2.0 (claims to support FAT-32) <url url="http://www.igd.fhg.de/~aschaefe/fips/" name="http://www.igd.fhg.de/~aschaefe/fips/"> for repartitioning FAT partition sizes.) One more &dquot;newer&dquot; utility for repartitioning and resizing FAT partitions is <it>Ranish Partition Manager/Utility</it> (FAT-32 support is claimed for this as well, Linux support is taken into account.) <url url="http://www.users.intercom.com/~ranish/part/" name="http://www.users.intercom.com/~ranish/part/"> . <sect2>Partition Sharing <p> You may share your swap space between Linux and Windows. Please see &dquot;Dealing with Limited Resources&dquot; section. Also with Linux you can mount any kind of DOS/Windows partition. The other way round there are also some tools, for instance at <url url="http://uranus.it.swin.edu.au/~jn/linux/" name=" http://uranus.it.swin.edu.au/~jn/linux/"> , which provides a tool to read and write ext2 partitions from Windows9x/NT. Also you can mount DOS drives of the type <tt>msdos</tt>, <tt>vfat</tt> and even compressed drives (Drivespace, etc.). For long file names use <tt>vfat</tt> and if you like autoconversion ( a nice feature for text files), you may do so by using the <tt>conv=auto</tt> option. I have used this in my <file>/etc/fstab</file>, but be aware this might cause some strange behaviour sometimes, look at the kernel docs for further details. <code> /dev/hda8 /dos/d vfat user,exec,nosuid,nodev,conv=auto 0 2 </code> <sect2>Installation without CD Drive <p> You may use the CD drive of a desktop (or copy the content of the CD to the hard disk) and connect both machines with a nullmodem cable. Than use a DOS boot floppy and the program <tt>INTERLNK.EXE</tt> to connect both machines. <sect2>Miscellaneous <p> <htmlurl url="http://www.travsoft.com" name="http://www.travsoft.com"> <p> Windows/NT offers: RAS - Remote Access Service <p> Windows/9x/NT offers the PPTP protocol to connect to remote sites via a TCP/IP tunnel. This protocol is also supported by Linux. <url url="http://www.moretonbay.com/vpn/pptp.html" name="PoPToP"> is the PPTP server solution for Linux allowing Linux servers to function seamlessly in the PPTP VPN environment. This enables administrators to leverage the considerable benefits of both Microsoft clients and Linux servers. The current pre-release version supports Windows 95/98/NT PPTP clients and PPTP Linux clients. The PoPToP pre-release server is not yet fully optimised. On release, PoPToP will be fully compliant with IETF PPTP Internet Draft and it will seamlessly support Windows PPTP clients with the full range of encryption and authentication features. <sect1>BSD Unix <p> <enum> <item> PicoBSD is a one floppy version of FreeBSD 3.0-current, which in its different variations allows you to have secure dialup access, small diskless router or even a dial-in server. And all this on only one standard 1.44MB floppy. It runs on a minimum 386SX CPU with 8MB of RAM (no HDD required!). You probably may also use it to install BSD on a laptop as described with micro Linuxes above. You get PicoBSD at <url url="http://www.freebsd.org/~picobsd/" name=" http://www.freebsd.org/~picobsd/"> <item> <url url="http://www.jp.FreeBSD.org/PAO/" name="PAO: FreeBSD Mobile Computing Package"> FreeBSD is a version of the UNIX operating system that runs on PC hardware. It uses a different set of support for PCMCIA devices, APM, and other mobility related issues. <item> <url url="http://www.monarch.cs.cmu.edu/" name="The CMU Monarch Project"> Implementations of Mobile-IPv4 and Mobile-IPv6 for FreeBSD <item> <url url="http://www.yy.cs.keio.ac.jp/~sanpei/note-list.html" name="XF86Config Archive">. A database of XF86Config files used by Linux and FreeBSD users. If you need an XF86Config file for your notebook or laptop, check out this site. (Some documents available in Japanese only.) <item> AFAIK there is no IrDA support yet. </enum> <sect1>OS/2 <p> At <url url="http://o2ss.com/users/DrMartinus/" name="The Notebook/2 Site"> by Dr. Martinus you may find information about different notebooks and PCMCIA cards working with OS/2. <sect1>NOVELL Netware <p> The client side with DOS/Windows9x style operating systems seems to be no problem, since there are many PCMCIA cards with drivers for Netware available. For Linux connections see the <tt>mars_nwe</tt> package. Also the Caldera Linux distribtion is well known for its Novell support. <p> I hadn't time to build a Netware server on a laptop yet and couldn't check wether there are network connections possible (PCMCIA driver for Netware server). <sect1>Debian GNU/Hurd (hurd-i386) <p> The GNU Hurd is a totally new operating system being put together by the GNU group. In fact, the GNU Hurd is the final component which makes it possible to built an entirely GNU OS -- and Debian GNU/Hurd is going to be one such (possibly even the first) GNU OS. The current project is founded on the i386 architecture, but expect the others to follow soon. <p> The <url url="http://www.urbanophile.com/arenn/hacking/hurd/hurd-hardware.html" name="GNU Hurd Hardware Compatibility Guide"> states that Hurd should work on laptops, but PCMCIA support isn't ready yet. <sect>ToDo <p> <enum> <item> mention the corresponding kernel options in the Linux Compatibility Check sections</item> <item> write more Hardware sections</item> </enum> <sect>Revision History <p> v0.1 13 January 1999, first draft <p> v0.2 15 January 1999, minor changes <p> v0.3 28 January 1999, APM chapter started, minor changes <p> v0.4 8 February, APM chapter rewritten, removed some lint <p> v0.5 17 February 1999, added small USB chapter, added Dealing with Limited Resources chapter, added Solutions with Laptops chapter, minor editorial changes, released draft to the public <p> v1.0 19 February 1999, added Sound and Keyboard chapter, minor changes, release to the LDP <p> v1.1 28 February 1999, spelling, grammar, style checked and many additional information added by W. Wade Hampton, added CD Drive, Harddisk and Kernel chapters, many minor changes <p> v1.2 5 March 1999, added Debian-Laptop-Mailing-List, added information about <tt>apmcd</tt> and <tt>suspendd</tt> to APM chapter, changed some URLs, minor changes <p> v1.3 8 March 1999, minor changes <p> v1.4 25 March 1999, added ACPI information, added chapters Appendix C - NeoMagic Chip NM20xx by Cedric Adjih and Appendix D - Annotated Bibliography , minor changes <p> v1.5 4 April 1999, added chapters about setting up E-Mail by Peter Englmaier and Noise Reduction, minor changes <p> v1.6 26 June 1999, rewrite of APM chapter, added install method via LapLink cable, URLs changed or added, spell checking, minor changes <p> v1.7 28 September 1999, changed <htmlurl ..> SGML tags to <url ..>, ACPI chapter separated, touchpad chapter separated and improved, preface rewritten, added information about <tt>divine</tt>, <tt>noflushd</tt> and <tt>parted</tt>, new chapter Linux Tools to Repartition a Hard Disk, added appendix E about specific laptops, some URLs updated, minor changes <p> v2.0 2 October 1999, added information about <tt>gphoto</tt>, <tt>kmc_utils</tt>, Memory Technology Devices and HUT Mobile IP; changed structur of document (moved chapters Accessories, Laptop Distribution and chapter about partitioning), new DVD chapter, started Aviation chapter, started OS/2 chapter, started Blind and Visually Impaired Users chapter, changed entity &tilde; in URLs to ˜ to improve SGML-Tools PS output (otherwise ˜ is missing), link to new Lucent WinModem driver, minor additions and changes <p> v2.1 2 November 1999, added information about email with UUCP, the use of CVS and other tools to synchronize two machines, the <tt>noatime</tt> mount option, GPS systems, presentation tools, and hard disk form factors, started chapter about the Hurd, changed URL of PCMCIA-CS package and LDP, reworked credits chapter, reworked APM chapter, minor changes <p> v2.2 2 December 1999, reorganized the chapters about Cellular Phones, Pagers, Calculators, Digital Cameras, Wearable Computing and Noise Reduction, many minor changes and bug fixes <p> v2.2a 3 November 2000, links updated <p> v2.2b 27 February 2003, links updated (TuxMobil.org, tldp.org, linux-on-laptops.com) <sect>Credits <p> I would like to thank the many people who assisted with corrections and suggestions. Their contributions have made this work far better than I could ever have done alone. Especially I would like to thank, in order of appearance: <itemize> <item> First of all Kenneth E. Harker <kharker at cs.utexas.edu>, from his page <url url="http://www.linux-on-laptops.com/" name="Linux on Laptops"> I have included much material into this HOWTO, but didn't always quote him verbatim. <item> The other HOWTO authors from the <url url="http://tldp.org/" name="LINUX DOCUMENTATION PROJECT - LDP">. <item> The members of the <url url="http://irda.sourceforge.net" name="Linux/IrDA Project">. <item> The members of the Linux-Laptop Mailing List. <item> The members of the Debian-Laptop Mailing List. <item> The visitors and contributors of my <url url="http://tuxmobil.org/" name="TuxMobil"> pages. <item> David Hinds, the maintainer of the <url url="http://pcmcia.sourceforge.org" name="PCMCIA-CS"> package. <item> Frank Schneider <SPATZ1 at T-ONLINE.DE>. <item> Stefan Martig <martig at iamexwi.unibe.ch>. <item> Michele Andreoli, maintainer of <url url="http://mulinux.firenze.linux.it/" name="muLinux">. <item> Klaus Franken <kfr at klaus.franken.de>. <item> W. Wade, Hampton <whampton at staffnet.com>, did much of spell, grammar and style checking and added many valuable information. <item> Anderson MacKay <mackay at rice.edu>, <url url="http://linux.rice.edu" name="RLUG - Rice University Linux User Group ">, gave many different detailed recommendations. <item> Sean 'Shaleh' Perry, <shaleh at livenet.net>, Debian maintainer of <tt>anacron</tt> and other packages, for Debian support. <item> Bob Toxen <bob at cavu.com>. <item> Peter Sprenger <spre at lugs.ch>. <item> Felix Braun <fbraun at atdot.org>. <item> Steve Rader <rader at wiscnet.net>. <item> <url url="http://www.felch01.demon.co.uk/laptop-howto.html" name="Richard Worwood"> <richard at felch01.demon.co.uk>, for mirroring of the HOWTO. <item> Marcel Ovidiu Vlad <marceluc at leland.Stanford.EDU>. <item> Ludger Berse <lberse01 at cityweb.de>. <item> Cedric Adjih <cedric.adjih at inria.fr>, wrote the chapter about the NeoMagic chipset. <item> Peter Englmaier <ppe at pa.uky.edu>, provided the chapter about a sophisticated email setup. <item> Michael Wiedmann <mw at miwie.in-berlin.de>, <url url="http://www.in-berlin.de/User/miwie/pia/" name="PIA - X11 based PalmPilot Address Manager"> , found many spelling errors and more. <item> Adam Spiers <adam at thelonious.new.ox.ac.uk>. <item> Lionel, &dquot;trollhunter&dquot; Bouchpan-Lerust-Juery, <trollhunter at linuxfr.org>, for providing the <url url="http://infonomade.linuxfr.org/portables/ressourcesfr.html#howto" name="French translation"> and <url url="http://infonomade.linuxfr.org/indexen.html" name="information about wearables"> . <item> Nathan Myers <ncm at linuxlaptops.com>, from <url url="http://www.linuxlaptops.com" name="LL - LinuxLaptops"> for numerous additions. <item> Ben Attias <hfspc002 at csun.edu>. <item> Igor Pesando <ipesando at to.infn.it>. <item> Geert Van der Plas <Geert.VanderPlas at esat.kuleuven.ac.be>, provided information about the touchpad driver included in the GPM. <item> Chandran Shukla <chandran at xmission.com>. <item> Harald Milz <hm at suse.de>, from <url url="http://www.suse.de" name="SuSE"> provided numerous additions. <item> <url url="http://www.snafu.de/~ingo.dietzel/" name="Ingo Dietzel"> <ingo.dietzel at berlin.snafu.de>, for his patience with the project. <item> Emerson, Tom # El Monte <TOMEMERSON at ms.globalpay.com>, for his idea about laptop bags. <item> Thomas Traber <traber at inetmail.de>. <item> Bill Gjestvang <datawolf at ibm.net>. <item> Leandro Noferin <lnoferin at cybervalley.org>, for proofreading the <it>italian</it> parts. <item> Stephane Bortzmeyer <stephane at sources.org> for his suggestions about email with UUCP, the use of CVS or related tools to synchronize two machines, and the <tt>noatime</tt> mount option. <item> Peter Teuben <teuben at astro.umd.edu>, for some suggestions about hard disks. <item> <url url="http://www.guido.germano.com" name="Guido Germano"> <guido at germano.com>, for information about the Macintosh Powerbook 145B. <item> Joel Eriksson <joel.eriksson at alfa.telenordia.se>, for information about Atari laptops. <item> Gilles Lamiral <lamiral at mail.dotcom.fr> for providing the PLIP Install-HOWTO. <item> Alessandro Grillo <Alessandro_Grillo at tivoli.com>, started the Italian translation. <item> Gledson Evers <pulga_linux at bol.com.br>, started the Portuguese translation. <item> Dan Kegel <dank at alumni.caltech.edu>, pointed me to the Toshiba Linux page. <item> <url url="http://www.geocities.com/SiliconValley/5161" name="Jaime Robles"> <ea4abw at amsat.org>, gave me some information about the HAM-HOWTO. <item> <url url="http://home.pages.de/~lufthans/" name="LuftHans"> <LuftHans at asu.edu>, announced this HOWTO to the maintainer of the Hardware-HOWTO. <item> <url url="http://www.cs.hut.fi/~jtm" name="Jari Malinen"> <jtm at mart2.cs.hut.fi>, for support with HUT Mobile IP. <item> John Beimler <john at radiomind.com>, provided the URL of <tt>photopc</tt>. <item> Steven G. Johnson <stevenj at MIT.EDU>, provided the information about Apple/Macintosh m86k machines. <item> Ulrich Oelmann <ulrich.oelmann at tu-clausthal.de>, gave valuable additions about the installation with <tt>muLinux</tt>. <item> Lucio Pileggi <lucio at ing.unipi.it>, provided information about the Siemens S25 cellular phone. <item> Eric <dago at tkg.att.ne.jp> wrote how to transfer pictures from a digital camera. <item> Sorry, but probably I have forgotten to mention everybody who helped. </itemize> <sect>Appendix A - Survey about Micro Linuxes <p> Because of their small or non-existent footprint, micro-Linuxes are especially suited to run on laptops -- particularly if you use a company-provided laptop running Windows9x/NT. Or for installation purposes using another non Linux machine. There are several <it>micro</it> Linux distributions out there that boot from one or two floppies and run off a ramdisk. See <url url="http://www.linuxhq.com" name=" http://www.linuxhq.com "> or <url url="http://www.txdirect.net/users/mdfranz/tinux.html" name=" http://www.txdirect.net/users/mdfranz/tinux.html "> for details. You may find a FAQ and a mailing list about boot-floppies at <url url="http://os.inf.tu-dresden.de/~sr1/boot-floppies/faq.html" name=" http://os.inf.tu-dresden.de/~sr1/boot-floppies/faq.html ">. Also a BootDisk-HOWTO is available. Thanks to Matthew D. Franz maintainer of <it>Trinux</it> for this tips and collecting most of the following URLs. See also the content of Console/Mini Distributions at <url url="http://ma.us.mirrors.freshmeat.net/appindex/console/mini-distributions.html" name="FreshMeat">. <enum> <item> <url url=" http://mulinux.firenze.linux.it/" name="MuLinux"> by Michele Andreoli</item> <item> tomsrtbt <url url="http://www.toms.net/~toehser/rb/" name=" http://www.toms.net/~toehser/rb/"> &dquot;The most Linux on one floppy. (distribution or panic disk).&dquot; by Tom Oehser</item> <item> Trinux <url url="http://www.trinux.org" name=" http://www.trinux.org "> &dquot;A Linux Security Toolkit&dquot; by Matthew D. Franz</item> <item> LRP &dquot;Linux Router Project&dquot; <url url="http://www.psychosis.com/linux-router/" name="http://www.psychosis.com/linux-router/"></item> <item> hal91 <url url="http://home.sol.no/~okolaas/hal91.html" name="http://home.sol.no/~okolaas/hal91.html "></item> <item> floppyfw <url url="http://www.zelow.no/floppyfw/" name="http://www.zelow.no/floppyfw/"> by Thomas Lundquist</item> <item> minilinux <url url="http://alberti.crs4.it/softw are/mini-linux/" name=" http://alberti.crs4.it/softw are/mini-linux/"> (seems no more valid) or <url url="http://www.kiarchive.ru/pub/linux/mini-linux/" name=" http://www.kiarchive.ru/pub/linux/mini-linux/"> </item> <item> monkey <url url="http://www.spsselib.hiedu.cz/monkey/docs/english.htm" name=" http://www.spsselib.hiedu.cz/monkey/docs/english.htm "> </item> <item> DLX <url url="http://www.wu-wien.ac.at/usr/h93/h9301726/dlx.html" name="http://www.wu-wien.ac.at/usr/h93/h9301726/dlx.html"> by Erich Boem</item> <item> C-RAMDISK <url url="http://metalab.unc.edu/pub/Linux/kernel/images/" name=" http://metalab.unc.edu/pub/Linux/kernel/images/"> </item> <item> BABEL <url url="http://celsius-software.hypermart.net/babel/" name=" http://celsius-software.hypermart.net/babel/"> &dquot;A mini-distribution to run games&dquot;</item> <item> Xdenu <url url="http://xdenu.tcm.hut.fi/" name=" http://xdenu.tcm.hut.fi/"> , quotating Alan Cox: &dquot;<tt>Xdenu</tt> is a small distribution program that installs as a set of DOS zips onto a DOS partition and gives you a complete X11 client workstation.&dquot;</item> <item> LOAF <url url="http://www.ecks.org/loaf/" name=" http://www.ecks.org/loaf/"> </item> <item> pocket-linux <url url="http://pocket-linux.coven.vmh.net/" name=" http://pocket-linux.coven.vmh.net/"></item> <item> FLUF <url url="http://www.upce.cz/~kolo/fluf.htm" name=" http://www.upce.cz/~kolo/fluf.htm "></item> <item> YARD <url url="http://www.croftj.net/~fawcett/yard/" name=" http://www.croftj.net/~fawcett/yard/"> </item> <item> TLinux <url url="http://members.xoom.com/ror4/tlinux/" name=" http://members.xoom.com/ror4/tlinux/"> </item> <item> ODL <url url="http://linux.apostols.org/guru/wen/" name=" http://linux.apostols.org/guru/wen/"></item> <item> SmallLinux by Steven Gibson <url url ="http://smalllinux.netpedia.net/" name=" http://smalllinux.netpedia.net/"> Three disk micro-distribution of Linux and utilities. Based on kernel 1.2.11. Root disk is ext2 format and has <tt>fdisk</tt> and <tt>mkfs.ext2</tt> so that a harddisk install can be done. Useful to boot up on old machines with less than 4MB of RAM.</item> <item> cLIeNUX by Rick Hohensee client-use-oriented Linux distribution <url url="ftp://ftp.blueznet.com /pub/colorg" name="ftp://ftp.blueznet.com /pub/colorg"> </item> <item> linux-lite by Paul Gortmaker for very small systems with less than 2MB RAM and 10MB harddisk space (1.x.x kernel) <url url="http://metalab.unc.edu/pub/Linux/kernel" name=" http://metalab.unc.edu/pub/Linux/kernel "></item> <item> See also the packages at MetaLab formerly known as SunSite <url url="http://metalab.unc.edu/pub/Linux/system/recovery/!INDEX.html" name=" http://metalab.unc.edu/pub/Linux/system/recovery/!INDEX.html "> and the Boot-Disk-HOWTO</item> <item> You may also consider some of the boot floppies provided by various distributions falling into this category, e.g. the boot/rescue floppy of Debian/GNU Linux. </item> <item> If you like to build your own flavour of a boot floppy you may do so manually, as described in the BootDisk-HOWTO or using some helper tools, for instance <tt>mkrboot</tt> (provided at least as a Debian/GNU Linux package) or <tt>pcinitrd</tt>, which is part of the PCMCIA-CS package by David Hinds. <item> Also you might try to build your Linux system on a ZIP drive. This is described in the ZIP-Install-mini-HOWTO. </enum> <sect>Appendix B - Dealing with Limited Resources or Tuning the System <p> <sect1>Related HOWTOs <p> <enum> <item> LBX-HOWTO <item> Small-Memory-HOWTO </enum> <sect1>Introduction <p> As mentioned in the introduction laptops sometimes have less resources if you compare them to desktops. To deal with limited space, memory, CPU speed and battery power, I have written this chapter. <sect1>Small Space <p> <sect2>Introduction <p> There are different types of techniques to gain more disk space, such as sharing of space, freeing unused or redundant space, filesystem tuning and compression. Note: some of these techniques use memory instead of space. As you will see, there are many small steps necessary to free some space. <sect2>Techniques <p> <enum> <item> Stripping: Though many distributions come with stripped binaries today it is useful to check this. For details see <tt>man strip</tt>. To find every unstripped file you can use the <tt>file</tt> command or more convenient the tool <tt>findstrip</tt>. Attention: don't strip libraries, sometimes the wrong symbols are removed due to a bad programming technique. Or use the <tt>--strip-unneeded</tt> option.</item> <item> Perforation: <tt>zum(1)</tt>reads a file list on stdin and attempts to perforate these files. Perforation means, that series of null bytes are replaced by <tt>lseek</tt>, thus giving the file system a chance of not allocating real disk space for those bytes. Example: <tt>find . -type f | xargs zum</tt> </item> <item> Remove Odd Files and Duplicates: Check your system for core files, emacs recovery files <#FILE#> vi recovery files <FILE>.swp, RPM recovery files <FILE>.rpmorig and <tt>patch</tt> recovery files. Find duplicates, you may try <tt>finddup</tt>. Choose a system to name your backup, temporary and test files, e.g. with a signature at the end. <item>Clean Temporary Files: , e.g. <file>/tmp</file>, there is even a tool <tt>tmpwatch</tt>. <item>Shorten the Log Files: usually the files in <file>/var/log</file>. </item> <item> Remove Files: Remove files which are not &dquot;necessary&dquot; under all circumstances such as man pages, documentation <file>/usr/doc</file> and sources e.g. <file>/usr/src</file> . <item> Unnecessary Libraries: You may use the <tt>binstats</tt> package to find unused libraries (Thanks to Tom Ed White). <item> Filesystem: Choose a filesystem which treats disk space economically e.g. <tt>rsfs</tt>. Tune your filesystem e.g. <tt>tune2fs</tt>. Choose an appropriate partition and block size. </item> <item> Reduce Kernel Size: Either by using only the necessary kernel features and/or making a compressed kernel image <tt>bzImage</tt>. </item> <item> Compression: I didn't check this but AFAIK you may compress your filesystem with <tt>gzip</tt> and decompress it on the fly. Alternatively you may choose to compress only certain files. You can even execute compressed files with <tt>zexec</tt></item> <item> Compressed Filesystems: <p> - For e2fs filesystems there is a compression version available <tt>e2compr</tt> , see <url url="http://debs.fuller.edu/e2compr/" name="http://debs.fuller.edu/e2compr/"> . <p> - DMSDOS which enables your machine to access Windows95 compressed drives (drivespace, doublestacker). If you don't need DOS/Windows95 compatibility, i.e. if you want to compress Linux-only data, this is really discouraged by the author of the program. See <url url="http://fb9nt-ln.uni-duisburg.de/mitarbeiter/gockel/software/dmsdos/" name="http://fb9nt-ln.uni-duisburg.de/mitarbeiter/gockel/software/dmsdos/"> .</item> <item> Partition Sharing: You may share swap-space (see Swap-Space-HOWTO) or data partitions between different OS (see <tt>mount</tt>). For mounting MS-DOS Windows95 compressed drives (doublespace, drivespace) you may use <tt>dmsdos</tt> <url url="http://metalab.unc.edu/pub/Linux/system/filesystems/dosfs/" name=" http://metalab.unc.edu/pub/Linux/system/filesystems/dosfs/">.</item> <item> Libraries: Take another (older) library, for instance <tt>libc5</tt> , this library seems to be smaller than <tt>libc6</tt> aka <tt>glibc2</tt> . <item> Kernel: If your needs are fitted with an older kernel version, you can save some space. <item> GUI: Avoid as much Graphical User Interface (GUI) as possible. <item>Tiny Distributions: There are some distributions available which fit from one 3.5&dquot; floppy to 10MB disk space and fit for small memories, too. See appendix A and below. <item>External Storage Devices (Hard Disks, ZIP Drives, NFS, SAMBA): Since many notebooks may be limited in their expandability, using the parallel port is an attractive option. There are external harddisks and ZIP Drives available. Usually they are also connectable via PCMCIA. Another way is using the resources of another machine through NFS or SAMBA etc. </enum> <sect1>Harddisk Speed <p> Use the tool <tt>hdparm</tt> to set up better harddisk performance. Though I have seen laptop disk enabled with <it>striping</it>, I can't see a reason to do so, because IMHO aka RAID0 striping needs at least two different disks to increase performance. <p> See UNIX and LINUX Computing Journal: <url url="http://www.diverge.org/ulcj/199910tfsp.shtml" name="Tunable Filesystem Parameters in /proc"> How to increase, decrease and reconfigure filsystem behavior from within /proc. <sect1>Small Memory <p> <sect2>Related HOWTOs <p> <enum> <item> Small-Memory-mini-HOWTO by Todd Burgess <tburgess@uoguelph.ca > <url url="http://eddie.cis.uoguelph.ca/~tburgess" name=" http://eddie.cis.uoguelph.ca/~tburgess"> <item> Modules-mini-HOWTO <item> Kerneld-mini-HOWTO </enum> <sect2>Techniques <p> Check the memory usage with <tt>free</tt> and <tt>top</tt>. <url url="http://www.complang.tuwien.ac.at/ulrich/mergemem/" name="Mergemem Project ">. Many programs contain <it>memory areas of the same content</it> that remain undetected by the operating system. Typically, these areas contain data that have been generated on startup and remain unchanged for longer periods. With <tt>mergemem</tt> such areas are detected and shared. The sharing is performed on the operating system level and is invisible to the user level programs. <tt>mergemem</tt> is particularily useful if you run many instances of interpreters and emulators (like Java or Prolog) that keep their code in private data areas. But also other programs can take advantage albeit to a lesser degree. You may also reduce the <it>kernel size</it> as much as possible by removing any feature which is not necessary for your needs and by modularizing the kernel as much as possible. Also you may shutdown every service or <it>daemon</it> which is not needed, e.g. <tt>lpd</tt>, <tt>mountd</tt>, <tt>nfsd</tt> and close some <it>virtual consoles</it>. Please see Small-Memory-mini-HOWTO for details. And of coarse use <it>swap space</it>, when possible. If possible you use the resources of another machine, for instance with X, VNC or even <tt>telnet</tt>. For more information on Virtual Network Computing (VNC), see <url url="http://www.uk.research.att.com/vnc" name="http://http://www.uk.research.att.com/vnc/"> . <sect1>Low CPU Speed <p> You may want to overdrive the CPU speed but this can damage your hardware and I don't have experience with it. For some examples look at Adorable Toshiba Libretto - Overclocking <url url="http://www.cerfnet.com/~adorable/libretto.html" name="http://www.cerfnet.com/~adorable/libretto.html">. <sect1>Power Saving Techniques <p> <enum> <item> If you don't need infrared support, disable it in the BIOS or shutdown the IrDA device driver. There are also some IrDA features of the kernel which are useful for saving power. <item> PCMCIA services consume much power, so shut them down if you don't need them. <item> I'm not sure to which extend the <it>backlight</it> consumes power. WARNING: AFAIK this device can only bear a limited number of uptime circles. So avoid using screensavers. <item> For some examples to build batteries with increased uptime up to 8 hours look at Adorable Toshiba Libretto <url url="http://www.cerfnet.com/~adorable/libretto.html" name="http://www.cerfnet.com/~adorable/libretto.html">. <item> For information about APM look at the APM chapter above. <item> <url url="http://www-leland.stanford.edu/~bbense/toys/" name="A hacked rclock ">. Booker C. Bense has hacked the <it>rclock</it> program to include a simple battery power meter on the clock face. <item> <url url="http://www.jaist.ac.jp/~daisuke/Linux/xbatstat.html" name="xbatstat">. A battery level status checker for Linux and X. <item> The &dquot;noatime&dquot; option when mouting filesystems tells the kernel to <em>not</em> update the <it>access time</it> information of the file. This information, although sometimes useful, is not used by most people (do you know that <tt>ls -lu</tt> gives you the access time?). Therefore, you can safely disable it, then preventing disk access each time you <tt>cat</tt> a file. Here is an example of a <file>/etc/fstab</file> with this power-saving option: <tscreen> <verb> /dev/hda7 /var ext2 defaults,noatime 0 2 </verb> </tscreen> <item> <url url="ftp://tsx-11.mit.edu/pub/linux/sources/sbin/hdparm-3.0.tar.gz" name="hdparm"> <it>hdparm</it> is a Linux IDE disk utility that lets you set spin-down timeouts and other disk parameters. It works also for some SCSI features. <item> <url url="http://www.complang.tuwien.ac.at/ulrich/linux/tips.html" name="Mobile Update Daemon "> This is a drop-in replacement for the standard <tt>update</tt> daemon, <tt>mobile-update</tt> minimizes disk spin ups and reduces disk uptime. It flushes buffers only when other disk activity is present. To ensure a consistent file system call <tt>sync</tt> manually. Otherwise files may be lost on power failure. <tt>mobile-update</tt> does not use APM. So it works also on older systems. <item> <url url="http://www.tuebingen.linux.de/kobras/noflushd/" name="noflushd">: <tt>noflushd</tt> monitors disk activity and spins down disks that have been idle for more than <timeout> seconds. It requires a kernel >=2.2.11 . Useful in combination with <tt>hdparm</tt> and <tt>mount</tt> with <it>noatime</it> option to bring down disk activity. <item> <url url="http://www2.prestel.co.uk/hex/toshiba.html" name="Toshiba Linux Utilities "> This is a set of Linux utilities for controlling the fan, supervisor passwords, and hot key functions of Toshiba Pentium notebooks. There is a KDE package <it>Klibreta</it>, too. <item> At Kenneth E. Harker's page there is a recommendation for LCDproc <url url="http://lcdproc.omnipotent.net/" name="LCDProc"> . &dquot;LCDproc is a small piece of software that will enable your Linux box to display live system information on a 20x4 line backlit LCD display. This program shows, among other things, battery status on notebooks.&dquot; I tried this package and found that it connects only to the external Matrix-Orbital 20x4 LCD display <url url="http://www.matrix-orbital.com/" name="http://www.matrix-orbital.com/">, which is a LCD display connected to a serial port. I can't see any use for a laptop yet. <item> <url url="http://www.loonie.net/~eschenk/diald.html" name="Diald: Dial Daemon "> . The Diald daemon provides on demand Internet connectivity using the SLIP or PPP protocols. Diald can automatically dial in to a remote host when needed or bring down dial-up connections that are inactive. <item> KDE <url url="http://www.kde.org" name="http://www.kde.org"> provides <it>KAPM</it>, <it>Kbatmon</it> and <it>Kcmlaptop</it>. Written by Paul Campbell <it>kcmlaptop</it> is a set of KDE control panels that implements laptop computer support functions, it includes a dockable battery status monitor for laptops - in short a little icon in the KDE status bar that shows how much battery time you have left. It also will warn you when power is getting low and allows you to configure power saving options. Similar packages you may find at the GNOME project <url url="http://www.gnome.org/" name=" http://www.gnome.org/"> . See the software maps at both sites. <item> Please see Battery Powered Linux Mini-HOWTO by Hanno Mueller, hanno@lava.de <url url="http://www.lava.de/~hanno/" name="http://www.lava.de/~hanno/"> for more information. </enum> <sect1>Kernel <p> <sect2>Related HOWTOs <p> <itemize> <item> Kernel-HOWTO <item> BootPrompt-HOWTO </itemize> <p> Many kernel features are related to laptops. For instance APM, IrDA, PCMCIA and some options for certain laptops, e.g. IBM ThinkPads. In some distributions they not configured. And the kernel is usually bigger than necessary. So it's seems a good idea to customize the kernel. Though this task might seem difficult for the beginner it is highly recommended. Since this involves dangerous operations you need to be careful. But, if you can install a better kernel successfully, you've earned your intermediate Linux sysadmin merit badge. - Since this topic is already covered in other documents I want handle this here. <sect1>Tiny Applications and Distributions <p> A small collection yet, but I'm looking for more information. <enum> <item> BOA - &dquot;Lightweight and High Performance WebServer. <tt>boa</tt> is a single-tasking HTTP server. That means that unlike traditional web servers, it does not fork for each incoming connection, nor does it fork many copies of itself to handle multiple connections. It internally multiplexes all of the ongoing HTTP connections, and forks only for CGI programs (which must be separate processes.) Preliminary tests show boa is capable of handling several hundred hits per second on a 100 MHz Pentium.&dquot; <item> MGR - a graphical windows system, which uses much less resources than X. <item> Low Bandwidth X: <p> Alan Cox in LINUX REDUX February 1998 &dquot; .. there are two that handle <it>normal</it> applications very nicely. LBX (Low Bandwidth X) is the <it>official</it> application of the X Consortium (now OpenGroup www.opengroup.org). Dxpc <url url="http://ccwf.cc.utexas.edu/~zvonler/dxpc" name="http://ccwf.cc.utexas.edu/~zvonler/dxpc"> is the alternative most people prefer. These systems act as proxy X11 servers and compress datastreams by well over 50 percent for normal requests, often reaching a reduction to 25 percent of the original bandwidth usage. With dxpc, X windows applications are quite usable over a 28.8 modem link or across the Internet.&dquot; <item> blackbox - &dquot;This is a window manager for X. It is similar in many respects to such popular packages as Window Maker, Enlightenment, and FVWM2. You might be interested in this package if you are tired of window managers that are a heavy drain on your system resources, but you still want an attractive and modern-looking interface.&dquot; <item> xfce - <url url="http://www.xfce.org" name="xfce"> is a lightweight and stable desktop environment for various UNIX systems. <item> linux-lite - distribution based on a 1.x.x kernel for systems with only 2MB memory and 10MB harddisk. URL see above. <item> smallLinux - <url url ="http://smalllinux.netpedia.net/" name=" http://smalllinux.netpedia.net/"> . Three disk micro-distribution of Linux and utilities. Based on kernel 1.2.11. Root disk is ext2 format and has <tt>fdisk</tt> and <tt>mkfs.ext2</tt> so that a harddisk install can be done. Useful to boot up on old machines with less than 4MB of RAM. <item> cLIeNUX - client-use-oriented Linux distribution. <item> minix - not a Linux but a UNIX useful for very small systems, such as 286 CPU and 640K RAM <url url="http://www.cs.vu.nl/~ast/minix.html" name="http://www.cs.vu.nl/~ast/minix.html"> . There is even X support named mini-x by David I. Bell <url url="ftp://ftp.linux.org.uk/pub/linux/alan/" name="ftp://ftp.linux.org.uk/pub/linux/alan/"> . <item> <tt>screen</tt> - tiny but powerful console manager. John M. Fisk <fiskjm@ctrvax.vanderbilt.edu> in LINUX GAZETTE July 1, 1996 :&dquot;It's a GUI, GUI, GUI, GUI world! &dquot; -- or so the major OS manufacturers would have you belief. Truth is, that while this is increasingly the case, there are times when the command line interface (CLI) is still a very good choice for getting things done. It's fast, generally efficient, and is a good choice on memory or CPU constrained machines. And don't forget that there are still a lot of very nifty things that can be done <it>at the console</it>.&dquot; <item> tinyirc - &dquot;A tiny, stripped down IRC Client. Doesn't have most of the more advance commands in the ircII family of IRC Clients, nor does it have any color, but it works, and it's tiny.&dquot; </enum> <sect1>Hardware Upgrade <p> You may also take into account to upgrade the hardware itself, though this may have some caveats, see chapter Open a Laptop Case above. If you need a survey about the possibilities, you can take a look at <url url="http://www.upgrade.de" name="http://www.upgrade.de">, this page is also available in French and English. <sect>Appendix C - NeoMagic Chip NM20xx <p> <sect1>Introduction <p> Hence the NeoMagic chipset series NM20xx is one of the most used graphic chips in laptops in our times, I will spent a few words on them. Though a long time this chip was only supported by commercial X servers, since the middle of 1998 RedHat provided a binary X server manufactured by PrecisionInsight. Since version 3.3.3 this X server is also available by XFree86. <sect1>Textmode 100x37 <p> This chapter is a courtesy of Cedric Adjih <htmlurl url="mailto:cedric.adjih@inria.fr" name="< cedric.adjih@inria.fr >">. I changed some minor parts. <p> An apparently little known fact about the Neomagic chipset NM20xx is that you can run text mode in 100x37 (i.e. 800x600). This text mode is very nice (as opposed to the 80x25 which is ugly). I tried this with a HP OmniBook 800 and suppose it might work with other laptops using the NeoMagic chip, too. The following that I wrote was much longer than I expected so I wrote it as a kind of mini-howto :-) : The main problem is that is a bit difficult to set up, and if you're going wrong with SVGATextMode/restoretextmode some results on the LCD might be frightening. Although I didn't manage to break my LCD with many many attempts going wrong, DISCLAMER: THIS MIGHT DAMAGE YOUR HARDWARE. YOU HAVE BEEN WARNED. FOLLOW THE FOLLOWING INSTRUCTIONS AT YOUR OWN RISKS. I'M NOT RESPONSIBLE IF SOMETHING BAD HAPPENS. <sect2>Survey <p> You need to do <it>three</it> main steps: <enum> <item> Enable Linux to boot in 800x600 textmode. The problem is that you won't see any text before the following two steps aren't done.</item> <item> Automatically run <tt>restoretextmode</tt> with correct register data.</item> <item> Automatically run <tt>SVGATextMode</tt>.</item> </enum> <sect2>More Details <p> All the files I have modified, are available for now at <url url="http://starship.python.net/crew/adjih/data/cda-omni-trick.tar.gz" name="http://starship.python.net/crew/adjih/data/cda-omni-trick.tar.gz"> <sect3>Enabling Linux to Boot in 800x600 <p> Recent kernels (2.2.x) need to be compiled with CONFIG_VIDEO_GFX_HACK defined. Default is off. (look in <file>/usr/src/linux-2.2.x/arch/i386/boot/video.S</file>) This is done by passing the parameter <tt>vga=770</tt> to older kernels or <tt>vga=7</tt> to 2.2.x kernels. Example with <file>lilo.conf</file>: <code> image=/boot/bzImage-modif label=22 append=&dquot;svgatextmode=100x37x8_SVGA&dquot; #explained later vga=7 read-only </code> <sect3>Running <tt>restoretextmode</tt> and <tt>SVGATextMode</tt> at Boot Time <p> You must arrange to run <tt>restoretextmode <name of some textreg.dat file></tt> and <tt>SVGATextMode 100x37x8_SVGA</tt> at boot time. An example <file>textreg.dat</file> for restoretextmode (obtained using <tt>savetextmode</tt>) is in my tar archive in <file>tmp/</file>, and an example <file>/etc/TextConfig</file>. Since I'm lazy, I've simply put <tt>SVGATextMode</tt> and <tt>restoretextmode</tt> in the <file>/etc/rc.boot/kbd</file> file from my Debian/GNU Linux which get executed at boot time (also available in the tar archive). <sect3>Now the Key Point <p> Annoying things will be displayed if you don't use the right SVGATextMode in the right video text mode: this is why I also pass the environmental variable <tt>&dquot;svgatextmode=100x37x8_SVGA&dquot;</tt> (arbitrary name) to the kernel (using append=xxx in lilo.conf) when I also set <tt>vga=7</tt>: the script <file>/etc/rc.boot/kbd</file> tests this variable and calls <tt>restoretextmode</tt> and <tt>SVGATextMode</tt> IF AND ONLY IF. <sect2>Road Map <p> <enum> <item> Recompile the kernel 2.2.x with CONFIG_VIDEO_GFX_HACK</item> <item> Insert the restoretextmode with the correct parameter in the initialisation script, with no other changes.</item> <item> Boot with normal text mode (80x25) but restoretextmode: you should see the screen going to 100x37, but with only 80x25 usable. Don't use SVGATextMode yet.</item> <item> It is much better to conditionnalize your initialize code as I did, to keep the possibility of booting in both modes: you may test this now with some reboots (starting restoretextmode or not).</item> <item> Boot with 100x37 text mode using parameter <tt>vga=7</tt> (lilo.conf), you should see white background at some point, but the characters will be black on black. This is ok. You'll have to reboot blindly now.</item> <item> Insert the <path>/SVGATextMode 100x37x8_SVGA after the restoretextmode in initialization scripts.</item> <item> Reboot with <tt>vga=7</tt> (lilo.conf)</item> <item> Should be OK now. Enjoy.</item> </enum> <sect>Appendix D - Annotated Bibliography <p> <itemize> <item> Linux guides and HOWTOs, available at the Linux Documentation Project (LDP) <url url="http://metalab.unc.edu/LDP" name="http://metalab.unc.edu/LDP"> . These sources of information are highly recommended. <item> I found two books about PC hardware which contain a dedicated chapter about repairing laptops. Author: Scott Mueller Title: Upgrading and Repairing PCs Publisher: QUE Corporation. Author: Marc Misani Title: The Complete Hardware Upgrade and Maintainance Guide Publisher: unknown Both books don't know about Linux and both are quite short about laptops. The book by Marc Minasi provides a little more information about laptops. <item> Authors: Alessandro Rubini, Andy Oram Title: Linux Device Drivers <item> Author: Stephen J. Bigelow Title: Maintain and Repair Your Notebook, Palmtop, or Pen Computer Publisher: McGraw Hill Text, September 1993 Review by Booknews, Inc. , January 1, 1994: A guide to performing routine maintenance and simple repairs to notebook, palmtop and pen computers. Covers such topics as how to diagnose and replace faulty LCD and plasma displays, and how to protect circuitry from electrostatic damage. Written with beginners in mind -- but some hardware experience would be helpful in understanding the subtleties and cautions involved. Annotation copyright Book News, Inc. Portland, Or. Though this book seems outdated I don't know a newer one. <item> Author: Frank van Gilluwe Title: The Undocumented PC Publisher: Addison Wesley Developers Press Review by Craig Hart: There are two editions. Edition 1 has a purple cover, edition 2 has a grey marble background photo with brown-on-yellow text panel. Edition 2 is not much better than edition one - only about 10%; of the information has changed, although a lot of typographical errors have been corrected. This is an excellent book, because it not only lists the <it>raw</it> data required to program something, but it has lot's of explanations, how-to's and example programs. <item> Authors: <url url="http://www.reischl.com" name="Gerald Reischl"> / Heinz Sundt Title: Die mobile Revolution Publisher: Frankfurt: Ueberreuter 1999 Some speculations about the future of mobile communication. </itemize> <sect>Appendix E - Resources for Specific Laptops <p> Certain laptops have found some more enthusiastic Linux users, than other models. This list is probably not comprehensive: <sect1>IBM ThinkPad <p> ThinkPad Configuration Tool for Linux <url url="http://jhunix.hcf.jhu.edu/~thood/tpctlhome.htm" name="tpctl"> <p> Mailing list <url url="http://www.topica.com/lists/linux-thinkpad/" name="linux-thinkpad">. <sect1>Toshiba Laptops <p> <url url="http://www2.prestel.co.uk/hex/toshiba.html" name="Toshiba Linux Utilities "> This is a set of Linux utilities for controlling the fan, supervisor passwords, and hot key functions of Toshiba Pentium notebooks. There is a KDE package <it>Klibreta</it>, too. <p> See also <url url="http://www.buzzard.org.uk/toshiba/" name="Toshiba Linux Utilities"> <p> Mailing lists: <url url="http://www.onelist.com/subscribe.cgi/linux-on-portege" name="linux-on-portege"> , Linux on Toshiba Satellite 40xx linux-tosh-40xx <majordomo@geekstuff.co.uk>. <p> Toshiba itself offers now <url url="http://www.tce.co.jp/linux/" name=" Toshiba Linux Support">. <sect1>COMPAQ Concerto Aero <p> <url url="http://www.inetdirect.net/stg/pen/chris/concerto.html" name="COMPAQ Concerto Fan's Home Page"> and <url url="http://www.reed.edu/~pwilk/aero/aero.faq" name="Aero-FAQ">. <p> The latest version of the <url url="http://www.cs.nmsu.edu/~pfeiffer/#pen" name="Linux Compaq Concerto Pen Driver"> is available from Joe Pfeiffer's home page. <sect1>DELL Laptops <p> Mailing list at <url url="http://www.egroups.com/group/linux-dell-laptops" name="linux-dell-laptops"> </article>