Blaue Nacht in Nürnberg
 ___    _        _ _   _           _                   ___       
| __| _(_)___ __| | | /_\  _ _  __| |_ _ ___ __ _ ___ |   \ ___ 
| _| '_| / -_) _` | |/ _ \| ' \/ _` | '_/ -_) _` (_-<_| |) / -_)
|_||_| |_\___\__,_|_/_/ \_\_||_\__,_|_| \___\__,_/__(_)___/\___|
- Home - Videos - Gästebuch - Intern -


r Home
u Linux
  rs Inst. n505x
  us Inst. W3N
  rs Configfiles
  rs Screenshots
  rs Laptop-HD
r Gästebuch
r Kontakt
r Videos
r Admin








  Valid XHTML 1.0
Linux    Installation von Ubuntu 5.04 auf ASUS NB W3451NLP



Technische Daten

http://de.wikibooks.org/wiki/Asus_W3N-Kompendium:_Hardwarebeschreibung [1]





Ubuntu 5.04


Festplatte vorbereiten

Partitionierung wurde mit Knoppix 3.7 [2] durchgeführt.
Bootoption: knoppix26 screen=1280x768
terminal öffnen, mit "su" zu root werden und zb. mit "cfdisk /dev/hda" die Festplatte aufteilen.

Beispiel mit 2 Betriebssystemen (Windows XP und Linux)

                              Festplatte: /dev/hda
                      Größe: 60011642880 Bytes, 60,0 GB
              Köpfe: 255   Sektoren pro Spur: 63   Zylinder: 7296

    Name        Flags      Part. Typ  Dateisystemtyp   [Bezeichner]  Größe (MB)
 ------------------------------------------------------------------------------
    hda1        Boot        Primäre   W95 FAT32 (LBA)                  15002,92
    hda2                    Primäre   Linux ReiserFS   [/]             15002,92
    hda3                    Primäre   Linux swap / Solaris              2196,15
    hda5                    Logische  W95 FAT32                        27809,68

Betriebssysteme installieren

Zuerst habe ich Windows XP mit den beiden Recovery CD's und der Treiber CD installiert.

Nach erfolgreicher Installation von XP habe ich Ubuntu 5.04 [3] (DVD aus Linux-Magazin web-edition Sonderheft 02/2005 [4] ) installiert.

Installation und Hardware-Erkennung laufen automatisch ab.
Es muss nur das Device für Root und Swap angegeben werden.


Hardware-Erkennung

Device/Funktion Status Bemerkung
Pentium M 1700MHz OK automatisch erkannt inkl. Speedstep
ATI 9700 m OK Grundfunktionen wurden automatisch erkannt
TV-Out OK mit ATI-Treiber
3D-Beschleunigung OK ab ATI Treiber 8-19-10 keine Probleme mit hibernate
LCD OK Auflösung 1280x768 wurde richtig erkannt
WLAN OK automatisch erkannt und Modul ipw2200 wird geladen
GE OK automatisch erkannt. jedoch nur als Fast-Ethernet getestet.
Sound OK automatisch erkannt
Batterieanzeige OK DSDT-Tabelle musste angepasst werden
ab Bios-Version 204A nicht mehr nötig
Suspend to Ram Fehler -
Suspend to Disk OK unter Ubuntu 5.04 OK unter Ubuntu 5.10 bleibt Rechner beim "aufwecken" hängen
IRDA nicht getestet -
Bluetooth nicht getestet Leider kein Gerät zum testen, aber Taste geht.
Firewire nicht getestet -
PCMCIA OK -
USB2 OK -
SD-MMC-MS-Reader Fehler nur SD getestet
Modem nicht getestet -
DVD DL Brenner OK -



Anpassung

DSDT-Tabelle anpassen:

Anpassen der DSDT-Tabelle nur bei BIOS-Version 202A notwendig.
Bei Version 204A [5] geht die Akkuanzeige ohne Probleme.

IASL-Compiler [6] installieren.
tar xzf acpi-unix-{version}.tar.gz
cd acpi-unix-{version}/compiler
make

DSDT aus BIOS extrahieren.
cp /proc/acpi/dsdt .

DSDT disassemblieren mit dem IASL-Compiler
./iasl -d dsdt (dsdt.dsl file wird erstellt)

Tabelle neu kompilieren und nach den Fehlern [7] suchen.
./iasl -tc dsdt.dsl
Die dsdt.dsl kann mit einem beliebigen Editor bearbeitet werden.

Über tuxmobil [8] habe ich einen anderen Bericht [9] gefunden. Hier wurde bereits eine funktionsfähige dsdt.asl [10] für meinen Laptop (Bios-Version 202) erstellt.
Aus dieser dsdt.dsl muss man mit "./iasl -tc dsdt.dsl" eine dsdt.hex erstellen.

DSDT-Tabelle beim booten dem Kernel übergeben.
Kernel erstellen wird im Ubuntu-Wiki [11] erklärt.
Der Kern muss noch mit dem passenden ACPI-Patch [12] gepatcht werden.
dsdt.hex in die Kernelquellen kopieren. "cp dsdt.hex /usr/src/[kernelverzeichnis]/drivers/acpi/acpi_dsdt.h"
Kernel compilieren und neu booten :-)

Funktion prüfen

cat /proc/acpi/battery/BAT0/state

present:                 yes
capacity state:          ok
charging state:          discharging
present rate:            1311 mA
remaining capacity:      2306 mAh
present voltage:         14802 mV


oder

acpi -b

     Battery 1: discharging, 51%, 01:44:04 remaining


Software-Suspend

GRUB anpassen

cat /boot/grub/menu.lst

...
title           Ubuntu, kernel 2.6.11
root            (hd0,1)
kernel          /boot/vmlinuz-2.6.11 root=/dev/hda2 ro quiet splash resume=/dev/hda3 nolapic
initrd          /boot/initrd.img-2.6.11
savedefault
boot

title           Ubuntu, kernel 2.6.11 (noresume)
root            (hd0,1)
kernel          /boot/vmlinuz-2.6.11 root=/dev/hda2 ro quiet splash noresume nolapic
initrd          /boot/initrd.img-2.6.11
savedefault
boot

title           Ubuntu, kernel 2.6.11 (recovery mode)
root            (hd0,1)
kernel          /boot/vmlinuz-2.6.11 root=/dev/hda2 ro single
initrd          /boot/initrd.img-2.6.11
savedefault
boot
... 

-----------------

Bei meiner Installation musste ich zuerst mysql stoppen, damit der Rechner in den Suspendmodus wechselt.

/etc/init.d/mysql stop

rmmod ipw2200
sync && echo 4 > /proc/acpi/sleep
< Notebook ausschalten >  (schaltet leider noch nicht automatisch aus)
...
< Notebook einschalten >
modprobe ipw2200
/etc/init.d/mysql start
Weitere Möglichkeit: Suspend to Disk per Powerbutton cat /etc/acpi/events/powerbtn
event=button[ /]power
#action=/etc/acpi/powerbtn.sh
action=/etc/acpi/hibernate.sh


Mit der Bootoption "nolapic" schaltet der Lap automatisch aus.


Sondertasten

cat /etc/acpi/actions/hotkey.sh (andreas durch username ersetzen)
#!/bin/bash
      case "$3" in
      # Mute button
      00000032) /usr/bin/amixer set Master toggle
      ;;
      # Volume up button
      00000030) /usr/bin/amixer set Master 1+
      ;;
      # Volume down button
      00000031) /usr/bin/amixer set Master 1-
      ;;
      # Rewind button
      00000040) su - andreas -c "/usr/bin/xmms -r &"
      ;;
      # Stop button
      00000043) su - andreas -c "/usr/bin/xmms -s &"
      ;;
      # Play/pause button
      00000045) su - andreas -c "/usr/bin/xmms -t &"
      ;;
      # Forward button
      00000041) su - andreas -c "/usr/bin/xmms -f &"
      ;;
      # CD-player ON/OFF button (I use it to eject the cdrom)
      0000004c) eject cdrom
      ;;
      # WiFi button
      0000005d) /etc/acpi/wireless.sh
      ;;
      *) logger "ACPI hotkey $3 is not defined"
      ;;
      esac


cat /etc/acpi/wireless.sh
#!/bin/bash
# Find and enable/disable wireless devices
for DEVICE in /sys/class/net/*; do
    if [ -d $DEVICE/wireless ]; then
# $DEVICE is a wireless device. Check if it's powered on:
        if [ `cat $DEVICE/device/power/state` = 0 ]; then
# It's powered on. Switch it off.
          (  echo -n 3 > $DEVICE/device/power/state;
             echo -n 0 > /proc/acpi/asus/wled;
          );
        else
# It's powered off. Switch it on.
          (  echo -n 0 > $DEVICE/device/power/state;
             echo -n 1 > /proc/acpi/asus/wled;
          );
        fi
    fi
done


Offene Punkte

Suspend to RAM ...


Wiki über W3N

Link zu Wiki [13]


Linkliste

[1] http://de.wikibooks.org/wiki/Asus_W3N-Kompendium:_Hardwarebeschreibung Technische Daten ASUS W3N

[2] www.knopper.net/knoppix KNOPPIX ist eine komplett von CD lauffähige Zusammenstellung von GNU/Linux-Software mit automatischer Hardwareerkennung und Unterstützung für viele Grafikkarten, Soundkarten, SCSI- und USB-Geräte und sonstige Peripherie.

[3] www.ubuntulinux.de Ubuntu is a Linux distribution that starts with the breadth of Debian and adds regular releases (every six months), a clear focus on the user and usability (it should "Just Work", TM) and a commitment to security updates with 18 months of support for every release.

[4] www.linux-magazin.de/Produkte/Bestellen/lms_2005_2.html Linux-Magazin Sonderheft Web Edition 02/2005

[5] ftp.asus.com/pub/ASUS/nb/W3N/W3N0204A.zip BIOS Version 204A für die ASUS W3N-Serie

[6] www.intel.com/technology/iapc/acpi/downloads.htm IASL-Compiler

[7] www.cpqlinux.com/acpi-howto.html ACPI How-to

[8] www.tuxmobil.org TuxMobil: Linux with Laptops, Notebooks, PDAs, Mobile Phones and Portable Computers

[9] de.wikibooks.org/wiki/Asus_W3N-Kompendium:_Installation_unter_Fedora_Core_3 Installing Linux (Fedora Core 3) on Asus W3479NLP (aka W3400N aka W3000N aka W3N) - alter Link war user.uni-frankfurt.de/~lkv/w3479nlp.html

[10] bugme.osdl.org/show_bug.cgi?id=4221 Bugzilla Bug 4221 "Error evaluating _BST" when trying to read battery status on Asus W3400N

[11] www.ubuntuusers.de/wiki/kernel:kernel_bauen Kernel aus den Quellen bauen

[12] acpi.sourceforge.net/download.html Linux Kernel ACPI Patch

[13] de.wikibooks.org/wiki/Asus_W3N-Kompendium Wiki über W3N







Stand: 26.05.2005




TuxMobil - Linux on Laptops, PDAs and mobile Phones




























Abfragedauer 0.0603470802307 Sekunden