Acer Travelmate 5310 - How to run a GNU/LINUX on it

30 May 2008

The original configuration:

Intel Celeron M Processor 520
(1.6 Mhz, 533Mhz FSB, 1MB L2 cache)
15,4” WXGA LCD
Intel Graphics Media Accelerator 950
512 MB RAM
80 GB harddisc
DVD Super Multi DL
802.11 b/g WLAN

lspci
00:00.0 Host bridge: Intel Corporation Mobile 945GM/PM/GMS, 943/940GML and 945GT Express Memory Controller Hub (rev 03)
00:02.0 VGA compatible controller: Intel Corporation Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller (rev 03)
00:02.1 Display controller: Intel Corporation Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller (rev 03)
00:1b.0 Audio device: Intel Corporation 82801G (ICH7 Family) High Definition Audio Controller (rev 02)
00:1c.0 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 1 (rev 02)
00:1c.1 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 2 (rev 02)
00:1c.2 PCI bridge: Intel Corporation 82801G (ICH7 Family) PCI Express Port 3 (rev 02)
00:1d.0 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #1 (rev 02)
00:1d.1 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #2 (rev 02)
00:1d.2 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #3 (rev 02)
00:1d.3 USB Controller: Intel Corporation 82801G (ICH7 Family) USB UHCI Controller #4 (rev 02)
00:1d.7 USB Controller: Intel Corporation 82801G (ICH7 Family) USB2 EHCI Controller (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev e2)
00:1f.0 ISA bridge: Intel Corporation 82801GBM (ICH7-M) LPC Interface Bridge (rev 02)
00:1f.1 IDE interface: Intel Corporation 82801G (ICH7 Family) IDE Controller (rev 02)
00:1f.2 SATA controller: Intel Corporation 82801GBM/GHM (ICH7 Family) SATA AHCI Controller (rev 02)
00:1f.3 SMBus: Intel Corporation 82801G (ICH7 Family) SMBus Controller (rev 02)
02:00.0 Ethernet controller: Broadcom Corporation NetLink BCM5787M Gigabit Ethernet PCI Express (rev 02)
03:00.0 Network controller: Broadcom Corporation BCM94311MCG wlan mini-PCI (rev 01)
0a:06.0 CardBus bridge: Texas Instruments PCIxx12 Cardbus Controller
0a:06.1 FireWire (IEEE 1394): Texas Instruments PCIxx12 OHCI Compliant IEEE 1394 Host Controller
0a:06.2 Mass storage controller: Texas Instruments 5-in-1 Multimedia Card Reader (SD/MMC/MS/MS PRO/xD)
0a:06.3 Generic system peripheral [0805]: Texas Instruments PCIxx12 SDA Standard Compliant SD Host Controller
lsusb
Bus 005 Device 001: ID 0000:0000
Bus 004 Device 001: ID 0000:0000
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000

VIDEO CARD

Intel Graphics Media Accelerator 950 Intel Corporation Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller (rev 03)

The module in kernel who works with this is i915. You may also need to install DRI for 3D ( dri.freedesktop.org)

Xorg.conf (/etc/X11/xorg.conf)
Section "Module"

# This loads the DBE extension module.

    Load        "dbe"   # Double buffer extension

# 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

# This loads the font modules
    Load        "type1"
    Load        "freetype"
    #Load        "speedo"

# This loads the GLX module
     Load       "glx"
     Load       "dri"

EndSection

Section "dri"
        Mode 0666
EndSection
kernel .config

CONFIG_FB_INTEL=m

After that glxgears shows values like: 4908 frames in 5.0 seconds = 981.419 FPS

SOUND

You may try to compile ALSA modules from kernel, but for this version of kernel, the things don't work very well. I can get sound but no headphones output, mixer seems it's missing Output tab (it has only one Input tab with one controller), so…. compile kernel without ALSA modules.

Download ALSA from realtek (at this time, realtek-linux-audiopack-4.06b.tar.bz2). Unpack and run install script. This script will compile and install everything you need. After reboot you should have:

root@bunny:/# lsmod | grep snd
snd_seq_oss            28160  0
snd_seq_midi_event      5760  1 snd_seq_oss
snd_seq                41936  4 snd_seq_oss,snd_seq_midi_event
snd_seq_device          6412  2 snd_seq_oss,snd_seq
snd_pcm_oss            34208  0
snd_mixer_oss          13696  1 snd_pcm_oss
snd_hda_intel         259996  1
snd_pcm                61316  2 snd_pcm_oss,snd_hda_intel
snd_timer              16772  2 snd_seq,snd_pcm
snd_page_alloc          7176  2 snd_hda_intel,snd_pcm
snd_hwdep               6660  1 snd_hda_intel
snd                    40676  11 snd_seq_oss,snd_seq,snd_seq_device,snd_pcm_oss,snd_mixer_oss,snd_hda_intel,snd_pcm,snd_timer,snd_hwdep

The mixer at your choice should show now like in Output tab: Headphones, PCM, Front, in Input tab 2x Capture and in Switches tab 2x Input Source The integrated mic still don't work for record. Maybe in future versions of ALSA it will be supported.

TOUCH PAD

This is the link of interest for you. You must download the driver and configure the Xorg file. In section Module in xorg.conf add

	Load       "synaptics"

and also:

	Section "InputDevice"
	Driver "synaptics"
	Identifier "touchpad"
	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.015"
	Option "SHMConfig" "on"
	#always usefull
	Option "Emulate3Buttons" "on"
	EndSection

WIRELESS LAN

For this to work, we need ndiswrapper and the package Wireless Broadcom v.4.100.15.5 (BCM43XX). I've found one at XDrivers but feel free to look on the net for another one if this link doesn't work.
Note: this is a Windows driver. It's ok, will be used with ndiswrapper.

If you install ndiswrapper from the sources, read INSTALL file. Read especially “Install Windows driver” section. All you have to do is to install bcmwl5.sys from the package above.

If all went smooth, then you must have:

# ndiswrapper -l
bcmwl5 : driver installed
        device (14E4:4311) present

I use a wireless router, secured with a WPA pre-shared key. I know, there are more stronger ways to secure, but trust me, for a home network, a 64 chars key is a very best solution. So, I use wpa_supplicant to assist my wireless device at connection. For this to work, you'll have to see in your /etc/rc.d/rc.inet1.conf the following lines (I've omitted the commented lines):

## Example config information for wlan0.  Uncomment the lines you need and fill
## in your info.  (You may not need all of these for your wireless network)
IFNAME[4]="wlan0"
USE_DHCP[4]="yes"
DHCP_KEEPRESOLV[4]="yes"
DHCP_KEEPNTP[4]="yes"
DHCP_KEEPGW[4]="yes"
WLAN_ESSID[4]=DiamondAccess
WLAN_MODE[4]=Managed
WLAN_RATE[4]="54M auto"
WLAN_CHANNEL[4]="auto"
WLAN_WPA[4]="wpa_supplicant"

This is used (as you easily can see) with /etc/wpa_suppplicant file. An example of it:

# See /usr/doc/wpa_supplicant-0.5.7/wpa_supplicant.conf.sample
# for many more options that you can use in this file.

# This line enables the use of wpa_cli which is used by rc.wireless
# if possible (to check for successful association)
ctrl_interface=/var/run/wpa_supplicant
# By default, only root (group 0) may use wpa_cli
ctrl_interface_group=0
eapol_version=1
ap_scan=1
fast_reauth=1

#INTERFACES="-iwlan0"
#DRIVERS="-Dndiswrapper"

# WPA protected network, supply your own ESSID and WPAPSK here:
network={
  scan_ssid=0
  ssid="DiamondAccess"
  proto=WPA
  key_mgmt=WPA-PSK
  pairwise=TKIP
  group=TKIP
  psk="Tu{(~dsE1t/QXmdzqhF9E@qEa~'1zE7&/BK/RrN-B$th98rhX+l'dIRnak/F|cI"
}

# Plaintext connection (no WPA, no IEEE 802.1X),
# nice for hotel/airport types of WiFi network.
# You'll need a recent version of wireless-tools for this!
network={
  ssid="any"
  key_mgmt=NONE
  priority=2
} 

Encryption modes supported: WEP; TKIP with WPA, WPA2, WPA2PSK; AES/CCMP with WPA, WPA2, WPA2PSK. Pretty well, huh? ;)

MULTI CARD READER 5 in 1 TEXAS INSTRUMENTS

Well, I have for you one good news and one bad news. The good news is that the card reader is working. The bad news is that it's not working all the time, and possible it supports only SD cards.

Let's see…. You'll need to get into your kernel (I have now 2.6.23 ) and at

Device Drivers -> (M) MMC/SD  card support -> 
    (M) MMC block device driver
    (M) Secure Digital Host Controller Interface Support
    (M) TI Flash Media MMC/SD Interface Support

Compile and install as usual (make && make modules_install; copy bzImage… System.map, etc).

After reboot you shoud have (display only card reader modules):

#lsmod
Module                  Size  Used by
tifm_7xx1               5376  0
sdhci                  13964  0
mmc_block               9348  0
tifm_sd                 8840  0
tifm_core               7172  2 tifm_7xx1,tifm_sd
mmc_core               23428  3 sdhci,mmc_block,tifm_sd

I modified a script found on the internet to load/reload/unload the modules, which is a good idea, because as I said, sometimes the drivers seem dead

# cat /etc/rc.d/rc.cardreader
 
#!/bin/sh
 
start () {
        for i in mmc_core mmc_block sdhci tifm_7xx1 tifm_core; do
                /sbin/modprobe $i >/dev/null 2>&1
        done
}
 
stop () {
        for i in sdhci mmc_block mmc_core tifm_7xx1 tifm_core; do
                /sbin/rmmod $i >/dev/null 2>&1
        done
}
 
restart() {
        stop
        start
}
 
case $1 in
        start)
                start
        ;;
        stop)
                stop
        ;;
        restart)
                echo -n "Reloading SD modules"
                restart
                echo ".. DONE"
        ;;
        *)
        start
esac

Don't forget to chmod u+x /etc/rc.d/rc.cardreader. And try /etc/rc.d/rc.cardreader restart. After inserting a SD card (I don't have any other types, sorry), you should see in KDE the opening dialog, or notice in console:

ls -l /dev/mm*
brw-rw---- 1 root disk 179, 0 2008-05-30 14:05 /dev/mmcblk0
brw-rw---- 1 root disk 179, 1 2008-05-30 14:05 /dev/mmcblk0p1

Check dmesg| tail for messages as (here a remove/insert card operation):

tifm0 : demand removing card from socket 0:1
mmc1: card b368 removed
tifm_core: MMC/SD card detected in socket 0:1
mmc1: new SD card at address b368
mmcblk0: mmc1:b368 SDC   975360KiB
mmcblk0: p1

Just mount /dev/mmcblk0p1 /mnt/memory for example, and you'll be able to see your card. Don't forget, if your card is FAT formatted, you'll need vfat module as well.

 
fps/laptopacer5310.txt · Last modified: 2009/12/07 15:23 (external edit)
Email address
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki