Translation(s): it ru

(!) ?/Discussion


Este wiki explica como instalar Debian para funcionar otimamente no Acer Aspire One

http://www.tommasovitale.it/images/AcerAspireOne.jpg

O Projeto DebianEeePC tem documentação descrevendo a instalação de Debian no processador Atom. A página que você está lendo, contudo, é dedicada somente ao Acer Aspire One. Você pode bootar e instalar usando o debian-installer do Lenny (Debian estável, versão 5.0) e as imagens de snapshot sem precisar de nada do Projeto DebianEeePC.

Sobre esta página

Esta página foi feita para ajudar com a instalação de Debian GNU/Linux no Netbook Acer Aspire One. Há também informação adicional sobre os drivers e outras otimizações necessárias.

Pré-requisitos

Há muitas maneiras de instalar Debian. Uma maneira de instalar Debian no Acer Aspire One é usando um pendrive. Esta deve ser sua primeira opção, uma vez que o Acer One atualmente não tem um drive de CD-ROM. Você vai precisar de um pendrive de 256MB ou maior. O método abaixo descreve como modificar um pendrive colocando nele o instalador Debian. Para outros métodos de instalação por favor dirija-se ao guia de instalação. Se estiver usando outro método, certifique-se de que o kernel do instalador seja o 2.6.25 ou mais recente, para garantir que você tenha suporte ao adaptador Ethernet (se necessário durante o processo de instalação).

Preparando o pendrive

Pegue o último build diário do Lenny (estável): imagem e a última imagem ISO netinst. É crítico que a versão de kernel tanto na imagem boot.img.gz quanto no ISO net-install sejam a mesma! Se elas não forem idênticas, o instalador não será capaz de detectar o seu hardware e a instalação falhará.

Criando o pendrive de boot

Como diz no Manual de instalação: "A maneira mais fácil de preparar o seu pendrive é baixar hd-media/boot.img.gz, e usar o "gunzip" para extrair a imagem de 256MB deste arquivo."

Este método temporariamente limita o seu pendrive a 256MiB mas é simples de fazer funcionar. Você pode escolher reparticionar o seu pendrive depois que terminar de instalar o Debian com ele. Para manter o pendrive no seu tamanho atual e ainda ter o instalador nele, siga as orientações de "Formatando seu pendrive com software adicional para bootar". Antes de colocar a imagem de boot (boot.img) e a imagem netinstall no seu pendrive, certifique-se de que você tem backup recente dos seus dados, tanto do pendrive quanto do Acer One. Primeiro encontre o o node do dispositivo do seu pendrive (use Alt-F2 para abrir um shell no Acer One). Note que se você usar o node errado irá destruir os dados naquele node. Supondo que o seu pendrive é /dev/sdz, execute este comando como root:

# zcat /caminho/para/boot.img.gz > /dev/sdz

Depois monte o pendrive e copie o ISO net-install para ele.

Nota: Eu tentei fazer isso no Debian 4.0 (Etch) e ele recusou montar o pendrive depois de ter 'zcatado' boot.img.gz nele. Contudo, nenhum problema montando num sistema Lenny. Meu conselho, se encontrar o mesmo problema, tente copiar a imagem ISO netinst do Lenny em outro sistema. --?OddHenriksen

Nota2: Com Debian Etch eu tenho feito isso: => http://manurevah.com/blah/en/linux/debian-usb-boot.php

Nota3: Se não houver um dispositivo USB plugado durante o boot, a opção "Boot do USB" não aparecerá no menu F12.

Formatando seu pendrive com software adicional para bootar

Se você quiser utilizar a capacidade plena do seu pendrive com o net-instalador Debian, você pode montar o boot.img.gz em um loop primeiro, copiar os arquivos e depois rodar o SYSLINUX (um carregador de boot) no seu pendrive. Se o seu pendrive já estiver adequadamente particionado para bootar, você pode pular este passo.

Você pode formatar o seu pendrive para torná-lo bootável (compatível com USB-ZIP). Isso requer o script mkdiskimage incluído no pacote syslinux. A tabela seguinte mostra os comandos para criar as partições de tamanhos corretos para bootar do seu pendrive, encontrados neste tópico de um fórum.

Tamanho do pendrive

comando mkdiskimage

1GB ou menos

# mkdiskimage -4 /dev/sdz 0 64 32

1GB < pendrive <= 2GB

# mkdiskimage -4 /dev/sdz 0 128 32

2GB < pendrive <= 8GB

# mkdiskimage -F -4 /dev/sdz 0 255 63

maior que 8GB

# mkdiskimage -F -4 /dev/sdz 1 255 63
# dd if=/dev/zero of=/dev/sdz bs=1 seek=446 count=64
# echo -e ',0\n,0\n,0\n,,C,*' | sfdisk /dev/sdz
# mkdosfs /dev/sdz4

Depois copie os conteúdos de boot.img.gz em um diretório do seu recém-formatado pendrive;

 # gunzip boot.img.gz; mkdir /mnt/loopback; mount -o loop boot.img /mnt/loopback;
 # mkdir /mnt/usb; mount /dev/sdz4 /mnt/usb; mkdir /mnt/usb/debian_installer;
 # cp -r /mnt/loopback/* /mnt/usb/debian_installer
 # cp debian-XXX-netinstall.iso /mnt/usb
 # umount /mnt/usb; umount /mnt/loopback

Instale o SYSLINUX na partição e subdiretório onde estiverem os conteúdos de boot.img:

 # syslinux -d debian_installer /dev/sdz4

Se você renomear/mover/modificar este diretório do debian_installer, terá que rodar novamente o "syslinux" ou ele não conseguirá bootar.

Nota: Eu tentei fazer isso no Debian 4.0 (Etch). O pacote syslinux no Etch é muito desatualizado e não tem o parâmetro -d , consequentemente as instruções acima não funcionam. Portanto, certifique-se de que você está rodando uma versão atualizada do syslinux. --?OddHenriksen

Instalação

Reboote seu Aspire One com o pendrive plugado. Quando aparecer a tela do BIOS, aperte F12 para selecionar o pendrive como dispositivo de boot. Isso fará o Aspire One bootar o instalador Debian do pendrive.

Quando estiver no menu de boot, você poderá ter que passar "noacpi" para o kernel para fazer o adaptador Ethernet funcionar. (Pode não ser mais necessário, em 2009-01-26 com o Lenny, mas se ele não pegar um lease DHCP, tente bootar com pci=noacpi)

Depois disso a instalação procederá como normal; o instalador irá carregar os componentes da imagem ISO netinstall e continuar o processo do netinstall. Repare que você irá precisar de uma conexão com fio, uma vez que a conexão sem fio não funciona no instalador

Métodos alternativos de instalação

  1. Um disco rígido (eSATA, etc.) deve funcionar no lugar do pendrive, siga o procedimento acima
  2. A instalação "netboot" funciona corretamente para o Lenny

Configuração

Quase tudo deverá funcionar automaticamente depois que a instalação terminar. Contudo, o adaptador de rede sem fio precisa de atenção extra; ele é baseado no chipset AR5007, que não funciona com os drivers atualmente existentes nos pacotes dos kernels tanto do Etch como do Lenny.

kernel.org / driver mac80211

O driver ath5k do kernel.org funciona corretamente a partir do 2.6.28 (possivelmente 2.6.27 também) (n.b. você poderá ter que carregar o módulo rfkill também, para ter o rádio habilitado). Você pode tanto usar um kernel mais recente, com um dos que estão em DebianKernel, quanto usar um backport dos últimos drivers mac80211 em um kernel mais antigo de http://wireless.kernel.org/en/users/Download.

No site do T.Mondary você pode encontrar os mais recentes kernels estáveis compilados para o AA1, em um formato independente de distribuição, mas adequado ao Debian. Este kernel mínimo vem com patches para o led wifi do ath5k, um patch coretemp, acerhdf e um framebuffer limpo KMS. Ele pode agora usar ext2 ou ext4 (montar ext4 sem o journal é suportado desde a versão 2.6.29) para o sistema de arquivos raiz, e não requer um initrd. Observe, no entanto, que o o kernel do Mondary não suporta sistemas de arquivos com journalling exceto o ext4, o que pode ser desejável para aqueles que possuem as versões com disco rígido do One, como o modelo ZG5.

driver não-livre madwifi

Nota introdutória (06/2009): O meu Acer Aspire One D150 veio com uma placa wifi Broadcom BCM4312 rev 01 (lcpci -v). Embora tenha conseguido compilar e cerrgar o módulo madwifi perfeitamente, ele não criou nenhuma interface sem fio. Então tentei a abordagem ndiswrapper, e obtive o mesmo resultado: nenhuma interface. Pesquisei mais na web e descobri que a Broadcom lançou um driver aparentemente decente para esta série de controladoras wifi - see, e.g., this post. E adivinhe, o módulo compilou bem (um aviso, porém) e funcionou imediatamente.

O status de suporte para o chipset AR5007 é acompanhado em http://madwifi-project.org/ticket/1192. O driver out-of-tree pode ser obtido do pacote madwifi-source no Lenny, ou diretamente do svn do ?MadWiFi.

Uma pequena nota sobre o WiFi e o network-manager: foi observado que o network-manager não funciona bem com o driver ?MadWiFi atualizado (hal incompatível, talvez). Você pode ter que configurar o WLAN (e.g. ESSID, WEP/WPA) manualmente. Alternativamente, wicd está funcionando bem para mim. Primeiro remova o network-manager, depois instale o wicd (para instalar o wicd no Lenny, veja WiFi/HowToUse#wicd).

Nota: Eu tive que criar o /etc/modprobe.d/local.conf com o seguinte conteúdo

options acer_wmi wireless=1

madwifi via Module Assistant

Certifique-se de que você tem uma instância non-free e contrib em /etc/apt/sources.list - isso é porque o madwifi não é considerado software livre pelo Debian. Depois, como root:

# apt-get update
# apt-get install module-assistant
# m-a prepare
# m-a auto-install madwifi

madWiFi a partir dos fontes

Certifique-se de ter o build-essential o os headers do kernel adequados instalados, e siga as instruções em http://madwifi-project.org/wiki/UserDocs/FirstTimeHowTo, com referência à informação em http://madwifi-project.org/ticket/1192.

LED WiFi

Se você compilou o ?MadWiFi dos fontes mais recentes, você pode habilitar o led WIFI adicionando

dev.wifi0.ledpin=3
dev.wifi0.softled=1

ao fim do arquivo /etc/sysctl.conf (ou /etc/sysctl.d/madwifi.conf). ele ativará no próximo reboot. Essas configurações podem ser aplicadas imediatamente executando sysctl -p (ou sysctl -p /etc/sysctl.d/madwifi.conf).

Webcam

Outro hardware que pode não funcionar imediatamente depois da instalação é a webcam. Para ela você irá precisar do driver uvcvideo. Simplesmente faça o checkout da última revisão do ivcvideo de svn://svn.berlios.de/linux-uvc/linux-uvc/trunk, e compile-o a partir dos fontes. (Nota, novamente, o pacote fonte incluído no testing funciona.).

Em 11092008, o kernel 2.6.26 no testing inclui o uvcvideo como módulo. E funciona muito bem.

scaling de Frequência

Scaling de Frequência é suportado pelo módulo acpi-cpufreq. Carregar este módulo irá permitir que você alterne de 800 MHz a 1.6 GHz.

Este módulo deve estar habilitado na instalação padrão.

# TRANSLATION STOPPED HERE

Screen resolution

The highest video mode available from the video bios is 800x600x32. To get a fairly reasonable framebuffer for your virtual terminals pass "vga=8" to the kernel. This will give you a framebuffer of 800x600x16.

When running under X, the native/optimum resolution is 1024x600 (standard widescreen ratio). The default X11 configuration will give you fonts that are too large for this resolution - You can add the following line to the "Monitor" section of your "/etc/X11/xorg.conf" file:

DisplaySize  195 113

And add the line:

Option     "NoDDC"

to the "Device" section.

That sets the resolution to the correct 96 DPI.

If you're using KDM and find that the DPI settings do not take effect, open /etc/kde3/kdm/kdmrc

find the line that reads  ServerArgsLocal=-nolisten tcp  and change it to  ServerArgsLocal=-nolisten tcp -dpi 96 

Card reader

Follow the relevant section depending on your BIOS version. To check your BIOS version, reboot your Aspire One and enter the BIOS before the OS boots to display the version string.

Pre-BIOS v.3309

The card reader is a J-Micron device. The left hand port (marked as storage expansion) exists as PCI ID 197b:2382, and the multi-reader on the right occupies PCI IDs 197b:2381, :2383 and :2384.

The card reader is hidden on power up and cold reset. There is no way to unhide the device without inserting a card into it (despite any claims elsewhere). The device appears to the host system when a card is inserted into either of the slots, at which point both left hand and right hand slots appear.

Many guides suggest using "setpci -d 197b:2381 AE=47" to unhide the device. This will ordinarily not work, because if the device does not appear to the host system, then the command will fail.

A script to poll the card reader for power events (AC unplugged, etc.) is included on the recovery DVD shipped with the machine within the "hdc1._.tar.bz2" archive as /usr/sbin/jmb38x_d3e.sh. This script runs once every 5 minutes and adjusts the power level depending on the system power state.

The simplest way to activate both card slots is to create a file /etc/modprobe.d/aspire-fix-sd-slots.conf with the following contents:

options pciehp pciehp_force=1 pciehp_slot_with_bus=1
install sdhci for i in 2381 2382 2383 2384; do /usr/bin/setpci -d 197b:$i AE=47; done; /sbin/modprobe --ignore-install sdhci

Then add the following line to /etc/modules:

pciehp

The 'pciehp' module will allow the card slots to appear as hotplug devices. Once a card is inserted, the 'install' line in the modprobe configuration will set the controller up to behave appropriately, and then load the sdhci driver. hal should spot the cards being inserted, and either GNOME or KDE should automatically mount the cards when inserted.

BIOS v.3309 and later

(This text may apply to earlier BIOS versions - as I recall, this was working in this fashion in BIOS v.3308, possibly earlier revisions. Ensure you are running the latest BIOS Acer have provided.)

This Aspire One BIOS no longer requires the above hacks to reprogram the SD controller's register 0xAE to 0x47, nor does it require the pciehp module to hotplug the controller when a card is inserted. In fact, they reveal the controller during system startup and set the register to support SDHCI mode during the system boot process.

As such, if you're running this BIOS version or newer, you can go ahead and ignore everything above and even back out the changes you made if you're already using Debian on your Aspire One.

Memory stick disabling

The current testing and unstable kernels have trouble with memstick modules causing a soft lockup (related to the memory stick part of the multi-reader). It is advised that the modules for this are blocked. Debian bug 500058 has been raised for this issue.

This issue will cause your system to lock up during udev startup if you have an SD card in the slot.

http://www.nabble.com/Debian-netbook-aspire-one-td19141623.html gives a solution to repair the situation. Modifying the path so that it does not cause configuration file conflicts with module-init-tools, create a file /etc/modprobe.d/aspire-blacklist-memstick.conf with the following contents:

blacklist jmb38x_ms
blacklist memstick

There is no need to adjust the udev configuration, contrary to the instructions at nabble.com.

Audio

Audio should work correctly in stable.Ensure the follow line is in place to make sure the model is autodetected and DMA position fix workaround is enabled:

options snd-hda-intel model=auto position_fix=1

or

options snd-hda-intel model=acer-aspire position_fix=1

if the model isnt auto detected correctly.

The snd-hda-intel module included in kernels 2.6.25+ will work just fine without installing any alsa packages. However in kernels 2.6.26+ a new snd module was added " snd-pcsp". This module if loaded before snd-hda-intel will casue a conflict and bad sound quality. If you have this problem, blacklist snd-pcsp or if you do like annoying beeping sounds add

options snd-pcsp index=2

to /etc/modprobe.d/alsa-base.conf to load the module correctly

Also the mic might not function until a jack is sensed and/or removed at least once from the line-in / mic jack.

The alsa driver goes into suspend when the system does,but when it returns,it will resume once any open apps using alsa are restarted(i.e.suspend while playing a music file,then resume,music player may continue to 'play' the track,but no sound plays).Closing and restarting the player should fix this.If You would like to have audio return without having to restart apps,You can create a blank/empty audio file,and run aplay '/path/to/blank/wav',and alsa should resume properly.Add that to a script in /usr/lib/pm-utils/sleep.d for example:

##add hash,exclamation point before next line(page wont display it)
/bin/sh

. "${PM_FUNCTIONS}"
resume_alsa()
{
aplay path/to/blank.wav
}
case "$1" in
        thaw|resume)
                resume_alsa
                ;;
        *) exit $NA
                ;;
esac

,if You're using pm-suspend to suspend.

Touchpad

Section "InputDevice"
        Identifier      "Synaptics Touchpad"
        Driver          "synaptics"
        Option          "SendCoreEvents"        "true"
        Option          "Device"                "/dev/psaux"
        Option          "Protocol"              "auto-dev"
        Option          "HorizEdgeScroll"       "0"

        # This is for gsynaptics to control the touchpad
        Option          "SHMConfig"             "1"
EndSection

Section "ServerLayout"
    Identifier "Default Server Layout"
    Screen "Default Screen"
    InputDevice "Generic Keyboard" "Core Keyboard"
    InputDevice "Synaptics Touchpad" "Core Pointer"
EndSection

As of May 8 2009, the braves who would try to upgrade xserver-xorg and its related packages would have the "tapping" feature of the touchpad disabled everytime X is reinitialized, so you'd better stick with the Lenny version of Xorg until this bug is fixed.

Here is an example of an working xorg.config working with an 2.6.30 linux kernel and xserver-xorg 7.3+18. During a previous upgrade, the synaptic device changed from event8 to event6. You may have to check /proc/bus/input/devices or your kern.log to confirm this yourself.

 Section "InputDevice"
    Identifier "Mouse0"
    Driver "synaptics"
    Option "Device" "/dev/input/event6"
    Option "Protocol" "auto-dev"
    Option  "ClickFinger1"  "1"
    Option  "ClickFinger2"  "0"
    Option  "ClickFinger3"  "0"
    Option  "HorizScrollDelta"      "100"
    Option  "PressureMotionMinZ"    "10"
    Option  "FingerPress"   "256"
    Option  "PalmDetect"    "0"
    Option  "PalmMinWidth"  "10"
    Option  "PalmMinZ"      "200"
    Option  "MaxTapMove"    "220"
    Option  "MaxTapTime"    "180"
    Option  "MaxDoubleTapTime"      "200"
    Option  "TapButton1"    "1"
    Option  "TapButton2"    "0"
    Option  "TapButton3"    "0"
    Option  "RTCornerButton"        "2"
    Option  "RBCornerButton"        "3"
    Option  "LTCornerButton"        "0"
    Option  "LBCornerButton"        "0"
    Option "VertEdgeScroll" "1"
    Option "HorizEdgeScroll" "1"
EndSection

To see more info about possible options, see "man 4 synaptics".

Troubleshooting

Since these instructions involve using the latest available net-install ISO image and the latest USB installer image, you may encounter some difficulties.

One such difficulty the author experienced was that the USB stick image did not have the nls_utf8 kernel module available, preventing the installer from mounting the ISO image. The "fix" was to grab the nls_utf8 kernel module from a working Debian system with the same kernel version, put it on the USB stick, execute a shell from the installer, and insert the nls_utf8 module manually before continuing.

The Aspire One has a RealTek RTL8101E Fast Ethernet controller, which uses the r8169 driver in kernels after 2.6.23. Earlier kernels (i.e. 2.6.18) will detect the card and you will see an eth0 device, but it will not be usable. The author used the driver that shipped with Debian's 2.6.25-2-486 kernel image without any problems after passing "noacpi" to the kernel at boot time. (Note, I haven't needed "noacpi" on my Acer One at all, so it is probably not necessary). With the kernel version that will likely appear in Lenny (2.6.26-1), no special options needed to be passed - the network card got detected and worked just fine.

This is likely a bug in the Aspire One's hardware/firmware, but at the time of this writing it does not detect an SD card insertion in either of the card slots. However, rebooting the computer with the card inserted will cause it to be detected (as /dev/mmcblk0). (The hardware requires a script to poll it; see above.)

Kernel versions lower than 2.6.25 cause modprobe to stall on boot, and the boot process will seem to hang. Waiting and pressing Ctrl-C a few times will allow the machine to boot. Once it's running you should update the kernel.

Also note, that on some stages (e.g., hardware detection) the system may seem to be hanging: try detaching eth cable from ?AcerOne. Note that with 2.6.26 no lockups have been observed.

Tips and Tricks

Reducing Disk Access

The SSD on the Aspire is somewhat slow (the author recorded a peak 28.8 MB/s read time with O_DIRECT and 7.0 MB/s write time). Consequently, you may want take extra measures to minimize disk I/O.

If you are using ext3 as your filesystem, you may want to add "noatime" and "nodiratime" to the options section of /etc/fstab. This will turn off timestamps on your files, but it will noticeably decrease the number of I/O ops.

Another trick is to mount /var/cache, /var/lock, /var/log, /var/run, /var/mail, /var/spool, /var/lock, /var/tmp, and /tmp on one or more ramdisks. Here are the steps to do this:

  1. Add this line to your /etc/fstab:

none /tmp tmpfs defaults 0 0
  1. Make directory /var/volatile
  2. Mount /var/volatile as a tmpfs volume (the command is "mount -t tmpfs none /var/volatile")
  3. Move /var/cache/apt to /var/apt. This way, /var/apt will not take up RAM (because it can become large when installing software).
  4. Move the cache, lock, log, run, mail, spool, and lock directories to /var/volatile.
  5. Symlink those directories in /var/volatile to their counterparts in /var. Now any I/O ops to files in these directories will happen on the ramdisk mounted on /var/volatile transparently.
  6. Optional: Put this script in /etc/rcS.d/S36setup-volatile.sh:

#!/bin/sh
error() {
  echo $1; exit 1
}
echo "Setting up /var/volatile..."
mount -t tmpfs none /var/volatile || error "Could not mount /var/volatile!!!"
for i in cache local lock log mail run spool; do mkdir -p /var/volatile/$i
done
ln -s /var/apt /var/volatile/cache/apt
exit 0
  1. Enjoy a faster system!

WARNING: Using this method prevented me from installing some software. dpkg would give me segmentation faults when trying to install some packages that interact with /var/*, notably cups. This method will also kill your memory if you use pbuilder in the default /var/cache/pbuilder location. I would recommend being careful about this: --Daniel Moerner (dmoerner)

As an alternative and less complicated change, you can move /var/run and /var/lock to a RAM filing system simply by editing /etc/default/rcS and changing the following two lines:

RAMRUN=no
RAMLOCK=no

to:

RAMRUN=yes
RAMLOCK=yes

It is possible to have big improvements in disk writing speed by adding a 8 Gb SD card in the left slot and configuring a Raid 0 with the internal one; the whole space is available, we just lose some reliability; backup data frequently ! It is necessary to re-install debian, create two identical partitions, one in internal and one in external card, and create a raid 0 device with them. Make two 7.8 Gb (or less) partitions, with the remaining space you can create a boot and a swap partition. Do not forget to blacklist the memstick and jmb38_ms modules on the /dev/md0 filesystem, as desribed on "Memory stick disabling" BEFORE ending the installation process, otherwise the system will not reboot; in this case you should reboot the Acer from usb and choose a rescue mode.

Stop Firefox from Loading Pages in the Background

Firefox downloads webpages from links it thinks you may click. This may make the experience seem faster but really it just bogs down Firefox and your netbook. Type ' about:config ' in the address bar, then set ' network.prefetch-next ' to ' false '

Enable Hardware Acceleration in Adobe Flash Plugin

Adobe Flash has a check for incompatible/buggy hardware that looks for SGI in the client glx vendor string see this link. Create the folder(if not present)/etc/adobe ,and put a file with the contents(or add to/edit current file):

OverrideGPUValidation = 1

named mms.cfg in that folder.Good to go.

Faster Graphics Rendering

Using the below option in the Device section improves compiz performance about x2.

       Driver "intel"
        Option "AccelMethod" "exa"
        Option "MigrationHeuristic" "greedy"

and this in your /etc/profile

export INTEL_BATCH=1

NOTE:There was a typo in the kernel source(I am not sure when it surfaced)that caused the following to have no effect,but the stable/lenny(2.6.26-15)kernel doesnt even have 'CONFIG_MTRR_SANITIZER=y' configured,which is required for the option below to work(actually,looking at the source for lenny's kernel,I found no reference at all?I dont know if the 2.6.26 kernel supported this,as I believe it was added in 2.6.28).

The option was changed to mtrr-cleanup in the resulting patch.A workaround is to install the kernel/headers from sid,and required dependencies(kbuild,etc.),although You will have to manually update these Yourself in the future.The correct kernel option for the sid kernel(2.6.29-2) is enable_mtrr_cleanup

Also The sid kernel doesnt have 'CONFIG_ACPI_PROC_EVENT' set,so You also need to install acpid,acpi-support,and acpi-support-base from sid,or the acpi scripts that rely on /proc/events wont run(such as the lid.sh script for suspend to ram in this wiki).


Also, due to a bug in the Aspire One BIOS, all of the available mtrrs are setup prior to the system booting. This means that Xorg cannot allocate any to speed up graphics rendering.

It is unlikely that Acer will repair this, since Windows uses PAT for graphics, and Xorg's intel driver has yet to get this feature.

You can add the following(Will not work with the stable/lenny(2.6.26-15)kernel,however) to your kernel command line to clean up the mtrrs on system boot:

enable_mtrr_cleanup

The kernel will then assign mtrrs to contiguous regions, and Xorg will be able to use mtrrs to improve performance.

Quiet Fan

acerhdf

Kernel module acerhdf

acerfand

IMPORTANT: acerfand has been tested on BIOS up to version 3309

ALSO IMPORTANT: Be warned that use of acerfand is not advised. Read http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=501137 for details, and look out for a more graceful solution in future!

Aspire One by default commonly doesn't manage Fan speed correctly, resulting in a very noisy AA0. Solution:

There is an unsupported, unofficial Apt repository that holds this software, flawed the approach this takes as it is (yes, look at the above mentioned bug report please) - The easiest way out is to add this to your /etc/apt/sources.list:

  deb http://www.iiec.unam.mx/apt/ lenny acer

And just aptitude install acerfand will get you there.

In case you want to do the setup by yourself:

 chmod a+x acerfand
 sudo cp acer_ec.pl acerfand /usr/local/bin/

 sudo acerfand

 sudo gedit /etc/rc.local

Insert the following line above the exit 0 at the bottom:

 /usr/local/bin/acerfand

The fan is not completely disabled. When the default temperature is reached (60ºC), fan works again. According to Intel, the Atom chip could work until 99ºC.

Optional: Above instructions will work fine, but if you want to define another temperature:

INTERVAL=5
FANOFF=60
FANAUTO=70

Those are the default values, if the /etc/acerfand.conf file isn't found.

INTERVAL is the polling interval in seconds

FANOFF is the temperature (in Celsius Degrees) at or below which to turn the fan off, if it's currently on auto

FANAUTO is the temperature (in Celsius Degrees) at or above which to turn the fan to auto, if it's currently off

Suspend to RAM

Suspend on lid closure

If you want your Aspire One to suspend when you close the lid, install the packages acpid and acpi-support (or acpi-support-base to save a bit of space on disk) and then edit (or create if not present) the file /etc/acpi/lid.sh to just contain:

#!/bin/sh
grep -q open /proc/acpi/button/lid/LID0/state && exit 0
/usr/sbin/pm-suspend

then edit (or create if not present) the file /etc/acpi/events/lid (unless you have /etc/acpi/events/lidbtn which serves the same purpose and is part of acpi-support package) to just contain:

event=button[ /]lid
action=/etc/acpi/lid.sh

Suspend without root password

The program pm-suspend only works with root permissions so you will have to type the root password every time before suspending. You can avoid that by putting the line

USERNAME ALL=NOPASSWD: /usr/sbin/pm-suspend

in the file /etc/sudoers. In this line replace USERNAME with your username. The file /etc/sudoers has to be edited with the "visudo" command as root.

(see also: http://cryptojedi.org/misc/aa1.shtml )

Other distributions

Where to buy

AOA110-1295 - http://www.newegg.com/Product/Product.aspx?Item=N82E16834115489