Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Hibernation] Problème de suspend avec kernel 2.6.18
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index French
View previous topic :: View next topic  
Author Message
SanKuKai
Apprentice
Apprentice


Joined: 17 Feb 2006
Posts: 228
Location: Toulouse, France

PostPosted: Thu Sep 28, 2006 4:32 pm    Post subject: [Hibernation] Problème de suspend avec kernel 2.6.18 Reply with quote

Salut à tous !

Je viens de mettre à jour mon système et profite de l'apparition des suspend2-sources-2.6.18 pour me compiler un nouveau noyau.
Je boote donc sur mon noyau fraichement compilé, tout se passe bien jusqu'à ce que je décide de tester le suspend to disk.
En effet, en lançant hibernate tout semble fonctionner (arrêt des services demandés, déchargement des modules, etc.) jusqu'à ce que la mise en veille se « fige » (j'attends bien dix bonnes minutes mais mon disque ne s'arrête pas)...
Le log ne m'en apprend pas plus :
Code:

Starting suspend at jeu sep 28 08:44:52 CEST 2006
hibernate: [01] Executing CheckLastResume ...
hibernate: [01] Executing CheckRunlevel ...
hibernate: [01] Executing LockFileGet ...
hibernate: [01] Executing NewKernelFileCheck ...
hibernate: [10] Executing EnsureSwsusp2Capable ...
hibernate: [11] Executing XHacksSuspendHook1 ...
hibernate: [12] Executing FBSplashStartSuspend ...
config file not found. fbsplash disabled.
hibernate: [20] Executing FBSplashProgress ...
hibernate: [20] Executing MiscLaunchAuxFunc1 ...
Executing echo "Good night!"...
hibernate: [30] Executing FBSplashProgress ...
hibernate: [30] Executing ServicesStop ...
Good night!
 * Service ntp-client stopping
 * Service ntp-client stopped
hibernate: [40] Executing FBSplashProgress ...
hibernate: [50] Executing FBSplashProgress ...
hibernate: [60] Executing FBSplashProgress ...
hibernate: [60] Executing NetworkStop ...
 * Service net.ra0 stopping
 * Service netmount stopping
 * Service netmount stopped
 * Service ntpd stopping
 * Service ntpd stopped
 * Service net.ra0 stopped
hibernate: [70] Executing FBSplashProgress ...
hibernate: [80] Executing FBSplashProgress ...
hibernate: [89] Executing SaveKernelModprobe ...
hibernate: [90] Executing FBSplashProgress ...
hibernate: [91] Executing ModulesUnloadBlacklist ...
hibernate: [94] Executing FBSplashProgress ...
hibernate: [95] Executing XHacksSuspendHook2 ...
hibernate: [97] Executing ChangeToSwsuspVT ...
hibernate: [98] Executing CheckRunlevel ...
hibernate: [98] Executing Swsusp2ConfigSet ...
hibernate: [99] Executing DoSwsusp2 ...
hibernate: Activating suspend ...


Donc tout se bloque au niveau de hibernate: Activating suspend ... qui ne s'active pas...

J'utilise :
Code:

* sys-kernel/suspend2-sources
    gentoo:                2.6.16-r8 2.6.16-r12 2.6.17-r5 2.6.17-r6 2.6.18
    installed:             2.6.18*
    Homepage:              http://dev.gentoo.org/~dsd/genpatches http://www.suspend2.net
    Description:           Software Suspend 2 + Gentoo patchset sources
    License:               ( GPL-2 )
    Provides:              virtual/linux-sources virtual/alsa
    Use flags:              (-build) (-symlink) (-ultra1)

* sys-power/hibernate-script
    gentoo:                1.12-r1 1.93-r6
    installed:             1.93-r6*
    Homepage:              http://www.suspend2.net/
    Description:           Hibernate script supporting multiple suspend methods
    License:               ( GPL-2 )
    Use flags:              (-logrotate) (-vim)


Et mon /etc/hibernate/suspend2.conf donne ceci :
Code:

 $ grep  -v "#" /etc/hibernate/suspend2.conf | grep -v ^$
UseSuspend2 yes
Reboot no
EnableEscape yes
DefaultConsoleLevel 1
Compressor lzf
Encryptor none
 SuspendDevice swap:/dev/hda2
Verbosity 0
LogFile /var/log/hibernate.log
LogVerbosity 1
Distribution gentoo
SaveClock restore-only
 FBSplash on
 FBSplashTheme suspend2
 ProcSetting userui_program /sbin/suspend2ui_fbsplash
 OnSuspend 20 echo "Good night!"
 OnResume 20 echo "Good morning!"
UnloadBlacklistedModules yes
LoadModules auto
 GentooModulesAutoload yes
DownInterfaces ra0
UpInterfaces auto
RestartServices ntpd
RestartServices ntp-client
SwitchToTextMode yes
UseDummyXServer yes
ProcSetting extra_pages_allowance 0


Je précise qu'avec un fichier de configuration identique tout fonctionne très bien avec ces versions :
Code:

* sys-kernel/suspend2-sources
    gentoo:                2.6.16-r8 2.6.16-r12 2.6.17-r5 2.6.17-r6 2.6.18
    installed:             2.6.17-r6*
    Homepage:              http://dev.gentoo.org/~dsd/genpatches http://www.suspend2.net
    Description:           Software Suspend 2 + Gentoo patchset sources
    License:               ( GPL-2 )
    Provides:              virtual/linux-sources virtual/alsa
    Use flags:              (-build) (-symlink) (-ultra1)

* sys-power/hibernate-script
    gentoo:                1.12-r1 1.93-r6
    installed:             1.12-r1*
    Homepage:              http://www.suspend2.net/
    Description:           Hibernate script supporting multiple suspend methods
    License:               ( GPL-2 )
    Use flags:              (-logrotate) (-vim)


Donc si quelqu'un réussit à faire fonctionner le swsup2 avec un kernel 2.6.18, je lui serai très reconnaissant de me venir en aide. :D

(PS : Il y a dans les log un petit souci au niveau de fbsplash (que j'ai eu la flemme de configurer proprement lors de mon dernier changement de thème du framebuffer) mais je ne pense pas que le problème vienne de là puisque tout fonctionne très bien avec un kernel 2.6.17 bien que récupérant les mêmes messages d'erreur.)
Back to top
View user's profile Send private message
SanKuKai
Apprentice
Apprentice


Joined: 17 Feb 2006
Posts: 228
Location: Toulouse, France

PostPosted: Thu Sep 28, 2006 9:38 pm    Post subject: Reply with quote

J'ai découvert une option d'hibernate permettant de tester la validité des scripts de configuration :
Code:

 -n, --no-suspend
                       Disables actually suspending the system. This is useful for testing the hibernate script itself.


J'ai donc testé :
Code:

# hibernate --verbosity=3 -n
hibernate: Trying method in suspend2.conf...
Using '/etc/init.d' as init.d directory.
hibernate: [01] Executing CheckLastResume ...
hibernate: [01] Executing CheckRunlevel ...
hibernate: [01] Executing LockFileGet ...
hibernate: [01] Executing NewKernelFileCheck ...
hibernate: [10] Executing EnsureSwsusp2Capable ...
hibernate: [11] Executing XHacksSuspendHook1 ...
xhacks: changing console from 7 to 15
hibernate: [12] Executing FBSplashStartSuspend ...
config file not found. fbsplash disabled.
hibernate: [20] Executing FBSplashProgress ...
hibernate: [20] Executing MiscLaunchAuxFunc1 ...
Executing echo "Good night!"...
Good night!
hibernate: [30] Executing FBSplashProgress ...
hibernate: [30] Executing ServicesStop ...
Executing /etc/init.d/ntp-client stop
 * Service ntp-client stopping
 * Service ntp-client stopped
hibernate: [40] Executing FBSplashProgress ...
hibernate: [50] Executing FBSplashProgress ...
hibernate: [60] Executing FBSplashProgress ...
hibernate: [60] Executing NetworkStop ...
Bringing down interface ra0
 * Service net.ra0 stopping
 * Service net.ra0 stopped
hibernate: [70] Executing FBSplashProgress ...
hibernate: [80] Executing FBSplashProgress ...
hibernate: [89] Executing SaveKernelModprobe ...
Saved /proc/sys/kernel/modprobe is /sbin/modprobe
hibernate: [90] Executing FBSplashProgress ...
hibernate: [91] Executing ModulesUnloadBlacklist ...
Unloading blacklisted modules listed /etc/hibernate/blacklisted-modules
Module version for ipw2100 is
Module version for ipw2200 is
Module version for ndiswrapper is
hibernate: [94] Executing FBSplashProgress ...
hibernate: [95] Executing XHacksSuspendHook2 ...
hibernate: [97] Executing ChangeToSwsuspVT ...
hibernate: [98] Executing CheckRunlevel ...
hibernate: [98] Executing Swsusp2ConfigSet ...
hibernate: [99] Executing DoSwsusp2 ...
hibernate: Not actually suspending (--no-suspend given)
hibernate: [97] Executing ChangeFromSwsuspVT ...
hibernate: [95] Executing FBSplashStartResume ...
hibernate: [91] Executing GentooModulesAutoload ...
Loading modules listed /etc/modules.autoload.d/kernel-2.6
hibernate: [90] Executing ModulesLoad ...
hibernate: [90] Executing FBSplashProgress ...
hibernate: [89] Executing RestoreKernelModprobe ...
hibernate: [85] Executing XHacksResumeHook2 ...
hibernate: [80] Executing FBSplashProgress ...
hibernate: [70] Executing FBSplashProgress ...
hibernate: [70] Executing ClockRestore ...
hibernate: [60] Executing NetworkStart ...
Bringing up interface ra0 (from auto)
 * Service net.ra0 starting
 * Service net.ra0 started
hibernate: [60] Executing FBSplashProgress ...
hibernate: [50] Executing FBSplashProgress ...
hibernate: [40] Executing FBSplashProgress ...
hibernate: [30] Executing ServicesStart ...
Executing /etc/init.d/ntp-client start
 * Service ntp-client starting
 * Service ntp-client started
hibernate: [30] Executing FBSplashProgress ...
hibernate: [20] Executing MiscLaunchAuxFunc2 ...
Executing echo "Good morning!"...
Good morning!
hibernate: [20] Executing FBSplashProgress ...
hibernate: [15] Executing FBSplashProgress ...
hibernate: [12] Executing FBSplashOff ...
hibernate: [11] Executing XHacksResumeHook1 ...
Launching dummy X server.
xhacks: changing console back to 7
hibernate: [01] Executing NoteLastResume ...
hibernate: [01] Executing LockFilePut ...
hibernate: [00] Executing RemoveSwsuspProcCruft ...


Ce qui prouve que hibernate-script n'est pas en cause et que mon fichier de configuration (/etc/hibernate/suspend2.conf ) est valide.

Le problème se passe donc au niveau du suspend à proprement parler.
Peut-être un bug au niveau de la version 2.2.8 de Suspend2.

Quelqu'un parvient-il à faire fonctionner le suspend-to-disk (ainsi que la suspend-to-ram) avec les suspend2-sources-2.6.18 ?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index French All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum