![]() |
ubuntu.com - launchpad.net - ubuntu help
|
|
|||||||
Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.
|
|
Hardware & Laptops Problems with hardware & laptops not being detected or supported during or after install. |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Just Give Me the Beans!
![]() Join Date: Nov 2005
Beans: 60
Ubuntu 9.04 Jaunty Jackalope
|
Acer 4520 Complete Guide (or Almost) (7.10)
This guide is intended to users from an Acer 4520, some variants of this model may work with the tips here, some may not.
I am writing this post from the installation until the setup of all hardware, or almost all hardware, since there are some things that we were not able to setup yet. The intention is to keep upgrading the content of this post with tips from community. The distribution used is the Ubuntu 7.10 32 Bits, and only this one, the 7.04, or 8.04, or any other may be different and the tips here may work or not. I decided to install the 32 Bits version, 'cause I have to do so many workarounds in this version, that I can't have time enough to do the same in the 64 bits, plus another issues that the 64 bits version has. So I keep the 32 bits, although the tips here and many steps can be followed by 64 bits users. Note: 64 Bits user look at this post from "afterstep13" http://ubuntuforums.org/showpost.php...39&postcount=5 I assume you have wired internet available, because to set up the wireless Internet we need it. I also believe you have a little bit of knowledge in Linux, not all the things are very well explained, my fault. BTW. As it is the first guide, I accept suggestions, and don't worry about my English, it's not my first language. My Hardware Specs: Acer 4520 - 5726 - AMD Turion 64 X2 Mobile TL-58 (1.9 Ghz, 2 x 512 L2 Cache) Chipset Nvidia Nforce 610M VGA - Nvidia GeForce 7000M - 14" WXGA+ WideScreen 1280x800 2GB DDR2 667 - 160 GB HDD - DVD-RW Atheros AR5007EG 802.11b/g WLAN Card Reader- Express Card Slot S-Video e Monitor OUT 4 USB 2.0 - 1 Mini-Firewire (4 Pinos) Code:
$lspci 00:00.0 RAM memory: nVidia Corporation Unknown device 0547 (rev a2) 00:01.0 ISA bridge: nVidia Corporation Unknown device 0548 (rev a2) 00:01.1 SMBus: nVidia Corporation Unknown device 0542 (rev a2) 00:01.2 RAM memory: nVidia Corporation Unknown device 0541 (rev a2) 00:01.3 Co-processor: nVidia Corporation Unknown device 0543 (rev a2) 00:02.0 USB Controller: nVidia Corporation Unknown device 055e (rev a2) 00:02.1 USB Controller: nVidia Corporation Unknown device 055f (rev a2) 00:04.0 USB Controller: nVidia Corporation Unknown device 055e (rev a2) 00:04.1 USB Controller: nVidia Corporation Unknown device 055f (rev a2) 00:06.0 IDE interface: nVidia Corporation Unknown device 0560 (rev a1) 00:07.0 Audio device: nVidia Corporation MCP67 High Definition Audio (rev a1) 00:08.0 PCI bridge: nVidia Corporation Unknown device 0561 (rev a2) 00:09.0 SATA controller: nVidia Corporation Unknown device 0555 (rev a2) 00:0a.0 Ethernet controller: nVidia Corporation Unknown device 054c (rev a2) 00:0c.0 PCI bridge: nVidia Corporation Unknown device 0563 (rev a2) 00:0e.0 PCI bridge: nVidia Corporation Unknown device 0563 (rev a2) 00:12.0 VGA compatible controller: nVidia Corporation Unknown device 0533 (rev a2) 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:09.0 FireWire (IEEE 1394): Ricoh Co Ltd R5C832 IEEE 1394 Controller (rev 05) 01:09.1 Generic system peripheral [0805]: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter (rev 22) 01:09.2 System peripheral: Ricoh Co Ltd R5C843 MMC Host Controller (rev 12) 01:09.3 System peripheral: Ricoh Co Ltd R5C592 Memory Stick Bus Host Adapter (rev 12) 01:09.4 System peripheral: Ricoh Co Ltd xD-Picture Card Controller (rev 12) 07:00.0 Ethernet controller: Atheros Communications, Inc. AR5006EG 802.11 b/g Wireless PCI Express Adapter (rev 01) 1) The BIOS Setup configuration - Get to the BIOS, make sure you're using the AHCI mode in "Sata Mode" and put the CDROM as primary boot device. 2) Booting the Live-CD - After choosing the language, if needed, choose "Start Ubuntu in safe graphics mode". And wait until gnome is loaded. 3) Normal Installation - Do a normal installation, the problems will start happening later. Make sure your swap size is as big as your RAM size, otherwise you won't be able to hibernate sometimes. 4) Rebooting - Here comes the problem, the system won't boot, so here are the steps: In GRUB menu select the appropriate line, press "e" to edit the options, select the second line, the one beginning with "kernel" and append the "break=top" to the end, after editing press "enter" and then "b" to boot. After few seconds you'll fall into a shell frame, with "initramfs" written and a blinking cursor. Then type the following: Code:
<initramfs> modprobe sata_nv <initramfs> modprobe ata_generic <initramfs> exit 5) Fix the boot issue First thing is fixing the issue, there were many workarounds about this problem, the plausible solution was found in this thread http://ubuntuforums.org/showpost.php...&postcount=131 (thanks to "afterstep13"): Still in gnome, with a low resolution, don't worry we'll fix the vga problem soon, create a script: Code:
$ sudo gedit /etc/initramfs-tools/scripts/init-premount/fix Code:
#!/bin/sh
PREREQ=""
prereqs()
{
echo "$PREREQ"
}
case $1 in
# get pre-requisites
prereqs)
prereqs
exit 0
;;
esac
sleep 10
Code:
$ sudo chmod +x /etc/initramfs-tools/scripts/init-premount/fix Code:
$ sudo update-initramfs -u 6) Wired LAN Works out of the box*. Incrementing eth# problem, look at this tip in this same thread http://ubuntuforums.org/showpost.php...39&postcount=5 7) Updates Active the repositories needed, and update all the software, before tweaking the system. Updates may break some tweaks. This is a very important step. After updating, reboot. 8 ) Sound - High Definition Audio You might be asking yourselves, why installing sound before video. I don't know why, but installing sound after the video may break nvida installation. ???? . So let's do the sound before the video. The solution is simple, downloading latest alsa drivers and compiling them. "Question: I've seen an alternative solution with ubuntu's "linux-backport-modules", isn't easier?". Actually, that solution is pretty quicker than this one, but with that one, the microphone was not working with me, so I compiled it myself. This tip I got partially from https://help.ubuntu.com/community/HdaIntelSoundHowto. And also from another thread here in forums http://ubuntuforums.org/showthread.php?t=577699 I am passing all the process here, but at the end I have made some modifications in the script from this post http://ubuntuforums.org/showpost.php...2&postcount=13, and you may want to download to automate the process. Then you should run these steps. Code:
sudo sh alsa_1.sh reboot sudo sh alsa_2.sh reboot Otherwise you may want to do it manually. With the following steps. Install dependencies: Code:
apt-get install build-essential libncurses5-dev gettext linux-headers-`uname -r` Code:
wget ftp://ftp.alsa-project.org/pub/driver/alsa-driver-1.0.16.tar.bz2 wget ftp://ftp.alsa-project.org/pub/lib/alsa-lib-1.0.16.tar.bz2 wget ftp://ftp.alsa-project.org/pub/utils/alsa-utils-1.0.16.tar.bz2 Code:
tar -xjf alsa-driver*.tar.bz2 tar -xjf alsa-lib*.tar.bz2 tar -xjf alsa-utils*.tar.bz2 rm alsa*.tar.bz2 Code:
sudo mkdir -p /usr/src/alsa sudo mv alsa-* /usr/src/alsa Code:
cd /usr/src/alsa/alsa-driver* sudo ./configure --with-cards=hda-intel sudo make sudo make install Code:
cd /usr/src/alsa/alsa-lib* sudo ./configure sudo make sudo make install Code:
cd /usr/src/alsa/alsa-utils* sudo ./configure sudo make sudo make install Code:
sudo cp -v /lib/modules/2.6.22-*/kernel/sound/pci/hda/snd-hda-intel.ko /lib/modules/2.6.22-*/ubuntu/media/snd-hda-intel/snd-hda-intel.ko sudo cp -v /usr/src/alsa/alsa-driver*/modules/* /lib/modules/2.6.22-*/kernel/sound/ sudo depmod -a 9) Wireless LAN - Atheros AR5007EG Tried already the madwifi drivers, and ndiswrapper. After tested both of them, the one which best worked with me was the ndiswrapper compiled from source. a) Download and compile ndiswrapper 1.52 Code:
wget http://superb-west.dl.sourceforge.net/sourceforge/ndiswrapper/ndiswrapper-1.52.tar.gz tar -zxvf ndiswrapper-1.5* sudo mkdir -p /usr/src/ndiswrapper sudo mv ndiswrapper-1.52/ /usr/src/ndiswrapper/ cd /usr/src/ndiswrapper/ndiswrapper-1.52/ sudo make uninstall sudo make sudo make install Code:
sudo gedit /etc/modprobe.d/blacklist Code:
blacklist ath_pci Extract and install it: Code:
unzip xp32-6.0.3.85.zip sudo ndiswrapper -i net5416.inf sudo ndiswrapper -l sudo ndiswrapper -m sudo ndiswrapper -ma sudo loadndisdriver sudo modprobe ndiswrapper d) Fixing the LED Problem Wireless in Linux, it's never perfect. After comparing some .inf files, and many hit and tries. I've found a solution for the LED that's always on. The solution is quite simple, but it is necessary some attention in which files we should edit. First Find which device is listed in ndiswrapper: Code:
$ndiswrapper -l
net5416 : driver installed
device (168C:001C) present (alternate driver: ath_pci)
Code:
sudo nano /etc/ndiswrapper/net5416/168C\:001C.5.conf Code:
sys_files|ar5416.sys
NdisVersion|0x50001
Environment|1
class_guid|4d36e972-e325-11ce-bfc1-08002be10318
driver_version|,06/05/2007,6.0.3.85
BusType|5
SlotNumber|01
NetCfgInstanceId|{28022A01-1234-5678-ABCDE-123813291A00}
abolt|191
capLinkSp|1
DriverDesc|NDIS Network Adapter
gpioPinFunc1|3
ignore11dBeacon|1
...
Code:
gpioLedCustom|4 Code:
sudo modprobe -r ndiswrapper sudo modprobe ndiswrapper 10) VGA - Nvidia Finally installing the Graphics Card, I let it almost for last, because I don't know why but this driver is very sensitive to system changes, I tried to install at first, but installed the sound, messed nvidia, installed wireless, messed nvidia, so I let it for last. I found a better solution compiling the latest drivers from the Nvidia Website, just because the built-in driver "nvidia-glx-new" doesn't hibernate, no matter what you do. Some may want to install it using envy, your choice, but I read that it doesn't work very well. So I'm gonna do it myself: a) Downloading the latest driver from Nvidia website. The latest IA32 version, not the legacy ones. Save all your job you're doing at the moment (we are going to stop Gdm). Go for a tty1 by pressing "Ctrl+Alt+F1". Login and type: Code:
sudo /etc/init.d/gdm stop Code:
sudo sh NVIDIA-Linux-x86-* b) After restarting you'll still get the low resolution, so edit the xorg.conf and manually change the resolution. Code:
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf_backup sudo gedit /etc/X11/xorg.conf It was: Code:
Modes "800x600" Code:
Modes "1280x800" Code:
Option "NoLogo" "true" The fix is adding the following line to the Device Section also in xorg.conf Code:
Option “AddARGBGLXVisuals” “True” 11) Touchpad It works out of the box, but you can tweak a little bit. a) Backing up and editing xorg.conf: Code:
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf_backup2 sudo gedit /etc/X11/xorg.conf Code:
Section "InputDevice"
Identifier "Synaptics Touchpad"
Driver "synaptics"
Option "SendCoreEvents" "true"
Option "Device" "/dev/psaux"
Option "Protocol" "auto-dev"
Option "HorizEdgeScroll" "0"
Option "SHMConfig" "true"
EndSection
Code:
sudo aptitude install gsynaptics Put the command below in the start session of gnome, under "System > Preferences > Sessions > Add" Code:
syndaemon -i 1 -d Works out of the box. Program to manage Code:
sudo aptitude install cheese Not fully functional. I couldn't test all kind of cards. But Memory Stick doesn't work. I've read SD cards only work. You may want to check this project at BerliOS 14) Hibernate (Suspend to disk) and Standby (Suspend to RAM) Should Work out of the box with latest Nvidia Drivers .Although hibernate fails sometimes. I tried with the VESA driver, it worked always. Nvidia driver problems. So after googling a little bit, I found out about that option from xorg.conf, NvAgp, and it has many alternatives. I added to xorg.conf in device section the following line, it's supposed to turn off agp support, nothing happened to my video anyway, but now hibernate works 90% of the times, the other 10% no reason. The line: Code:
Option "NvAgp" "0" Suspends works with no problems. 15) S-Video and VGA Out Both work perfectly with the Nvidia X Server Settings under "Application > System Tools > Nvidia X Server Settings). It's very easy to set up different displays. Detection works fine as well. 16) Dial-up Modem, Express Card and mini-firewire None of them tested, anyone? 13)ACPI, Battery, Laptop Health and others a) Install Powertop, a program to monitore the consumption from your laptop, should be ran with sudo Code:
sudo aptitude install powertop Changin the journal type to data=writeback (only ext3). this change the type of your filesystem journal, read more about it before doing this tweak - Edit GRUB menu: Code:
sudo gedit /boot/grub/menu.lst [code]kernel /boot/... ro quiet splash rootflags=data=writeback[code] - Edit fstab Code:
sudo gedit /etc/fstab [code]... / ext3 defaults,errors=remount-ro,data=writeback - Change the journal type: Code:
sudo tune2fs -o journal_data_writeback /dev/sdaX - Check if everything is ok. Code:
sudo tune2fs -l /dev/sdaX - Edit fstab Code:
sudo gedit /etc/fstab Code:
... / ext3 defaults,errors=remount-ro,noatime,data=writeback - Edit xorg.conf Code:
sudo gedit /etc/X11/xorg.conf Code:
Option "OnDemandVBlankInterrupts" "on" - Edit the file rc Code:
sudo gedit /etc/init.d/rc By doing this we'll have problems in simultaneuosly services. The service HAL must be delayed: Code:
sudo mv /etc/rc2.d/S12hal /etc/rc2.d/S13hal The is very useful for reducing the frequency when running on battery to save power. - Add to the panel the applet located "CPU Frequency Scaling Monitor" under "System & Hardware". - Run: (read all the warning, and if you are sure about this, say yes) Code:
sudo dpkg-reconfigure gnome-applets g) Sensor - Temperature Monitoring - Install the sensors daemon and applet: Code:
sudo aptitude install lm-sensors sensors-applet hddtemp Code:
sudo sensors-detect Cheers... Last edited by felipefoz; May 2nd, 2008 at 10:52 AM.. Reason: update |
|
|
|
|
#2 |
|
5 Cups of Ubuntu
![]() Join Date: Mar 2008
Location: Mumbai, India
Beans: 18
Ubuntu 8.04 Hardy Heron
|
Re: Acer 4520 Complete Guide (or Almost)
BEEEEAAAAAUUUUUUTIFULLLLLLLLLL
YESSS. It works, Thanks felipefoz The perfect guide. THANKS A TON. ![]() |
|
|
|
|
#3 |
|
Spilled the Beans
![]() Join Date: Nov 2007
Beans: 13
Ubuntu 9.10 Karmic Koala
|
Re: Acer 4520 Complete Guide (or Almost)
Thanks and you did not post a fix to ethernet card random MAC address yet. I've got Asus F5N laptop based on the same chipset, and will be posting the similar guide soon. The only difference is the web cam, and special keys managed by asus-laptop kernel module. There is a page on Asus F5N that I maintain for those interested: https://wiki.ubuntu.com/LaptopTestingTeam/AsusF5N
Being new to Ubuntu, I thought that would be an appropriate place for laptop report. But not to worry, the guide on forums will follow! |
|
|
|
|
#4 |
|
Just Give Me the Beans!
![]() Join Date: Nov 2005
Beans: 60
Ubuntu 9.04 Jaunty Jackalope
|
Re: Acer 4520 Complete Guide (or Almost)
|
|
|
|
|
#5 |
|
5 Cups of Ubuntu
![]() Join Date: Jan 2008
Beans: 34
|
Re: Acer 4520 Complete Guide (or Almost)
@felipefoz
nice guide.... most of will work for 64 bit too @others. this is how you do in 64 bit 1 Install ubuntu to the system using safe graphics or text mode, then reboot the system Note :: It may so happen that the booting may fail. In that case do the follwing : (i) at grub boot menu press e (ii) goto 2nd l ine (root=...) and and press e (iii) at the end of the line add all_generic_ide and press enter (iv) press b to boot Note :: You may add the above command (all_generic_ide) to /boot/grub/menu.lst then you need not enter manually every time. just append the command to tle line root=... for the ubuntu kernel. 2 For installing the nvidia graphics drivers (Note you need a working internet connection) (i) Goto menu System->Administration->Synaptic Package Manager (ii) click on reload to reload package information (otherwise the package might not appear) (iii) install the package nvidia-glx-new (iv) goto menu System->Administration->Restricted Drivers Management and enable Nvidia drivers iv) reboot the system, the graphics should be working now (vi) goto termnal and run nvidia-settings to configure the display 3 Sound (i) using synaptics package manager install linux-backports-module (ii) goto a terminal and do sudo nano -w /etc/modprobe.d/alsa-base add the following line to the end options snd-hda-intel model=acer press Ctrl-X and save the file (iii)reboot the system, now sound will be working The other alternative is compile the latest drivers and use them as described by felipefoz. I suggest it's better to compile than use backports. 4 wifi (i) goto http://ndiswrapper.sourceforge.net/ and goto the download section (ii) click on "View older releases from the stable package" and dowload version 1.44. donot download other versions, for some reason they assign a 00:00... mac address and it can't be changed using ifconfig either (you may try out newer versions but 1.44 works for sure) (iii) extract the archive using tar xzvf ndiswrapper.... (iv) download the winxp drivers for your wifi card (v) run the following commands sudo modprobe -r ath_pci sudo cat > /etc/modprobe.d/blacklist.common enter the line blacklist ath_pci press Ctrl-D (vi) run sudo apt-get install build-essential (vii) now reboot the system (vii) after reboot, we need to compile ndiswrapper cd <the ndiswrapper directory> sudo make sudo make install (viii) extract the wireless drivers to a directory tar xzvf <archive name> (ix) install the drivers cd <the wireless drivers directory> sudo ndiswrapper -i net5211.inf (note as of now net5416 for 64 bit is not available) (now you can do a ndiswrapper -l to see if the drivers were installed) sudo modprobe ndiswrapper sudo ndiswrapper -m sudo ndiswrapper -ma sudo ndiswrapper -mi (x) sometimes it happens that ndiswrapper fails to assign a MAC address to the wifi card, to fix that do the following sudo nano -w /etc/network/interfaces add the line pre-up /sbin/ifconfig wlan0 hw ether XX:XX:XX:XX:XX:XX where XX:XX:XX:XX:XX:XX is the MAC address of the card. now save the file and reboot. (xi) wireless should now be working. Alternative now madwifi has support for this card for 32 bit, you may try it out Note:: if you still can't connect then try pressing the wifi button, the wifi led does not seem to work with linux. press the wifi button and then try connecting. 5. The problem of incrementing eth# This happens because somehow the MAC address is reported to linux in reverse. To fix this do the following : (i) dmesg | grep Mac this gives the mac address in reverse ( a line with Invalid Mac ...) note that down. that is the mac address in reverse (ii) sudo nano /etc/udev/rules.d/70-persistent-net.rules delete any line that ends with NAME="eth#" add the following line SUBSYSTEM=="net", DRIVERS=="forcedeth", NAME="eth0" now save the file (iii) now do sudo nano /etc/network/interfaces add the line pre-up /sbin/ifconfig eth0 hw ether <the mac address> (iv) now reboot the system a few tips for 64 bit: java web start 1.5 or 1.6 doesnot work in 64 bit, use 1.4 you may additionally need 32bit libraries for certain (additional) things to work. if you use 64 bit then the wifi-led and suspend might not work. |
|
|
|
|
#6 |
|
Just Give Me the Beans!
![]() Join Date: Mar 2008
Beans: 80
|
Re: Acer 4520 Complete Guide (or Almost)
1 word for this: awesome.
I didn't follow this topic because I've just found it and I already solved my troubles, but it seems that all the things I used are here, clearly reported. Perfect, thanks a lot to felipefoz! Guillaume |
|
|
|
|
#7 |
|
Gee! These Aren't Roasted!
![]() Join Date: Mar 2008
Beans: 171
|
Re: Acer 4520 Complete Guide (or Almost)
I wanted to add my thanks. I was using the MadWifi patched version which works perfectly, but I have no wireless LED. Your way works perfectly (for an Acer Aspire 4720z) and gives me the LED.
|
|
|
|
|
#8 | |
|
5 Cups of Ubuntu
![]() Join Date: Mar 2008
Location: Mumbai, India
Beans: 18
Ubuntu 8.04 Hardy Heron
|
Re: Acer 4520 Complete Guide (or Almost)
Quote:
Yes friend, I am still struggling with the Starting up issue. Can you guess why? |
|
|
|
|
|
#9 |
|
First Cup of Ubuntu
![]() Join Date: Feb 2008
Beans: 2
|
Re: Acer 4520 Complete Guide (or Almost)
Excuse me for my english but I'd say that the guide it to much, really good explained.
In my personally case, I have to install de nvidia driver with ENVY. Thank you a lot for the guide. Jalito27 |
|
|
|
|
#10 |
|
Just Give Me the Beans!
![]() Join Date: Mar 2008
Beans: 80
|
Re: Acer 4520 Complete Guide (or Almost)
Actually I used this topic just for the Nvidia installation, and I found 2 problems:
1 - The refresh rate stuck to 50hz. Actually, it's just in gnome that the refresh is not correctly reported, so you can leave it like this, up to the user. So maybe there is no need to add information about that in the guide? 2 - After the installation of the Nvidia drivers, all my windows title bars disappeared. This is more troublesome. I had to edit the xorg.conf file to make them reappear. Felipe, do you want to add this in the guide? If you want to add any of these, I'll write you how I did. Guillaume |
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|