Search:  
Gentoo Wiki

Acer_Extensa_5220

Contents

About

This is an article about running Gentoo on an Acer Extensa 5210/5220 series laptop.

Specifications

Acer Extensa 5210

Code: lspci
00:00.0 Host bridge: Intel Corporation Mobile 945GM/PM/GMS, 943/940GML and 945GT Express Memory Controller Hub (rev 03)
00:02.0 VGA compatible controller: Intel Corporation Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller (rev 03)
00:02.1 Display controller: Intel Corporation Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller (rev 03)
00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 02)
00:1c.0 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 1 (rev 02)
00:1c.1 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 2 (rev 02)
00:1c.2 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 3 (rev 02)
00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #1 (rev 02)
00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #2 (rev 02)
00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #3 (rev 02)
00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #4 (rev 02)
00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev e2)
00:1f.0 ISA bridge: Intel Corporation 82801GBM (ICH7-M) LPC Interface Bridge (rev 02)
00:1f.1 IDE interface: Intel Corporation 82801G (ICH7 Family) IDE Controller (rev 02)
00:1f.2 SATA controller: Intel Corporation 82801GBM/GHM (ICH7 Family) SATA AHCI Controller (rev 02)
00:1f.3 SMBus: Intel Corporation 82801G (ICH7 Family) SMBus Controller (rev 02)
02:00.0 Ethernet controller: Broadcom Corporation NetLink BCM5787M Gigabit Ethernet PCI Express (rev 02)
03:00.0 Network controller: Broadcom Corporation BCM94311MCG wlan mini-PCI (rev 01)
0a:06.0 CardBus bridge: Texas Instruments PCIxx12 Cardbus Controller
0a:06.1 FireWire (IEEE 1394): Texas Instruments PCIxx12 OHCI Compliant IEEE 1394 Host Controller
0a:06.2 Mass storage controller: Texas Instruments 5-in-1 Multimedia Card Reader (SD/MMC/MS/MS PRO/xD)
0a:06.3 SD Host controller: Texas Instruments PCIxx12 SDA Standard Compliant SD Host Controller
Code: /proc/cpuinfo
processor	: 0
vendor_id	: GenuineIntel
cpu family	: 6
model		: 15
model name	: Intel(R) Celeron(R) M CPU        520  @ 1.60GHz
stepping	: 6
cpu MHz		: 1600.021
cache size	: 1024 KB
fdiv_bug	: no
hlt_bug		: no
f00f_bug	: no
coma_bug	: no
fpu		: yes
fpu_exception	: yes
cpuid level	: 10
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss tm pbe nx lm constant_tsc up arch_perfmon pebs bts pni monitor ds_cpl tm2 ssse3 cx16 xtpr lahf_lm
bogomips	: 3203.05
clflush size	: 64
Code: /proc/ide/hda/model
HL-DT-ST DVDRAM GSA-T20N

Acer Extensa 5220

Code: lspci
00:00.0 Host bridge: Intel Corporation Mobile Memory Controller Hub (rev 03)
00:02.0 VGA compatible controller: Intel Corporation Mobile Integrated Graphics Controller (rev 03)
00:02.1 Display controller: Intel Corporation Mobile Integrated Graphics Controller (rev 03)
00:1a.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Contoller #4 (rev 03)
00:1a.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #5 (rev 03)
00:1a.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #2 (rev 03)
00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio Controller (rev 03)
00:1c.0 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 1 (rev 03)
00:1c.1 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 2 (rev 03)
00:1c.2 PCI bridge: Intel Corporation 82801H (ICH8 Family) PCI Express Port 3 (rev 03)
00:1d.0 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #1 (rev 03)
00:1d.1 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #2 (rev 03)
00:1d.2 USB Controller: Intel Corporation 82801H (ICH8 Family) USB UHCI Controller #3 (rev 03)
00:1d.7 USB Controller: Intel Corporation 82801H (ICH8 Family) USB2 EHCI Controller #1 (rev 03)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev f3)
00:1f.0 ISA bridge: Intel Corporation Mobile LPC Interface Controller (rev 03)
00:1f.1 IDE interface: Intel Corporation Mobile IDE Controller (rev 03)
00:1f.2 SATA controller: Intel Corporation Mobile SATA AHCI Controller (rev 03)
00:1f.3 SMBus: Intel Corporation 82801H (ICH8 Family) SMBus Controller (rev 03)
02:00.0 Ethernet controller: Broadcom Corporation NetLink BCM5787M Gigabit Ethernet PCI Express (rev 02)
04:00.0 Network controller: Broadcom Corporation BCM94311MCG wlan mini-PCI (rev 01)
0f:06.0 CardBus bridge: Texas Instruments PCIxx12 Cardbus Controller
0f:06.1 FireWire (IEEE 1394): Texas Instruments PCIxx12 OHCI Compliant IEEE 1394 Host Controller
0f:06.2 Mass storage controller: Texas Instruments 5-in-1 Multimedia Card Reader (SD/MMC/MS/MS PRO/xD)
0f:06.3 Generic system peripheral [0805]: Texas Instruments PCIxx12 SDA Standard Compliant SD Host Controller
Code: /proc/cpuinfo
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 22
model name      : Intel(R) Celeron(R) CPU          530  @ 1.73GHz
stepping        : 1
cpu MHz         : 1728.997
cache size      : 1024 KB
fpu             : yes
fpu_exception   : yes
cpuid level     : 10
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss tm pbe syscall nx lm constant_tsc arch_perfmon pebs bts rep_good pni monitor ds_cpl tm2 ssse3 cx16 xtpr lahf_lm
bogomips        : 3461.01
clflush size    : 64
cache_alignment : 64
address sizes   : 36 bits physical, 48 bits virtual
power management:
Code: /proc/ide/hda/model
Slimtype DVD A DS8A1P

Kernel

You should use the kernel 2.6.24 or higher because it includes improved drivers of intel-hda, 64 bit tickless, coretemp and many others. Kernel 2.6.24-rc3 works while 2.6.24-rc4 seems to contain a backlight bug so that it is not possible to control the brightness anymore. This has been fixed in kernel 2.6.26. You can use this pre-configured kernel config for kernel 2.6.24-rc3 offered by ecarux. This is a kernel config for kernel 2.6.26 pre-configured for the Acer Extensa 5210 provided by User:Syslogd which should be also working for the Acer Extensa 5220.

Hardware Support

DeviceWorkingKernel moduleComments
Input DevicesKeyboardImage:Tick.pngUse setkeycodes to get some function keys to work.
TouchpadImage:Tick.pngTouchpad works using standard mouse drivers. synaptics package from portage allows fine tuning of the touchpad settings and requires the event interface driver in the kernel.
Drives and StorageHard Drive Image:Tick.pngahci (SATA driver)
Card ReaderImage:Tick.pngtifm_7xx1The sdhci driver doen't work (maybe it could be made working by some tricks, but the tifm_7xx1 driver works out of the box). Only SD/MMC cards are supported atm. You can download an experimantal driver for Memory sticks on tifmxx.berlios.de .
DVD-RWImage:Tick.pngpata_piixIt has been successfully used to write CDs using GNOME.
GraphicsIntel GMA (X3100)Image:Tick.pngintelsee this guide
NetworkingNetwork cardImage:Tick.pngtg3see this guide
WLAN (Broadcom BCM94311MCG wlan mini-PCI)Image:Tick.pngb43, ndiswrapper, bcm43xxsee Broadcom 43xx; After resuming from standby, you need to rmmod and re-insmod the driver
IrDAImage:Tick.pngWorks great using the nsc-ircc driver. Tested with my cellphone & obexfs. Only SIR is supported.
Modem (Motorola SM56)Image:Cross.pngI think it is a WinModem.
SoundSound chipImage:Tick.pngsnd_intel_hdaWorks with ALSA, under PCI sound cards. (Headphone jack and mic work as well - tested in the 2.6.23-gentoo-r3 kernel).
OtherFirewiren/aAlthough the OHCI driver detects it. TI Controller (firewire worked great with a video camera using kino under sidux).
PCMCIA (TI cardbus controller)n/aAlthough yenta-sockets detects it.
ExpressCard Slotn/aShould work out-of-the-box.

Speed stepping

According to Intel, the Celeron M 520 (Acer Extensa 5210) and Celeron M 530 (Acer Extensa 5220) do not support speed stepping but they can be clocked down with the p4-clockmod driver using cpufreq. You need to patch the kernel because the CPU ID is not supported officially yet.

Note: This patch also works for kernel 2.6.26 even though it was originally written for 2.6.24.

Kernel

Code: Patching the kernel for cpufreq
cd /usr/src/linux
wget http://ecarux.de/files/misc/cpufreq-celeron-2.6.24.patch
patch -p1 < cpufreq-celeron-2.6.24.patch

Recompile your kernel with these options enabled:

Linux Kernel Configuration: CPU Frequency scaling
Power management options --->
 [*] CPU Frequency scaling
   [*]   Enable CPUfreq debugging
   <*>   CPU frequency translation statistics
   [*]     CPU frequency translation statistics details
   Default CPUFreq governor (performance)  --->
     -*-   'performance' governor
       <*>   'powersave' governor
        <*>   'userspace' governor for userspace frequency scaling
        <*>   'ondemand' cpufreq policy governor
        <*>   'conservative' cpufreq governor
   *** CPUFreq processor drivers ***
        <*>   ACPI Processor P-States driver
        < >   AMD Mobile K6-2/K6-3 PowerNow!
        < >   AMD Mobile Athlon/Duron PowerNow!
        < >   AMD Opteron/Athlon64 PowerNow!
        < >   Cyrix MediaGX/NatSemi Geode Suspend Modulation
        < >   Intel Enhanced SpeedStep (deprecated)
        < >   Intel Speedstep on ICH-M chipsets (ioport interface)
        < >   Intel SpeedStep on 440BX/ZX/MX chipsets (SMI interface)
        <*>   Intel Pentium 4 clock modulation
        < >   nVidia nForce2 FSB changing 
        < >   Transmeta LongRun
        < >   VIA Cyrix III Longhaul 
        < >   VIA C7 Enhanced PowerSaver (EXPERIMENTAL)

Now if you execute cpufreq-info, you should be getting a similar output to this one (you might need to reboot your machine):

Code: cpufreq-info
cpufrequtils 002: cpufreq-info (C) Dominik Brodowski 2004-2006
Report errors and bugs to linux@brodo.de, please.
analyzing CPU 0:
  driver: p4-clockmod
  CPUs which need to switch frequency at the same time: 0
  hardware limits: 200 MHz - 1.60 GHz
  available frequency steps: 200 MHz, 400 MHz, 600 MHz, 800 MHz, 1000 MHz, 1.20 GHz, 1.40 GHz, 1.60 GHz
  available cpufreq governors: conservative, ondemand, userspace, powersave, performance
  current policy: frequency should be within 200 MHz and 1.60 GHz.
                  The governor "performance" may decide which speed to use
                  within this range.
  current CPU frequency is 1.60 GHz (asserted by call to hardware).

40000 wakeups bug

Warning: This only applies for Acer Extensa 5220. Acer Extensa 5210 is not affected by this bug.

You lose a lot of power if your kernel has the "40000+ wakeups" bug. It is expected to be fixed in 2.6.27. If you do not have installed 2.6.27, this bug can be fixed manually with the kernel commandline "idle=nomwait". If the patch in 2.6.27 does not work for your, please report that in the bug report.

To find out your wake-ups per seconds, you can use PowerTOP.

/etc/make.conf

x86

Code: /etc/make.conf
CFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j2"
INPUT_DEVICES="keyboard mouse evdev synaptics"

AMD64

Code: /etc/make.conf
CFLAGS="-march=nocona -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j2"
INPUT_DEVICES="keyboard mouse evdev synaptics"

See also

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

Last modified: Wed, 17 Sep 2008 11:44:00 +0000 Hits: 14,090