HARDWARE Acer Aspire 5024
From Gentoo Linux Wiki
| Laptops • TV Tuner Cards • Wireless • Servers • Storage • Other Hardware • Motherboards • Related |
This article is still a Stub. You can help Gentoo-Wiki by expanding it.
[edit] Gentoo on an Acer Aspire 500x/502x notebook
The Acer Aspire 500x/502x is a great laptop. Sporting an AMD processor along with ultra-low-voltage AMD64 bit Technology, a crisp 15.4" LCD Widescreen Display, great battery life, excellent speakers, with a built in Wireless Lan card, and DVD+/-RW; this laptop is aesthically pleasing, light, and fast making it great for travelers, businessmen, and students.
This page is a tutorial on how to install Gentoo and use maximum power on those models. They're slightly different, and this tutorial is based on the Aspire 5024 WLMI installation, but it can be also used by all users of Aspire 5021 and Aspire 5002 as well.
First I will describe Acer Aspire 5024 installation process with details on how to get working WiFi, IRDA, modem etc., and then I'll try to add other options that may be used instead.
[edit] Overview
- AMD Turion 64 (2.8/3.4MT)
- ATI Radeon Mobility X700 (128 MB ram)
- Broadcom Wireless Lan card
- Broadcom Ethernet card
- PCMCIA
- Digital Media card reader
- AC/MC 97 soundcard and modem (SmartLink)
- 60/80/100 GB Hd
- 512/1024 RAM
- 4 USB ports
- VGA + DVI-D + TVout
- IEEE1394 port
- Dual layer DVD-R/W
[edit] Installing Gentoo
[edit] Basic harddrive configuration
First of all you need to download a minimal or univeral boot cd from the gentoo homepage, how to do this is documented in the Gentoo-Installation Manual.
Burn the livecd you've just downloaded, and boot into it. You now need to partition the harddrive in an apropriate way.
My harddrive has the following configuration:
| Code: harddrive configuration |
/dev/hda: hda1 = 32MB - Boot partition hda2 = 30GB - Windows partition hda3 = 2GB - Swap partition hda4 = 48GB - Root partition |
It's recommended that you have a boot of 32MB first on the drive, and then (direcly after it) the windows partition. You can however yourself determine the needed size of the partitions.
Next up is to actually partition your harddrive, use fdisk for this:
# fdisk /dev/hdx
Where hdx is your primary harddrive (i.e hda)
[edit] Installing Windows
If you want windows and linux, you first need to install windows. Now is a great time to do that! You can't however use the recovery cd's you got from acer, becase they will restore the computer to the stage it was when you got it. So... we need to have an independent Windows XP install cd.
You need to:
| Code: windows installation |
reboot your computer boot into the windows install cd format the partition you created specifically for windows install windows on it |
[edit] Gentoo Installation
To install gentoo you simply just follow the installation guide. Primarily you'll use the amd64 install guide, but a very inportant part is missing in the guide:
At the end of the chapter 'Installing the Gentoo Base System' you need to install the base system, do this by issuing the following command:
# emerge -uDN system
At the end of the installation, just before you exit your chroot'ed enviroment execute this:
# emerge net-tools
If you don't do this you'll not be able to connect to the internet after the reboot!
There are some things worth considering during the installation though:
Only use ext3 as your filesystem on your ROOT partition
Use the genkernel package during the installation, this will ease in the future
ReiserFS has been known to cause problems with the amd64 arch.
[edit] Some configuration files
This is how my make.conf look like:
| File: /etc/make.conf |
CFLAGS="-march=k8 -pipe -O2 -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j2"
USE= "X a52 aalib acpi alsa avi cdparanoia cdr clamav cpudetection
divx4linux
dvd dvdr dvdread flac gnome gphoto2 gtk gtk2 ieee1394 -ipv6
java jpeg -kde -qt mpeg oggvorbis opengl pcmcia scanner
samba vorbis wifi win32codecs xine xmms xvid"
|
If You would prefer to use KDE and not GNOME, then switch "gnome gtk gtk2" with "-gnome -gtk -gtk2" and "-kde -qt" to "kde qt".
| File: /boot/grub/grub.conf |
default 0 timeout 10 splashimage=(hd0,0)/grub/splash.xpm.gz title = Gentoo Linux root (hd0,0) kernel /kernel-genkernel-x86_64-2.6.12-gentoo-r10 init=/linuxrc ramdisk=8192 real_root=/dev/hda3 udev noapictimer ec_burst=1 initrd /initramfs-genkernel-x86_64-2.6.12-gentoo-r10 title = Windows XP rootnoverify (hd0,1) makeactive chainloader +1 |
You might have noticed that your clock goes twice the speed. The noapictimer option fixes that problem! The ec_burst=1 option is to let you see the battery, please see 'Battery and Thermal' chapter below.
[edit] Kernel
It's recommended that you use the latest kernel.
[edit] Kernel Configuration
Needless to say you can compile a whole lot of unnessesary things in your kernel, to help you in this I give you my configuration file. All you need to do is to copy this into a file called kernel.config. Actually you can call it whatever you want, but we have to decide for something :).
The configuration has been split into a subpage to save space. Go there to get it.
save the file and exit the editor. Make sure the file is in the root of our file-tree by:
# cp kernel.config /
Now you just fire up genkernel again:
# genkernel --menuconfig all
And Load the configuration file by selecting:
"Load an Alternate Configuration File"
and then enter:
/kernel.config
Your kernel should now be exactly like mine, this will a least give you a good start. You can of course change whatever you want, however I cannot garuantee it will work.
[edit] GUI
First of all you need to install xorg-x11 since this package is the base for all other windows managers.
[edit] X.Org
[edit] Installing xorg-x11
If you wish to use open source radeon driver instead of the proprietary ati-drivers, add the following to make.conf:
| File: make.conf |
# This will enable X.org radeon drivers VIDEO_CARDS="radeon" |
execute following commands as root:
# emerge xorg-x11
(NOTE: you can check wich packages that will be installed by adding the flag --pretend --verbose, the verbose flag tells you wich USE flags that the package will be compiled with and also show the size of the download.)
[edit] Installing touchpad drivers
You need to make a little modification to be able to install these drivers. Why?, because there marked unstable! You need to create a file called package.keywords. This file tells portage that some packages can be installed even if they are marked unstable:
# cd /etc/portage # nano -w package.keywords
| File: package.keywords |
# This will enable the synaptics package: x11-drivers/synaptics ~amd64 # The next files are for the ati-drivers x11-drivers/ati-drivers ~amd64 app-admin/eselect-opengl ~amd64 app-admin/eselect ~amd64 |
(NOTE: We add the ati-drivers lines now because we need it later in the installation)
Now all we have to do is to install the synaptics package:
# emerge synaptics
[edit] Installing ati-drivers
You may now install the ati-drivers package, by installing this you'll enable better hardware accelerated 3D graphics.
# emerge ati-drivers
Now that you've installed it, you need to start the driver and set xorg-x11 (the windows manager) to use them:
| Code: start the ati-drivers |
## Start the driver modprobe fglrx ## Make sure the driver start automatic next time you restart the computer echo "fglrx" >> /etc/modules.autoload.d/kernel-2.6 ## Tell xorg-x11 to use the new driver eselect opengl set ati |
[edit] Fixing the xorg.conf
Next up is to configure xorg.conf. Create a file called xorg.conf and copy the following code into it.
| File: xorg.conf |
Section "ServerLayout"
Identifier "X.org Configured"
Screen 0 "Screen0" 0 0
InputDevice "Synaptics" "CorePointer"
InputDevice "Mouse" "SendCoreEvents"
InputDevice "Keyboard0" "CoreKeyboard"
Option "OffTime" "3" # 3 indicates number of min until monitor-off
EndSection
Section "ServerFlags"
Option "AllowMouseOpenFail"
EndSection
Section "dri"
# Access to OpenGL ICD is allowed for all users:
# Mode 0666
# Access to OpenGL ICD is restricted to a specific user group:
Group 27 # video
Mode 0660
EndSection
Section "Files"
RgbPath "/usr/lib64/X11/rgb"
ModulePath "/usr/lib64/modules"
FontPath "/usr/share/fonts/misc/"
FontPath "/usr/share/fonts/TTF/"
FontPath "/usr/share/fonts/Type1/"
FontPath "/usr/share/fonts/CID/"
FontPath "/usr/share/fonts/75dpi/"
FontPath "/usr/share/fonts/100dpi/"
EndSection
Section "Module"
Load "glx"
# This loads the miscellaneous extensions module, and disables
# initialisation of the XFree86-DGA extension within that module.
SubSection "extmod"
Option "omit xfree86-dga" # don't initialise the DGA extension
EndSubSection
Load "dbe"
Load "dri"
Load "xtrap"
Load "record"
Load "freetype"
Load "type1"
EndSection
Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
Option "XkbModel" "aspire5020"
Option "XkbLayout" "se"
#Option "XkbVariant" "nodeadkeys"
EndSection
Section "InputDevice"
Identifier "Synaptics"
Driver "synaptics"
Option "Device" "/dev/psaux"
Option "Protocol" "auto-dev"
Option "LeftEdge" "1700"
Option "RightEdge" "5300"
Option "TopEdge" "1700"
Option "BottomEdge" "4200"
Option "FingerLow" "25"
Option "FingerHigh" "30"
Option "MaxTapTime" "180"
Option "MaxTapMove" "220"
Option "VertScrollDelta" "100"
Option "MinSpeed" "0.09"
Option "MaxSpeed" "0.18"
Option "AccelFactor" "0.0015"
Option "SHMConfig" "on"
# # Option "Repeater" "/dev/ps2mouse"
EndSection
Section "InputDevice"
Identifier "Mouse"
Driver "mouse"
Option "Device" "/dev/input/mice"
Option "Protocol" "imps/2"
Option "ZAxisMapping" "4 5"
Option "Buttons" "5"
EndSection
Section "Monitor"
Identifier "Monitor0"
VendorName "LPL"
ModelName "0"
Option "DPMS"
EndSection
# === ATI device section ===
Section "Device"
Identifier "Card0"
Driver "fglrx"
VendorName "ATI Technologies Inc"
BoardName "ATI Mobility X600"
# ### generic DRI settings ###
# === disable PnP Monitor ===
#Option "NoDDC"
# === disable/enable XAA/DRI ===
Option "no_accel" "no"
Option "no_dri" "no"
# === misc DRI settings ===
Option "mtrr" "off" # disable DRI mtrr mapper, driver has its own code for mtrr
# ### FireGL DDX driver module specific settings ###
# === Screen Management ===
Option "DesktopSetup" "0x00000100"
Option "MonitorLayout" "NONE,LVDS"
Option "IgnoreEDID" "off"
Option "HSync2" "unspecified"
Option "VRefresh2" "unspecified"
Option "ScreenOverlap" "0"
# === TV-out Management ===
Option "NoTV" "yes"
Option "TVStandard" "NTSC-M"
Option "TVHSizeAdj" "0"
Option "TVVSizeAdj" "0"
Option "TVHPosAdj" "0"
Option "TVVPosAdj" "0"
Option "TVHStartAdj" "0"
Option "TVColorAdj" "0"
Option "GammaCorrectionI" "0x00000000"
Option "GammaCorrectionII" "0x00000000"
# === OpenGL specific profiles/settings ===
Option "Capabilities" "0x00000000"
# === Video Overlay for the Xv extension ===
Option "VideoOverlay" "on"
# === OpenGL Overlay ===
# Note: When OpenGL Overlay is enabled, Video Overlay
# will be disabled automatically
Option "OpenGLOverlay" "off"
# === Center Mode (Laptops only) ===
Option "CenterMode" "off"
# === Pseudo Color Visuals (8-bit visuals) ===
Option "PseudoColorVisuals" "off"
# === QBS Management ===
Option "Stereo" "off"
Option "StereoSyncEnable" "1"
# === FSAA Management ===
Option "FSAAEnable" "no"
Option "FSAAScale" "1"
Option "FSAADisableGamma" "no"
Option "FSAACustomizeMSPos" "no"
Option "FSAAMSPosX0" "0.000000"
Option "FSAAMSPosY0" "0.000000"
Option "FSAAMSPosX1" "0.000000"
Option "FSAAMSPosY1" "0.000000"
Option "FSAAMSPosX2" "0.000000"
Option "FSAAMSPosY2" "0.000000"
Option "FSAAMSPosX3" "0.000000"
Option "FSAAMSPosY3" "0.000000"
Option "FSAAMSPosX4" "0.000000"
Option "FSAAMSPosY4" "0.000000"
Option "FSAAMSPosX5" "0.000000"
Option "FSAAMSPosY5" "0.000000"
# === Misc Options ===
Option "UseFastTLS" "0"
Option "BlockSignalsOnLock" "on"
Option "UseInternalAGPGART" "no"
Option "ForceGenericCPU" "no"
Option "DynamicClocks" "on" # Use ATI Powerplay features
BusID "PCI:1:0:0" # vendor=1002, device=3150
Screen 0
EndSection
#Section "Device"
### Available Driver options are:-
### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
### [arg]: arg optional
#Option "NoAccel" # [<bool>]
#Option "SWcursor" # [<bool>]
#Option "Dac6Bit" # [<bool>]
#Option "Dac8Bit" # [<bool>]
#Option "BusType" # [<str>]
#Option "CPPIOMode" # [<bool>]
#Option "CPusecTimeout" # <i>
#Option "AGPMode" # <i>
#Option "AGPFastWrite" # [<bool>]
#Option "AGPSize" # <i>
#Option "GARTSize" # <i>
#Option "RingSize" # <i>
#Option "BufferSize" # <i>
#Option "EnableDepthMoves" # [<bool>]
#Option "EnablePageFlip" # [<bool>]
#Option "NoBackBuffer" # [<bool>]
#Option "DRIReinit" # [<bool>]
#Option "PanelOff" # [<bool>]
#Option "DDCMode" # [<bool>]
#Option "MonitorLayout" # [<str>]
#Option "IgnoreEDID" # [<bool>]
#Option "UseFBDev" # [<bool>]
#Option "VideoKey" # <i>
#Option "MergedFB" # [<bool>]
#Option "CRT2HSync" # [<str>]
#Option "CRT2VRefresh" # [<str>]
#Option "CRT2Position" # [<str>]
#Option "MetaModes" # [<str>]
#Option "MergedDPI" # [<str>]
#Option "NoMergedXinerama" # [<bool>]
#Option "MergedXineramaCRT2IsScreen0" # [<bool>]
#Option "DisplayPriority" # [<str>]
#Option "PanelSize" # [<str>]
#Option "ForceMinDotClock" # <freq>
#Option "RenderAccel" # [<bool>]
#Option "SubPixelOrder" # [<str>]
#Option "ShowCache" # [<bool>]
#Option "DynamicClocks" # [<bool>]
#Option "VGAAccess" # [<bool>]
#Option "LVDSProbePLL" # [<bool>]
#Option "ReverseDDC" # [<bool>]
#Option "BIOSHotkeys" # [<bool>]
# Identifier "Card0"
# Driver "ati"
# VendorName "ATI Technologies Inc"
# BoardName "ATI Mobility X600"
# BusID "PCI:1:0:0"
#EndSection
Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 16
# Modes "1280x800"
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 24
# Modes "1280x800"
EndSubSection
EndSection |
Save the file and exit the editor. Copy the file to it's real place by executing:
# cp xorg.conf /etc/X11/xorg.conf
[edit] Starting xorg-x11
Now try to start xorg by executing:
# startx
If all goes well you should have a couple of terminals and a watch on your screen, return to the console by killing the windows manager (CTRL-ALT-BACKSPACE).
If you run into problems then consult forums and the gentoo documentation, they have a thurough guide about xorg and ati drivers.
[edit] Installing a WM
If all went well in the previous chapter then perhaps you want to install some more 'nice' looking WM. Perhaps Gnome? There is also KDE, Xfce and a lot more.
[edit] Gnome
If you do want Gnome then here is the guide:
First of all I just want to say that compile about 200 MB of data takes a VERY LONG TIME. I usually issue the emerge command before I go to bed and then sleep for 12 h. And when I wake up then it's usually finished ;-)
I recomend using the use flags I specified in the gentoo-installation chapter of this guide, if you've already set them up then continiue, otherwise check the installation guide.
Install gnome:
# emerge gnome
Now sleep cause this will take time!
Perhaps you want gnome to start at startup?
then edit:
| File: /etc/rc.conf |
DISPLAYMANAGER="gdm" |
and just add xdm to the default runlevel by:
# rc-update add xdm default
There are some other nice packages that will improve the niceness of gnome:
# gdm-themes # nautilus-themes # gnome-themes-extras
Description: gdm-themes is a package containing some nice loginscreens and nautilus-themes and gnome-themes-extras contains additional themes for gnome.
[edit] Sound
To get your sound working you first of all need to enable some things in your kernel configuration.
| Code: Kernel Sound Options |
-- Make sure you enable these options:
Device Drivers --> Sound
[*] Sound Card Support
Device Drivers --> Sound --> Advanced Linux Sound Architecture
[*] Sequencer Support
[*] OSS Mixer API
[*] OSS PCM (digital audio) API
[*] OSS Sequencer API
[*] RTC Timer Support
Device Drivers --> Sound --> Advanced Linux Sound Architecture --> PCI Devices
[*] ATI IXP AC97 Controller
[M] ATI IXP Modem
|
After this you only need to emerge alsa-utils, do this by.
# emerge alsa-utils
Another good idea is to add the alsa flag in your USE variable in /etc/make.conf.
[edit] Keyboard
On some models the keybord don't work when you boot into your linux install enviroment. There an easy solution to this problem.
At boot time;
# enter the BIOS settings menu and change 'Legacy USB Support' to disable
And your all set. The keyboard will now work. (Another solution is to press and hold <ALT-F1> during boot, however the above solution is a more static one) On some laptops you can press "PrtSc SysRq"(on the right of F12) button to enable the keyboard!
To enable keyboard you can press SHIFT+F1
[edit] DVD read/write
If you have used all the use-flags I specified in the gentoo-installation chapter then you should be able to use your dvd burner. If you've skipped that chapter then have a look at them and then edit your make.conf to at least contain the following use flags:
Editing The USE Flags
| File: /etc/make.conf |
# Add the following USE flags to your existing flags (do not overwrite): USE="cdr dvdr" |
And execute:
# emerge -N world
This will recompile all packages affected by the recent change in use-flags.
[edit] Choosing a Burning Software
Now we need a cdr program to do the burning for us:
There several good choices, for example xcdroast, nero and k3b. If you have a nero licence to windows you can use the same licence for linux. If you don't have a licence then go for xcdroast or k3b:
# emerge xcdroast
or
# emerge nero
or
# emerge k3b
[edit] Network
[edit] WiFi
1) Since 2.6.17 there is broadcom support in kernel and the drivers work for this card however you can't control transmit power and its set to 19 db instead of 24 db so the range is minimal, but its a work in progress.
You either have to use ndiswrapper or the driver included in the kernel.
[edit] Installation of wireless-tools
# emerge wireless-tools
[edit] Installation of ndiswrapper
# emerge ndiswrapper
If somehow the installation fails, go to ndiswrapper.sourceforge.net and download their latest stable source. (Assuming you downloaded it to you home directory); issue the following commands:
| Code: ndiswrapper manual install |
# cd ~ # tar -xzf <your downloaded ndiswrapper source> # mv <your downloaded UNPACKED ndiswrapper source> /usr/src/ # cd /usr/src/ # cd <to the directory you just copied here> # make && make install |
If everythine went ok then you have ndiswrapper installed!
(NOTE: If you who reads this don't have gentoo as your dist, then the preferred choise of action is to install ndiswrapper manually as described above, to do that you need to have the kernel source installed. It can usually be istalled though the package manager.)
[edit] Configure the kernel for bcm43xx support
Note: You don't need this if you are using ndiswrapper.
Device Drivers --->
Network device support --->
Wireless LAN (non-hamradio) --->
[*] Wireless LAN drivers (non-hamradio) & Wireless Extensions
<M> Broadcom BCM43xx wireless support
As a bonus, you will be able to use the bcm43xx hardware RNG on 2.6.18-rc1+ kernels.
[edit] Install acer_acpi
Acer_acpi is a program needed to enabling your wireless hardware. In windows you just push the button on the front to do that, in linux we need a little program to this for us. However this program is on the develop stadium and there's no garuantee it will work (but there's no alternative, so lets get started shall we).
- From portage
28-oct-2006 portage have acer_acpi app-laptop/acer_acpi-0.3 ~amd64
| Code: emerge acer_acpi |
# echo app-laptop/acer_acpi >> /etc/portage/package.keywords # emerge app-laptop/acer_acpi |
- From source
First of all you need to get the source file at Acer_acpi Homepage after that we almost issue the same commands as at the ndiswrapper manual installation.
Download the file to your home directory and issue these commands:
| Code: acer_acpi install |
# cd ~ # tar -xzf <your downloaded acer_acpi source> # mv <your downloaded UNPACKED acer_acpi source> /usr/src/ # cd /usr/src/ # cd <to the directory you just copied here> # make && make install |
The reason why we copy the files to /usr/src/ is that i've experienced some compile problems otherwise.
[edit] Downloading the windows drivers
You need to download the windows drivers from Acer's Homepage. Don't forget that you'll need the 64bit ones. Using 32bit drivers will only result in a non functional wlan.
[edit] Finalizing the wifi install for ndiswrapper
Now the only thing we need to do is install the windows drivers in ndiswrapper, make a module out of it, load the acer_acpi module, and enable our hardware. After that we're all set.
Extract the windows drivers you've just downloaded and:
| Code: prepare the windows drivers |
# mkdir /windowsdrivers # cp <your path to the downloaded and extracted drivers>/* /windowsdrivers/ |
| Code: install windows drivers in ndiswrapper |
# ndiswrapper -i /windowsdrivers/bcmwl5.inf # ndiswrapper -m |
You can check that your drivers is loaded with the following command, don't worry if there is a 'Invalid Driver!' after it. As long as it shows up we're ok.
# ndiswrapper -l
We have no installed the drivers in ndiswrapper and prepared a module, we need to modprobe them and make sure they start every time we start the PC.
| Code: modprobe modules and edit /etc/modules.autoload.d/kernel-2.6 |
# modprobe ndiswrapper # modprobe acer_acpi # modprobe acer_acpi # echo ndiswrapper >> /etc/modules.autoload.d/kernel-2.6 # echo acer_acpi >> /etc/modules.autoload.d/kernel-2.6 # echo acer_acpi >> /etc/modules.autoload.d/kernel-2.6 |
YES! You really need to issue the modprobe acer_acpi TWICE, since this is a qwerqy module. Just do it to be on the safe side.
I use acer_acpi 0.3 and i never need to load twice ... check new version ;) // ViruS
Finally we need to enable the hardware, you have to do this EVERY time you start the PC.
| Code: enable wlan hardware |
# echo -n "enabled: 1" > /proc/acpi/acer/wireless |
And copy the net.eth0 runscript to net.wlan0 so we can start the wlan.
# cp /etc/init.d/net.eth0 /etc/init.d/net.wlan0
Start your wlan by running.
# /etc/init.d/net.wlan0 start
If you've done everything right, you should now be able to use your wlan. If it don't work you should consult the gentoo forums and/or other forums.
[edit] Finalizing the wifi install for bcm43xx kernel module
You need to extract the firmware from the windows drivers you just downloaded. First, emerge the firmare extraction tool:
# emerge bcm43xx-fwcutter
The bcm43xx will look for the firmware in /lib/firmware. If that directory does not exist, create it or make a symlink to /usr/lib/hotplug/firmware. Extract the windows drivers somewhere then run
# bcm43xx-fwcutter -w /lib/firmware <your path to the downloaded and extracted drivers>/bcmwl5.sys
Make sure that the acer_acpi module is loaded on boot
# echo acer_acpi >> /etc/modules.autoload.d/kernel-2.6
Now it's time to test your setup. Enable the wireless hardware and bring up the interface (assuming that the wireless card has been assigned eth1):
# echo -n "enabled: 1" > /proc/acpi/acer/wireless # ifconfig eth1 up
Depending on the Windows driver version, ifconfig might fail and the bcm43xx might log complaints about a firmware file-format error. In that case, use a newer driver (download locations can be found in /usr/share/doc/bcm43xx-fwcutter-004/README.gz) or try to run the command several times.
2)===========Change the ugly Broadcomm=============
You can easily change the pre-installed Broadcomm card with an Atheros based one. Because of an id check in the bios there is a possibility (happened to me) that not all cards will work. Tested cards (checked 5 different cards) that work are the wistron CM9 a/b/g. Work very well so far, with the mad-wifi driver. This way you have a card with a better radio than Broadcomm and /a/b/g modes and the support of the mad-wifi driver.
[edit] IRDA
1. Getting started:
- emerge irda-utils
2. Kernel configuration:
Under "Networking support" select "IrDa (infrared) subsystem support" as a module as go further to IrDa configuration, go to "Infrared-port device drivers" and select "NSC PC87108/PC87338" as a module.
3. Modules configuration:
add those lines:
alias irda0 nsc-ircc
options nsc-ircc dongle_id=0x08
to /etc/modules.d/aliases and run modules-update.
4. To start irda port run:
- irattach irda0 -s
5. To transfer files to/from pc use kbeam or other software (tested beam and Samsung E350E mobile).
[edit] Modem
I find only 1 correct way to install the modem on this laptop. But this way is cost some money (about $15). Internal modem is not SmartLink, this is Connexant HSF modem and we need to have the HSF chipset modem drivers. http://www.linuxant.com make this drivers to us for money, but we steel can use this drivers on slow connection speed (up to 14400 kb/s).
How to install. First chek the kernel.
| Code: Kernel Sound Options |
-- Make sure you enable ATI IXP Modem as module:
Device Drivers --> Sound --> Advanced Linux Sound Architecture --> PCI Devices
[*] ATI IXP AC97 Controller
[M] ATI IXP Modem
|
Next you must emerge the hsfmodem.
# emerge hsfmodem
This will install hsfmodem driver on your laptop. During installation, program ask you for E-mail and give you some code, wish need on http://www.linuxant.com to generate your license key. This key installation program ask in the end of installation process. If you don't want pay for this driver and agree for speed limitation? you can simple prees "Enter" key.
[edit] Ethernet
[edit] PCMCIA
[edit] Battery & Thermal
Since kernel 2.6.15 battery monitoring is working even without patching.
[edit] Patch the Kernel
Only if you really want to use an older kernel, everything works in the latest kernels >2.6.15 Download the latest kernel patch here.
Unpack and apply the patch by:
# cd /usr/src/linux # gunzip -c <path to acpi-patch>/acpi-<version>.diff.gz | patch -p1
When this is done, recompile the kernel and enjoy all your new acpi feats.
# genkernel --menuconfig all
[edit] Adding some parameters to grub.conf
After Kernel 2.6.19 there is no need for ec_burst=1 To be able to see your battery you must put some parameters to the kernel, we do this in grub.conf:
| File: /boot/grub/grub.conf |
# Your kernel line should look like this for custom kernels: kernel /boot/vmlinuz root=/dev/hda3 disable_timer_pin_1 ec_burst=1 # The important is to add the ec_burst=1 option! #and like this for genkernel kernels: kernel /kernel-genkernel-x86_64-2.6.17-gentoo-r4 init=/linuxrc ramdisk=8192 real_root=/dev/hda3 udev disable_timer_pin_1 ec_burst=1 |
OBSOLETE:
| File: /boot/grub/grub.conf |
# Your kernel line should look like this: kernel /kernel-genkernel-x86_64-2.6.12-gentoo-r10 init=/linuxrc ramdisk=8192 real_root=/dev/hda3 udev noapictimer ec_burst=1 # The important is to add the ec_burst=1 option! |
Now you're all done. Reboot your computer and your battery should show up under /proc/acpi/battery/.
disable_timer_pin_1 - this is better options to timer , do not use noapictimer if you have kernel 2.6.14+
I tested this on 2.6.15.
//ViruS
[edit] Card reader
The TI PCIxx21 card reader's SDHCI interface is supported by 2.6.17 and newer kernels. However, only SD and MMC cards will work at this time. Suggestion how to get the card reader to work from here.
| Code: enable SDHCI in the kernel |
Device Drivers --->
MMC/SD Card support --->
<*> MMC support
<*> MMC block device driver
<M> Secure Digital Host Controller Interface support
|
Make sure the sdhci module is not loaded then run:
# setpci -s 04:06.3 4c.b=02 # FlashMedia SD disable # setpci -s 04:06.4 04.b=06 # SDHCI Mem+ BusMaster+ # setpci -s 04:06.4 88.b=01 # SDHCI DMA enable # modprobe sdhci
by me was it 06:06.3 and 06:06.4, you can see if it is 06 or 04 by "lspci", for 06 it look like this:
06:06.3 Mass storage controller: Texas Instruments PCIxx21 Integrated FlashMedia Controller
06:06.4 Generic system peripheral [0805]: Texas Instruments PCI6411, PCI6421, PCI6611, PCI6621, PCI7411, PCI7421, PCI7611, PCI7621 Secure Digital (SD) Controller
The card can then be accessed via the /dev/mmcblk0 and /dev/mmcblk0p1 block devices.
[edit] Optimizing performance and battery-saver
[edit] Stuff that works
[edit] Stuff that doesn't work
Currently (as of 18th May 2006), the 6-in-1 card reader does not read MemoryStick(Pro)/xD/SmartMedia cards in linux (Texas Instruments PCIxx21/x515 Cardbus Controller).
Suspend also doesnt work
** I have 2.6.18 kernel and ati-drivers-8.29.6 and suspend to ram works like a charm. I use KDE and klaptopdaemon to suspend to ram when I'm closing the lid. added: suspend to ram stopped working with ati-drivers 8.32.5 so for now the solution is: back to 8.30.3 **
although there seems hope for both
http://slackwiki.org/Acer_Aspire_502x_WLMi#Special_Keys_with_X_and_kde
[edit] Links
I based on:
Acer Ferrari line is very similar to 500x/502x:
- This guide is listed at the TuxMobil Linux laptop and notebook installation survey.
