Page 1 sur 1

[hibernation] Le réveil ne se fait plus (résolu)

Publié : ven. 05 mars 2010, 08:19
par Guiux
Bonjour,
depuis quelques temps, j'ai des problèmes avec l'hibernation, alors que jusqu'à présent ça marchait plutôt bien.
La mise en veille sur disque a l'air de fonctionner, mais au démarrage, j'ai droit à un boot standard.

Voilà quelques fichiers :

/boot/grub/menu.lst :

Code : Tout sélectionner

# general configuration:
timeout   2
default   0
color light-blue/black light-cyan/blue

# boot sections follow
# each is implicitly numbered from 0 in the order of appearance below
#
# TIP: If you want a 1024x768 framebuffer, add "vga=773" to your kernel line.
#
#-*

# (0) Arch Linux
title  Arch Linux
root   (hd0,1)
kernel /vmlinuz26 root=/dev/disk/by-uuid/b9add8bf-35c2-44aa-901f-20a7a324862d resume=/dev/sda5 ro
initrd /kernel26.img

# (1) Arch Linux
title  Arch Linux Fallback
root   (hd0,1)
kernel /vmlinuz26 root=/dev/disk/by-uuid/b9add8bf-35c2-44aa-901f-20a7a324862d ro
initrd /kernel26-fallback.img
/etc/rc.conf :

Code : Tout sélectionner

#
# /etc/rc.conf - Main Configuration for Arch Linux
#

# -----------------------------------------------------------------------
# LOCALIZATION
# -----------------------------------------------------------------------
#
# LOCALE: available languages can be listed with the 'locale -a' command
# HARDWARECLOCK: set to "UTC" or "localtime"
# USEDIRECTISA: use direct I/O requests instead of /dev/rtc for hwclock
# TIMEZONE: timezones are found in /usr/share/zoneinfo
# KEYMAP: keymaps are found in /usr/share/kbd/keymaps
# CONSOLEFONT: found in /usr/share/kbd/consolefonts (only needed for non-US)
# CONSOLEMAP: found in /usr/share/kbd/consoletrans
# USECOLOR: use ANSI color sequences in startup messages
#
LOCALE="fr_FR.utf8"
HARDWARECLOCK="UTC"
USEDIRECTISA="no"
TIMEZONE="Europe/Paris"
KEYMAP="fr-latin9"
CONSOLEFONT=
CONSOLEMAP=
USECOLOR="yes"

# -----------------------------------------------------------------------
# HARDWARE
# -----------------------------------------------------------------------
#
# MOD_AUTOLOAD: Allow autoloading of modules at boot and when needed
# MOD_BLACKLIST: Prevent udev from loading these modules
# MODULES: Modules to load at boot-up. Prefix with a ! to blacklist.
#
# NOTE: Use of 'MOD_BLACKLIST' is deprecated. Please use ! in the MODULES array.
#
MOD_AUTOLOAD="yes"
#MOD_BLACKLIST=() #deprecated
MODULES=(acpi_cpufreq cpufreq_ondemand cpufreq_powersave cpufreq_conservative cpufreq_userspace)

# Scan for LVM volume groups at startup, required if you use LVM
USELVM="no"

# -----------------------------------------------------------------------
# NETWORKING
# -----------------------------------------------------------------------
#
# HOSTNAME: Hostname of machine. Should also be put in /etc/hosts
#
HOSTNAME="N236-PC_GUILLAUME"

# Use 'ifconfig -a' or 'ls /sys/class/net/' to see all available interfaces.
#
# Interfaces to start at boot-up (in this order)
# Declare each interface then list in INTERFACES
#   - prefix an entry in INTERFACES with a ! to disable it
#   - no hyphens in your interface names - Bash doesn't like it
# 
# DHCP:     Set your interface to "dhcp" (eth0="dhcp")
# Wireless: See network profiles below
#

#Static IP example
#eth0="eth0 192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255"
#eth0="dhcp"
INTERFACES=(!eth0 !wlan0)

# Routes to start at boot-up (in this order)
# Declare each route then list in ROUTES
#   - prefix an entry in ROUTES with a ! to disable it
#
gateway="default gw 192.168.0.1"
ROUTES=(!gateway)
 
# Enable these network profiles at boot-up.  These are only useful
# if you happen to need multiple network configurations (ie, laptop users)
#   - set to 'menu' to present a menu during boot-up (dialog package required)
#   - prefix an entry with a ! to disable it
#
# Network profiles are found in /etc/network.d
#
# This now requires the netcfg package
#
#NETWORKS=(main)

# -----------------------------------------------------------------------
# DAEMONS
# -----------------------------------------------------------------------
#
# Daemons to start at boot-up (in this order)
#   - prefix a daemon with a ! to disable it
#   - prefix a daemon with a @ to start it up in the background
#
DAEMONS=(!syslog-ng dbus hal networkmanager !network @cpufreq @alsa @cups netfs !crond)

Re: [hibernation] Le réveil ne se fait plus

Publié : sam. 06 mars 2010, 13:10
par Guiux
Personne ? :(

Re: [hibernation] Le réveil ne se fait plus

Publié : sam. 06 mars 2010, 13:51
par tuxce
tu as le hook "resume" dans le mkinitcpio ?

Re: [hibernation] Le réveil ne se fait plus

Publié : sam. 06 mars 2010, 13:58
par Guiux
Désolé, je ne m'y connais pas assez pour comprendre... :oops:

EDIT : J'ai au moins trouvé le fichier /etc/mkinitcpio.conf

Code : Tout sélectionner

# vim:set ft=sh
# MODULES
# The following modules are loaded before any boot hooks are
# run.  Advanced users may wish to specify all system modules
# in this array.  For instance:
#     MODULES="piix ide_disk reiserfs"
MODULES=""

# BINARIES
# This setting includes, into the CPIO image, and additional
# binaries a given user may wish.  This is run first, so may
# be used to override the actual binaries used in a given hook.
# (Existing files are NOT overwritten is already added)
# BINARIES are dependancy parsed, so you may safely ignore libraries
BINARIES=""

# FILES
# This setting is similar to BINARIES above, however, files are added
# as-is and are not parsed in anyway.  This is useful for config files.
# Some users may wish to include modprobe.conf for custom module options,
# like so:
#    FILES="/etc/modprobe.conf"
FILES=""

# HOOKS
# This is the most important setting in this file.  The HOOKS control the
# modules and scripts added to the image, and what happens at boot time.
# Order is important, and it is recommended that you do not change the
# order in which HOOKS are added.  Run 'mkinitcpio -H <hook name>' for
# help on a given hook.
# 'base' is _required_ unless you know precisely what you are doing.
# 'udev' is _required_ in order to automatically load modules
# 'filesystems' is _required_ unless you specify your fs modules in MODULES
# Examples:
#    This setup specifies all modules in the MODULES setting above.
#    No raid, lvm2, or encrypted root is needed.
#    HOOKS="base"
#
#    This setup will autodetect all modules for your system and should
#    work as a sane default
#    HOOKS="base udev autodetect pata scsi sata filesystems"
#
#    This is identical to the above, except the old ide subsystem is
#    used for IDE devices instead of the new pata subsystem.
#    HOOKS="base udev autodetect ide scsi sata filesystems"
#
#    This setup will generate a 'full' image which supports most systems.
#    No autodetection is done.
#    HOOKS="base udev pata scsi sata usb filesystems"
#
#    This setup assembles an pata raid array with an encrypted root FS.
#    Note: See 'mkinitcpio -H raid' for more information on raid devices.
#    HOOKS="base udev pata raid encrypt filesystems"
#
#    This setup loads an lvm2 volume group on a usb device.
#    HOOKS="base udev usb lvm2 filesystems"
HOOKS="base udev autodetect pata scsi sata filesystems"

# COMPRESSION
# Use this to compress the initramfs image. With kernels earlier than
# 2.6.30, only gzip is supported, which is also the default. Newer kernels
# support gzip, bzip2 and lzma.
#COMPRESSION="gzip"
#COMPRESSION="bzip2"
#COMPRESSION="lzma"

Re: [hibernation] Le réveil ne se fait plus

Publié : sam. 06 mars 2010, 14:05
par tuxce
http://wiki.archlinux.fr/install/mkinitcpio
rajoute "resume" juste après "base" dans HOOKS

Re: [hibernation] Le réveil ne se fait plus

Publié : sam. 06 mars 2010, 14:13
par Guiux
J'ai fait ça :

Code : Tout sélectionner

HOOKS="base resume udev autodetect pata scsi sata filesystems"
Mais ça n'a rien changé... :|

Re: [hibernation] Le réveil ne se fait plus

Publié : sam. 06 mars 2010, 14:19
par Nic0
Salut,

Doit falloir regénérer l'image, tu l'as fait ?
http://wiki.archlinux.fr/install/mkinit ... er_l_image

Re: [hibernation] Le réveil ne se fait plus

Publié : sam. 06 mars 2010, 14:33
par Guiux
J'ai essayé plusieurs fois, et le seul changement est un message "Waiting for device /dev/sda5 for 10 sec" (à peu de choses près) au tout début du chargement, puis j'ai toujours droit à un boot normal...

EDIT : Je précise que sda5 correspond à la swap.

Re: [hibernation] Le réveil ne se fait plus

Publié : dim. 07 mars 2010, 11:43
par Guiux
Plus d'idées ? C'est vraiment tellement pathologique que ça ? :(

Re: [hibernation] Le réveil ne se fait plus

Publié : dim. 07 mars 2010, 14:39
par tuxce
essaie de donner /dev/disk/by-uuid au lieu de /dev/sd*

Re: [hibernation] Le réveil ne se fait plus

Publié : dim. 07 mars 2010, 17:05
par Guiux
Dans /boot/grub/menu.lst, j'ai remplacé "resume=/dev/sda5" par "resume=/dev/by-uuid/6b58f3cf-8880-4129-a21b-94de0bb70ebf", mais ça n'a rien changé.
Au démarrage, j'ai toujours droit à "Hook resume", puis "Waiting 10 sec for device /dev/by-uuid/6b58f3cf-8880-4129-a21b-94de0bb70ebf", quelques secondes d'attentes, puis un boot normal...

Re: [hibernation] Le réveil ne se fait plus

Publié : dim. 07 mars 2010, 22:11
par tuxce
bon à priori, après avoir aidé un gars sur irc avec le même souci, il faut mettre "resume" vers la fin du mkinitcpio.conf après udev, et les éventuels pata, sata, scsi que t'aurais.

Re: [hibernation] Le réveil ne se fait plus

Publié : lun. 08 mars 2010, 12:14
par Guiux
C'était effectivement ça ! :bravo:

N'empêche que c'est bizarre comme problème... Je n'avais jamais touché au mkinitcpio.conf... :|
C'est effectivement un problème, ou c'est une nouvelle exigence pour pouvoir utiliser l'hibernation ?

En tout cas, je vous remercie pour votre aide ! :wink:

Re: [hibernation] Le réveil ne se fait plus (résolu)

Publié : lun. 08 mars 2010, 13:14
par ddup1
He ben moi j'en apprends, je ne pensais pas que mkinitcpio était utilisé lors du réveil d'un PC.