EeePC/openSUSE11.0

aus www.kruedewagen.de, Homepage von Ralf und Judith Krüdewagen (Kruedewagen)
Zur Navigation springen Zur Suche springen

tmpfs

Um oft geschriebene Dateien ins RAM zu verlegen, Eintrag in /etc/fstab:

tmpfs               /var/log             tmpfs     defaults,size=128m       0 0
tmpfs               /var/tmp             tmpfs     defaults,size=128m       0 0
tmpfs               /tmp             tmpfs     defaults,size=128m       0 0

X11

xorg.conf:

Section "ServerLayout"
        Identifier     "Xandros"
        Screen      0  "Screen1"
        InputDevice    "keyboard"
        InputDevice    "mouse"
        InputDevice    "synaptics"
EndSection

Section "Files"
  FontPath     "/usr/share/fonts/misc:unscaled"
  FontPath     "/usr/share/fonts/local"
  FontPath     "/usr/share/fonts/75dpi:unscaled"
  FontPath     "/usr/share/fonts/100dpi:unscaled"
  FontPath     "/usr/share/fonts/Type1"
  FontPath     "/usr/share/fonts/URW"
  FontPath     "/usr/share/fonts/Speedo"
  FontPath     "/usr/share/fonts/PEX"
  FontPath     "/usr/share/fonts/cyrillic"
  FontPath     "/usr/share/fonts/latin2/misc:unscaled"
  FontPath     "/usr/share/fonts/latin2/75dpi:unscaled"
  FontPath     "/usr/share/fonts/latin2/100dpi:unscaled"
  FontPath     "/usr/share/fonts/latin2/Type1"
  FontPath     "/usr/share/fonts/latin7/75dpi:unscaled"
  FontPath     "/usr/share/fonts/baekmuk:unscaled"
  FontPath     "/usr/share/fonts/japanese:unscaled"
  FontPath     "/usr/share/fonts/kwintv"
  FontPath     "/usr/share/fonts/truetype"
  FontPath     "/usr/share/fonts/uni:unscaled"
  FontPath     "/usr/share/fonts/CID"
  FontPath     "/usr/share/fonts/ucs/misc:unscaled"
  FontPath     "/usr/share/fonts/ucs/75dpi:unscaled"
  FontPath     "/usr/share/fonts/ucs/100dpi:unscaled"
  FontPath     "/usr/share/fonts/hellas/misc:unscaled"
  FontPath     "/usr/share/fonts/hellas/75dpi:unscaled"
  FontPath     "/usr/share/fonts/hellas/100dpi:unscaled"
  FontPath     "/usr/share/fonts/hellas/Type1"
  FontPath     "/usr/share/fonts/misc/sgi:unscaled"
  FontPath     "/usr/share/fonts/xtest"
  FontPath     "/opt/kde3/share/fonts"
  InputDevices "/dev/gpmdata"
  InputDevices "/dev/input/mice"
EndSection

Section "Module"
        Load  "glx"
        Load  "dri"
        Load  "extmod"
        Load  "synaptics"
        Load  "freetype"
        Load  "type1"
EndSection

Section "ServerFlags"
        Option          "AllowMouseOpenFail"
        Option          "BlankTime" "5"
        Option          "DontVTSwitch"  "true"
        Option          "AIGLX"   "false"
EndSection

Section "InputDevice"
        Identifier  "keyboard"
        Driver      "kbd"
        Option      "CoreKeyboard"
        Option      "XkbRules" "xorg"
        Option      "XkbModel" "pc105"
        Option      "XkbLayout" "de"
        Option      "XkbVariant" "eeepc"
EndSection

Section "InputDevice"
        Identifier  "mouse"
        Driver      "mouse"
        Option      "Device" "/dev/input/mice"
        Option      "Protocol" "IMPS/2"
        Option      "Emulate3Buttons" "yes"
        Option      "ZAxisMapping" "4 5"
        Option      "CorePointer"
EndSection

Section "InputDevice"
        Identifier  "synaptics"
        Driver      "synaptics"
        Option      "Device"           "/dev/psaux"
        Option      "Protocol"         "auto-dev"
        Option      "LeftEdge"         "1000"
        Option      "RightEdge"        "5400"
        Option      "TopEdge"          "1000"
        Option      "BottomEdge"       "4900"
        Option      "PalmDetect"       "0"
        Option      "SHMConfig"        "true"
        Option      "SendCoreEvents"   "yes"
        Option      "HorizScrollDelta" "0"
        Option      "RBCornerButton"   "0"
        Option      "RTCornerButton"   "0"
        Option      "MaxSpeed"         "0.1"
EndSection

Section "Monitor"
        Identifier   "Monitor1"
        VendorName   "ASUS"
        ModelName    "eeePC P701"
        Modeline     "800x480"  29.58  800 816 896 992  480 481 484 497  -HSync +Vsync # 60 Hz
EndSection

Section "Device"
        Identifier  "Device1"
        Driver      "intel"
        VendorName  "Intel Corporation"
        BoardName   "Mobile 915GM/GMS/910GML Express Graphics Controller"
        BusID       "PCI:0:2:0"
EndSection

Section "Screen"
        Identifier "Screen1"
        Device     "Device1"
        Monitor    "Monitor1"
        DefaultDepth     16
        SubSection "Display"
                Depth     8
                #Virtual  1024 768
        EndSubSection
        SubSection "Display"
                Depth     15
                #Virtual  1024 768
        EndSubSection
        SubSection "Display"
                Depth     16
                #Virtual  1024 768
        EndSubSection
        SubSection "Display"
                Depth     24
                #Virtual  1024 768
        EndSubSection
EndSection

Section "DRI"
        Group      "video"
        Mode         0666
EndSection

Section "Extensions"
        Option      "Composite" "Disable"
EndSection

Module beim Start laden

Eintrag in /etc/sysconfig/kernel:

MODULES_LOADED_ON_BOOT="asus_acpi asus_eee"

bzw. falls man den ndiswrapper nutzt:

MODULES_LOADED_ON_BOOT="asus_acpi asus_eee ndiswrapper"

Suspend to RAM

/etc/pm/sleep.d/60eeepc

#!/bin/bash
# put into sleep.d
case $1 in
    hibernate)
        /etc/init.d/network stop
        killall asusosd
        /sbin/modprobe -r ath_pci
        #/sbin/modprobe -r ndiswrapper
        sleep 1
        ;;
    suspend)
        /etc/init.d/network stop
        killall asusosd
        /sbin/modprobe -r ath_pci
        #/sbin/modprobe -r ndiswrapper
        sleep 1
        ;;
    thaw)
        /sbin/modprobe ath_pci
        #/sbin/modprobe ndiswrapper
        /etc/init.d/network start
        /etc/init.d/acpid restart # hotkeys do not work after resume, /etc/acpi
        /usr/local/bin/asusosd &
        ;;
    resume)
        /sbin/modprobe ath_pci
        #/sbin/modprobe ndiswrapper
        /etc/init.d/network start
        /etc/init.d/acpid restart # hotkeys do not work after resume, /etc/acpi
        /usr/local/bin/asusosd &
        ;;
    *)  echo "madwifi power management script called incorrectly."
        ;;
esac

Hinweise:

  • Wenn Skype die Kamera aktiv nutzt, schlägt Resume fehl.

Devicename der SD-Karte

Nach einem Resume ändert sich i.d.R. das Device der SD-Karte, z.B. von sdb zu sdc. Zwar werden gemäß udev die Symlinks in /dev/disk/by-id/ angepasst, aber man muss die Filesysteme auf der SD-Karte neu mounten.

Siehe:

Keyboard

Symbols

"eeepc" Abschnitt gemäß xorg.conf am Ende in /usr/share/X11/xkb/symbols/de eintragen:

partial alphanumeric_keys
xkb_symbols "eeepc" {

    include "de(basic)"

    name[Group1]="Germany - eeePC";

    key <AD12>  { [      plus,   asterisk,   asciitilde,  dead_macron ] };
};

Passender Eintrag in xorg.conf:

Section "InputDevice"
        Identifier  "keyboard"
        Driver      "kbd"
        Option      "CoreKeyboard"
        Option      "XkbRules" "xorg"
        Option      "XkbModel" "pc105"
        Option      "XkbLayout" "de"
        Option      "XkbVariant" "eeepc"
EndSection

ACPI Hotkeys

Methode 1

Am besten ist es, das eeeEvents Paket aus dem appleonkel-Repository installieren. Das Paket erstellt unter /etc/acpi/events und /etc/acpi/scripts entsprechende Dateien für die Hotkeys, wobei auch das Aus- und Einschalten des WLAN-Devices funktioniert (ggf. noch mit rcnetwork restart kombinieren). Ausserdem werden Hotkey-Aktionen auf einem On-Sceen-Display (OSD) angezeigt (asusosd-Start mittels /etc/X11/xinit/xinitrc.d/asusosd).

Methode 2

Xandros-Version der Datei /etc/acpi/hotkey.sh angepasst:

#!/bin/sh


export DISPLAY=:0

case $3 in
        #Fn+F1
        00000080)
                # echo "Suspend2RAM" > /dev/console
                ;;
        #Fn+F2
        00000010)
                # echo "Wlan On" > /dev/console &
                /etc/acpi/wlan.sh poweron
                /etc/acpi/wlan.sh restore
                ;;
        00000011)
                # echo "Wlan Off" > /dev/console &
                /etc/acpi/wlan.sh poweroff
                ;;
        #Fn+F3
        00000030)
                # echo "LCD" > /dev/console &
                /usr/bin/xrandr --output LVDS --preferred --output VGA --off
                ;;
        00000031)
                # echo "CRT" > /dev/console &
                /usr/bin/xrandr --output VGA --mode 1280x1024 --output LVDS --off
                ;;
        00000032)
                # echo "LCD-CRT" > /dev/console &
                /usr/bin/xrandr --output VGA --mode 800x480 --output LVDS --mode 800x480
                ;;
        #Fn+F6
        00000012)
                # echo "Task Manage On" > /dev/console
                #DISPLAY=:0 /bin/su -c "/usr/bin/ksysguard --showprocesses" user &
                /opt/kde3/bin/ksysguard --showprocesses &
                ;;
        #Fn+F7
        00000013)
                # echo "Volume Mute" > /dev/pts/0 &
                amixer set Master toggle
                ;;
        #Fn+F8
        00000014)
                # echo "Volume Down" > /dev/console &
                amixer set Master 3.20dB-
                ;;
        #Fn+F9
        00000015)
                # echo "Volume Up" > /dev/console &
                amixer set Master 3.20dB+
                ;;
        #Fn+F3
        0000002x)
                #echo "Brightness Down" > /dev/pts/0
                ;;
        #Fn+F4
        0000002x)
                #echo "Brightness Up" > /dev/pts/0
                ;;
esac

Nach resume müssen Hotkeys ggf. durch "rcacpid restart" wiederbelebt werden.

WLAN

/usr/sbin/iwpriv ath0 ndis_reset
  • WLAN ein-/ausschalten (auch LED)
echo 0 > /proc/acpi/asus/wlan
echo 1 > /proc/acpi/asus/wlan