[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: mise en veille de mon toshiba satellite u200-163 sous debian lenny



Frédéric BOITEUX a écrit :
> Le mar 16 oct 2007 13:43:46 CEST, Thierry B <debian@thierry.eu.org> a
> écrit :
> 
>> Bonjour,
> 
> 	Salut,
> 
>> J'ai un laptop toshiba satellite u200-163 sous debian lenny et kde,que
>> je n'arrive pas à mettre en veille.
>>
>> J'utilise un noyau 2.6.22 compilé à partir des sources de debian.
>>
>> Si j'ai bien compris, si on veut juste une veille temporaire, mais de
>> pouvoir retrouver son OS tel quelle sans redemerrage dans la machine
>> c'est du suspend to ram, et si par contre, on veut retrouver son OS tel
>> quelle mais qu'on souhaite eteindre complètement la machine c'est du
>> suspend to disk.
> Oui.
> 
>> Voila toutes les commandes suspend, que j'ai à ma disposition:
>>
>> # suspend
>> suspend              suspend2ui_text
>> suspend2ui_fbsplash  suspend-keygen
>>
>> Quand je tape suspend, ca me donne cela:
>>
>> # suspend
>>
>> [1]+  Stopped                 su
>>
>> Il revient donc en mode user.
>>
>> Maintenant, je tente
>>
>> # suspend2ui_text
>>
>> Ca me fait buguer l'ordi, et en faisant ctrl alt backspace, pour
>> qu'ilsorte de kde, je vois qu'il reboote...
>>
>> Que me conseillez-vous?
> 
> Installe le paquet « hibernate », et utilise ses commandes
> « hibernate-disk » ou « hibernate-ram ». Regarde aussi ses fichiers de
> config (/etc/hibernate/*.conf), cela peut aider si tout ne fonctionne
> pas...
> 
> 	Fred.
> 

Le paquet hibernate est installé.

hibernate-ram me donne ceci:

s2ram: unknown machine, see s2ram(8) and the USuspendRamForce option
hibernate-ram: Aborting.

Je tente de forcer avec hibernate-ram -f, mais cela me donne le même
message.

Voila tous mes fichiers .conf:

# ls -l /etc/hibernate/*.conf
-rw-r--r-- 1 root root 3439 2007-07-09 23:46 /etc/hibernate/common.conf
-rw-r--r-- 1 root root  310 2006-10-09 17:08 /etc/hibernate/disk.conf
-rw-r--r-- 1 root root  518 2006-10-09 17:08 /etc/hibernate/hibernate.conf
-rw-r--r-- 1 root root  740 2007-07-09 23:01 /etc/hibernate/ram.conf
-rw-r--r-- 1 root root 1288 2006-10-09 17:08 /etc/hibernate/suspend2.conf
-rw-r--r-- 1 root root  345 2006-10-09 17:08 /etc/hibernate/sysfs-disk.conf
-rw-r--r-- 1 root root  289 2006-10-09 17:08 /etc/hibernate/sysfs-ram.conf
-rw-r--r-- 1 root root  509 2006-10-09 17:08
/etc/hibernate/ususpend-both.conf
-rw-r--r-- 1 root root  501 2006-10-09 17:08
/etc/hibernate/ususpend-disk.conf
-rw-r--r-- 1 root root 1066 2007-06-06 09:19
/etc/hibernate/ususpend-ram.conf


et voila le contenu de chaque fichier.


common.conf

-----------------------------------------------------------------
# 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 debian
# 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 /var/backups/grub.conf.hibernate

# see http://bugs.debian.org/317479
# RemountXFSBoot yes

### hardware_tweaks
# IbmAcpi yes
# RadeonTool 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

### networkmanager
# EnableNMReconnect yes

### 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

### xbacklight
# BackLight yes

### gaim
# LogoutGaim yes
# GaimRestoreStatus yes
# GaimLogoutMessage Hibernating
# GaimLoginMessage Back from hibernation
---------------------------------------------------------------------

disk.conf

-----------------------------------------------------------------------
# This file is used when suspending to disk. Use the *-disk.conf files
to add
# configuration options, or add them before the TryMethod lines in this
file.
# Options are not case-sensitive.
#
# See hibernate.conf(5) for help on the configuration items.

TryMethod ususpend-disk.conf
TryMethod sysfs-disk.conf
-------------------------------------------------------------

hubernate.conf
---------------------------------------------------------------
# hibernate.conf is split into separate configuration files.
#
# Each file is tried in the order below, until an available suspend
# method is found.
#
# Options specific to a particular suspend method should be placed in the
# appropriate configuration file (suspend2.conf, ususpend.conf, disk.conf
# or ram.conf).
# Options common to all suspend methods should be placed in common.conf.
#
# See hibernate.conf(5) for help on the configuration items.

TryMethod suspend2.conf
TryMethod disk.conf
TryMethod ram.conf
-----------------------------------------------------------------------

ram.conf
-----------------------------------------------------------------------
# This file is used when suspending to RAM. Use the *-ram.conf files to add
# configuration options, or add them before the TryMethod lines in this
file.
# Options are not case-sensitive.
#
# See hibernate.conf(5) for help on the configuration items.

# save to both, RAM and disk
# (disabled by default, since it takes longer)
# TryMethod ususpend-both.conf

TryMethod ususpend-ram.conf
TryMethod sysfs-ram.conf

# The following vbetool settings help with a number of laptops
# EnableVbetool yes
# VbetoolPost yes

# Users with a Radeon graphics card may need to enable this line for
# suspend-to-ram, and install the radeontool program available from
# http://fdd.com/software/radeon/ or your distribution's package.
#
# RadeonTool yes
-----------------------------------------------------------------------

suspend2.conf
--------------------------------------------------------------------------
# Example suspend2.conf file.
#
# See hibernate.conf(5) for help on the configuration items.
#
# NOTE: Suspend2 is an improved version of suspend-to-disk which currently
#       requires patching your kernel. For more information, see
www.suspend2.net
#
#       If you do not wish to patch your kernel but still be able to
suspend to
#       disk, see disk.conf instead.

### suspend2 (for Software Suspend 2)
UseSuspend2 yes
Reboot no
EnableEscape yes
DefaultConsoleLevel 1
Compressor lzf
Encryptor none
# ImageSizeLimit 200

## useful for initrd usage:
# SuspendDevice swap:/dev/hda2

## Powerdown method - 3 for suspend-to-RAM, 4 for ACPI S4 sleep, 5 for
poweroff
# PowerdownMethod 5

## Any other /proc/software_suspend setting can be set like so:
# ProcSetting expected_compression 50

## Or traditionally like this:
# Suspend2AllSettings 0 0 2056 65535 5

## Or even from the results of hibernate --save-settings with this:
# Suspend2AllSettingsFile /etc/hibernate/suspend-settings.conf

## For filewriter:
# FilewriterLocation /suspend_file 1000
# VerifyFilewriterResume2 yes

## Specify a userui like this:
# ProcSetting userui_program /usr/local/sbin/suspend2ui_text

# Scale CPU to full speed to make sure we suspend as fast as possible.
FullSpeedCPU yes

Include common.conf
# This file is used when suspending to disk using the swsusp
functionality in
# the vanilla kernel. Add any configuration options specific to
suspend-to-disk
# to this file. Ordering is not crucial, and options are not case-sensitive.
#
# See hibernate.conf(5) for help on the configuration items.

UseSysfsPowerState disk

Include common.conf
-------------------------------------------------------------------

sysfs-ram.conf
-------------------------------------------------------------------
# This file is used when suspending to RAM. Add any configuration options
# specific to suspend-to-RAM to this file. Ordering is not crucial, and
options
# are not case-sensitive.
#
# See hibernate.conf(5) for help on the configuration items.

UseSysfsPowerState mem

Include common.conf
----------------------------------------------------------------------------

ususpend-both.conf
----------------------------------------------------------------------------
# This file is used when suspending to RAM and disk using the uswsusp
# functionality in the kernel. You will require the s2disk binary to be
# installed - this can be downloaded from
http://suspend.sourceforge.net/ . On
# Debian systems, just install the uswsusp package.
# Add any configuration options specific to ususpend to this file.
Ordering is
# not crucial, and options are not case-sensitive.
#
# See hibernate.conf(5) for help on the configuration items.

USuspendMethod both

Include common.conf
# This file is used when suspending to disk using the uswsusp
functionality in
# the kernel. You will require the s2disk binary to be installed - this
can be
# downloaded from http://suspend.sourceforge.net/ . On Debian systems, just
# install the uswsusp package.
# Add any configuration options specific to ususpend to this file.
Ordering is
# not crucial, and options are not case-sensitive.
#
# See hibernate.conf(5) for help on the configuration items.

USuspendMethod disk

Include common.conf
-------------------------------------------------------------------------

ususpend-ram.conf
-------------------------------------------------------------------------
# This file is used when suspending to RAM using the uswsusp
functionality in
# the kernel. You will require the s2disk binary to be installed - this
can be
# downloaded from http://suspend.sourceforge.net/ . On Debian systems, just
# install the uswsusp package.
# Add any configuration options specific to ususpend to this file.
Ordering is
# not crucial, and options are not case-sensitive.
#
# See hibernate.conf(5) for help on the configuration items.

USuspendMethod ram

## if needed, pass the -f option to s2ram
# USuspendRamForce yes

## if needed, pass the -m option to s2ram
## (-m should be used instead of -s, if possible; see
## https://bugzilla.novell.com/show_bug.cgi?id=229603)
# USuspendRamVbeMode yes

## if needed, pass the -s option to s2ram
## (if possible, prefer -m to -s; see above)
# USuspendRamVbeSave yes

## if needed, pass the -p option to s2ram
# USuspendRamVbePost yes

## if needed, pass the -a option to s2ram
## (Intel users see: http://en.opensuse.org/S2ram#Intel_Graphics_Chipsets)
# USuspendRamAcpiSleep 3

Include common.conf
--------------------------------------------------------------


Merci :-)



Reply to: