Acer Aspire 3000 ZL5

From ArchWiki
Revision as of 17:15, 8 July 2010 by AskApache (Talk | contribs) (pre'd the output)

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

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

/etc/rc.conf

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)

=== MODULES ===
Modules needed by some hardware:

 MODULES=(
  #devices
  sisfb mii sis900 b43 wacom
  #sound
  ac97_bus snd-mixer-oss snd-pcm-oss snd-page-alloc snd-pcm snd-timer snd snd-ac97-codec snd-intel8x0 snd-intel8x0m soundcore !snd-pcsp
  #usermode
  tun fuse vboxdrv
  powernow-k8 cpufreq_powersave cpufreq_userspace cpufreq_conservative cpufreq_stats cpufreq_ondemand
 )

Note that you need to install some drivers like [[Silicon Integrated Systems (SiS) 661/741/760 PCI/AGP or 662/761Gx PCIE VGA Display Adapter|SiS]] manually by pacman and b43 module (broadcom wifi driver) needs you to manually download and extract latest firmware using [[Wireless_Setup#b43|b43fwcutter]].

=== DAEMONS ===
There are few daemons needed by some hardware to run properly...

 DAEMONS=( ... @laptop @gpm @alsa @acpid @cups @cpufreq ... )

== /etc/X11/xorg.conf ==
Before editing xorg.conf, you will need to install few drivers:

 xf86-input-keyboard 1.3.1-1 (xorg xorg-input-drivers)
    X.Org keyboard input driver
 xf86-input-mouse 1.3.0-1 (xorg xorg-input-drivers)
    X.org mouse input driver
 xf86-input-synaptics 0.99.3-1
    synaptics driver for notebook touchpads
 xf86-video-sis 0.10.1-1 (xorg-video-drivers)
    X.org SiS video driver
 xf86-video-vesa 2.1.0-1 (xorg xorg-video-drivers)
    X.org vesa video driver

You can use this xorg.conf to get your [[Synaptics]] touchpad, USB mouse (or optionally [[wacom]] tablet) and SiS graphical adapter with [[sisctrl]] support working.

 # Section "Extensions"
 #	Option "Composite" "Enable"
 # EndSection
 
 Section "ServerLayout"
 
 ##HARVIE
 ##HARVIE-END
 Identifier     "Layout0"
 Screen      0  "Screen0" 0 0
 InputDevice    "Keyboard0" "CoreKeyboard"
 InputDevice    "Mouse0" "CorePointer"
 InputDevice    "Wacom Tablet" "SendCoreEvents"
 InputDevice    "Wacom Pen" "SendCoreEvents"
 InputDevice    "Wacom Eraser" "SendCoreEvents"
 InputDevice    "Wacom Mouse" "SendCoreEvents"
 EndSection
 
 Section "Module"
 Load  "dbe"
 Load  "i2c"
 Load  "bitmap"
 Load  "ddc"
 Load  "dri"
 Load  "extmod"
 Load  "freetype"
 Load  "glx"
 Load  "int10"
 Load  "vbe"
 # Harvie:
 Load  "synaptics"
 EndSection
 
 Section "ServerFlags"
 Option	    "AllowEmptyInput" "false"
 Option	    "AutoAddDevices" "False"
 EndSection
 
 Section "InputDevice"
 Identifier  "Mouse0"
 Driver      "mouse"
 Option	    "Protocol" "ImPS/2"
 Option	    "Emulate3Buttons"
 Option	    "Device" "/dev/psaux"
 EndSection
 
 Section "InputDevice"
 Identifier  "Keyboard0"
 Driver      "kbd"
 Option	    "XkbModel" "acer_laptop"
 Option	    "XkbLayout" "cz"
 EndSection
 
 Section "InputDevice"
 
 #	Option		"SendCoreEvents"	"true"
 Identifier  "Mouse 1"
 Driver      "synaptics"
 Option	    "Device" "/dev/psaux"
 #	Option	    "Protocol" "ImPS/2"
 Option	    "Protocol" "auto-dev"
 Option	    "Emulate3Buttons"
 #	Option		"HorizScrollDelta"	"0"
 
 Option		"SendCoreEvents"	"true"
 Option		"SHMConfig"	"on"
 Option		"SHMConfig" "true"
 EndSection
 
 Section "InputDevice"
 Identifier  "Wacom Pen"
 Driver      "wacom"
 Option	    "Device" "/dev/input/wacom"
 Option	    "Type" "stylus"
 Option	    "USB" "on"
 Option	    "PressCurve" "0,0,100,100"
 EndSection
 
 Section "InputDevice"
 Identifier  "Wacom Eraser"
 Driver      "wacom"
 Option	    "Device" "/dev/input/wacom"
 Option	    "Type" "eraser"
 Option	    "USB" "on"
 EndSection
 
 Section "InputDevice"
 Identifier  "Wacom Mouse"
 Driver      "wacom"
 Option	    "Device" "/dev/input/wacom"
 Option	    "Type" "cursor"
 Option	    "Mode" "relative"
 Option	    "USB" "on"
 EndSection
 
 Section "InputDevice"
 Identifier  "Wacom Tablet"
 Driver      "wacom"
 Option	    "Device" "/dev/input/wacom"
 Option	    "Type" "pad"
 Option	    "ButtonsOnly" "on"
 Option	    "Button9" "2"
 Option	    "Button10" "3"
 Option	    "USB" "on"
 EndSection
 
 Section "Monitor"
 Identifier   "Monitor0"
 HorizSync    31.5 - 48.5
 VertRefresh  50.0 - 90.0
 Gamma 1.000 1.000 1.000
 EndSection
 
 Section "Device"
 Identifier "Card0"
 Driver "sis"
 Card        "** SiS (generic)                      [sis]"
 BusID "PCI:1:0:0"
 
 Option "UseFBDev" "true"
 Option "EnableSisCtrl" "yes"
 Option "ForceCRT1Type" "LCD"
 Option "ForceCRT2Type" "NONE"
 Option "CRT1Gamma" "on"
 Option "CRT2Gamma" "on"
 Option "Brightness" "0.000 0.000 0.000"
 Option "Contrast" "0.000 0.000 0.000"
 Option "CRT1Saturation" "0"
 Option "XvOnCRT2" "yes"
 Option "XvDefaultContrast" "2"
 Option "XvDefaultBrightness" "10"
 Option "XvDefaultHue" "0"
 Option "XvDefaultSaturation" "0"
 Option "XvDefaultDisableGfxLR" "no"
 Option "XvGamma" "off"
 EndSection
 
 Section "Screen"
 Identifier "Screen0"
 Device     "Card0"
 Monitor    "Monitor0"
 DefaultDepth 24
 
 SubSection "Display"
 Depth 1
 Modes "1280x800" "1024x768" "832x624" "800x600" "720x400" "640x480"
 EndSubSection
 SubSection "Display"
 Depth 4
 Modes "1280x800" "1024x768" "832x624" "800x600" "720x400" "640x480"
 EndSubSection
 SubSection "Display"
 Depth 8
 Modes "1280x800" "1024x768" "832x624" "800x600" "720x400" "640x480"
 EndSubSection
 SubSection "Display"
 Depth 15
 Modes "1280x800" "1024x768" "832x624" "800x600" "720x400" "640x480"
 EndSubSection
 SubSection "Display"
 Depth 16
 Modes "1280x800" "1024x768" "832x624" "800x600" "720x400" "640x480"
 EndSubSection
 SubSection "Display"
 Depth 24
 Modes "1280x800" "1024x768" "832x624" "800x600" "720x400" "640x480"
 EndSubSection
 EndSection
 
 Section "DRI"
 Mode         0666
 EndSection

== FBDev (SiSFB FrameBuffer) ==
=== /boot/grub/menu.lst ===
<pre>
# 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

/etc/rc.local

fbset -a -depth 32


/etc/mkinitcpio.conf

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

pacman -S kernel26


/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.

#!/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


Related articles