Asus W3N-Kompendium: Ubuntu Suspend to Ram
Aus Wikibooks
Inhaltsverzeichnis |
[Bearbeiten] Einleitung
Damit Suspend to RAM funktioniert muss der ATI-Treiber von ATI in der aktuellen Version (8.19.10) installiert sein. Sonst wacht der Laptop auf, der Bildschirm bleibt aber schwarz.
[Bearbeiten] Stromverbrauch
Stomverbrauch im Suspendmodus: ca 41 mA -> ca. 1%/h
[Bearbeiten] Ubuntu 5.10
Nach "Susupend to Ram" geht bei mir "Suspend to Disk" nicht mehr richtig.
Mit folgender config ist "Suspend to Ram" möglich.
Distri: (K)Ubuntu 5.10
Kernelversion: 2.6.12
Grafikteiber: ati-driver 8.19.10-i386
WLAN: Intel(R) PRO/Wireless 2200/2915 Network Driver, 1.0.6
[Bearbeiten] Configfiles
/etc/default/acpi-support
# Uncomment the next line to enable ACPI suspend to RAM ACPI_SLEEP=true # Comment the next line to disable suspend to disk ACPI_HIBERNATE=true # Change the following to "standby" to use ACPI S1 sleep, rather than S3. # This will save less power, but may work on more machines ACPI_SLEEP_MODE=mem # Add modules to this list to have them removed before suspend and reloaded # on resume. An example would be MODULES="em8300 yenta_socket" # # Note that network cards and USB controllers will automatically be unloaded # unless they're listed in MODULES_WHITELIST MODULES="" # Add modules to this list to leave them in the kernel over suspend/resume MODULES_WHITELIST="" # Should we save and restore state using the VESA BIOS Extensions? SAVE_VBE_STATE=false # The file that we use to save the vbestate VBESTATE=/var/lib/acpi-support/vbestate # Should we attempt to warm-boot the video hardware on resume? POST_VIDEO=false # Should we switch the screen off with DPMS on suspend? USE_DPMS=false # Use Radeontool to switch the screen off? Seems to be needed on some machines # RADEON_LIGHT=true # Uncomment the next line to switch away from X and back again after resume. # This is needed for some hardware, but should be unnecessary on most. # DOUBLE_CONSOLE_SWITCH=true # Set the following to "platform" if you want to use ACPI to shut down # your machine on hibernation HIBERNATE_MODE=shutdown # Comment this out to disable screen locking on resume LOCK_SCREEN=true # Uncomment this line to have DMA disabled before suspend and reenabled # afterwards # DISABLE_DMA=true # Uncomment this line to attempt to reset the drive on resume. This seems # to be needed for some Sonys # RESET_DRIVE=true # Add services to this list to stop them before suspend and restart them in # the resume process. STOP_SERVICES="mysql " # Restart Infra Red services on resume - off by default as it crashes some # machines RESTART_IRDA=false # Switch to laptop-mode on battery power - off by default as it causes odd # hangs on some machines ENABLE_LAPTOP_MODE=false
[Bearbeiten] Ubuntu 5.04
Nach "Susupend to Ram" geht bei mir "Suspend to Disk" nicht mehr richtig.
Mit folgender config ist "Suspend to Ram" möglich.
Distri: (K)Ubuntu 5.04
Kernelversion: 2.6.10
Grafikteiber: ati-driver 8.19.10-i386
WLAN: Intel(R) PRO/Wireless 2200/2915 Network Driver, 1.0.6
[Bearbeiten] Configfiles
/etc/default/acpi-support
# Uncomment the next line to enable ACPI suspend to RAM ACPI_SLEEP=true # Comment the next line to disable suspend to disk ACPI_HIBERNATE=true # Change the following to "standby" to use ACPI S1 sleep, rather than S3. # This will save less power, but may work on more machines ACPI_SLEEP_MODE=mem #ACPI_SLEEP_MODE=standby # Add modules to this list to have them removed before suspend and reloaded # on resume. It should look something like MODULES="e1000 ipw2100" MODULES="" # Should we save and restore state using the VESA BIOS Extensions? SAVE_VBE_STATE=false #SAVE_VBE_STATE=true # The file that we use to save the vbestate VBESTATE=/var/lib/acpi-support/vbestate # Should we attempt to warm-boot the video hardware on resume? POST_VIDEO=false #POST_VIDEO=true # Should we switch the screen off with DPMS on suspend? USE_DPMS=true # Uncomment the next line to switch away from X and back again after resume. # This is needed for some hardware, but should be unnecessary on most. # DOUBLE_CONSOLE_SWITCH=true # Set the following to "platform" if you want to use ACPI to shut down # your machine on hibernation HIBERNATE_MODE=shutdown # Comment this out to disable screen locking on resume LOCK_SCREEN=true # Uncomment this line to have DMA disabled before suspend and reenabled # afterwards # DISABLE_DMA=true # Add services to this list to stop them before suspend and restart them in # the resume process. STOP_SERVICES="mysql "
/etc/acpi/sleep.sh
#!/bin/bash killall amarok killall amarokapp . /etc/default/acpi-support . /usr/share/acpi-support/power-funcs getXuser; if [ x$ACPI_SLEEP != xtrue ]; then exit; fi # Generic preparation code ##. /etc/acpi/prepare.sh if [ x$LOCK_SCREEN = xtrue ]; then . /usr/share/acpi-support/screenblank fi if [ x$DISABLE_DMA = xtrue ]; then hdparm -d 0 /dev/hda fi echo -n $ACPI_SLEEP_MODE >/sys/power/state if [ x$DISABLE_DMA = xtrue ]; then hdparm -d 1 /dev/hda fi # Generic wakeup code ###. /etc/acpi/resume.sh