Acer Aspire 3000 ZL5

From ArchWiki
Revision as of 17:42, 8 July 2010 by AskApache (Talk | contribs) (Added Xorg, fix display)

Jump to: navigation, search

This page provides a variety of configurations and optimizations for getting the Acer Aspire 3000 Series of Laptops running fast and smooth. Specifically for the Acer Aspire 3000 ZL5 and based off the article for the Acer Aspire 3003 WLMi


Pacman Packages

Here are the packages I have:

 $ pacman -Qe | cut -d' ' -f1|tr "\n" ' '

I use powerpill, but basically you can do a

 $ sudo pacman -Sy --noconfirm <packages>
acl acpid alsa-oss alsa-utils anyfs anyfs-tools aria2 aterm attr autoconf automake b43-fwcutter bash bin86 bind binutils bison bridge-utils bzip2 chromium conkeror-git coreutils cpio cpufrequtils cracklib cryptsetup curl curlftpfs dash db dbus-core ddrescue device-mapper dhcpcd dialog diffutils dillo directfb dvd+rw-tools e2fsprogs ed elinks encfs eterm ethstatus exo fakeroot fbset fbv file filesystem findutils firefox flex flock fortune-mod fuseiso gawk gcc gcc-libs gdbm geeqie gen-init-cpio gettext git glibc gnu-netcat gnutls gpm grep groff grub gzip hdparm hwdetect initscripts iotop iproute2 iputils ipw2200-fw jfsutils kbd kernel26 keytouch laptop-mode-tools less libarchive libdvdread libfetch libgcrypt libgpg-error libpcap libtool libusb libusb1 libxfce4menu libxfce4util licenses links-g linux-api-headers linux-firmware logrotate lsof lvm2 lynx lzo2 m4 madwifi madwifi-utils mailx make man-db man-pages mdadm mkinitcpio mlocate module-init-tools mplayer nano ncurses net-tools netsurf nmap openssh pacman pacman-mirrorlist pam parted patch pciutils pcmciautils pcre perl pkg-config pmount popt powerpill ppp procinfo-ng procps psmisc putty ratpoison readline reiserfsprogs rp-pppoe rsync schroot screen sdparm sed setserial shadow shfs-utils socat sshfs strace stunnel sudo swfdec-mozilla sysfsutils syslog-ng sysvinit tar tcp_wrappers terminator terminus-font texinfo tmux truecrypt ttf-inconsolata tzdata udev udev-compat upower usbutils usbview util-linux-ng vi vim w3m wget which wicd wireless_tools wireshark wpa_supplicant xf86-video-fbdev xf86-video-vesa xfsprogs xorg-docs xorg-fonts-100dpi xorg-fonts-75dpi xorg-res-utils xorg-server xorg-server-utils xorg-twm xorg-utils xorg-xinit xterm zlib


/etc/rc.conf

This sets the locale, timezone, consolefont, network, modules, etc.

LOCALE="en_US.UTF-8"
HARDWARECLOCK="localtime"
TIMEZONE="America/Indiana/Indianapolis"
KEYMAP="us"
CONSOLEFONT=ter-114b
CONSOLEMAP=
USECOLOR="yes"

HOSTNAME=acer
wlan0="wlan0 192.168.5.55 netmask 255.255.255.0 broadcast 192.168.5.255"
eth0="dhcp"
INTERFACES=(wlan0 !eth0)
gateway="default gw 192.168.5.1 wlan0" 
ROUTES=(gateway) 
USELVM="no"
MOD_AUTOLOAD="yes"
MODULES=(ac battery button processor thermal cdrom agpgart amd64-agp sis-agp tpm_bios tpm tpm_tis k8temp i2c-sis96x i2c-core evdev pcspkr psmouse serio_raw mmc_core pci_hotplug shpchp rtc-cmos rtc-core rtc-lib ssb ac97_bus snd-mixer-oss snd-pcm-oss snd snd-page-alloc snd-pcm snd-timer snd-ac97-codec snd-intel8x0 snd-intel8x0m soundcore pata_sis scsi_mod mii sis900 pcmcia_core pcmcia rsrc_nonstatic yenta_socket usb-storage usbcore ehci-hcd ohci-hcd option usbserial sd_mod sr_mod st b43 sisfb) 

DAEMONS=(syslog-ng crond wlan)

Note that you need to install some drivers like SiS manually by pacman and b43 module (broadcom wifi driver) needs you to manually download and extract latest firmware using b43fwcutter.


/etc/rc.d/wlan

This is what I use to connect my wireless. Just create the file /etc/rc.d/wlan to contain the following (edit the ifconfig/route settings for your network).

#!/bin/bash
. /etc/rc.conf
. /etc/rc.d/functions

case "$1" in
  start)stat_busy "Starting wlan Daemon"; pkill -f wpa_supplicant &> /dev/null
	rmmod -f rfkill b43 &>/dev/null; modprobe b43 &>/dev/null
	ifconfig wlan0 192.168.5.55 netmask 255.255.255.0 broadcast 192.168.5.255 &>/dev/null
	route -nv add default gw 192.168.5.1 wlan0 &>/dev/null
	/usr/sbin/wpa_supplicant -Dwext -iwlan0 -c /etc/wpa_supplicant.conf -qq -B &> /dev/null
	add_daemon wlan; stat_done; ;;
  stop)	stat_busy "Stopping wlan Daemon"; pkill -f wpa_supplicant &> /dev/null
	ifconfig wlan0 down &>/dev/null; rmmod -f b43 &>/dev/null
	rm_daemon wlan; stat_done; ;;
  restart)  $0 stop; sleep 3; $0 start; ;;
  *)  echo "usage: $0 {start|stop|restart}"; ;;
esac

exit 0



Xorg

I use ratpoison because its lightning fast on my acer, and because I'm a poweruser. If you have to use a gui, go with xfce4. KDE and gnome are outrageously slow on the acer.

/home/user/.xinitrc

This is what the

 $ startx 

command uses.

xsetroot -solid black
#exec startxfce4
exec ratpoison


/etc/X11/xorg.conf

Section "ServerLayout"
  Identifier     "X.org Configured"
  Screen      0  "Screen0" 0 0
  InputDevice    "Mouse0" "CorePointer"
  InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
  ModulePath   "/usr/lib/xorg/modules"
  FontPath     "/usr/share/fonts/misc/"
  FontPath     "/usr/share/fonts/TTF/"
  FontPath     "/usr/share/fonts/Type1/"
  FontPath     "/usr/share/fonts/100dpi/"
  FontPath     "/usr/share/fonts/75dpi/"
EndSection

Section "Module"
  Load  "dri2"
  Load  "glx"
  Load  "dbe"
  Load  "dri"
  Load  "record"
  Load  "extmod"
EndSection

Section "InputDevice"
  Identifier  "Keyboard0"
  Driver      "kbd"
EndSection

Section "InputDevice"
  Identifier  "Mouse0"
  Driver      "mouse"
  Option	    "Protocol" "auto"
  Option	    "Device" "/dev/input/mice"
  Option	    "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
  Identifier   "Monitor0"
  VendorName   "Monitor Vendor"
  ModelName    "Monitor Model"
EndSection

Section "Device"
  Identifier  "Card0"
  Driver      "fbdev"
  VendorName  "Silicon Integrated Systems [SiS]"
  BoardName   "661/741/760 PCI/AGP or 662/761Gx PCIE VGA Display Adapter"
  BusID       "PCI:1:0:0"
EndSection

Section "Screen"
 Identifier "Screen0"
 Device     "Card0"
 Monitor    "Monitor0"
 DefaultDepth 24
 SubSection "Display"
   Depth 24
   Modes "1280x800" "1024x768" "832x624" "800x600" "720x400" "640x480"
 EndSubSection
EndSection


/etc/rc.local

fbset -a -depth 32


Kernel

A customized kernel is beyond the scope of this doc, but to build a custom kernel that contains the modules used by your acer 3000 ZL5 for faster boots (among other benefits) you just need to modify your mkinitcpio.conf file and reinstall the kernel26 package.

/etc/mkinitcpio.conf

MODULES="sisfb ac battery button processor thermal cdrom agpgart amd64-agp sis-agp tpm_bios tpm tpm_tis k8temp i2c-sis96x i2c-core evdev pcspkr psmouse serio_raw mmc_core pci_hotplug shpchp rtc-cmos rtc-core rtc-lib ssb ac97_bus snd-mixer-oss snd-pcm-oss snd snd-page-alloc snd-pcm snd-timer snd-ac97-codec snd-intel8x0 snd-intel8x0m soundcore pata_sis scsi_mod mii sis900 pcmcia_core pcmcia rsrc_nonstatic yenta_socket usb-storage usbcore ehci-hcd ohci-hcd option usbserial sd_mod sr_mod st b43"

HOOKS="base udev autodetect pata scsi sata usb filesystems consolefont"

COMPRESSION="bzip2"

Simplest way to generate new mkinitcpio is reinstalling the kernel package like:

$ pacman -Sf --noconfirm kernel26


/boot/grub/menu.lst

# Config file for GRUB - The GNU GRand Unified Bootloader

timeout   5
default   4
color green/black



## BOOT FROM USB STICK KERNELS
## ===============================================================

# 0 
title  [0] Fallback - USB
root   (hd1,0)
kernel (hd1,0)/vmlinuz26 root=/dev/sda3 ro Single 1 vga=791
initrd (hd1,0)/kernel26-fallback.img

# 1
title  [1] Fallback - USB
root   (hd1,0)
kernel (hd1,0)/vmlinuz26 root=/dev/sda3 ro vga=791
initrd (hd1,0)/kernel26-fallback.img



## NORMAL BOOT
## ===============================================================

# 2
title  [2] vmlinuz26 - SDA
root   (hd0,0)
kernel /vmlinuz26 root=/dev/sda3 ro Single 1 vga=791
initrd /kernel26.img

# 3
title  [3] Fallback - SDA
root   (hd0,0)
kernel /vmlinuz26 root=/dev/sda3 ro Single 1 vga=791
initrd /kernel26-fallback.img

# 4
title  [4] Default - vmlinuz26 - SDA
root   (hd0,0)
kernel /vmlinuz26 root=/dev/sda3 ro 3 video=sisfb:1280x800x32,rate:76,mtrr,ylwrap
initrd /kernel26.img

# 5
title  [5] Fallback - SDA
root   (hd0,0)
kernel /vmlinuz26 root=/dev/sda3 ro 3 vga=791
initrd /kernel26-fallback.img



## BACKUP FALLBACK
## ===============================================================

# 6
title  [6] Arch Linux vmlinuz261 - SDA
root   (hd0,0)
kernel /vmlinuz261 root=/dev/sda3 ro Single 1 vga=791
initrd /kernel261.img

# 7
title  [7] Arch Linux Fallback1 - SDA
root   (hd0,0)
kernel /vmlinuz261 root=/dev/sda3 ro Single 1 vga=791
initrd /kernel26-fallback1.img

# 8
title  [8] Arch Linux vmlinuz261 - SDA
root   (hd0,0)
kernel /vmlinuz261 root=/dev/sda3 ro 3 vga=791
initrd /kernel261.img

# 9
title  [9] Arch Linux Fallback1 - SDA
root   (hd0,0)
kernel /vmlinuz261 root=/dev/sda3 ro 3 vga=791
initrd /kernel26-fallback1.img



## SPECIAL BOOTS
## ===============================================================

# 10 Chainload USB +1
title [10] Chainload +1 - rootnoverify USB-1.0
rootnoverify (hd1,0)
makeactive
chainloader +1

# 11 Chainload SDA +1
title [11] Chainload +1 - rootnoverify SDA-0.0
rootnoverify (hd0,0)
makeactive
chainloader +1

# 12 Chainload SDA +2
title [12] Chainload +2 - rootnoverify SDA-0.0
rootnoverify (hd0,0)
makeactive
chainloader +2

#kernel /vmlinuz26 root=/dev/sda3 ro 
#video=1280x1024-32@60,mtrr,ylwrap

sisfb

If you want to specify your own resolution using custom video driver, then you have to replace vga option with video option. For example if you want to user resolution 1280x800 with 32-bit color depth at 76Hz (which is recommended for Acer Aspire 3000) then you can use this option:

video=sisfb:mode:1280x800x32,rate:76

You can also play with memory consumption like this, but its not needed and it can cause some problems, if you don't know what are you doing:

video=sisfb:mode:1280x800x24,mem:12288,rate:76







Hardware

The hardware of this laptop. Note that because the single hard-drive is so terrible compared to modern drives, I bought a PNY 4GB usb drive that I use for swap and tmp.


lspci

00:00.0 Host bridge: Silicon Integrated Systems [SiS] 760/M760 Host (rev 03)
00:01.0 PCI bridge: Silicon Integrated Systems [SiS] SG86C202
00:02.0 ISA bridge: Silicon Integrated Systems [SiS] SiS963 [MuTIOL Media IO] (rev 25)
00:02.1 SMBus: Silicon Integrated Systems [SiS] SiS961/2 SMBus Controller
00:02.5 IDE interface: Silicon Integrated Systems [SiS] 5513 [IDE]
00:02.6 Modem: Silicon Integrated Systems [SiS] AC'97 Modem Controller (rev a0)
00:02.7 Multimedia audio controller: Silicon Integrated Systems [SiS] AC'97 Sound Controller (rev a0)
00:03.0 USB Controller: Silicon Integrated Systems [SiS] USB 1.1 Controller (rev 0f)
00:03.1 USB Controller: Silicon Integrated Systems [SiS] USB 1.1 Controller (rev 0f)
00:03.2 USB Controller: Silicon Integrated Systems [SiS] USB 2.0 Controller
00:04.0 Ethernet controller: Silicon Integrated Systems [SiS] SiS900 PCI Fast Ethernet (rev 91)
00:06.0 CardBus bridge: Texas Instruments PCI1410 PC card Cardbus Controller (rev 02)
00:0b.0 Network controller: Broadcom Corporation BCM4318 [AirForce One 54g] 802.11g Wireless LAN Controller (rev 02)
00:18.0 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] HyperTransport Technology Configuration
00:18.1 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Address Map
00:18.2 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] DRAM Controller
00:18.3 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Miscellaneous Control
01:00.0 VGA compatible controller: Silicon Integrated Systems [SiS] 661/741/760 PCI/AGP or 662/761Gx PCIE VGA Display Adapter

lsusb

Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 002: ID 154b:6545 PNY 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub



Related articles