View previous topic :: View next topic |
Author |
Message |
Aesthetics Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 12 Mar 2004 Posts: 91
|
Posted: Sat Mar 24, 2007 2:19 pm Post subject: [Hibernate] Fonctionnement aléatoire (résolu) |
|
|
Yop,
alors voilà j'ai un problème avec l'hibernation. Parfois ça marche et parfois j'ai le droit à ce message d'erreur :
/bin/echo Impossible d'allouer de la mémoire (un truc du genre car là j'ai voulu refaire l'erreur pour la copier-coller mais l'hibernation a marché 2 fois d'affilé )
Voilà le fichier common.conf
Code: | # Configuration options common for suspending to disk or RAM.
# Options are not case sensitive.
#
# See hibernate.conf(5) for help on the configuration items.
##############################################################################
### Some global settings
##############################################################################
Verbosity 0
LogFile /var/log/hibernate.log
LogVerbosity 1
# LogTimestamp yes
# AlwaysForce yes
# AlwaysKill yes
# HibernateVT 15
Distribution gentoo
# XDisplay :0
##############################################################################
### Scriptlets
### Scriptlets provide support for doing all sorts of things before and after
### suspending. The defaults settings here should work for most people, but
### you may wish to edit these to taste. Consult "hibernate -h" for help on
### the configuration settings.
##############################################################################
### bootsplash
## If you use bootsplash, also enabling SwitchToTextMode is recommended if
## you use X, otherwise you may end up with a garbled X display.
# Bootsplash on
# BootsplashConfig /etc/bootsplash/default/config/bootsplash-1024x768.cfg
### clock
SaveClock restore-only
### devices
# IncompatibleDevices /dev/dsp /dev/video*
### diskcache
# DisableWriteCacheOn /dev/hda
### fbsplash (enable SwitchToTextMode if you use this)
# FBSplash on
# FBSplashTheme suspend2
### filesystems
# Unmount /nfsshare /windows /mnt/sambaserver
# UnmountFSTypes smbfs nfs
# UnmountGraceTime 1
# Mount /windows
### grub
# ChangeGrubMenu yes
# GrubMenuFile /boot/grub/menu.lst
# AlternateGrubMenuFile /boot/grub/menu-suspended.lst
# BackupGrubMenuFile /boot/grub/menu.lst.hibernate.bak
# see http://bugs.debian.org/317479
# RemountXFSBoot yes
### hardware_tweaks
# IbmAcpi yes
# Runi915resolution yes
# FullSpeedCPU yes
### lilo
# EnsureLILOResumes yes
### lock (generally you only want one of the following options)
# LockConsoleAs root
# LockXScreenSaver yes
# LockGnomeScreenSaver yes
# LockKDE yes
# LockXLock yes
#LockXAutoLock yes
### misclaunch
# OnSuspend 20 echo "Good night!"
# OnResume 20 echo "Good morning!"
### modules
# UnloadModules snd_via82cxxx usb-ohci
# UnloadAllModules yes
UnloadBlacklistedModules yes
LoadModules auto
# LoadModulesFromFile /etc/modules
### modules-gentoo
# GentooModulesAutoload yes
### network
# DownInterfaces eth0
# UpInterfaces auto
### pause_audio
# MuteAudio yes
# PauseAudio yes
### pcmcia
# EjectCards yes
### programs
# IncompatiblePrograms xmms
### services
# RestartServices laptop_mode
# StopServices alsasound
# StartServices aumix
### vbetool
# EnableVbetool yes
# RestoreVbeStateFrom /var/lib/vbetool/vbestate
# VbetoolPost yes
# RestoreVCSAData yes
### xhacks
SwitchToTextMode yes
# UseDummyXServer yes
# DummyXServerConfig xorg-dummy.conf
### xstatus
## This can be set to gnome, kde or x:
XStatus gnome
# XmessageDisable yes
XSuspendText Preparing to suspend...
XResumeText Resuming from suspend...
## When using XStatus x, and you have xosd installed:
XosdSettings --font '-misc-fixed-medium-r-semicondensed--*-120-*-*-c-*-*-*' --colour=Green --shadow 1 --pos bottom --align center --offset 50
|
merci d'avance
Last edited by Aesthetics on Sun Mar 25, 2007 8:27 pm; edited 1 time in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Temet Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/168601640145e1ea823287d.jpg)
Joined: 14 Mar 2006 Posts: 2586 Location: 92
|
Posted: Sat Mar 24, 2007 6:46 pm Post subject: |
|
|
Combien de ram, combien de swap ?
Si ton hibernation se fait sur la swap... sur une partoche t'auras pas ce pb. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Aesthetics Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 12 Mar 2004 Posts: 91
|
Posted: Sat Mar 24, 2007 7:09 pm Post subject: |
|
|
1024 de ram et 1024 de swap
il peut faire le resume sur la partition / ? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Temet Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/168601640145e1ea823287d.jpg)
Joined: 14 Mar 2006 Posts: 2586 Location: 92
|
Posted: Sat Mar 24, 2007 7:19 pm Post subject: |
|
|
T'as pas assez de swap.
Dans le noyau t'as le choix entre le "disk writer" et le "swap writer".
Perso j'ai bidouillé pour que mon cache/buffer ram soit vidé avant l'hibernation et ça marche BCP mieux!!!
En fait, j'éteins presque plus jamais mon pc normalement. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Aesthetics Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 12 Mar 2004 Posts: 91
|
Posted: Sat Mar 24, 2007 7:55 pm Post subject: |
|
|
et on peut faire comment pour vider le cache ?
car j'ai pas vu de choix moi. J'utilise le noyau 2.6.20 gentoo-sources et y avait déjà une option simple "Software Suspend" ou faut juste donner la partition ensuite, j'ai pas appliqué le patch suspend2 |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Aesthetics Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 12 Mar 2004 Posts: 91
|
Posted: Sun Mar 25, 2007 8:27 pm Post subject: |
|
|
bon j'ai fini par mettre suspend2 et plus de problème ![Smile :)](images/smiles/icon_smile.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|