lunes, mayo 18, 2009

Solución al problema de hibernar sobre GNU/Linux Debian, debes tener instalado el sistema base supongo, pequeños tips, sólo instala uswsusp y nada más:
ahora entras a /etc/uswsusp.conf y cambias "platform" por "shutdown".

ahora, edita con los datos entregados en el sitio más abajo, claro que los más apropiados, el caso de ohci y ehci es porque son donde conectas el teclado y mouse usb, pero claro, por ahí decían que también había que agregar el módulo nvidia, ahora con las modificaciones de acá y de /etc/uswsusp tengo el sistema funcionando de pelos!

cat /usr/lib/pm-utils/defaults
http://wiki.archlinux.org/index.php/Pm-utils


el mio:
maximi89@Maximiliano:~$ cat /usr/lib/pm-utils/defaults
##########################################################
# DO NOT EDIT THIS FILE! #
# #
# Add files in /etc/pm/config.d/ instead! #
##########################################################

# Default method to power down the system when hibernating.
# If commented out, the system will use the kernel default as a
# default value.
#
# Check /sys/power/disk for valid values. The default value
# will be surrounded by [square brackets].
HIBERNATE_MODE="shutdown"

# Whether we need to post the video card when resuming from
# hibernate. You should not normally need to set this.
# In the future pm-utils will get this setting from HAL.
#
# Valid values are "no" and "yes"
# HIBERNATE_RESUME_POST_VIDEO="no"

# The default sleep/wake system to use. Valid values are:
# kernel The built-in kernel suspend/resume support.
# Use this if nothing else is supported on your system.
# uswsusp If your system has support for the userspace
# suspend programs (s2ram/s2disk/s2both), then use this.
# tuxonice If your system has support for tuxonice, use this.
#
# The system defaults to "kernel" if this is commented out.
SLEEP_MODULE="uswsusp"

# These variables will be handled specially when we load files in
# /etc/pm/config.d.
# Multiple declarations of these environment variables will result in
# their contents being concatenated instead of being overwritten.

# If you need to unload any modules to suspend/resume, add them here.
SUSPEND_MODULES="nvidia ehci_hcd ohci_hcd uhci_hcd iwl3945"

# If you want to keep hooks from running, add their names here.
# HOOK_BLACKLIST=""

# If you want to unconditionally add parameters to the commandline,
# add them here.
# ADD_PARAMETERS=""

# If you want to ignore commandline parameters, add them here.
# DROP_PARAMETERS=""

# If you need to synchronize the system clock across a suspend/resume or
# hibernate/thaw cycle, set this variable.
# NEED_CLOCK_SYNC="true"

http://pastebin.ca/1426132

En resumen:
http://en.opensuse.org/Pm-utils
Se debe crear un archivo en /etc/pm/config.d/config
y ahí modificar a gusto como sigue abajo... ya que este archivo no se sobreescribe al haber nuevas versiones.

HIBERNATE_MODE="shutdown" <--- porque con platform no funciona, sólo con shutdown
SLEEP_MODULE="uswsusp" <-------porque es el sistema que funciona sobre la interface del usuario sin tener que modificar el kernel como pasa con tuxonice.
SUSPEND_MODULES="ehci_hcd ohci_hcd uhci_hcd iwl3945" <--- porque esos son los hubs de usb donde conectamos el mouse, teclado, y demás dispositivos usb, además el módulo nvidia porque era recomendado, claro que la computadora ahora se apaga, porque deja la imagen en la ram, mientras tengamos corriente se mantiene la imagen, y prendes el equipo y es como si siempre hubiese estado ahí.

No hay comentarios.: