Here it comes, updated guide for Lucid.
Packard Bell / Gateway clones:
This guide has also been tested on a Packard Bell Dot M/U with bios v3303, and it should also work on the Gateway clone. If you have a 1410/1810 and something doesn't work, please report back.
What's working after a standard Ubuntu 10.04 install:
- Graphics
- Audio out, speaker mutes when pluging in headphones. Good volume.
- Networking, both wireless (intel wifi 1000) and wired (the atheros gigabit)
- FN +:
- F4, suspends fine
- F6, monitor goes black
- F7, touchpad on / off
- F8, mute
- F9, Bloq Num
- RePag: Home
- AvPag: End
- Up: increase volume
- Down: decrease volume
- Righ: increase brightness: skips steps.
- Left: decrease brightness: skips steps.
- J,K,L, etc: numeric keyboard ok.
- Audio in: the integrated mic doesn't work.
- FN + F5: not recognised, doesn't toogle displays
I've done a script that should do it all automatically. In detail:Manual Install:
What the script does:What the script doesn't:
- Configure gnome-power-manager backlight dim and hard disk power saving
- Download, patch, install and setup acerhdf
- Install the power saving script
- Install the debugging script
- If laptop-mode-tools is installed, suggest uninstalling and, if you want, uninstall
- Fix the brightness hotkeys issue (jumps 2 levels on every key press)
- Disable ethernet Wake on Lan (doesn't enable when on AC)
- Disable uneeded services: cron, anacron and atd (they don't enable when on AC)
How it works:
- Add the noatime parameter to the ext2/3/4 partitions in fstab. You'll have to do it manually.
Disclaimer:
- In a terminal, run ./InstallAcer_11.6_PowerSaving.sh --help to get a full list of options.
- If you want to install everything: ./InstallAcer_11.6_PowerSaving.sh --install
- This script comes with no warranty. Use it at your own risk. I won't be responsible for any damage this could do to your system or data.
Power saving tips:
The Script:Issues:By default, an ubuntu install won't take too much care of saving power, which is very important in an ultra mobile laptop. You can easily setup the system to enter some power saving modes, specifically the sata controller and the sound chip.gnome-power-manager:
I've setup a script which will take care of making the devices entering the power saving mode when the laptop is on battery.To install this power saving script, do the following:
Code:
#!/bin/bash
## Disable unnecessary services
service atd stop
service cron stop
service anacron stop
## Acer 11.6 brightness hotkey fix
echo N > /sys/module/video/parameters/brightness_switch_enabled
## Disable wake on lan
ethtool -s eth0 wol d
if on_ac_power; then
#### Go fast on AC power. Similar to default Ubuntu settings
# Remount ext3/4 filesystems to default value: every 5 seconds
mount -o remount,commit=5, /
mount -o remount,commit=5, /home
## Set swap usage back to default
echo 60 > /proc/sys/vm/swappiness
## Disable Sata Power Saving
for foo in /sys/class/scsi_host/host*/link_power_management_policy;
do echo max_performance > $foo;
done
## Disable Intel Wlan Power Saving
iwconfig wlan0 power off
## Disable HD Audio Power Saving
echo 0 > /sys/module/snd_hda_intel/parameters/power_save
echo N > /sys/module/snd_hda_intel/parameters/power_save_controller
## Set kernel dirty page value back to default
echo 20 > /proc/sys/vm/dirty_ratio
echo 10 > /proc/sys/vm/dirty_background_ratio
echo 500 > /proc/sys/vm/dirty_expire_centisecs
echo 500 > /proc/sys/vm/dirty_writeback_centisecs
else
#### Save power
## Change the ext3/4 commit times to 10 minutes. Reduces disk activity
mount -o remount,commit=600 /
mount -o remount,commit=600 /home
## Reduce swap usage as much as possible
echo 1 > /proc/sys/vm/swappiness
## Enable Sata Power Saving
for foo in /sys/class/scsi_host/host*/link_power_management_policy;
do echo min_power > $foo;
done
## Enable Intel Wlan Power Saving
iwconfig wlan0 power on
## Enable HD Audio Power Saving
echo 10 > /sys/module/snd_hda_intel/parameters/power_save
echo Y > /sys/module/snd_hda_intel/parameters/power_save_controller
## Reduce disk activity by waiting up to 10 minutes before doing writes
echo 90 > /proc/sys/vm/dirty_ratio
echo 25 > /proc/sys/vm/dirty_background_ratio
echo 60000 > /proc/sys/vm/dirty_expire_centisecs
echo 60000 > /proc/sys/vm/dirty_writeback_centisecs
fi
Code:
gksudo gedit /etc/pm/power.d/15_saving
# Paste the script above into the file, save and close
sudo chmod +x /etc/pm/power.d/15_saving
sudo ln -s /etc/pm/power.d/15_saving /etc/pm/sleep.d/
sudo chown root /etc/pm/power.d/15_saving
sudo chgrp root /etc/pm/power.d/15_savingGo the g-p-m preferences, under System -> Preferences -> Power management, and do the following:The noatime parameter:
- Hard drive power saving: in the battery tab tick on "Reduce hard drive revolutions when possible"
- Battery tab: tick on reduce brightness and dim display.
- AC and Battery tab: configure what to do when closing the lid and what to do on very low battery remaining.
- General tab: configure what to do when pressing the power button and sleep button (Fn+f4).
- General tab: configure when to show the battery icon.
In linux, and in ubuntu it's on by default, the filesystem has 3 types of date information: when the file was created, when the file was modified and when the file was last accessed. This last access information means that everytime a file is accessed (everytime you read a file), it does a file system write, to update the information. In My Honest Opinion, this is not necessary, and I would disable the last access information. How? Editing fstab and adding the noatime paramenter to all ext2/3/4 mounted partitions. You can edit fstab by doing gksudo gedit /etc/fstab and, there, add the parameter noatime to all the ext2/3/4 lines. Example on how the relevant fstab lines look in my machine:There may be people who may find the atime parameter interesting, I don't. Hard drives are already the biggest bottlenecks in computers, and doing extra writes won't improves things, so I prefer to avoid them.
Code:
UUID=VERY-LONG-NUMBER / ext4 errors=remount-ro,noatime 0 1
UUID=VERY-LONG-NUMBER /home ext4 defaults,noatime 0 2
Fan:Issue: the fan is controlled by the BIOS, and is running too loud and too often.
Solution: the solution is installing an update acerhdf module. Download the laster version from . Thanks to tdavis.15/11/2009: Initial post Thanks
- tdavis, for the wake on lan tip and adding the 11,6" acer series into acerhdf
- teprrr, for the acerhdf modprobe tip and bios definitions
- laramichaels1978, from ubuntuforums, for detecting some errors and suggesting to add the dirty_expire_centiseconds option
No comments:
Post a Comment