Search:  
Gentoo Wiki

Acer_TravelMate_4062WLMi


Contents

Introduction

This is a guide to install and make Gentoo usable and functional under an Acer TravelMate 4062WLMi notebook. It is very likely it will be useful for other notebooks of the Acer TravelMate 4060 series. I had some problems during the installation that deviated it from the normal setup process:

So it's possible to make all the hardware of this notebook work under Linux. Let's tune our notebook! ;)

The hardware of our notebook

Code: lspci
00:00.0 Host bridge: Intel Corporation Mobile 915GM/PM/GMS/910GML Express Processor to DRAM Controller (rev 03) 00:02.0 VGA compatible controller: Intel Corporation Mobile 915GM/GMS/910GML Express Graphics Controller (rev 03) 00:02.1 Display controller: Intel Corporation Mobile 915GM/GMS/910GML Express Graphics Controller (rev 03) 00:1b.0 Audio device: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) High Definition Audio Controller (rev 04) 00:1c.0 PCI bridge: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) PCI Express Port 1 (rev 04) 00:1c.1 PCI bridge: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) PCI Express Port 2 (rev 04) 00:1c.2 PCI bridge: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) PCI Express Port 3 (rev 04) 00:1d.0 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #1 (rev 04) 00:1d.1 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #2 (rev 04) 00:1d.2 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #3 (rev 04) 00:1d.3 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #4 (rev 04) 00:1d.7 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB2 EHCI Controller (rev 04) 00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev d4) 00:1f.0 ISA bridge: Intel Corporation 82801FBM (ICH6M) LPC Interface Bridge (rev 04) 00:1f.1 IDE interface: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) IDE Controller (rev 04) 00:1f.3 SMBus: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) SMBus Controller (rev 04) 06:01.0 CardBus bridge: Texas Instruments PCI1510 PC card Cardbus Controller 06:04.0 Network controller: Intel Corporation PRO/Wireless 2200BG (rev 05) 06:08.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 10)

Base System and Kernel

If you opt to install a Stage3 base system, choose the Pentium3 optimized version until a Pentium-M optimized version is available, as the Pentium M core was based in the Pentium III, not in the Pentium IV.

For the kernel, some patches that could be util are the following:

After installing gentoo-sources and applying the patches you will wish to use, we need to install the fixed DSDT for our ACPI to work. The fixed DSDT you be compiled together with our kernel. Paste the following code in /usr/src/linux/include/acpi/dsdt_table.h: The DSDT.

Now we go on with menu config. The settings I use are the following:

Code: Kernel config
Processor type and features ---> Subarchitecture Type (PC-compatible) ---> Processor family (Pentium M) ---> [*] Generic x86 support [*] Preempt The Big Kernel Lock [*] Machine Check Exception [*] MTRR (Memory Type Range Register) support Power management options (ACPI, APM) ---> [*] Suspend2 ---> [*] Swap Writer ACPI (Advanced Configuration and Power Interface) Support ---> [*] ACPI Support [*] Sleep States <*> AC Adapter <*> Battery <*> Button <*> Video <*> Fan <*> Processor <*> Thermal Zone [*] Include Custom DSDT (/usr/src/linux/include/acpi/dsdt_table.h) Custom DSDT Table file to include CPU Frequency scaling ---> [*] CPU Frequency scaling <*> CPU frequency translation statistics <*> 'powersave' governor <*> 'userspace' governor for userspace frequency scaling <*> 'ondemand' cpufreq policy governor <*> 'conservative' cpufreq governor <*> Intel Enhanced SpeedStep [*] Userspace control of CPU frequency/voltage table [*] Use ACPI tables to decode valid frequency/voltage pairs [*] Built-in tables [*] Built-in tables for Dothan CPUs Bus options (PCI, PCMCIA, EISA, MCA, ISA) ---> [*] Legacy /proc/pci interface PCCARD (PCMCIA/CardBus) support ---> <M> PCCard (PCMCIA/CardBus) support <M> 16-bit PCMCIA support [*] Load CIS updates from userspace (EXPERIMENTAL) [*] PCMCIA control ioctl (obsolete) [*] 32-bit CardBus support Device Drivers ---> Plug and Play support ---> [*] Plug and Play support [*] Plug and Play ACPI support (EXPERIMENTAL) ATA/ATAPI/MFM/RLL support ---> <*> ATA/ATAPI/MFM/RLL support <*> Enhanced IDE/MFM/RLL disk/cdrom/tape/floppy support <*> Include IDE/ATA-2 DISK support [*] Use multi-mode by default <*> Include IDE/ATAPI CDROM support <*> generic/default IDE chipset support [*] Generic PCI bus-master DMA support [*] Use PCI DMA by default when available SCSI device support ---> <M> SCSI device support <M> SCSI disk support Network device support ---> [*] Network device support Ethernet (10 or 100Mbit) ---> [*] Ethernet (10 or 100Mbit) [*] EISA, VLB, PCI and on board controllers <*> RealTek RTL-8129/8130/8139 PCI Fast Ethernet Adapter support [*] Use PIO instead of MMIO <*> PPP (point-to-point protocol) support <*> PPP support for async serial ports <*> PPP support for sync tty ports <*> PPP Deflate compression <*> PPP BSD-Compress compression Input device support ---> [*] Provide legacy /dev/psaux device <*> Event interface [*] Mouse ---> <*> PS/2 mouse [*] Miscellaneous devices ---> <*> PC Speaker support Character devices ---> [*] Legacy (BSD) PTY support <*> /dev/agpgart (AGP Support) <*> Intel 440LX/BX/GX, I8xx and E7x05 chipset support <*> Direct Rendering Manager (XFree86 4.1.0 and higher DRI support) <*> Intel 830M, 845G, 852GM, 855GM, 865G (i915 driver) ---> (X) i915 driver Sound ---> <M> Sound card support Advanced Linux Sound Architecture ---> <M> Advanced Linux Sound Architecture <M> Sequencer support <M> OSS Mixer API <M> OSS PCM (digital audio) API [*] OSS Sequencer API [*] Support old ALSA API PCI devices ---> <M> Intel HD Audio USB support ---> <*> Support for Host-side USB [*] USB device filesystem <*> EHCI HCD (USB 2.0) support [*] Full speed ISO transactions (EXPERIMENTAL) [*] Root Hub Transaction Translators (EXPERIMENTAL) <*> UHCI HCD (most Intel and VIA) support <M> USB Printer support <M> USB Mass Storage support Cryptographic options ---> [*] Cryptographic API <*> AES cipher algorithms <*> AES cipher algorithms (i586) <*> ARC4 cipher algorithm <*> LZF compression algorithm <*> Michael MIC keyed digest algorithm Library routines ---> <M> CRC32c (Castagnoli, et al) Cyclic Redundancy-Check

Don't compile anything about ieee80211, as the ipw2200 driver we will use will need to install the latest version of it from Portage.

Tuning the CFLAGS

I use the following CFLAGS in /etc/make.conf:

Code: CFLAGS
CFLAGS="-O3 -march=pentium-m -msse2 -mmmx -msse -mfpmath=sse -fomit-frame-pointer -pipe"

It can be a good idea to use -funroll-loops too for smaller packages that do intense computational tasks.

WLAN

See this guide.

Sound

Add the following line to the end of /etc/modprobe.d/alsa:

Code: Setting up the model in /etc/modprobe.d/alsa
 options snd-hda-intel model=acer
 

Afterwards run update-modules.

And add alsasound to the boot sequence for loading the required kernel modules and saving your mixer volumes:

Code: Activating alsasound
rc-update add alsasound default

Graphics Card

See this HowTo.

Modem

The modem is supported by the hsfmodem. See this guide.

Tuning your CPU

First, we will tune up your CPU for using SpeedStep. This will increase your battery duration and increase CPU lifetime. A great utility for setuping SpeedStep is cpufrequtils.

Code: Installing 855resolution
# emerge cpufrequtils # rc-update add cpufrequtils default

The default governor used to choose the CPU frequency can be configured at /etc/conf.d/cpufrequtils.

The next step, undervolting your CPU, is optional. It can make your CPU temporary unstable, but it will decrease a lot CPU temperature and increase battery duration. Some people say that there is a permanent risk involved, and other people say this will increase your CPU lifetime and that the only risk is the unstability I've said.

If you had installed the Linux-PHC patch, you can already undervolt your CPU. The package contains a init.d script you can install in your system and configure at /etc/conf.d/undervolt. Follow the HOWTO Undervolt a Pentium M CPU. I recommend you to run mprime during at least one night after finding a apparently stable voltage for confirming the stability, then using this voltage a little increased.

Only for reference, the settings I use in my notebook are the following. Don't use them in your own notebook, find your own stable settings. These are only examples.

Code: Voltages
CUSTOM_VTABLE="1733000:972,1333000:908,1067000:812,800000:700"

Configuring Suspend2

If you had installed the Suspend2 patch, you can already install the hibernate utility.

Code: Installing hibernate
# emerge hibernate-script

We have to modify the default configuration in order to X to work when we go back from suspend. As the fix in the Video BIOS is not automaticaly restored when the system backs from suspend, we have to restart 855resolution in high priority, so it is restarted before X backs running.

Add the following line to /etc/hibernate/hibernate.conf:

Code: Adding 855resolution to /etc/hibernate/hibernate.conf
OnResume 99 /sbin/runscript /etc/init.d/855resolution restart RestartServices hsf # Add this line if you have installed the modem driver. It doesn't support hibernate, so we must stop it.

Special keyboard keys

For getting the special keyboard keys working, you can use xbindkeys. The following is my xbindkeys configuration:

Code: ~/.xbindkeys
# Web browser "firefox" c:178 + m:0x0# Volume down "amixer set Master 3-" c:174 + m:0x0# Volume up "amixer set Master 3+" c:176 + m:0x0# Mute Sound "if amixer get Master | tail -n1 | grep off > /dev/null; then amixer set Master unmute > /dev/null; else amixer set Master mute > /dev/null; fi" c:160 + m:0x0

Conclusion

It's a good notebook for using with Linux. Excepting the modem driver, that is closed as all softmodem drivers currently available, all hardware of this notebook has quality opensource drivers available. After all the configuration, it runs almostly perfect.

--Thotypous 15:25, 5 August 2006 (UTC)

Retrieved from "http://www.gentoo-wiki.info/Acer_TravelMate_4062WLMi"

Last modified: Fri, 22 Aug 2008 00:07:00 +0000 Hits: 13,046