Ubuntu Linux on the Acer Aspire 5745G Laptop

Info icon This article is about running Ubuntu Linux 10.04 on the Acer Aspire 5745G. If you are interested in running Ubuntu 10.10 check this article instead.

It was time for me to get a new computer and this time I was going for laptop with a fast CPU and sufficient Nvidia graphics that is suitable for video processing and high bandwidth software defined radios. Didn’t want ATI graphics because I have bad experience with ATI and Linux. Nvidia on the other hand has been working very well for me on Linux.

I thought of getting a new Macbook Pro 15″ with and Intel i7 dual core processor, but I ended with the Acer Aspire 5745G-724G50Mn with an i7 quad-core, 4GB RAM and a Geforce GT330M with 1 GB VRAM. The rest of this article describes my first experiences with installing and running Ubuntu Linux 10.04 Lucid Lynx 64 bit on this computer side by side with the pre-installed Windows 7.

In short, everything except external audio in/out and battery status indicator works. Default installation leaves the computer in a usable state where after some manual installation is required to get everything working optimally.

Out of the box experience

Needless to say, the computer comes with Windows 7 pre-installed. I took the opportunity to try Windows 7 for the first time ever and see if things have improved. Well, I am not impressed and will most certainly stay away from it.

Although the win 7 was already installed and activated it took me several hours to finish the required configuration, install available updates (and they still keep coming), etc. The computer is also filled with all sorts of software trial crap and it was a nightmare to disable all the stupid pop-ups and what else was harassing my so called “windows experience”. The only positive things I have noticed were the way improved Minesweeper and that you can now shut down the computer without having to click “OK” a hundred times.

I took look into the task manager. To my great surprise the Intel quad core i7 CPU is reported by the OS (both Windows 7 and Ubuntu Linux) as 8 processors! A quick search on Google taught me that it is because each core is running two parallel threads. It definitely looks cool.

The Intel i7 720QM is a quad core CPU with 2 threads per core, which is why it is reported as 8 CPUs by the OS

Before I left the hard drive in the capable hands of the Linux Gparted partition editor, I wanted to make sure that I have some means of recovery in case something goes wrong. Well, forget about it, there is no recovery media included in the box! There is an Acer application for creating system recovery disks but you have to provide your own DVD discs and it wants 3 disks for the system and one disk for the drivers. I find this unacceptable, but I guess it is normal practice in the Windows world. I looked at the Acer website where I saw that one can purchase recovery media and since Windows 7 is really worthless to me I decided to just go ahead. But first, I ran a disk defrag which of course took an hour or so.

Unhappy Acer Aspire 5745G laptop running Windows 7 Happy Acer Aspire 5745G laptop running Ubuntu Linux 10.04 Lucid Lynx.

Installing Linux

This is about Ubuntu Linux 10.04 – Lucid Lynx – 64 bit

First I started up using the “Try Ubuntu Linux” option. From there I could start the Gparted partition editor and shrink the Windows 7 partition to 100 GB. While in gparted I noticed that there are indeed two hidden recovery partitions. I have left them untouched. After finishing the partitioning I rebooted into Windows 7 to see how it would react. It was slightly upset and wanted to run CHKDSK but it didn’t report any errors. Windows 7 was still running fine by which I mean not worse than before.

I then rebooted the computer with the Ubuntu installation CD in the drive. I performed a default Ubuntu 10.04 installation on the empty partition. After the post install reboot the computer was in a working state with graphic resolution correctly detected; however, to my great surprise the Ethernet interface was not working. I tried to execute a “system test” which revealed that it was an Atheros AR8151 V1.0 for LAN and an AR928x rev 01 for Wifi but it didn’t change anything.

This was very disappointing to me. I do not remember the last time I’ve seen an Ethernet chip that was not working out of the box. I started to worry… If the Ethernet is not working then what???

Making the Ethernet work

Although it was well past midnight I wasn’t ready to give up just yet. At this point I should point out that the Atheros AR928x Wifi worked out of the box so I could get on the net which made the process less painful. Unfortunately, I do not have a wireless network so I had to share my wired network connection via the Wifi in my iMac, which of course has its own quirks.

After getting on the net I installed all the available Ubuntu 10.04 updates, including new kernel, but that didn’t make any difference on the Ethernet side. At least I could now get the restricted Nvidia driver.

Next step was our common friend, Google, which lead me to this thread on the Ubuntu forums. After careful reading it was clear that there already is an Atheros Ethernet driver in the kernel but it does not include support for this particular device:

  # lspci -nn
  ...
  02:00.0 Ethernet controller [0200]: Atheros Communications AR8151 v1.0 Gigabit Ethernet [1969:1073] (rev c0)
  03:00.0 Network controller [0280]: Atheros Communications Inc. AR928X Wireless Network Adapter (PCI-Express) [168c:002a] (rev 01)
  ...

I went on and downloaded the driver from the Atheros website – currently being the AR81Family-Linux-v1.0.1.9.tar.gz file. It is important to put the package in it’s own folder. After that, I simply did a “make” and “sudo make install” from the top level directory to where the package has been unpacked. After reboot the network was up and running, even configured automatically during reboot process.

Now I just have to remember to do this every time the Linux kernel is updated.

CPU support

Both frequency scaling and turbo-boost works. These two things are different in that frequency scaling is just the usual power saving function that reduces the CPU frequency below the nominal 1.6 GHz, while turbo-boost performs overclocking up to 2.8 GHz. The Intel website has more details about the processor.

A special tool is required to check turbo boost activation. I used the i7z reporting tool that should work for i3 and i5 processors as well:

Turbo boost on the Intel i7 720QM processor

I do not know much about this turbo boost technology to provide a proper assessment, but it certainly appears to be working properly.

Audio

Playback using the built-in speakers works out of the box. The internal microphone and external audio in/out do not. It looks like there are two audio devices in the computer:

  # lspci -nn
  ...
  00:1b.0 Audio device [0403]: Intel Corporation 5 Series/3400 Series Chipset High Definition Audio [8086:3b56] (rev 05)
  ...
  01:00.0 VGA compatible controller [0300]: nVidia Corporation Device [10de:0a29] (rev a2)
  01:00.1 Audio device [0403]: nVidia Corporation High Definition Audio Controller [10de:0be2] (rev a1)
  ...

I suspect the Nvidia one is used with the HDMI output? I didn’t have time to figure this one out so it’ll have to wait. Any info and pointer is appreciated.

Update 2010.07.07

After reading a thread on the Ubuntu forums I have installed linux-backports-modules-alsa-lucid-generic which fixed the audio issues and even got an addition audio output device, which is the Nvidia HDMI out! I have not been able to test the HDMI but the Intel HD Audio device now works very well.

I have now 3 options for output:

  1. Analog Headphones: Only the headphones output is active and the speakers are always muted (expected behaviour)
  2. Analog Outout: Appears to be the same as the first option?
  3. Analog Speakers: Speakers active if no headphone is plugged in, otherwise headphones active and speaker muted.

For audio input there are no choices; however, both internal and external microphone works although there are some peculiarities with the input level indicators. I have used two different input level indicators: The one in the Sound Recorder application and the one in the Sound Preferences (Gnome audio mixer) application:

  1. With external microphone plugged in I get level indication in the mixer but not in the recorder
  2. With no external microphone it is the other way around: There is level indication in the recorder application but nothing in the mixer.

In both cases the audio is recorded and the input level can be adjusted using the gain slider in the mixer application, which is satisfactory for now.

Graphics

Basic graphics works out of the box with correct LCD resolution. After installing the proprietary Nvidia driver from the Ubuntu repository, external graphics can be used as well. Both the VGA out and HDMI out works very well. I tested the VGA out using a 19″ HP monitor at 1280×1024. For HDMI I used my HDTV which worked at both 1920×1080 and 1280×720. It wasn’t very good at full HD but I am convinced that is due to cheap TV. I’ll try this with a good TV as well and post the update in the comments.

 

Power management

Basic power management worked right after installation – at least the fan was not running all the time. However, the battery indicator applet was not  able to read correct state. It will always shows as if the battery iss charging and the charge/discharge profile graphs are flat! This is due to faulty BIOS and version 1.15 released 2010-08-16 fixes the problem. Get the latest BIOS from the Acer website. Thanks to Daniel for this info!

Summary

For Ubuntu 10.10 Maverick Meerkat see this article.

Ubuntu Linux 10.04 64bit on Acer Aspire 5745G-724G50Mn
Graphics Requires proprietary Nvidia driver to work properly.
VGA out works.
HDMI out works.
LAN Requires manual build and install of driver but the process is painless.
WIFI Works out of the box.
Bluetooth Works out of the box.
CDROM The eject button does not work but tray can be opened using the “eject” command or by right clicking on CDROM icon.
Audio

Internal speakers work out of the box.
Internal Mic and audio in/out require installation of linux-backports-modules-alsa-lucid-generic

Webcam Works as a standard V4L2 device.
Power manager Works fine but battery indicator requires BIOS 1.15 or later
CPU freq scale Works
i7 turbo boost Works
Suspend Works. Takes less than 15 sec to sleep and less than 10 sec to wake up again.
Also works when using Fn+F4 (sleep button)
Hibernate Works, but it takes 40 sec to hibernate and then more than 50 sec after bootloader selection to wake up again.
USB mouse had to be re-plugged after hibernate.
Battery status

Works if BIOS is updated to version 1.15 or later.

Card reader Works with SD and SDHC from video camera.
Touchpad Works, including the scrolling.
Have no clue about multi-gesture
Special buttons Fn+F4 (sleep) works
Volume Up/Down works
Brightness up/down works