This guide contains instructions on how to install a standard version of CrunchBang on the Acer Aspire One. The guide was created purely from the experience of installing CrunchBang on a A150 Aspire One (the one with the 120 or 160GB HDD) with BIOS version 3309 (see notes). If you own a A110L Aspire One then it is recommended that you carry out research in regards to SSD performance and wear (see notes).
This means the hardware works as expected with no known bugs or problems what so ever, this being said some bugs may occur and it is worth noting not all hardware works “out of the box” although the steps to get it working are below.
wget http://unetbootin.sourceforge.net/unetbootin-linux-latest
sudo apt-get install p7zip-full
chmod +x unetbootin-linux-*
./unetbootin-linux-*
I recommend installing the Kuki kernel to get the systems hardware working as best as possible. This kernel has been compiled specifically for the Aspire One and fixes most of the hardware problems including:
NOTE: These URLs are broken. Need updating.
wget http://kernelmirror.linxisp.com/releases/linux-image-2.6.28sickboy-kuki_0.4_i386.deb
sudo dpkg -i linux-image-2.6.28sickboy-kuki_0.4_i386.deb
wget http://kernelmirror.linxisp.com/releases/linux-headers-2.6.28sickboy-kuki_0.4_i386.deb
sudo dpkg -i linux-headers-2.6.28sickboy-kuki_0.4_i386.deb
Although the WiFi works out of the box with the kuki kernel there have been reports the ath5k driver does not like heavy traffic. Because of this sickboy (creator of the kuki kernel) has released a package to install the madwifi drivers which do not suffer from the same problems as ath5k.
wget http://kernelmirror.linxisp.com/releases/madwifi-modules-2.6.28sickboy-kuki_0.9.4+r3772.20080716-1+0.4_i386.deb
sudo dpkg -i madwifi-modules-2.6.28sickboy-kuki_0.9.4+r3772.20080716-1+0.4_i386.deb
echo "blacklist ath5k" | sudo tee -a /etc/modprobe.d/blacklist
In order to get both card readers working the following steps need to be taken.
pciehp kernel modulesudo modprobe pciehpecho "pciehp" | sudo tee -a /etc/modules
gksudo gedit /etc/modprobe.d/sdhci
options pciehp pciehp_force=1 options sdhci debug_quirks=1
Both card readers should now work after a reboot.
All the audio worked out of the box for me with no problems using suspend. The only tweak I had to do was to enable the microphone in the mixer.
Reference: research papers and transportadora
As the Aspire One does not seem to manage the fan very well it results in quite a noisy system (my fan is usually on constantly). This can be remedied by using a script that has been created to manage the fan better.
Newer alternative from the Ubuntu wiki
I found that acerfand caused my ZG5 to randomly freeze. According to the Ubuntu wiki this is a known problem. The newer solution is reproduced here since it is in the middle of the Ubuntu wiki page:
wget http://www.piie.net/files/acerhdf_kmod-0.4.0-3.tar.gz tar zxvf acerhdf_kmod-0.4.0-3.tar.gz cd acerhdf_kmod make sudo make install
Get the most up to date version here.
Now load the kernel module using grafica
modprobe acerhdf
check it worked by looking in your message log
tail /var/log/messages Feb 19 01:25:42 mythtv kernel: [106628.078100] acerhdf: version: 0.2 compiledate: Feb 19 2009 01:25:21 Feb 19 01:25:42 mythtv kernel: [106628.078116] acerhdf: biosvendor:Acer Feb 19 01:25:42 mythtv kernel: [106628.078125] acerhdf: biosversion:v0.3309 Feb 19 01:25:42 mythtv kernel: [106628.078134] acerhdf: biosrelease:10/06/2008 Feb 19 01:25:42 mythtv kernel: [106628.078143] acerhdf: biosproduct:AOA150 Feb 19 01:25:42 mythtv kernel: [106628.078850] acerhdf: Temperature is: 49
Mine does not display the last line but appears to be working fine.
To make sure it loads at boot time add acerhdf to /etc/modules (I did not need to do this as it worked automatically on mine.)
# /etc/modules: kernel modules to load at boot time. # # This file contains the names of kernel modules that should be loaded # at boot time, one per line. Lines beginning with "#" are ignored. fuse lp ath_pci acerhdf
It has been noted some versions of the Aspire One and maybe some BIOSes do not return the correct temperature values to the script (usually 0°C). If this is true of your Aspire One then it will cause the fan to remain off constantly which could damage the system severely. Please take all the steps listed to ensure the script is returning a reasonable value before you apply the daemon.
wget http://aceracpi.googlecode.com/svn/trunk/acer_ec/acer_ec.pl
wget http://electronpusher.org/~rachel/acerfand
sudo perl acer_ec.pl ?= 58
chmod +x acerfandsudo cp acer_ec.pl acerfand /usr/local/bin/
sudo acerfandsudo tail -f /var/log/syslog
Jan 31 11:31:36 Neo acerfand: acerfand 0.06 starting Jan 31 11:31:36 Neo acerfand: Detected bios version v0.3309 Jan 31 11:31:36 Neo acerfand: Starting to govern acer fan speed. Interval: 5, fan-off: 60, fan-auto: 70
gksudo gedit /etc/rc.local
/usr/local/bin/acerfand
before ”exit 0” line.
On the AAO110L this didn't work. A fix would be to start it when the session starts.
To do that open a terminal and type:
sudo visudo
Go to the end of the file and add the following line (editing this files is like editing a file using vim):
<username> ALL= NOPASSWD: /usr/local/bin/acerfand
Save the changes and exit.Acompanhantes Right-click your desktop and go Preferences → Openboxconfig → Edit autostart.sh and at the end of the file add:
sudo /usr/local/bin/acerfand
Save and exit. Next time you restart your session acerfand should be started.
By default the script initiates the fan at ⇒70°C and turns it off at ⇐60°C. These values, as well as how often to poll the system temperature, can be changed to custom ones.
gksudo gedit /etc/acerfand.conf
INTERVAL=5 FANOFF=60 FANAUTO=70
INTERVAL defines how often to poll in seconds.
FANOFF defines the temperature at which to turn the fan off in °C.
FANAUTO defines the temperature at which to turn the fan on in °C.
Note: Although this section fixes all the hotkeys it will not give you an on screen notification of the volume level. I am working on finding a clean way to get notification of the volume level when using the hotkeys.
Some of the hotkeys on the Aspire One do not work as expected on a fresh install of CrunchBang. In particular the volume keys are not mapped and the brightness up key has some unexpected results. The following fixes all of these problems.
gksudo gedit /usr/share/hotkey-setup/acer.hk
setkeycodes e04e $KEY_BRIGHTNESSUP # Aspire One BrightUp plusminus fix
gksudo gedit ~/.config/openbox/rc.xml
<!-- Keybindings for Aspire One --> <keybind key="XF86AudioMute"> <action name="Execute"> <execute>amixer -q set Master toggle</execute> </action> </keybind> <keybind key="XF86AudioRaiseVolume"> <action name="Execute"> <execute>amixer -q set Master 1+</execute> </action> </keybind> <keybind key="XF86AudioLowerVolume"> <action name="Execute"> <execute>amixer -q set Master 1-</execute> </action> </keybind>