个人工具

“UbuntuHelp:AspireOne”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
 
(未显示2个用户的6个中间版本)
第1行: 第1行:
 
{{From|https://help.ubuntu.com/community/AspireOne}}
 
{{From|https://help.ubuntu.com/community/AspireOne}}
 
{{Languages|UbuntuHelp:AspireOne}}
 
{{Languages|UbuntuHelp:AspireOne}}
== Install Ubuntu Hardy Heron (8.04.1) on the Acer Aspire One ==
+
== About this guide ==
==== Fully functional: ====
+
There are many netbooks under the name "Acer Aspire One".
* Suspend / Resume
+
Each component is shared by some of them but in general they are different.
* Video (with desktop effects)
+
The subpages of specific models account for this:
* Wireless Networking
+
* [[UbuntuHelp:AspireOne/AOD250|Aspire One D250]] (9.04 and 9.10)
* Wired Networking
+
* [[UbuntuHelp:AspireOne/110L  |Aspire One 110L]] (8.10 and 9.04)
* Webcam
+
* [[UbuntuHelp:AspireOne/AO751h|Aspire One 751h]] (e.g. how to get 1366x768 pixels)
* USB
+
* [[UbuntuHelp:AspireOne/D150 |Aspire One D150]] (Ubuntu 10.04)
* Silent Fan
+
Nevertheless, fixes, enhancements, and solutions for another model may work for your netbook, specially when:
* Card Readers
+
* The issue is not considered at the subpage specific for your model;
==== Partial Function: ====
+
* The subpage specific for your model is outdated (pages get outdated soon as new releases come);
* Audio - there is sound, issues detailed below
+
* There is no subpage specific for your model.
==== Not Functional: ====
+
== Warning about outdated pages ==
* Hibernate on A110L
+
The following functionalities improve considerably between two Ubuntu releases:
* Card Reader power saving
+
Wireless, Audio, Webcam, Video, Fan control, USB, Sleep, Hibernation.
* wifi power saving
+
They are likely to be outdated in some of the subpages. In most cases they describe manual fixes that are not necessarily with the latest release.
* wifi kill switch
+
== More material ==
=== Prerequisites: ===
+
A previous version of this guide can be found at the [[UbuntuHelp:AspireOne/Old|Old]] subpage.
Before you begin you will need the following:
+
It contains mostly outdated data, but can provide useful information, and references.
* A copy of 8.04.1 Hardy Heron. <<BR>>This is the latest version. If you downloaded the ISO a while ago, it may be 8.04.0. The original 8.04.0 release will not even boot.
+
[[UbuntuHelp:AspireOne/Ubuntu8.04|Ubuntu8.04]] contains many tweaks that are likely to work for later releases:
* An external USB CD-ROM. If not:
+
Font tweaks; SSD Performance; Reduce SSD Wear; Speed up Firefox; Touchpad tweaks; Optimize screen use; Disable Scrollkeeper; Powersaving. These could be recycled and ported to a subpage.
* A 1+ GB memory key that can be formatted.
+
Some are deprecated: Screen tweaks (already works out-of-the-box).
* A copy of the liveUSB DEB. Website: http://klik.atekon.de/liveusb and the DEB: http://ppa.launchpad.net/probono/ubuntu/pool/main/l/liveusb/.
+
[[UbuntuHelp:AspireOne/Ubuntu9.10|Ubuntu9.10]] contains a brief summary of Ubuntu 9.10 tests with several models: 110L, ZG8, 510, ZG5, P531h, 532h, A150, D150.
* A wired network connection.
+
=== Test results ===
* Another computer, with network access.
+
[[UbuntuWiki:Testing/Laptop/Reports/|Laptop|testing team]]
(NOTE: It is also possible to install directly from network, which makes USB devices unneeded. You will still need a network cable and another computer.  See: [[UbuntuHelp:Installation/Netboot|Installation/Netboot]] or [http://hugi.to/blog/archive/2006/12/23/ubuntu-pxe-install-via-windows  Netinstall via Windows])
+
=== Note on using this guide ===
+
This guide was written with Ubuntu in mind.  Generally everything works the same with the other Ubuntu variants of (e.g., Kubuntu, Xubuntu).  This guide assumes you will use use gedit as your text editor.  You may also substitute the text editor of your choice (e.g., kate for Kubuntu, mousepad for Xubuntu or just use vim/emacs/nano).
+
=== Step One: Preparation ===
+
''(Skip this step if you have an external USB CD-ROM)''
+
If we don't have an external USB CD-ROM, the first step is to create a bootable copy of the Ubuntu [[UbuntuHelp:LiveCD|LiveCD]] on a memory key. This will be our install media for the Aspire One. The process is similar to creating recovery media for Linpus Lite (the included version of Linux).
+
Download and copy the LiveUSB .deb file from the link above to USB stick.  You can use the same one we we are going to format to create the install media - we only need this file once.  Remove the USB stick. The LiveUSB software should only be installed when booted off the [[UbuntuHelp:LiveCD|LiveCD]] environment, so we do that next.
+
*Boot to the 8.04.1 Live CD on your other computer, and choose the first option off the boot menu: '''Try Ubuntu'''.  
+
*When you reach the desktop, insert the USB stick with the LiveUSB software on it and double click.
+
*Follow the prompts to install.
+
*Now we can create our bootable USB stick.
+
*Start the LiveUSB application from System -> Administration -> Install LiveUSB.
+
*Select the target device - that is, the USB stick - and click Execute.
+
*You will get a warning about data loss, so double check that you selected the correct device and continue.
+
*Once complete, you can shut down the other computer and remove the USB stick.
+
=== Step Two: Install Ubuntu ===
+
Shut down your Aspire One and insert the external USB CD-ROM or the USB stick that we just used. Turn it on and tap F12 to bring up the boot menu.
+
With a CD-ROM, choose the USB CD-ROM option. With the bootable USB stick created, choose the USB HDD option. This will boot you to the USB CD-ROM/LiveUSB stick, and allow you to install Ubuntu. Install it like normal if you have the hard disk Aspire One. If you have the SDD Aspire One, for good performance and to increase the life of the SSD use a non-journaled filesystem like EXT2.
+
Note:  If you have already installed with EXT3 then follow this post: http://www.aspireoneuser.com/forum/viewtopic.php?f=5&t=164&st=0&sk=t&sd=a&start=10#p1177 to convert to EXT2. Installation (file copy) will take a LONG time (hour +). If you are not currently connected to the internet on a wired connection, you may get an error about setting up a mirror. You can safely ignore that error - it's non-fatal.
+
=== Step 3: Tweak / Fix ===
+
So now we should have an installed Ubuntu system. At this point, if you have not already done, so connect your Aspire One to the internet using a '''wired''' connection. First and immediate task is to update, since the wireless driver needs to be reinstalled after every kernel update. Open a terminal (Applications -> Accessories -> Terminal). Perform the updates:
+
<pre><nowiki>
+
sudo apt-get update
+
sudo apt-get upgrade
+
</nowiki></pre>
+
==== WIRELESS: ====
+
Now we need to disable the hardware drivers that Ubuntu tries to use before the ones we make will function. So go to System -> Administration -> Hardware Drivers and uncheck everything. It should prompt us to reboot, so lets do it now.
+
We need to grab the wireless driver, and the things we need to build it, from a terminal:
+
<pre><nowiki>
+
mkdir source
+
cd source
+
wget http://snapshots.madwifi.org/madwifi-hal-0.10.5.6/madwifi-hal-0.10.5.6-r3835-20080801.tar.gz
+
tar -xzvf madwifi-hal-0.10.5.6-r3835-20080801.tar.gz
+
cd madwifi-hal-0.10.5.6-r3835-20080801
+
sudo apt-get install build-essential linux-headers-$(uname -r)
+
</nowiki></pre>
+
And we build and install:
+
<pre><nowiki>
+
make
+
sudo make install
+
sudo modprobe ath_pci
+
</nowiki></pre>
+
In order to have the wireless work after reboot, add the following line to /etc/modules ("sudo gedit /etc/modules") to automatically load the module when booting:
+
<pre><nowiki>
+
ath_pci
+
</nowiki></pre>
+
You should now have working wireless. However you may want to do the following to prevent problems ''(the symbol mismatch)'' when the module is loaded:
+
Add '''ath_hal''' to the '''DISABLED_MODULES=''' stanza in '''/etc/default/linux-restricted-modules-common'''
+
''(i.e. 'DISABLED_MODULES="ath_hal"')''
+
Every time there is a kernel update you will need to perform the following steps to make the wireless work. Go to the directory (madwifi-hal-0.10.5.6-r3835-20080801) and run:
+
<pre><nowiki>
+
make clean
+
make
+
sudo make install
+
</nowiki></pre>
+
==== WIRELESS LED: ====
+
To get your awesome wireless led to blink for you based on traffic, put these lines in /etc/rc.local, just above the string ''exit 0'' (below doesn't work).
+
Note: The 2.6.27 kernel does not appear to have these options anymore (earlier kernels do).
+
<pre><nowiki>
+
sysctl -w dev.wifi0.ledpin=3
+
sysctl -w dev.wifi0.softled=1
+
</nowiki></pre>
+
The led on the front will now do the association blink, as well as blink based on wireless traffic.
+
rc.local may not be executable so
+
<code><nowiki>sudo chmod a+x /etc/rc.local </nowiki></code>
+
The wifi kill switch uses these keycodes (also to use in rc.local):
+
<pre><nowiki>
+
/usr/bin/setkeycodes e055 159
+
/usr/bin/setkeycodes e056 158
+
</nowiki></pre>
+
==== WEBCAM ====
+
Install luvcview - USB Video Class grabber
+
<pre><nowiki>
+
apt-get install luvcview
+
</nowiki></pre>
+
You may confirm it is recognized
+
<pre><nowiki>
+
  dmesg |grep -i "uvc"
+
</nowiki></pre>
+
And this is the repply
+
<pre><nowiki>
+
[  29.601485] uvcvideo: Found UVC 1.00 device USB 2.0 Camera (0c45:62c0)
+
[  29.617301] usbcore: registered new interface driver uvcvideo
+
</nowiki></pre>
+
Say hello to yourself with this command ;)
+
<pre><nowiki>
+
luvcview -f yuv
+
</nowiki></pre>
+
==== CARD READER: ====
+
''(NOTE: This section needs to be improved. It seems that card reader is not truly "Fully functional")''
+
According to [http://wiki.debian.org/DebianAcerOne DebianAcerOne] the following command enables the card reader:
+
<pre><nowiki>
+
setpci -d 197b:2381 AE=47
+
</nowiki></pre>
+
The card reader works fine now.
+
* it might help to suspend/resume
+
* a static entry for the device /dev/mmcblk01p in /etc/fstab might help
+
* powersaving can be done with the jmb38x_d3e.sh script -
+
<pre><nowiki>
+
wget http://petaramesh.org/public/arc/projects/AcerOne_Ubuntu/jmb38x_d3e.sh
+
sudo chmod 754 jmb38x_d3e.sh
+
sudo mv jmb38x_d3e.sh /usr/local/sbin/
+
</nowiki></pre>
+
To recognize cards every time.
+
<pre><nowiki>
+
sudo gedit /usr/local/sbin/jmb38x_d3e.sh
+
</nowiki></pre>
+
Add the following to line 11
+
<pre><nowiki>
+
modprobe pciehp pciehp_force=1
+
</nowiki></pre>
+
After reboot cards are recognized.
+
==== USB MOUNT: ====
+
''(Do this step '''only''' if you get an error inserting a USB stick)''
+
If you insert a memory key, you may notice an error and that it cannot be mounted. This is due to the CD-ROM entry in the fstab. Since we don't have an optical drive on the One we will comment that out. From a terminal again:
+
<pre><nowiki>
+
sudo gedit /etc/fstab
+
</nowiki></pre>
+
You should see a line that looks like:
+
<pre><nowiki>
+
/dev/sdb        /media/cdrom0  udf,iso9660 user,noauto,exec 0      0
+
</nowiki></pre>
+
add a hash in front:
+
<pre><nowiki>
+
#/dev/sdb        /media/cdrom0  udf,iso9660 user,noauto,exec 0      0
+
</nowiki></pre>
+
Reboot, and automount should work.
+
==== NOISE (FAN CONTROL) ====
+
Aspire One by default commonly doesn't manage Fan speed correctly, resulting in a very noisy AA0. Solution:
+
* Ensure you have dmidecode installed, so acerfand can detect which bios version you have. It's probably installed by default already. If not, execute:
+
<pre><nowiki>
+
sudo aptitude install dmidecode
+
</nowiki></pre>
+
* Download the [http://code.google.com/p/aceracpi/wiki/EmbeddedController acer_ec.pl] script ([http://aceracpi.googlecode.com/svn/trunk/acer_ec/acer_ec.pl Direct download]).
+
* Download the [http://electronpusher.org/~rachel/acerfand acerfand] daemon script ([http://electronpusher.org/~rachel/acerfand Direct download]). ''(New version (2008-09-25) adding support to BIOS 3304)''
+
* Execute these lines in a terminal in the directory you downloaded the above scripts:
+
<pre><nowiki>
+
chmod a+x acerfand
+
sudo cp acer_ec.pl acerfand /usr/local/bin/
+
</nowiki></pre>
+
* To run it straight away:
+
<pre><nowiki>
+
sudo acerfand
+
</nowiki></pre>
+
* Note, you need the correct bios for this to work correctly. To see if the acerfand script is working, you can check the system log after you have run the *sudo acerfand* command:
+
<pre><nowiki>
+
#sudo tail -f /var/log/syslog
+
Oct  9 02:04:36 lilput acerfand: acerfand 0.03 starting
+
Oct  9 02:04:36 lilput acerfand: Detected bios version v0.3301
+
Oct  9 02:04:36 lilput acerfand: Unsupported bios version v0.3301 found. Aborting.
+
</nowiki></pre>
+
There is information about updating your bios here: http://macles.blogspot.com/2008/08/acer-aspire-one-bios-v3304.html
+
* To run it at boot:
+
<pre><nowiki>
+
sudo gedit /etc/rc.local
+
</nowiki></pre>
+
Insert the following line above the ''exit 0'' at the bottom:
+
<pre><nowiki>
+
/usr/local/bin/acerfand
+
</nowiki></pre>
+
The fan is not completely disabled. When the FANAUTO temperature is reached (70º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:
+
* Create an /etc/acerfand.conf file. The file is just a shell script that sets up to three values. eg:
+
<pre><nowiki>
+
INTERVAL=5
+
FANOFF=60
+
FANAUTO=70
+
</nowiki></pre>
+
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
+
[http://wiki.aspireone.net/index.php/How_to_hack_the_noisy_fan More information] from the original source, AspireOne Wiki.
+
==== OPTIMIZING SSD PERFORMANCE: ====
+
Note: ''(Skip this step if you have the hard disk Acer Aspire One)''
+
The performance of the SSD drive can be significantly improved by a few tweaks described in [http://blogs.zdnet.com/perlow/?p=9190 an article by Jason Perlow] (But ignore Tweak #1, which does not apply.). The most important of these are described here.
+
===== Change the file system mount options on SSDs to “noatime” =====
+
Edit /etc/fstab (sudo gedit /etc/fstab) and change the the option “relatime” to “noatime”. The line for the root partition should then be something like:
+
<pre><nowiki>
+
UUID=f0ae2c59-83d2-42e7-81c4-2e870b6b255d / ext2 noatime,errors=remount-ro 0 1
+
</nowiki></pre>
+
===== Use the “noop” I/O scheduler =====
+
Edit /boot/grub/menu.lst using your favorite editor, and add "elevator=noop" as an option. The default kernel configuration, found in the last part of the file should be something like:
+
<pre><nowiki>
+
title Ubuntu 8.04.1, kernel 2.6.24-19-generic
+
root (hd0,0)
+
kernel /boot/vmlinuz-2.6.24-19-generic root=UUID=f0ae2c59-83d2-42e7-81c4-2e870b6b255d ro quiet splash elevator=noop
+
initrd /boot/initrd.img-2.6.24-19-generic
+
quiet
+
</nowiki></pre>
+
In order for the changes to remain when updating the kernel, also in menu.lst, find the line
+
<pre><nowiki>
+
# defoptions=quiet splash
+
</nowiki></pre>
+
and add "elevator=noop" as an option:
+
<pre><nowiki>
+
# defoptions=elevator=noop quiet splash
+
</nowiki></pre>
+
==== REDUCING SSD WEAR: ====
+
Note:  ''(Skip this step if you have the hard disk Acer Aspire One)''
+
Frequent writes to the SSD will cause failure eventually. We can reduce the number of writes to the SSD by moving our logs to a temporary filesystem in RAM that gets destroyed at ever reboot. Now this means your logs will not be persistent across reboots making debugging difficult in some cases. This step is optional of course, so if you need the logs for an extended period of time do not follow these steps.
+
Open your fstab again, and add the following lines:
+
<pre><nowiki>
+
sudo gedit /etc/fstab
+
tmpfs      /var/log/apt    tmpfs        defaults          0    0
+
tmpfs      /var/log        tmpfs        defaults          0    0
+
tmpfs      /tmp            tmpfs        defaults          0    0
+
tmpfs      /var/tmp        tmpfs        defaults          0    0
+
</nowiki></pre>
+
'''Warning: this will cause some packages to fail mysteriously when they cannot access the log directories that were installed with the packages and then disappeared at reboot.'''
+
==== DISABLE SCROLLKEEPER: ====
+
''(Skip this step if you have the hard disk Acer Aspire One)''
+
ScrollKeeper is a cataloging system for documentation on open systems. Hardly anyone ever uses it and on the AAO's slow SSD it takes ages every time you install anything. Disable it and your installs will fly!
+
Finally add a diversion to stop dpkg from overwriting your changes.
+
<pre><nowiki>
+
sudo mv /usr/bin/scrollkeeper-update /usr/bin/scrollkeeper-update.real
+
sudo ln -s /bin/true /usr/bin/scrollkeeper-update
+
sudo find /var/lib/scrollkeeper/ -name \*.xml -type f -exec rm -f '{}' \;
+
sudo dpkg-divert --local --divert /usr/bin/scrollkeeper-update.real --add /usr/bin/scrollkeeper-update
+
</nowiki></pre>
+
==== VIDEO AND 3D PERFORMANCE: (Optional) ====
+
Out of the box, the graphic card Intel GMA 950, is well detected, however you can tweak /etc/X11/xorg.conf to achieve better graphic card performance:
+
<pre><nowiki>
+
Section "Device"
+
(...)
+
        Option "MonitorLayout" "LVDS,VGA"
+
        Option "Clone" "true"
+
        Option "AccelMethod" "EXA"
+
        Option "MigrationHeuristic" "greedy"
+
        VideoRam      229376
+
        Option "CacheLines" "1980"
+
EndSection
+
</nowiki></pre>
+
The Option Clone is especially usefull, if you want to capture video or photos.  Without it you will get a black screen on applications like cheese.
+
Also add this to your /etc/profile:
+
<pre><nowiki>
+
export INTEL_BATCH=1
+
</nowiki></pre>
+
Note: 'export INTEL_BATCH=1' appears to causes graphics faults (artifacts) within 'ume-launcher' (even with Compiz fully disabled).
+
Reboot and you will have a more responsive system, with better 3D FPS, and improved video performance.
+
==== AUDIO: ====
+
Out of the box there are various issues with the sound.  These range from headphone detection not functioning correctly, to the internal MIC not working.  There are solutions to these problems.  Currently, however, there is no known way to get everything working at once. All of the steps begin the same way, rebuilding ALSA:
+
<pre><nowiki>
+
sudo apt-get install module-assistant
+
sudo m-a update
+
sudo m-a prepare
+
sudo m-a a-i alsa
+
sudo alsa force-unload
+
sudo depmod -ae
+
sudo modprobe snd-hda-intel
+
</nowiki></pre>
+
Add the following line to the end of /etc/modules in order to ensure that the module is loaded during bootup:
+
<pre><nowiki>
+
snd-hda-intel
+
</nowiki></pre>
+
Now we need to make a choice.  To have the internal MIC non-functional (external works), but sound working after suspend and resume, we edit /etc/modprobe.d/alsa-base (sudo gedit /etc/modprobe.d/alsa-base) and add the following line to the bottom:
+
<pre><nowiki>
+
options snd-hda-intel model=toshiba
+
</nowiki></pre>
+
Reboot for that to take effect.
+
To have the internal MIC function correctly, but no sound after suspending and resuming the computer add or change the following to the /etc/modprobe.d/alsa-base as before:
+
<pre><nowiki>
+
options snd-hda-intel model=auto
+
</nowiki></pre>
+
Again, reboot for this to take effect.
+
For some unknown reason some people don't hear any sound with either option. If you experience this problem you might want to use the option in /etc/modprobe.d/alsa-base as before to the following to resolve this problem:
+
<pre><nowiki>
+
options snd-hda-intel model=acer
+
</nowiki></pre>
+
For A150L, model=basic seems to work fine with alsa 1.018rc3 (internal mic and sound work after suspend; plugging headphone in does turn the speakers off)
+
<pre><nowiki>
+
options snd-hda-intel model=basic
+
</nowiki></pre>
+
If you experience crackling sound after rebooting, insert the following line in /etc/modprobe.d/blacklist:
+
<pre><nowiki>
+
blacklist snd_pcsp
+
</nowiki></pre>
+
'''Optional:''' The default sound level is low. Open a terminal and type ''alsamixer'' to adjust volume.
+
Alsa needs to be version 1.0.17. 
+
==== TWEAKS TO MAKE BETTER USE OF THE ASPIRE ONE'S SMALL SCREEN: ====
+
There are various methods that will help you make better use of the Aspire One's small screen. One of the most important is being able to move windows that are too large to fit on the screen at once. To move a hidden part of the window into view, click and drag with the left mouse button on any part of the window while holding down the ALT key. However, you won't be able to drag windows so the top of the window is above the top of the screen. To fix that, enter the following in a terminal window:
+
<code><nowiki>gconftool-2 --set /apps/compiz/plugins/move/allscreens/options/constrain_y --type bool 0</nowiki></code>
+
Since the Aspire One's screen has almost twice as much resolution horizontally as vertically, having panels on both the top and bottom is not ideal. You may want to remove the top or bottom panels, make them smaller, or move them so that they are vertical, on the left and right side, instead of horizontal on top and bottom.
+
==== TOUCHPAD TWEAKS: ====
+
The AAO touchpad is quite easy to bump whilst typing. The best fix is to disable all scroll and tap commands for 1 second after each keystroke.
+
Go to Preferences and select "Sessions". Click the add button and add an entry:
+
<pre><nowiki>
+
Name: Syndaemon
+
Command: syndaemon -d -t -i 1
+
Comment: Disable trackpad while typing
+
</nowiki></pre>
+
The '1' can be changed to any decimal number, and defines the amount of time to lock the trackpad after each keystroke. See the Syndaemon man page for full details.
+
==== HIBERNATE: ====
+
In some set-ups, using hibernate has been reported to cause [http://www.aspireoneuser.com/forum/viewtopic.php?f=28&t=511 file corruption].
+
==== TWEAK FOR BOOTUP SPEED (Optional): ====
+
To decrease boot time, activate concurrency bootup:
+
<code><nowiki> sudo gedit /etc/init.d/rc </nowiki></code>
+
and replace the line:
+
CONCURRENCY=none
+
with
+
CONCURRENCY=shell
+
==== TWEAKS FOR POWERSAVING (Optional): ====
+
Add the following to the /etc/rc.local file:
+
<pre><nowiki>
+
# Economize the SSD
+
sysctl -w vm.swappiness=1              # Strongly discourage swapping
+
sysctl -w vm.vfs_cache_pressure=50      # Don't shrink the inode cache aggressively
+
 
+
# As in the rc.last.ctrl of Linpus
+
echo ondemand > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
+
echo ondemand > /sys/devices/system/cpu/cpu1/cpufreq/scaling_governor
+
cat /sys/devices/system/cpu/cpu0/cpufreq/ondemand/sampling_rate_max > /sys/devices/system/cpu/cpu0/cpufreq/ondemand/sampling_rate
+
 
+
echo 1500 > /proc/sys/vm/dirty_writeback_centisecs
+
echo 20 > /proc/sys/vm/dirty_ratio
+
echo 10 > /proc/sys/vm/dirty_background_ratio
+
 
+
echo 1 > /sys/devices/system/cpu/sched_smt_power_savings
+
echo 10 > /sys/module/snd_hda_intel/parameters/power_save
+
echo 5 > /proc/sys/vm/laptop_mode
+
 
+
#Decrease power usage of USB while idle
+
[ -L /sys/bus/usb/devices/1-5/power/level ] && echo auto > /sys/bus/usb/devices/1-5/power/level
+
[ -L /sys/bus/usb/devices/5-5/power/level ] && echo auto > /sys/bus/usb/devices/5-5/power/level
+
</nowiki></pre>
+
==== NETBOOK REMIX (Optional): ====
+
To install [https://launchpad.net/netbook-remix Ubuntu Netbook remix] -
+
In Intrepid, the netbook remix packages are already in the universe repository. For Hardy, you'll need to add the netbook remix PPA to your sources.list.
+
* Insert the following into /etc/apt/sources.list (not required for Intrepid):  
+
<pre><nowiki>
+
deb http://ppa.launchpad.net/netbook-remix-team/ubuntu hardy main
+
deb-src http://ppa.launchpad.net/netbook-remix-team/ubuntu hardy main
+
</nowiki></pre>
+
* then execute
+
In Hardy:
+
<pre><nowiki>
+
sudo apt-get update
+
sudo apt-get install go-home-applet human-netbook-theme maximus ume-launcher window-picker-applet
+
</nowiki></pre>
+
In Intrepid (ume-launcher has been renamed to netbook-launcher):
+
<pre><nowiki>
+
sudo apt-get install go-home-applet human-netbook-theme maximus netbook-launcher window-picker-applet
+
</nowiki></pre>
+
* Add maximus as startup program  (system > preferences > sessions > startup programs)
+
* Change the desktop theme to Human-Netbook (system > preferences > appearance > theme)
+
* Delete the bottom panel
+
* Reconfigure the top panel to contain the following items -
+
* Go Home Applet
+
* Window Picker Applet
+
* Notification Area
+
* Mixer Applet
+
* Clock
+
* There is a bug in the ume-launcher after resuming from suspend. To work around this place the following in /etc/pm/sleep.d/01UMELauncher -
+
<pre><nowiki>
+
#! /bin/bash
+
#
+
# Copyright 2008 Matteo Collina <[email protected]>
+
#
+
# This program is free software; you can redistribute it and/or modify
+
# it under the terms of version 2 of the GNU General Public License as
+
# published by the Free Software Foundation.
+
 
+
export DISPLAY=:0.0
+
 
+
TMPFILE=/tmp/.launcher/resume-event
+
 
+
case "$1" in
+
suspend|hibernate)
+
rm -rf $TMPFILE
+
echo "Removed resume-notify file"
+
;;
+
resume|thaw)
+
touch $TMPFILE
+
echo "Created resume-notify file"
+
;;
+
esac
+
 
+
exit $?
+
</nowiki></pre>
+
* Make the above file executable -
+
<pre><nowiki>
+
sudo chmod +x /etc/pm/sleep.d/01UMELauncher
+
</nowiki></pre>
+
You should also disable desktop effects as these cause issues with netbook remix.
+
===== Maximising screen real estate in Firefox: =====
+
To take your screen saving netbook remix to the next level, you can do the following to maximise screen real estate in everyone's most used app - Firefox -
+
* Install the following addons
+
* Stop or Reload Button
+
* Personal Menu
+
* AutoHideStatusBar (https://addons.mozilla.org/en-US/firefox/addon/1530)
+
* Install the following theme -
+
* Classic Compact
+
* Configure Personal Menu to include all the standard menus except History and Bookmarks (they get their own buttons)
+
* Disable the menu toolbar. You can always get it back by pressing Alt
+
==== Drastically speed up Firefox ====
+
In the ArchWiki I found a few lines that make surfing with the AAO much faster and thus much more fun:
+
Make firefox store its cache in the /tmp directory --- which whem we we have moved it to a tmpfs according to this wiki is *fast*.  
+
* Firefox 3.x uses a sqlite db that creates many write accesses, so this can reduce it:
+
<ol><li>In Firefox go to (type as url) "about:config", right click, add new string „browser.cache.disk.parent_directory“ with value "/tmp/firefox"
+
</li><li>In Firefox change options/security/ and disable phishing if you dare. - Your firefox will run even faster then but won't warn you about phishing any more so take care!</li></ol>
+
 
+
Alternatively, set "browser.cache.disk.enable" to "false". This will disable all disk caching, but will still cache to RAM. You may also wish to decrease the cache size (browser.cache.disk.capacity) to a lower value to reduce memory usage over time.
+
==== Flash 10 RC or upper (Optional, recommended for 512M of RAM): ====
+
Ubuntu Hardy installs flash version 9.0.115, this version needs a lot of memory to work and makes 'AspireOne' slower than it is. A good option is to download the latest Flash player plugin 10, which delivers improved performance and less memory requirements. This package is the flashplugin-nonfree, which is available on hardy-backports repository, or by download in the following link:
+
http://packages.ubuntu.com/hardy-backports/flashplugin-nonfree
+
== Install Ubuntu Intrepid Ibex 8.10(Alpha6) on the Acer Aspire One ==
+
Status: Currently installing ( 1.6Ghz, 120GB harddrive )
+
USB Install:
+
Download Alpha6 from download or torrent
+
http://www.ubuntu.com/testing/intrepid/alpha6
+
How to setup a USBStick from and iso image
+
http://www.ubuntu-eee.com/wiki/index.php5?title=How_to:_Using_Unetbootin#Using
+
=== Initial Install ===
+
==== Fully functional: ====
+
* Suspend / Resume            [ works out of box ]
+
* Video (with desktop effects)[ works out of box ]
+
* Wireless Networking        [ ath_pci loads, wireless not working ]
+
* Wired Networking            [ works out of box ]
+
* Webcam                      [ works out of box ]
+
* USB                        [ works out of box ]
+
* Silent Fan                  [ fan works, silent?? will try above scripts ]
+
* Card Readers                [ not tested ]
+
* Audio                      [ works out of box ]
+
* Card Reader power saving    [ not tested ]
+
* wifi power saving          [ not tested ]
+
==== Partial Function: ====
+
* wifi kill switch            [ working, but no notification ]
+
==== Not Functional: ====
+
* Hibernate on A110L          [ not working ]
+
=== After Updates ( Oct 7,2008 ) ===
+
==== Fully functional: ====
+
* Suspend / Resume            [ Fails with latest versions of pm-utils, see https://bugs.launchpad.net/ubuntu/intrepid/+source/pm-utils/+bug/267141 ]
+
* Video (with desktop effects)[ works out of box ]
+
* Wireless Networking        [ works out of box, not leds though, ath5k driver ]
+
* Wired Networking            [ works out of box ]
+
* Webcam                      [ works out of box ]
+
* USB                        [ works out of box ]
+
* Silent Fan                  [ works with the above scripts. ]
+
* Card Readers                [ works with the fix described above  ]
+
* Audio -                    [ works out of box ]
+
* Card Reader power saving    [ Partially. When trying to hibernate or suspend while an inserted SD card no longer completely freezes the system, --- but suspending with SD card is still scary. ]
+
* wifi power saving          [ not tested ]
+
==== Partial Function: ====
+
* wifi kill switch            [ working, but no notification ]
+
==== Not Functional: ====
+
* Hibernate on A110L          [ Seems to work for me if there is a swap partition that is big enough so we can suspend to it. But there seem to exist Aspire One's that slightly differ in Hardware. So maybe hibernating still fails on other computers. ]
+
==== Wireless module build needed ====
+
Wireless now works by using the ath5k module ( it is still under development ) <<BR>>
+
--edit2: Try just disabling the proprietary driver in System>Administration>Hardware Drivers and rebooting solves the problem. <<BR>>
+
No longer need to build and install ath_pci ( seeing as I used it previously I disabled it and ath_hal using blacklist )<<BR>>
+
- under/ etcmodprobe.d/blacklist I added the lines:<<BR>>
+
blacklist ath_hal<<BR>>
+
blacklist ath_pci<<BR>>
+
- I found that wireless works correctly after a power off/on reboot<<BR>>
+
- Seems like a system restart does not bring wireless back online ( power unit off/ power back on )<<BR>>
+
If it still doesn't come on try removing power and battery for a few seconds and then boot-up
+
NOTE: Wireless support is built in Intrepid Ibex (8.10) because the kernel is >= 2.6.27.  To ensure it works, disable the hardware driver "Atheros wireless card" and reboot. If you have followed these instructions and have the ability to hibernate your Ibex, then you will need to set the following to fix wireless after a hibernate: sudo gedit /etc/pm/sleep.d/modules and add the following line:
+
<pre><nowiki>
+
SUSPEND_MODULES="ath5k"
+
</nowiki></pre>
+
Also the directions below for setting the wireless LEDs do not work though the switch works on my unit.
+
==== Wireless LEDs ====
+
Works with the additional lines documented above are put into /etc/rc.local above the "exit 0".<<BR>>
+
-- edit: -- with ath5k wireless on/off  switch seems to work in background, no notification in Gui<<BR>>
+
-- the wireless leds do not illuminate in any way shape or form
+
==== Audio ====
+
Works, Volume Ok.
+
Audio switches from speakers to headphone
+
==== External Video ====
+
external video connector works with external monitor
+
==== Rest ====
+
-- In Progress --
+
=== Install NetBook Remix + Ubuntu Intrepid Ibex 8.10(Latest) on the Acer Aspire One ===
+
==== Fully functional: ====
+
* Suspend / Resume            [ Not Tested ]
+
* Video (with desktop effects)[ works out of box ]
+
* Wireless Networking        [ works out of box, not leds though, ath5k driver ]
+
* Wired Networking            [ works out of box ]
+
* Webcam                      [ Not Tested ]
+
* USB                        [ works out of box ]
+
* Silent Fan                  [ Needs Fan script (above ) installed ]
+
* Card Readers                [ Not Tested ]
+
* Audio -                    [ works out of box ]
+
* Card Reader power saving    [ Not Tested ]
+
* wifi power saving          [ not tested ]
+
Summary: <<BR>>
+
After Installing 8.10 from cd I couldn't figure out how to get ubuntu remix loaded from 8.10 repos so I did a hacky work around. ( If you just can't wait to get remix going with 8.10 ). After installing eeebuntu 8.04.1 wireless works, nic does not ( 8.04 has older kernel, we will remedy by installing latest kernel from Ibex )
+
Prerequisite: <<BR>>
+
-Need wireless connection available <<BR>>
+
-Need usb key for eeebuntu 8.04.1 <<BR>>
+
-Need coffee and 1 to 2 hours <<BR>>
+
1: download eeebuntu 8.04.1 '[http://www.ubuntu-eee.com/wiki/index.php5?title=Get_Ubuntu_Eee eeebuntu 8.04.1]'
+
2: make a usb key '[http://www.ubuntu-eee.com/wiki/index.php5?title=How_to:_Using_Unetbootin#Using Making a usbKey]'
+
<<BR>>
+
3:Boot up eeebuntu 8.04.1 from key( wireless works, wired ethernet does not )
+
Note: on boot-up F12 gets me to boot menu which lets me choose to boot from usb key
+
Install to Disk
+
4: Boot up eeebuntu 8.04.1 from Disk
+
upgrade to 8.10 immediately
+
<pre><nowiki>
+
-Alt-F2 ( select run in terminal )
+
-update-manager -d
+
  ( note, don't do any updates, just straight to dist-upgrade. When I did updates first I ended up with a dead Gui )
+
-Third Party sources disabled ( OK )
+
-replace config files ( yes to all )
+
-network manager crashes during install ( keep going, resolves on restart )
+
</nowiki></pre>
+
Note: first time I tried, I got some corrupt .deb files, and had to start install from scratch ( but have installed successfully on two AAOs )
+
5: Boot up in eeebuntu 8.04.1 <<BR>>
+
Still has eeepc specific kernel, hence no nic but wireless is there. We need to install 8.10 generic kernel
+
<pre><nowiki>
+
  -Alt-F2
+
  -sudo apt-get install linux-generic ( select run in terminal )
+
  -maximus lockups on logout, seems to be tolerable [edit Oct 14th,2008 ] new maximus installed, lock-up appears to be gone
+
</nowiki></pre>
+
5: Reboot/ Power Cycle with 2.6.27-x kernel <<BR>>
+
Now you should have nic and wireless via ath5k driver
+
<pre><nowiki>
+
-Log In
+
-Alt-F2
+
-sudo apt-get update ( select run in terminal )
+
-sudo apt-get upgrade ( select run in terminal )
+
</nowiki></pre>
+
6: Setup fan controll as described above
+
<pre><nowiki>
+
rc.local may not be executable so
+
sudo chmod a+x /etc/rc.local
+
comment out the line /usr/sbin/set-usb-persist 0951 1606 on
+
</nowiki></pre>
+
7: Netbook Remix seems to be mostly working, don't know all the features to test for. <<BR>> Works good enough for my immediate needs
+
== Upgrade from Hardy Heron (8.04.1) to Intrepid Ibex (8.10) beta ==
+
(originally written by khaeru; last updated 15 October 2008)
+
Use:
+
<pre><nowiki>
+
$ update-manager -d
+
</nowiki></pre>
+
after following the first section of this guide. Following the above notes and some trial and error, the following configuration files work.
+
Note that shell commands preceded by "`#`" should be run as root (i.e. using sudo); commands preceded by "`$ `" should be run as a normal user.
+
=== /boot/grub/menu.lst ===
+
Changing the default options:
+
<pre><nowiki>
+
...
+
 
+
# defoptions=elevator=noop quiet splash
+
 
+
...
+
</nowiki></pre>
+
Rather than editing the boot lines directly and risking an unbootable system, run the following to automagically update all boot lines:
+
<pre><nowiki>
+
# update-grub
+
</nowiki></pre>
+
=== /etc/modules ===
+
The ath5k module is automatically loaded, so only the Intel HDA sound module needs to be listed.
+
<pre><nowiki>
+
# /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
+
snd_hda_intel # for Aspire One
+
</nowiki></pre>
+
=== /etc/modprobe.d/aspireone ===
+
Rather than modify the other files in this directory, create a new file just for Aspire One settings. It will be processed along with the rest on boot.
+
<pre><nowiki>
+
# Module options for the Acer AspireOne
+
#
+
# Force use of ath5k
+
blacklist ath_hal
+
blacklist ath_pci
+
# Fix sound
+
options snd-hda-intel model=toshiba
+
# As suggested by PowerTOP
+
options usbcore autosuspend=1
+
# Enable USB card reader
+
options pciehp pciehp_force=1
+
</nowiki></pre>
+
==== Notes ====
+
* I am not sure whether "blacklist ath_hal" is necessary, but "blacklist ath_pci" is -- [[UbuntuHelp:LaunchpadHome:khaeru|LaunchpadHome:khaeru]] <<DateTime(2008-10-16T05:46:23Z)>>
+
* pciehp added per [https://launchpad.net/~jsgoncalves jsgoncalves]
+
=== /etc/sysctl.d/60-aspireone.conf ===
+
The file /etc/sysctl.d/README states, "End-users can use 60-*.conf and above," so we do this instead of fiddling with sysctl.conf itself or calling "sysctl -w" from rc.local:
+
<pre><nowiki>
+
# Settings for the Acer Aspire One
+
#
+
# No swapping whatsoever
+
vm.swappiness = 0
+
# As suggested by PowerTOP
+
vm.dirty_writeback_centisecs = 1500
+
# Suggested by https://help.ubuntu.com/community/AspireOne
+
vm.vfs_cache_pressure = 0
+
vm.dirty_ratio = 20
+
vm.dirty_background_ratio = 10
+
vm.laptop_mode = 5
+
</nowiki></pre>
+
'''Note:''' I have set swappiness to zero, because I am running my Aspire One with 1.5 GiB of RAM and no swap partition. You may wish to use another value (e.g. 10 as suggested above).
+
=== /etc/rc.local ===
+
Here we include only settings that cannot be placed in the above files.
+
<pre><nowiki>
+
#!/bin/sh -e
+
#
+
# rc.local
+
#
+
# This script is executed at the end of each multiuser runlevel.
+
# Make sure that the script will "exit 0" on success or any other
+
# value on error.
+
#
+
# In order to enable or disable this script just change the execution
+
# bits.
+
#
+
# By default this script does nothing.
+
 
+
# https://help.ubuntu.com/community/AspireOne
+
# Wireless disable/enable key
+
/usr/bin/setkeycodes e055 159
+
/usr/bin/setkeycodes e056 158
+
# Decrease power usage of USB while idle
+
[ -x /sys/bus/usb/devices/1-5/power/level ] && echo auto > /sys/bus/usb/devices/1-5/power/level
+
[ -x /sys/bus/usb/devices/5-5/power/level ] && echo auto > /sys/bus/usb/devices/5-5/power/level
+
# Disable Wake-On-LAN feature of Ethernet port
+
ethtool -s eth0 wol d
+
# As in the rc.last.ctrl of Linpus
+
echo 1 > /sys/devices/system/cpu/sched_smt_power_savings
+
# Fan control
+
/usr/local/bin/acerfand
+
 
+
exit 0
+
</nowiki></pre>
+
==== Notes ====
+
* As noted elsewhere, the wireless kill switch on the front of the case works, but there is no visual notification. Search around the Network Manager project and notice references to "rfkill" and "KillSwitch", neither of which is implement in NM yet.
+
* The wireless LEDs don't work; the "dev.wifi0" settings aren't included because they only generate errors.
+
=== /etc/init.d/rc ===
+
To improve boot speed, as noted above.
+
<pre><nowiki>
+
...
+
CONCURRENCY=shell # https://help.ubuntu.com/community/AspireOne
+
...
+
</nowiki></pre>
+
=== /etc/profile ===
+
In Intrepid, the following no longer causes the artifacts mentioned above for Hardy.
+
<pre><nowiki>
+
...
+
umask 022
+
 
+
# https://help.ubuntu.com/community/AspireOne
+
export INTEL_BATCH=1
+
</nowiki></pre>
+
=== /etc/X11/xorg.conf ===
+
As noted above.
+
<pre><nowiki>
+
...
+
 
+
Section "Device"
+
        Identifier      "Configured Video Device"
+
        # https://help.ubuntu.com/community/AspireOne
+
        Option          "MonitorLayout" "LVDS,VGA"
+
        Option          "Clone" "True"
+
        Option          "AccelMethod" "EXA"
+
        Option          "MigrationHeuristic" "greedy"
+
        VideoRam        229376
+
        Option          "CacheLines" "1980"
+
EndSection
+
 
+
...
+
</nowiki></pre>
+
== References ==
+
=== Discussion ===
+
Discussion of this process is happening [http://www.aspireoneuser.com/forum/viewtopic.php?f=5&t=164&st=0&sk=t&sd=a here].
+
You can also join IRC channel #onelinux on irc.freenode.net.
+
 
=== Other distributions ===
 
=== Other distributions ===
Several other distributions have their own installation guides for the Aspire One.  
+
Several other distributions have their own installation guides for the Aspire One.
 
* [http://wiki.archlinux.org/index.php/Acer_Aspire_One Archlinux]
 
* [http://wiki.archlinux.org/index.php/Acer_Aspire_One Archlinux]
 
* [http://en.opensuse.org/OpenSUSE_on_the_Aspire_One openSUSE]
 
* [http://en.opensuse.org/OpenSUSE_on_the_Aspire_One openSUSE]
 
* [http://wiki.debian.org/DebianAcerOne Debian]
 
* [http://wiki.debian.org/DebianAcerOne Debian]
 
* [http://gentoo-wiki.com/Acer_Aspire_One_A110L Gentoo]
 
* [http://gentoo-wiki.com/Acer_Aspire_One_A110L Gentoo]
== Suggestions for this guide ==
+
See also the [http://kmuto.jp/debian/hcl/ Debian device driver check page].
Please use @``SIG@ to sign your suggestions.
+
=== Use Unetbootin ===
+
On this website: [http://tombuntu.com/index.php/2008/08/27/create-a-bootable-usb-drive-or-memory-card/ Create a bootable USB Drive or Memory Card], the tool used was [http://unetbootin.sourceforge.net/ UNetbootin] which seems to only require the one computer to run it on (as a statically linked binary, no install required, minimal dependencies) and generically works for a large number of distributions in addition to ubuntu and handles custom diskimages and custom kernels. This seems like a tool that is a little more quick than UbuntuLiveUSB.
+
To install:
+
* download .bin file from sourceforge
+
* right click on file, check executable (or run chmod +x *.bin in terminal)
+
* sudo apt-get install mtools p7zip-full
+
* run file (double click or type ./unetbooin-linux-282 in terminal) on any linux system
+
* select diskimage or distribution
+
* select USB drive from list (uses only device names unfortunately)
+
* click ok
+
Flash drive or memory card will be formatted and set up as a bootable drive.
+
=== Stop hard drive death click ===
+
Having tried hardy and now running intrepid I have found that both suffer from excessive load cycling
+
http://ubuntuforums.org/showthread.php?t=805570
+
This will fix the issue, but value 128 in script should be modified to 200.
+
interestingly fedora suffers the same issue and they decided on no head parking(not a great idea) and also "S 120"
+
has anyone an view on using
+
ac
+
<pre><nowiki>
+
      /sbin/hdparm -B 254 /dev/sda -S120
+
</nowiki></pre>
+
and
+
batt
+
<pre><nowiki>
+
      /sbin/hdparm -B 200 /dev/sda -S120
+
</nowiki></pre>
+
as I know of no ill effects with the ac option, but what effect lowering parking value in relation to spin value i'm not so sure-temperature increase?
+
=== Clean-up ===
+
It would be nice to have a single section for Intrepid, rather than several sections that refer to bugs/hiccups that were in previous beta versions but are now irrelevant -- [[UbuntuHelp:LaunchpadHome:khaeru|LaunchpadHome:khaeru]] <<DateTime(2008-10-16T06:04:27Z)>>
+
  
 
[[category:UbuntuHelp]]
 
[[category:UbuntuHelp]]

2010年5月19日 (三) 21:35的最新版本

About this guide

There are many netbooks under the name "Acer Aspire One". Each component is shared by some of them but in general they are different. The subpages of specific models account for this:

Nevertheless, fixes, enhancements, and solutions for another model may work for your netbook, specially when:

  • The issue is not considered at the subpage specific for your model;
  • The subpage specific for your model is outdated (pages get outdated soon as new releases come);
  • There is no subpage specific for your model.

Warning about outdated pages

The following functionalities improve considerably between two Ubuntu releases: Wireless, Audio, Webcam, Video, Fan control, USB, Sleep, Hibernation. They are likely to be outdated in some of the subpages. In most cases they describe manual fixes that are not necessarily with the latest release.

More material

A previous version of this guide can be found at the Old subpage. It contains mostly outdated data, but can provide useful information, and references. Ubuntu8.04 contains many tweaks that are likely to work for later releases: Font tweaks; SSD Performance; Reduce SSD Wear; Speed up Firefox; Touchpad tweaks; Optimize screen use; Disable Scrollkeeper; Powersaving. These could be recycled and ported to a subpage. Some are deprecated: Screen tweaks (already works out-of-the-box). Ubuntu9.10 contains a brief summary of Ubuntu 9.10 tests with several models: 110L, ZG8, 510, ZG5, P531h, 532h, A150, D150.

Test results

Laptop|testing team

Other distributions

Several other distributions have their own installation guides for the Aspire One.

See also the Debian device driver check page.