?TableOfContents

Translations: [:DebianEeePCFrench/TipsAndTricks:French], [:DebianEeePCSpanish/TipsAndTricks:Spanish], [:DebianEeePCPortuguese/TipsAndTricks:Portuguese]

Extending flash memory life

It is a commonly accepted view that SSD devices can only be written a limited number of times before they die, and while that may have been a concern for earlier generations of devices where that limit was relatively low, modern SSDs, such as the one in the Eee increase that number sufficiently so that they will last many years before they die, outlasting any HDD. Before you spend herculean efforts to extend your Eee's flash lifespan, consider this article: http://wiki.eeeuser.com/ssd_write_limit. Nevertheless, many tips are easy to do and at the very least are harmless, or have other benefits (such as less time spent doing IO making your system more responsive,) so here are a few.

Caveat: relatime seems not yet to work in lenny (and therefore the installer). Please someone verify it works in sid

Text Mode

Follow the instructions listed at [http://nathancoulson.com/proj_eee.shtml this site.] I've included some notes below. Ideally, eeepc archive would contain these mods for grub2 and maybe have a grub2-eeepc package so that the mods listed below don't get wiped out everytime grub-install is called.

eee01:~# 915resolution -l | grep 800x480
Mode 3c : 800x480, 8 bits/pixel
Mode 4d : 800x480, 16 bits/pixel
Mode 5c : 800x480, 32 bits/pixel

insmod 915resolution
915resolution 3c 800 480
#915resolution 4d 800 480
#915resolution 5c 800 480

### BEGIN /etc/grub.d/10_linux ###
menuentry "Debian GNU/Linux, linux 2.6.24-1-686" {
        linux   (hd0,1)/vmlinuz-2.6.24-1-686 root=/dev/sda3 ro vga=572
        initrd  (hd0,1)/initrd.img-2.6.24-1-686
}
menuentry "Debian GNU/Linux, linux 2.6.24-1-686 (single-user mode)" {
        linux   (hd0,1)/vmlinuz-2.6.24-1-686 root=/dev/sda3 ro vga=572 single
        initrd  (hd0,1)/initrd.img-2.6.24-1-686
}
### END /etc/grub.d/10_linux ###

Desktop environment

If you use a Gnome desktop on your Eee, here are some ways to make better use of the limited screen height:

Firefox:

Opera:

KDE/Kwin:

[http://packages.debian.org/openbox ?OpenBox]:

Accessing the Asus Restore Image

Here is a way to access the files that were on the original Xandros system before you installed Debian on your Eee PC. You need the Asus Support DVD that came with the machine, and a Linux machine with a DVD reader and about 2.5G of free disk space (so you probably don't want to do this on your Eee).

Insert the Support DVD and extract the disk image of the Xandros system:

sudo mount /dev/dvd /media/dvd
zcat /media/dvd/P701L.gz > ~/restore.img
sudo eject /media/dvd

Now you can mount the Xandros image on your desktop whenever you want by doing:

sudo mount -t ext2 ~/restore.img /mnt/img -o ro,loop,offset=32256

(The offset of 63*512 = 32256 skips over the partition table in the disk image.) The original filesystem is now mounted, read-only, under /mnt/img/. When you're finished accessing it, don't forget to do

sudo umount /mnt/img

Make a complete disk image

The Debian Installer provided in the DebianEeePC/Howto/Install can be used to make a disk image and to send it over the network. This trick can sometimes provide a way to restore the (nearly) original Asus EeePC system before playing with new Debian installation as in some countries, you do not have the Asus Restore Image shipped with the laptop.

Backup

This method uses dd and nc provided by the Debian Installer and another computer located on your local network:

 nc -l -p 9000 | gzip -1 -c > ./eeepc.img.gz

 nc -l 9000 | gzip -1 -c > ./eeepc.img.gz

dd if=/dev/sda | nc -w 5 computer_ip_adress 9000

Extract some files from the image

Note: The first partition is the restoration partition and is ext2 filesystem, the second partition is your "active" partition and is ext3 filesystem. So if you want to find some of your files, try to search them under the second partition...

Restoration

Here is a restoration procedure with the debian installer:

Remove unused locales

This would save several tenths of megabytes. Install the localepurge package and select the locales you use. Then run localepurge as root. localepurge will also run automatically after each apt run, cleaning unused localization data.

Clean up obsolete downloaded package file

When package installation has installed the packages, the package files are not needed any more. Removing them can regain quite a lot of hd space.

You can do the same from aptitudes menu.

Software Control the fan speed

EeePC's hardware fan control is highly energy inefficient. Fan is turned on on need and usually never turned off (even if temperature reaches a normal value).

Theres a highly experimental tool available that monitors temperature and adjusts fan speed according to it.

Its written in Perl by ?RaimoRadczewski and called eeepc-fancontrol. You can get it at http://code.google.com/p/eeepc-fancontrol/

additional you must install the eee.ko module (http://code.google.com/p/eeepc-linux/)

You can adjust values by editing the daemon with your fav. text editor

""Attention"" Theres no warranty for this. It works quite good, but remember on REAL heavy load the daemon might not be executed.

Speed up boot process

Turn off the internal display when using VGA out

In the case statement on line 26:

Speed up X11

Add Option "AccelMethod" "XAA" to the Device section of your graphics card in xorg.conf.

Benchmarks can be done with 'x11perf -all' (takes a lot of time) and compared with 'x11perfcomp'.

Results of x11perf: [http://www.reiner-h.de/~reiner/EeePC/x11perf-all-results-exa.log EXA], [http://www.reiner-h.de/~reiner/EeePC/x11perf-all-results-xaa.log XAA]