View Single Post
Old October 21st, 2007   #1
mare_
First Cup of Ubuntu
 
Join Date: Mar 2007
Beans: 1
[howto] Gutsy on Acer Aspire 5520G

Hi guys!

This is my first attempt to write a howto (as well as my first attempt to install linux on a laptop). Anyway, as I found almost no information on how to solve the problems with this laptop on google, I thought I'd share what I had managed to do - maybe somebody will find it useful

The laptop I have is Acer Aspire 5520G - it has Turion 64 x2 CPU, nvidia 8400M G, 2GB RAM, 160GB hard disk, wireless card, built-in card reader, webcam ... The main problems were:
- no sound,
- no wireless,
- the webcam didn't work,
- hibernation didn't work, i couldn't set lcd brightness...

Graphics work nicely once you enable restricted drivers, the resolution is correct and desktop effects work. The card reader also seems to work.

Ok, so how to solve those problems (btw, although this is a 64 bit machine, I have the 32 bit version of ubuntu installed, so this instructions are (probably) for 32 bit ubuntu only):

ACPI
Install acer_acpi module according to these instructions.. You should now be able to set lcd brightness, put the laptop to sleep...

WIRELESS
Basically, you have to use ndiswrappwer with windows drivers. Follow the instructions in this topic HOWTO: Atheros AR5007EG on Feisty Fawn (with ndiswrapper) (don't worry if the sticker underneath your laptop says atheros arbxb63 - it is the same card). And i'm not sure, but I think you need to have acer_acpi module installed for this to work.

SOUND
You have to compile and install the latest alsa - 1.0.15.
  1. First of all, stop alsa-utils and alsasound
    Code:
    sudo /etc/init.d/alsa-utils stop
    sudo /etc/init.d/alsasound stop
  2. Download and extract alsa-driver, alsa-lib and alsa-utils from http://www.alsa-project.org
  3. Compile and install them according to INSTALL file in each folder (basically, run ./configure, make and sudo make install in each folder)
  4. run
    Code:
    alsaconf
  5. Copy /lib/modules/(kernel version)/kernel/sound/pci/hda/snd-hda-intel.ko to /lib/modules/(kernel version)/ubuntu/media/snd-hda-intel/snd-hda-intel.ko.
    Copy following files from modules sub folder of your alsa installation folder to /lib/modules/(kernel version)/kernel/sound:
    Code:
    snd-hda-intel.ko
    snd-hwdep.ko
    snd-mixer-oss.ko
    snd-page-alloc.ko
    snd-pcm-oss.ko
    snd-rtctimer.ko
    snd-seq-device.ko
    snd-seq-midi-event.ko
    snd-seq-midi.ko
    snd-seq-oss.ko
    snd-seq.ko
    snd-timer.ko
    snd.ko
    Now run
    Code:
    depmod -a
  6. Start alsasound and alsa-utils
    Code:
    sudo /etc/init.d/alsa-utils start
    sudo /etc/init.d/alsasound start
  7. Run
    Code:
    alsamixer
    , unmute channels and set the volume
  8. It should work

WEBCAM
You need to compile the latest uvcvideo driver.
  1. Remove uvcvideo module; run
    Code:
    sudo rmmod uvcvideo
  2. Install subversion (you need this to checkout the uvcvideo source code from their servers)
    Code:
    sudo apt-get install subversion
  3. Checkout (="download") the source:
    Code:
     svn checkout svn://svn.berlios.de/linux-uvc/linux-uvc/trunk linux-uvc
  4. Go to linux-uvc folder and edit the Makefile file; change
    Code:
    INSTALL_MOD_DIR	:= usb/medi
    to
    Code:
    INSTALL_MOD_DIR	:= ubuntu/media/usbvideo
    .
  5. Run
    Code:
    make
    and
    Code:
    sudo make install
  6. Run
    Code:
    sudo modprobe uvcvideo
    And it should work aMsn gave me an error when I tried to configure the web cam, but I clicked Next it worked anyway

Ok, I hope I haven't forgotten anything... If I have, or if you have any problems (or if my instructions are incomprehensible ) or if I've written/done something utterly stupid, please do tell
mare_ is offline