[ltp] t60 suspend2 working?

WSR linux-thinkpad@linux-thinkpad.org
Fri, 16 Jun 2006 16:46:04 -0700


Darn... tried that, didn't work.  Tried also acpi_serialize, no luck. =20
Still stalls with "atomic image preparation".

I have tried with both your ebuild (2.6.16-suspend2-r7, with your =20
patches for hotswap, which works beautifully now.) and just normal =20
gentoo ebuild using suspend2-r8.

Is there anything special you have setup in your bios that may effect =20
this?  I do not have ahci enabled.

Thanks for your help, or any advice input anyone has to offer!

-scott

Quoting Florian Manschwetus <florianmanschwetus@gmx.de>:

> maybe this is elemental
> kernel /kernel-2.6.16-thinkpad-r3 root=3D/dev/sda8 acpi_sleep=3Ds3_bios
>
> latest suspend2 works perfect for me.
> please could you tell me if you ever get vesafb-tng working.
> but these configs should work on a t60 2007-63G
>
> florian
>
> WSR wrote:
>> Thanks a lot for the files!
>>
>> However, I am stuck at the same point.  Just to ensure I recompiled =20
>>  my kernel using exactly your .config and your ebuild.  I had the  =20
>> use flags you mentioned in my /etc/make.conf aswell.
>>
>> The text appears "atomic copy preparation", and nothing else.  The  =20
>> hard drive light only seems to blink one time.  I am positive I  =20
>> have ahci set to disable, and everything else in the bios should be =20
>>  enabled. Not sure what else could be different enough to cause it. =20
>>   It seems like it hangs right when it should be re-enabling =20
>> 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 =20
>>>>  /etc/hibernate settings?
>>>>
>>>> I have added ipw3945 to the blacklisted modules, and modified it  =20
>>>> so that it uses modprobe -r, vs rmmod (ipw3945 needs this).
>>>> The main problem is when resuming from disk it hard freezes  =20
>>>> before it even starts loading the image.   (" atomic preparation  =20
>>>> ").
>>>>
>>>> I have set compatibility mode for the SATA in the bios.
>>>>
>>>> I have emerged vbetools, but I do not believe the vberestore is  =20
>>>> enabled currently. (not commented out in  =20
>>>> /etc/hibernate/common.conf)
>>>>
>>>> I am now using a configuration similar to the one Florian posted  =20
>>>> 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 fgl=
rx
>>> the rest to do is sata resume from susoend to ram but it should be =20
>>>  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  =20
>>> script versions.
>>> #          It is recommended that you enter any modules you wish to unlo=
ad
>>> #          into hibernate.conf.
>>> # # The syntax of each line in this file is "module name [...]"  =20
>>> 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  =20
>>> 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 interpre=
ted
>>> # as the module version (as reported by modinfo) instead of the  =20
>>> kernel version.
>>> # Unversioned modules (modules with no version: line shown in modinfo) a=
re
>>> # always unloaded if listed, regardless of the version range.
>>> #
>>> # This format has some limitations - it does not take into account Softw=
are
>>> # 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  =20
>>> settings
>>> ########################################################################=
###### Verbosity LogFile  =20
>>> /var/log/hibernate.log
>>> LogVerbosity 1
>>> # LogTimestamp yes
>>> # AlwaysForce yes
>>> # AlwaysKill yes
>>> # HibernateVT 15
>>> Distribution gentoo
>>> # XDisplay :0
>>>
>>> ########################################################################=
###### ###  =20
>>> Scriptlets
>>> ###   Scriptlets provide support for doing all sorts of things  =20
>>> before and after
>>> ###   suspending. The defaults settings here should work for most  =20
>>> people, but
>>> ###   you may wish to edit these to taste. Consult "hibernate -h"  =20
>>> for help on
>>> ###   the configuration settings.
>>> ########################################################################=
###### ###  =20
>>> 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.cf=
g
>>>
>>> ### 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  =20
>>> '-misc-fixed-medium-r-semicondensed--*-120-*-*-c-*-*-*'  =20
>>> --colour=3DGreen --shadow 1 --pos bottom --align center --offset 50
>>>  -----------------------------------------------------------------------=
-
>>>
>>> # This file is used when suspending to disk using the swsusp  =20
>>> functionality in
>>> # the vanilla kernel. Add any configuration options specific to  =20
>>> suspend-to-disk
>>> # to this file. Ordering is not crucial, and options are not  =20
>>> 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 option=
s
>>> # specific to suspend-to-RAM to this file. Ordering is not  =20
>>> 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 current=
ly
>>> #       requires patching your kernel. For more information, see  =20
>>> www.suspend2.net
>>> # #       If you do not wish to patch your kernel but still be  =20
>>> 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 =20
>>>  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
>>>
>>