[ltp] t60 suspend2 working?

WSR linux-thinkpad@linux-thinkpad.org
Fri, 16 Jun 2006 00:28:00 -0700


Thanks a lot for the files!

However, I am stuck at the same point.  Just to ensure I recompiled my 
kernel using exactly your .config and your ebuild.  I had the use flags 
you mentioned in my /etc/make.conf aswell.

The text appears "atomic copy preparation", and nothing else.  The hard 
drive light only seems to blink one time.  I am positive I have ahci set 
to disable, and everything else in the bios should be enabled. Not sure 
what else could be different enough to cause it.  It seems like it hangs 
right when it should be re-enabling devices it needs to load up the image.

any ideas?

thanks for the help~


-scott


Florian Manschwetus wrote:
> WSR wrote:
>> Hi :)
>>
>> Anyone who has suspend2 working with their t60 care to post their 
>> /etc/hibernate settings?
>>
>> I have added ipw3945 to the blacklisted modules, and modified it so 
>> that it uses modprobe -r, vs rmmod (ipw3945 needs this).
>> The main problem is when resuming from disk it hard freezes before it 
>> even starts loading the image.   (" atomic preparation ").
>>
>> I have set compatibility mode for the SATA in the bios.
>>
>> I have emerged vbetools, but I do not believe the vberestore is 
>> enabled currently. (not commented out in /etc/hibernate/common.conf)
>>
>> I am now using a configuration similar to the one Florian posted a 
>> few days ago. (thanks very much!).
>>
>> cheers
>>
>> -scott
> no need of force just kill ipw3945deamon before removing module
> the rest is as normal, works nice with gentoo patches libata hsw and 
> fglrx
> the rest to do is sata resume from susoend to ram but it should be 
> solved with 2.6.17.
>
> florian
> ------------------------------------------------------------------------
>
> # 
> # WARNING: No attempt is made to preserve this file upon upgrades.
> #          The file format may also change between hibernate script versions.
> #          It is recommended that you enter any modules you wish to unload
> #          into hibernate.conf.
> # 
> # The syntax of each line in this file is "module name [...]" where [...] is
> # a sequence of minimum/maximum kernel version pairs that the module is
> # incompatible with. For example:
> #     usb-ehci 2.4.0 2.4.25 2.6.0 2.6.2
> # (would indicate that usb-ehci was incompatible in 2.4 until 2.4.25, and in
> # 2.6 until 2.6.2 - example only!)
> #
> # A module without any versions is always considered unsuspendable.
> #
> # If a line is prefixed with an '@' sign, then the versions are interpreted
> # as the module version (as reported by modinfo) instead of the kernel version.
> # Unversioned modules (modules with no version: line shown in modinfo) are
> # always unloaded if listed, regardless of the version range.
> #
> # This format has some limitations - it does not take into account Software
> # Suspend 2 versions (which may include driver updates).
> #
>
> nvidia
> acx100
> acx_pci
> hsfmodem
> prism54
> ipw3945
>
> bcm4400		2.6.0	2.6.99
> emu10k1		2.4.0	2.4.99	2.6.0	2.6.99
> forcedeth	2.4.0	2.4.99	2.6.0	2.6.99
> @ipw2100	0.0	1.0.2
> @ipw2200	0.0	0.20
> natsemi		2.6.0	2.6.99
> psmouse		2.6.0	2.6.99
> rt2400		2.4.0	2.4.99	2.6.0	2.6.99
> ehci_hcd	2.6.0	2.6.14
> ohci_hcd	2.6.0	2.6.14
> uhci_hcd	2.6.0	2.6.14
> ehci-hcd	2.4.0	2.4.99
> usb-ohci	2.4.0	2.4.99
> usb-uhci	2.4.0	2.4.99
> snd_ens1370	2.6.0	2.6.99
> snd_ens1371	2.6.0	2.6.99
> snd_maestro3	2.6.0	2.6.99
> snd_bt_sco	2.6.0	2.6.99
> en1370		2.6.0	2.6.99
> en1371		2.6.0	2.6.99
> via_agp		2.6.0	2.6.8
> via_rhine	2.6.0	2.6.99
> i8042		2.6.10	2.6.99
> intel_mch_agp	2.6.0	2.6.99
> rt2500		2.6.0	2.6.99
>
> button		2.6.9	2.6.99
> speedstep_smi	2.6.12	2.6.99
>
> @ndiswrapper    0.10    0.11
>   
> ------------------------------------------------------------------------
>
> # Configuration options common for suspending to disk or RAM.
> # Options are not case sensitive.
> # 
> # man hibernate.conf 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
>
> ### hardware_tweaks
>  IbmAcpi yes
> # Runi915resolution 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
> # PauseAudio yes
>
> ### pcmcia
> # EjectCards yes
>
> ### programs
> # IncompatiblePrograms xmms
>
> ### services
> RestartServices net.eth1
> # 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
>   
> ------------------------------------------------------------------------
>
> # 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.
> # 
> # man hibernate.conf for help on the configuration items.
>
> UseSysfsPowerState disk
>
> Include common.conf
>   
> ------------------------------------------------------------------------
>
> # hibernate.conf is split into separate configuration files.
> # 
> # Each file is tried in the order below, until an available suspend
> # method is found.
>
> TryMethod suspend2.conf
> TryMethod disk.conf
> TryMethod 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.
> # 
> # man hibernate.conf for help on the configuration items.
>
> UseSysfsPowerState mem
>
> # The following vbetool settings help with > 50% 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
>
> Include common.conf
>   
> ------------------------------------------------------------------------
>
> # Example suspend2.conf file.
> #
> # 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
>
> ProcSetting extra_pages_allowance 7500
> ## 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 /sbin/suspend2ui_text
>
> Include common.conf
>