Suspend to disk

Hi
Can i ge my mbp to suspend to disk instead do ram immediatly after closing the lid, or via a command?
Thanx for any help
Selon

There are two solutions:
1. Remove A/C power, then remove the battery for about 10 seconds. The computer will automatically go into Safe Sleep mode.
2. Open your Terminal app (Utilities folder) and at the prompt enter the following command line followed by a return:
prompt> sudo pmset -a hibernatemode 1
You will be prompted for your password which will not be echoed. Quit the Terminal app.
From now on your computer will automatically go into Safe Sleep (hibernate) mode when you close the lid. To return to the normal sleep mode open the Terminal app and enter the above command line but change the "1" to a "3".

Similar Messages

  • Computer reboot instead of resume after suspend to disk

    Hi,
    I install minimal KDE on my laptop. Everything work fine but suspend.
    - When I suspend to disk, initially it seem to work well. when I press power button, system act a new boot, not resume the session before.
    - When I suspend to ram, everything work well: it really suspend, lock  screen and reactive when press Enter, application work normally but I cannot re-connect to network. I use wicd as network manager, it always show popup: "Unable get IP from ..."
    Here is output of lspci:
    [duclong@king-of-dragon ~]$ lspci
    00:00.0 Host bridge: Intel Corporation Mobile 4 Series Chipset Memory Controller Hub (rev 09)
    00:02.0 VGA compatible controller: Intel Corporation Mobile 4 Series Chipset Integrated Graphics Controller (rev 09)
    00:02.1 Display controller: Intel Corporation Mobile 4 Series Chipset Integrated Graphics Controller (rev 09)
    00:1a.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #4 (rev 03)
    00:1a.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #5 (rev 03)
    00:1a.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #2 (rev 03)
    00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio Controller (rev 03)
    00:1c.0 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 1 (rev 03)
    00:1c.1 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 2 (rev 03)
    00:1d.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #1 (rev 03)
    00:1d.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #2 (rev 03)
    00:1d.2 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #3 (rev 03)
    00:1d.3 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #6 (rev 03)
    00:1d.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #1 (rev 03)
    00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev 93)
    00:1f.0 ISA bridge: Intel Corporation ICH9M LPC Interface Controller (rev 03)
    00:1f.2 SATA controller: Intel Corporation ICH9M/M-E SATA AHCI Controller (rev 03)
    00:1f.3 SMBus: Intel Corporation 82801I (ICH9 Family) SMBus Controller (rev 03)
    02:00.0 Ethernet controller: Atheros Communications AR8121/AR8113/AR8114 Gigabit or Fast Ethernet (rev b0)
    03:00.0 Network controller: Broadcom Corporation BCM4312 802.11b/g LP-PHY (rev 01)
    and here is rc.conf:
    # /etc/rc.conf - Main Configuration for Arch Linux
    # LOCALIZATION
    # LOCALE: available languages can be listed with the 'locale -a' command
    # HARDWARECLOCK: set to "UTC" or "localtime", any other value will result
    # in the hardware clock being left untouched (useful for virtualization)
    # TIMEZONE: timezones are found in /usr/share/zoneinfo
    # KEYMAP: keymaps are found in /usr/share/kbd/keymaps
    # CONSOLEFONT: found in /usr/share/kbd/consolefonts (only needed for non-US)
    # CONSOLEMAP: found in /usr/share/kbd/consoletrans
    # USECOLOR: use ANSI color sequences in startup messages
    LOCALE="en_US.UTF-8"
    HARDWARECLOCK="localtime"
    TIMEZONE="Asia/Ho_Chi_Minh"
    KEYMAP="us"
    CONSOLEFONT=
    CONSOLEMAP=
    USECOLOR="yes"
    # HARDWARE
    # MOD_AUTOLOAD: Allow autoloading of modules at boot and when needed
    # MOD_BLACKLIST: Prevent udev from loading these modules
    # MODULES: Modules to load at boot-up. Prefix with a ! to blacklist.
    # NOTE: Use of 'MOD_BLACKLIST' is deprecated. Please use ! in the MODULES array.
    MOD_AUTOLOAD="yes"
    #MOD_BLACKLIST=() #deprecated
    MODULES=(atl1e pcspkr snd-mixer-oss snd-pcm-oss snd-hwdep snd-page-alloc snd-pcm snd-timer snd snd-hda-codec snd-hda-intel soundcore)
    # Scan for LVM volume groups at startup, required if you use LVM
    USELVM="no"
    # NETWORKING
    # HOSTNAME: Hostname of machine. Should also be put in /etc/hosts
    HOSTNAME="king-of-dragon"
    # Use 'ifconfig -a' or 'ls /sys/class/net/' to see all available interfaces.
    # Interfaces to start at boot-up (in this order)
    # Declare each interface then list in INTERFACES
    # - prefix an entry in INTERFACES with a ! to disable it
    # - no hyphens in your interface names - Bash doesn't like it
    # DHCP: Set your interface to "dhcp" (eth0="dhcp")
    # Wireless: See network profiles below
    #Static IP example
    #eth0="eth0 192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255"
    eth0="dhcp"
    INTERFACES=(!eth0 !eth1)
    # Routes to start at boot-up (in this order)
    # Declare each route then list in ROUTES
    # - prefix an entry in ROUTES with a ! to disable it
    gateway="default gw 192.168.0.1"
    ROUTES=(!gateway)
    # Setting this to "yes" will skip network shutdown.
    # This is required if your root device is on NFS.
    NETWORK_PERSIST="no"
    # Enable these network profiles at boot-up. These are only useful
    # if you happen to need multiple network configurations (ie, laptop users)
    # - set to 'menu' to present a menu during boot-up (dialog package required)
    # - prefix an entry with a ! to disable it
    # Network profiles are found in /etc/network.d
    # This now requires the netcfg package
    NETWORKS=(main)
    # DAEMONS
    # Daemons to start at boot-up (in this order)
    # - prefix a daemon with a ! to disable it
    # - prefix a daemon with a @ to start it up in the background
    DAEMONS=(@syslog-ng dbus !hal laptop-mode !network @wicd @alsa !netfs crond kdm fam samba)

    please do not create multiple threads in different sub forums for similar issues.
    Please read our forum rules and follow them.
    Closing....

  • Systemd and suspend to disk

    Hello,
    I have the same problem as described in this bug:
    [systemd] hibernation does not work: https://bugs.archlinux.org/task/37028
    I followed the report to:
    Dave Reisner (falconindy) wrote:
    Therefore: If you want the resume hook to work with the systemd hook, you need to go write code. You have a few options:
    1) Write a generalized solution for running the shell based hooks under systemd.
    2) Write an sd-resume hook which replicates the functionality of the resume hook.
    3) Write some other method of writing the resume device major:minor to /sys/power/resume which doesn't take place in early userspace. I'd bet that, for a lot of systems, you might even be able to get away with using tmpfiles.d for this.
    Due to the lack of knowledge for 1) and 2), I went for 3):
    cat /etc/tmpfiles.d/resume.conf
    w /sys/power/resume - - - - 8:8
    which also writes successfully the 8:8 in my /sys/power/resume .
    However, it does not work.
    If I want to resume from my suspend to disk I get "root not clean, recovering journal" etc. and I'm at a fresh session.
    Any ideas?

    I tried it and I can confirm that using tmpfiles.d doesn't work here either.
    You're right that there's not so much to see in the previous boot. At the end of the log, when hibernating:
    Mar 08 21:51:03 amd64box systemd[1]: Starting Sleep.
    Mar 08 21:51:03 amd64box systemd[1]: Reached target Sleep.
    Mar 08 21:51:03 amd64box systemd[1]: Starting Hibernate...
    Mar 08 21:51:03 amd64box kernel: PM: Hibernation mode set to 'platform'
    Mar 08 21:51:03 amd64box systemd-sleep[3523]: Suspending system...
    I can see harddisk activity and I believe that the image is written correctly to the disk.
    I think the problem is when resuming. Before the systemd initrd starts I can see the lines:
    Mar 08 21:51:48 localhost kernel: PM: Checking hibernation image partition /dev/sda2
    Mar 08 21:51:48 localhost kernel: PM: Hibernation image not present or could not be loaded.
    Later in the boot:
    Mar 08 21:52:00 amd64box swapon[205]: swapon: /dev/sda2: software suspend data detected. Rewriting the swap signature.
    Mar 08 21:52:00 amd64box kernel: Adding 2104508k swap on /dev/sda2. Priority:-1 extents:1 across:2104508k FS
    Mar 08 21:52:00 amd64box systemd[1]: Activated swap /dev/sda2.
    Mar 08 21:52:00 amd64box systemd[1]: Starting Swap.
    Mar 08 21:52:00 amd64box systemd[1]: Reached target Swap.
    [*1]
    And a bit later when the tmpfiles service is executed:
    Mar 08 21:52:03 amd64box systemd[1]: Starting Create Volatile Files and Directories...
    Mar 08 21:52:03 amd64box systemd[1]: Starting Trigger Flushing of Journal to Persistent Storage...
    Mar 08 21:52:03 amd64box kernel: PM: Starting manual resume from disk
    Mar 08 21:52:03 amd64box kernel: PM: Hibernation image partition 8:2 present
    Mar 08 21:52:03 amd64box kernel: PM: Looking for hibernation image.
    Mar 08 21:52:03 amd64box kernel: PM: Image not found (code -22)
    Mar 08 21:52:03 amd64box kernel: PM: Hibernation image not present or could not be loaded.
    Mar 08 21:52:03 amd64box systemd[1]: Started Create Volatile Files and Directories.
    Despite that it's not working I believe it's a bit late to resume when using the regular tmpfiles.d (rootfs got already checked and corruption detected, the above swap message about rewriting it's signature, which I'm not sure what it means etc.).
    Therefor I tried to enforce the execution of the systemd-tmpfiles-setup service in the early systemd initrd (which it didn't do before), by a custom hook.
    Unfortunately the result is very similar to above:
    Mar 08 21:49:12 localhost systemd[1]: systemd 210 running in system mode. (+PAM -LIBWRAP -AUDIT -SELINUX -IMA -SYSVINIT +LIBCRYPTSETUP +GCRYPT +ACL +XZ -SECCOMP -APPARMOR)
    Mar 08 21:49:12 localhost systemd[1]: Detected architecture 'x86-64'.
    Mar 08 21:49:12 localhost systemd[1]: Running in initial RAM disk.
    Mar 08 21:49:12 localhost systemd[1]: No hostname configured.
    Mar 08 21:49:12 localhost systemd[1]: Set hostname to <localhost>.
    Mar 08 21:49:12 localhost systemd[1]: Initializing machine ID from random generator.
    Mar 08 21:49:12 localhost systemd[1]: Expecting device dev-disk-by\x2duuid-feb08c40\x2d0056\x2d4532\x2dbe2f\x2d33eaa5f20a24.device...
    Mar 08 21:49:12 localhost systemd[1]: Starting Paths.
    Mar 08 21:49:12 localhost systemd[1]: Reached target Paths.
    Mar 08 21:49:12 localhost systemd[1]: Starting Timers.
    Mar 08 21:49:12 localhost systemd[1]: Reached target Timers.
    Mar 08 21:49:12 localhost systemd[1]: Starting -.slice.
    Mar 08 21:49:12 localhost systemd[1]: Created slice -.slice.
    Mar 08 21:49:12 localhost systemd[1]: Starting udev Control Socket.
    Mar 08 21:49:12 localhost systemd[1]: Listening on udev Control Socket.
    Mar 08 21:49:12 localhost systemd[1]: Starting udev Kernel Socket.
    Mar 08 21:49:12 localhost systemd[1]: Listening on udev Kernel Socket.
    Mar 08 21:49:12 localhost systemd[1]: Starting Journal Socket.
    Mar 08 21:49:12 localhost systemd[1]: Listening on Journal Socket.
    Mar 08 21:49:12 localhost systemd[1]: Starting Sockets.
    Mar 08 21:49:12 localhost systemd[1]: Reached target Sockets.
    Mar 08 21:49:12 localhost systemd[1]: Starting system.slice.
    Mar 08 21:49:12 localhost systemd[1]: Created slice system.slice.
    Mar 08 21:49:12 localhost systemd[1]: Starting Slices.
    Mar 08 21:49:12 localhost systemd[1]: Reached target Slices.
    Mar 08 21:49:12 localhost systemd[1]: Starting system-systemd\x2dfsck.slice.
    Mar 08 21:49:12 localhost systemd[1]: Created slice system-systemd\x2dfsck.slice.
    Mar 08 21:49:12 localhost systemd[1]: Starting udev Coldplug all Devices...
    Mar 08 21:49:12 localhost systemd[1]: Starting Journal Service...
    Mar 08 21:49:12 localhost systemd[1]: Started Journal Service.
    Mar 08 21:49:12 localhost kernel: PM: Starting manual resume from disk
    Mar 08 21:49:12 localhost kernel: PM: Hibernation image partition 8:2 present
    Mar 08 21:49:12 localhost kernel: PM: Looking for hibernation image.
    Mar 08 21:49:12 localhost kernel: SCSI subsystem initialized
    Mar 08 21:49:12 localhost kernel: PM: Image not found (code -6)
    Mar 08 21:49:12 localhost kernel: PM: Hibernation image not present or could not be loaded.
    Mar 08 21:49:12 localhost systemd-udevd[63]: starting version 210
    Mar 08 21:49:12 localhost systemd-journal[52]: Journal started
    Mar 08 21:49:12 localhost systemd[1]: Starting Create list of required static device nodes for the current kernel...
    Mar 08 21:49:12 localhost systemd[1]: Starting Swap.
    Mar 08 21:49:12 localhost systemd[1]: Reached target Swap.
    Mar 08 21:49:12 localhost systemd[1]: Starting Local File Systems.
    Mar 08 21:49:12 localhost systemd[1]: Reached target Local File Systems.
    Mar 08 21:49:12 localhost systemd[1]: Starting Create Volatile Files and Directories...
    Mar 08 21:49:12 localhost systemd[1]: Started Create list of required static device nodes for the current kernel.
    Mar 08 21:49:12 localhost systemd[1]: Starting Create static device nodes in /dev...
    Mar 08 21:49:12 localhost systemd[1]: Started Create static device nodes in /dev.
    Mar 08 21:49:12 localhost systemd[1]: Started Create Volatile Files and Directories.
    Mar 08 21:49:12 localhost systemd[1]: Starting udev Kernel Device Manager...
    Mar 08 21:49:12 localhost systemd[1]: Started udev Kernel Device Manager.
    Mar 08 21:49:12 localhost systemd[1]: Started udev Coldplug all Devices.
    Mar 08 21:49:12 localhost systemd[1]: Starting System Initialization.
    Mar 08 21:49:12 localhost systemd[1]: Reached target System Initialization.
    Mar 08 21:49:12 localhost systemd[1]: Starting Basic System.
    Mar 08 21:49:12 localhost systemd[1]: Reached target Basic System.
    The error code is -6 instead of -22 now...
    Weird enough that the kernel: PM: messages appear above the "Starting Create Volatile Files and Directories..." which is the execution of systemd-tmpfiles-setup...
    So currently I've reached a bit of a dead end on this. Maybe someone else can give an input...
    [*1]: When looking at this I note that it's a bit contradictory. The kernel says it cannot find an image but swapon says it's there...
    Edit: Some useful information, but also somewhat mad: http://www.freedesktop.org/software/sys … ootup.html (man bootup)
    Last edited by rebootl (2014-03-09 13:52:08)

  • [solved] Unloading modules before suspend to disk

    Hi, I'm trying to get my Asus U36jc to suspend to disk and resume. Suspending seems to go fine, but after resuming I get an unresponsive notebook (no response on key presses or ping) showing a black screen. Then immediately the fan gets louder and the notebook gets warmer.
    Just before the machine goes to sleep, I see this in my screen:
    xhci_hcd 0000:04:00.0: PCI post-resume error -110!
    xhci_hcd 0000:04:00.0: HC died; cleaning up
    xhci_hcd 0000:04:00.0: HC died; cleaning up
    dpm_run_callback(): pci_pm_resume+0x0/0xb0 returns -110
    PM: Device 0000:04:00.0 failed to resume async: error -110
    hda-codec: out of range cmd 0:20:400:fffff7ff
    I found this guide (https://www.kernel.org/doc/Documentatio … ugging.txt) and using that I determined that when I first remove modules ehci_pci, ehci_hcd and xhci_hcd, suspend to disk and resume seem to work fine.
    I found out here (https://wiki.archlinux.org/index.php/Pm … end_to_RAM) how to unload modules prior to suspending to RAM, but that doesn't seem to work for suspend to disk, and I can't find how to unload modules prior to that. Can someone tell me how to do that?
    Thanks for any help!
    Last edited by diederick76 (2013-09-25 20:27:36)

    I'm not sure if pm-utils is deprecated, it doesn't say so here (https://wiki.archlinux.org/index.php/Pm-utils). In any case its a dependency of upower, which is a dependency of kdelibs, so as long as I want to use KDE my harddrive is stuck with it.
    However, I decided to try your suggestion to use systemd:
    # asus36JC.service
    [Unit]
    Description=Script upon suspend/resume
    Before=sleep.target
    StopWhenUnneeded=no
    [Service]
    Type=oneshot
    RemainAfterExit=yes
    ExecStart=/home/diederick/bin/no_modules
    ExecStop=/home/diederick/bin/modules
    [Install]
    WantedBy=sleep.target
    It seemed to work perfectly for a couple of times in a row (modules were there before and afterwards) until I restarted the notebook, when the problem was back. But then I remembered to enable the service and now it works. Thanks a lot!

  • Problems with waking from standby (suspend to disk)

    Hello,
    I have a late-2010 MacBook Air 11.6". I am running Lion 10.7.2.
    To save battery life and also increase data protection via FileVault 2, I set the hibernatemode to 25 (alwas immediately suspend to disk) and enabled destruction of the FV key on standby (pmset -a hibernatemode 25 DestroyFVKeyOnStandby). Suspending works fine; and when I open the lid to resume from standby, I get the password prompt for FileVault's full disk encryption. After entering the password, the resume process starts. But then in some cases, my display stays black and I cannot turn it on again (tried closing/opening the lid, pressing Ctrl+Shift+Eject, connecting external monitor, ...)
    If this behavior occurs, I can find entries like the following in my kernel.log:
    Dec 23 13:30:15 mba kernel[0]: NVDA::setPowerState(0xffffff800c6b3000, 0 -> 2) timed out after 61662 ms
    Is that a hardware bug? Any idea how I could possibly work around it?
    Any help would be greatly appreciated!
    Best Regards

    Hi Aaron,
    Check this blog and follow the steps mentioned, let us know if it works:
    Something happened and the install of Windows 8.1 can't be completed. (And now you're annoyed)
    Best regards
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Display corruption after resume from suspend-to-disk

    Garbage is also visible on the display immediately before entering suspend-to-RAM, but it resumes successfully, so that's not a priority.
    The resume process (using uswsusp) appears to complete (reaches 100%) but then the display is replaced by garbage (including ttys). If on an X display, the mouse is visible as a roughly 128x128 square of garbage pixels that I can move around the screen. If I switch to a tty, login and reboot (blindly, as the screen is garbage) then it successfully reboots and runs without issue.
    My laptop is a Dell Studio 1555 (with Mobility Radeon 4570).
    Using vbetool to save and restore VBIOS state before and after hibernating (via hibernate-script) makes no difference that I can see.
    How would I go about figuring out what's going wrong here?

    I did try reinstalling, actually.  But I did not think to remove the battery and the ram...  I'm very curious now: what is the rationale / intuition for that?  Or is it just that empirical evidence suggests this may be a good idea?
    Anyhow, the reinstall by itself did not help.  I tried it out with a pretty bare-bones setup and had the same results.  Here are a few other things I noticed:
    - After the suspend, one of the cores is always running at the maximum clock frequency, according to powertop (although, according to ps aux, no one is doing any work).
    - Even if I ssh to a nearby machine, I get the same experience when running `ls`.  The screen fills very slowly.  That narrows things down a little bit, but I was already guessing it would be graphics-related.
    I have also tried a few random kernel boot parameters after reading things online, but none of those worked, and several stopped the machine from booting at all.
    Thanks for your help.

  • [Solved] Suspend to Disk: systemd-hibernate.service Fails

    Howdy-ha, folks.  I know this looks pretty mundane, but for the life of me I can't get hibernation to work.  Each time I run systemctl hibernate the screen will go blank as though preparing to suspend, then come back on; journalctl shows the same error messages:
    PM: Cannot find swap device, try swapon -a.
    PM: Cannot get swap writer
    Failed to start Hibernate.
    Dependency failed for Hibernate.
    Service sleep.target is not needed anymore. Stopping.
    Unit systemd-hibernate.service entered failed state.
    This happens when swap is mounted, and "swapon" says as much.  I've been working on this for about four hours now, and none of what I've found seems to pertain to my situation (most of the "solutions" were "Increase partition size').
    What I've tried:
    - Three different kernels---linux-ck custom build and linux-ck-sandybridge from graysky's repo (both with BFQ and CFQ: see below), as well as the stock Arch kernel
    - A 2 Gb swap file at /swapfile on my SSD;
    - A 4 Gb swap partition on /dev/mmcblk0 (an SD card, and my preferred method/location, if possible);
    - An 8 Gb swap partition on HDD /dev/sdb2
    Reasons for wanting hibernate rather than suspend-to-RAM:
    - Maximize battery life.
    - There's some kind of issue with Linux-ck and suspending to RAM; it'll work once, then freeze in a kernel panic the second time, forcing a hard reset.  The stock kernel suspends to RAM, but still won't hibernate
    - I put a lot of time into building a custom Linux-ck kernel, and would rather not have to start the configuration over with the stock kernel if possible.
    I'm working with limited space on my boot drive and, as mentioned, increasing the amount of swap has no bearing on this.  The resulting phenomenon and error messages are the same, regardless of size and medium.  I've exhausted my ideas on where to look, and what to even look for.  Thanks a lot to everyone in advance (especially you,karol; don't think I don't see you lurking back there )
    Last edited by ANOKNUSA (2013-11-17 05:32:14)

    I rebooted, so trying to recreate the same situation:
    $ free -h
    total used free shared buffers cached
    Mem: 7.7G 7.2G 525M 0B 32M 2.3G
    -/+ buffers/cache: 4.8G 2.9G
    Swap: 3.7G 0B 3.7G
    top reports nearly the same thing:
    top - 20:00:13 up 22 min, 1 user, load average: 0.12, 0.22, 0.14
    Tasks: 155 total, 1 running, 154 sleeping, 0 stopped, 0 zombie
    %Cpu(s): 0.1 us, 0.3 sy, 0.1 ni, 99.5 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
    KiB Mem: 8061380 total, 7500096 used, 561284 free, 34432 buffers
    KiB Swap: 3872236 total, 0 used, 3872236 free, 2417172 cached
    htop, however, reports about 1.5 Gb more free RAM.  After reboot, swappiness is still set to 100 with the same results.
    EDIT:
    ANOKNUSA wrote: I'll test it again with the other locations mentioned in the OP, and get back to you.
    Even though I rebooted, I haven't done this yet, so ignore it for the moment.
    Last edited by ANOKNUSA (2013-08-28 01:06:10)

  • [Solved]PM: swap header not found attempting to suspend encrypted disk

    Hi all,
    I have my root partition set up as a dm-crypt encrypted volume, and I followed the instructions here to set up a swap file.
    I also followed these instructions to add the resume hook to my mkinitcpio.conf between encrypt and filesystems.
    I modified the /etc/default/grub file like so:
    GRUB_CMDLINE_LINUX_DEFAULT="cryptdevice=/dev/disk/by-uuid/0cb6b266-ce81-4b2f-9958-722c788c46ef:cryptroot cryptkey=/dev/disk/by-uuid/18868ab9-e0dd-4634-9f9e-69f3d3686d3f:ext2:/laptopkey root=/dev/mapper/cryptroot resume=/dev/mapper/cryptroot resume_offset=4952064"
    I determined the offset using the swap-offset tool provided by the uswsusp package.
    And I ran
    mkinitcpio -p linux
    and
    grub-mkconfig
    When I type "systemctl hibernate" the system begins to hibernate, then comes back up immediately. Journalctl -xn gives this:
    Jan 08 23:38:57 lefty-laptop systemd[1]: systemd-hibernate.service: main process exited, code=exited, status=1/FAILURE
    Jan 08 23:38:57 lefty-laptop systemd[1]: Failed to start Hibernate.
    -- Subject: Unit systemd-hibernate.service has failed
    -- Defined-By: systemd
    -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
    -- Documentation: http://www.freedesktop.org/wiki/Software/systemd/catalog/be02cf6855d2428ba40df7e9d022f03d
    -- Unit systemd-hibernate.service has failed.
    -- The result is failed.
    Jan 08 23:38:57 lefty-laptop systemd[1]: Dependency failed for Hibernate.
    -- Subject: Unit hibernate.target has failed
    -- Defined-By: systemd
    -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
    -- Documentation: http://www.freedesktop.org/wiki/Software/systemd/catalog/be02cf6855d2428ba40df7e9d022f03d
    -- Unit hibernate.target has failed.
    -- The result is dependency.
    Jan 08 23:38:57 lefty-laptop systemd[1]: Service sleep.target is not needed anymore. Stopping.
    Jan 08 23:38:57 lefty-laptop systemd[1]: Unit systemd-hibernate.service entered failed state.
    Jan 08 23:38:57 lefty-laptop systemd[1]: Stopping Sleep.
    -- Subject: Unit sleep.target has begun shutting down
    -- Defined-By: systemd
    -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
    -- Unit sleep.target has begun shutting down.
    Jan 08 23:38:57 lefty-laptop systemd[1]: Stopped target Sleep.
    -- Subject: Unit sleep.target has finished shutting down
    -- Defined-By: systemd
    -- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
    -- Documentation: http://www.freedesktop.org/wiki/Software/systemd/catalog/9d1aaa27d60140bd96365438aad20286
    -- Unit sleep.target has finished shutting down.
    Jan 08 23:38:58 lefty-laptop kernel: Freezing user space processes ... (elapsed 0.001 seconds) done.
    Jan 08 23:38:57 lefty-laptop wpa_actiond[1017]: Interface 'wlan0' lost connection to network 'braains'
    Jan 08 23:38:58 lefty-laptop kernel: PM: Marking nosave pages: [mem 0x0009d000-0x000fffff]
    Jan 08 23:38:58 lefty-laptop kernel: PM: Basic memory bitmaps created
    Jan 08 23:38:58 lefty-laptop kernel: PM: Preallocating image memory... done (allocated 294215 pages)
    Jan 08 23:38:58 lefty-laptop kernel: PM: Allocated 1176860 kbytes in 0.22 seconds (5349.36 MB/s)
    Jan 08 23:38:58 lefty-laptop kernel: Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
    Jan 08 23:38:58 lefty-laptop kernel: e1000e 0000:00:19.0: setting latency timer to 64
    Then a bunch more stuff, then this:
    Jan 08 23:38:58 lefty-laptop kernel: PM: thaw of devices complete after 955.701 msecs
    Jan 08 23:38:58 lefty-laptop kernel: PM: writing image.
    Jan 08 23:38:58 lefty-laptop kernel: PM: Using 1 thread(s) for compression.
    PM: Compressing and saving image data (197765 pages)...
    Jan 08 23:38:58 lefty-laptop kernel: PM: Image saving progress: 0%
    Jan 08 23:38:58 lefty-laptop kernel: PM: Image saving progress: 10%
    Jan 08 23:38:58 lefty-laptop kernel: PM: Image saving progress: 20%
    Jan 08 23:38:58 lefty-laptop kernel: PM: Image saving progress: 30%
    Jan 08 23:38:58 lefty-laptop kernel: PM: Image saving progress: 40%
    Jan 08 23:38:58 lefty-laptop kernel: PM: Image saving progress: 50%
    Jan 08 23:38:58 lefty-laptop kernel: PM: Image saving progress: 60%
    Jan 08 23:38:58 lefty-laptop kernel: PM: Image saving progress: 70%
    Jan 08 23:38:58 lefty-laptop kernel: PM: Image saving progress: 80%
    Jan 08 23:38:58 lefty-laptop kernel: PM: Image saving progress: 90%
    Jan 08 23:38:58 lefty-laptop kernel: PM: Image saving progress: 100%
    Jan 08 23:38:58 lefty-laptop kernel: PM: Image saving done.
    Jan 08 23:38:58 lefty-laptop kernel: PM: Wrote 791060 kbytes in 4.67 seconds (169.39 MB/s)
    Jan 08 23:38:58 lefty-laptop kernel: PM: S
    Jan 08 23:38:58 lefty-laptop kernel: PM: Swap header not found!
    Jan 08 23:38:58 lefty-laptop kernel: |
    Jan 08 23:38:58 lefty-laptop kernel: PM: Basic memory bitmaps freed
    Jan 08 23:38:58 lefty-laptop kernel: Restarting tasks ... done.
    Jan 08 23:38:58 lefty-laptop kernel: video LNXVIDEO:00: Restoring backlight state
    Jan 08 23:38:58 lefty-laptop laptop-mode[28617]: Laptop mode
    Jan 08 23:38:58 lefty-laptop laptop-mode[28618]: enabled, not active [unchanged]
    Jan 08 23:38:58 lefty-laptop laptop-mode[28622]: Laptop mode
    Jan 08 23:38:58 lefty-laptop laptop-mode[28623]: enabled, not active [unchanged]
    Perhaps the "PM: swap header not found" is not the primary error?
    Last edited by LeftyAce (2014-01-12 06:08:55)

    LeftyAce wrote:
    ROOKIE: which UUID do you use? If I list /dev/disk/by-uuid I get two results:
    total 0
    lrwxrwxrwx 1 root root 10 Jan 11 18:06 06f4c97e-fe09-45a8-a937-dedb6b18339b -> ../../dm-0
    lrwxrwxrwx 1 root root 10 Jan 11 18:06 a0eb0a15-6d5d-4df2-a0d3-6f7fb00885c6 -> ../../sda1
    I think one of them is the actual device, the other is the dm-crypt container? I guess I could try both...I'll report back.
    Usually I use the output of blkid to find out the correct uuid. The uuid to use for / or swap is the one pointing to one of /dev/dm*.
    LeftyAce wrote:For the record I am using resume=/dev/mapper/cryptroot. I think since the swapfile is a file not a block device in my case that's important. Since the encrypt hook runs first, that mapper volume is present and unlocked by the time resume comes around.
    In my case the same happens but for some reason it doesn't seem to work, and I've been procrastinating submitting a bug (I use hibernation very rarely and I know of a way that works).

  • Firefox 20-22 on Windows 7 x64 unresponsive after Hibernation (Suspend to Disk)

    Since Firefox 20, Firefox keeps unresponsive after using Hibernation mode (not Stand-By, Not Power Save) on 2 of my Windows 7 x64 systems (most recent Java, Flash & Operating System updates). Even in Safe Mode.
    The problem is, that none of the elements respond to clicks ( site itself, tabs, menu-bar, close, toolbars,status bar, minimize maximize etc.) or scrolling nor does firefox react after killing the plugin container or flash player via the task manager. Seldom (1 in about 20 times) a "script unresponsive" dialog showed up without effect when selecting "Stop Script".
    The problem seems independent from the site opened (be it Google, Facebook, plain HTML sites without any active content) and also independend from the number of sites opened since it shows the behaviour even if only one page is opened.
    The one strange thing is that one is able to save all currently opened tabs by using CTRL+SHIFT+D. "The Save All Bookmarks-dialog" immediately shows up and has absolutely no responsiveness issues.
    The problem persists until you force close it via the task manager and restart it.
    Things i tried:
    - Wait for 20 Minutes
    - Power Save Mode (Stand-by that reacts on mouse movements) -> Problem not occuring
    - Firefox Safe-Mode -> No positive effect
    - Reinstall Firefox -> No effect
    - Reinstall Flash & Java (x64 Versions)
    - Machines are:
    Lenovo U410 (Core i5, 8GB, SSD, Firefox on HDD) &
    Custom System (Core 2 Duo E8500, 4GB RAM, 256GB Samsung SSD 830 (Firefox on SSD), 2x2TB Seagate Barracuda Green)

    I've had a similar problem since upgrading to Firefox 22 on Windows 7 x64. After resuming from hibernation, Firefox appears unresponsive; however, I believe it is a problem with redrawing the window. If I click to a different tab, nothing happens, but if I minimize Firefox and restore it, it now shows the new tab I switched to. If I have a video open and I click play, there is no visual change, but I hear the sound start. The normal functionality is resumed when closing Firefox and re-opening it.

  • [solved] powersaved does not resume after suspend to disk

    Hello,
    I've just changed over Arch Linux and this is the first time i'm using the distro, migrating from slackware. Anytime I do a powersave -U through the CLI, my notebook shuts down and swsusp writes to my swap but on resuming the notebook boots back like it would normally with an invalid swap signature. Not sure why it doesn't read the swap signature on coming back up. Here's the conents of my menu.lst file from grub:
    # Config file for GRUB - The GNU GRand Unified Bootloader
    # /boot/grub/menu.lst
    # DEVICE NAME CONVERSIONS
    # Linux Grub
    # /dev/fd0 (fd0)
    # /dev/hda (hd0)
    # /dev/hdb2 (hd1,1)
    # /dev/hda3 (hd0,2)
    # FRAMEBUFFER RESOLUTION SETTINGS
    # +-------------------------------------------------+
    # | 640x480 800x600 1024x768 1280x1024
    # ----+--------------------------------------------
    # 256 | 0x301=769 0x303=771 0x305=773 0x307=775
    # 32K | 0x310=784 0x313=787 0x316=790 0x319=793
    # 64K | 0x311=785 0x314=788 0x317=791 0x31A=794
    # 16M | 0x312=786 0x315=789 0x318=792 0x31B=795
    # +-------------------------------------------------+
    # general configuration:
    timeout 5
    default 0
    color light-blue/black light-cyan/blue
    # boot sections follow
    # each is implicitly numbered from 0 in the order of appearance below
    # TIP: If you want a 1024x768 framebuffer, add "vga=773" to your kernel line.
    title Arch Linux
    kernel (hd0,0)/vmlinuz26 root=/dev/hda3 resume=/dev/hda2 vga=791 ro
    initrd (hd0,0)/initrd26.img
    Honestly i'm stumped and any help on why this is happening would be greatly appreciated.
    TIA
    Last edited by brokenflea (2007-03-06 21:41:35)

    Figured it out. The problem was with hooks.
    So I edited, the /etc/mkinitcpio.conf file, added resume to the HOOKS="" section and then ran mkinitcpio -g /boot/vmlinuz26-rev.img
    That created the initrd image and i replaced the existing image in grub with the newly created one.

  • Stuck on 'Initializing the kernel' after suspend to disk

    I have fbsplash installed and everything works find, including hibernate. The splash screens for hibernate are fine and the machine hibernates just fine. When I start up again the hibernate image seems to load but the text flickers back and forth to 'Initializing the kernel' and then stops there. Hibernation worked before I tried fbsplash. I've added to 'uresume' to /etc/mkinitcpio.conf. Do I need to remove 'resume'?

    I hope you have a backup for the device because you will need to restore the device. To put your device into recovery mode plug the device into your computer with iTunes then press and hold the home button and the sleep/wake button. The unit will power off and turn back on, right before the Apple logo appears release the sleep/wake button and the iPad should show the iTunes logo. In iTunes open your device and press the restore button. When the iPad finishes reinstalling iOS, select your latest backup either from iTunes or on the device through iCloud backup and your device should be good to go.

  • Failure to wake up from disk suspended hybernation

    Hello everybody,
    when running my MacBook Pro (8,2) is so low on battery that it suspends to disk before poweroutage, it fails to wake up correctly. What happens is this:
    Battery running low, suspension to disk runs, MacBook Pro is sleeping. Battery indicator on the left side links when pressed.
    After attaching power cord, MacBook Pro wakes up fine, asks for my password (FileVault2 is running).
    Then the bar on the bottom of the screen shows up, indicating that it reads the hybernation suspension file.
    This progress always goes to the last but one part of the bar. Then it stops and the chime is heard that I only know from my Mac if it can not start up because of a hardware test failure (like wrong RAM installed).
    Then I have to force it to turn off by pressing the power button 5 seconds.
    After that, it starts normally, and all apps that have been running before the battery when out, are restored.
    pmset -g just after such an incident (with power cord attached) will give these informations:
    Active Profiles:
    Battery Power           -1
    AC Power                 -1*
    Currently in use:
    standbydelay            4200
    standby                    0
    womp                       1
    halfdim                     1
    hibernatefile              /var/vm/sleepimage
    gpuswitch                 2
    sms                         1
    networkoversleep      0
    disksleep                 10
    sleep                       0
    hibernatemode          7
    ttyskeepawake         1
    displaysleep             30
    acwake                    0
    lidwake                    1
    Any suggestion on how to fix this is much appreciated.
    Regards
    Jim Knopf
    Message was edited by Jim Knopf: reformated terminal output

    It's an external one. USB. I started thinking maybe if I disable usb from suspending it might actually work. How do I disable usb from suspending? Or any other ideas?
    Cheers!
    Last edited by crid (2011-10-07 12:12:39)

  • [solved] Suspend to RAM and later to disk

    Hello,
    I am a new laptop owner (and new Archlinux user).
    On its original operating system, my laptop has a feature which basically does:
    1- suspend to RAM
    2- after 1 hour in this suspend mode, it wakes up briefly and suspend to disk
    I found many wiki pages about suspending either to disk or to RAM or even both, like https://wiki.archlinux.org/index.php/Su … _Hibernate and that works fine with my laptop.
    But none gave me a solution with this kind of behavior.
    Note that this is different from "hybrid-sleep" which suspend to RAM and disk at the same time and use disk save in case the battery if emptied.
    I see many benefits from what I look for:
    - very fast suspend (on lid close for instance);
    - if I re-open the lid within the hour, very quick restore;
    - if I let the laptop as it is, I know it will automatically suspend to disk and thus I do not worry about battery usage;
    - compared to hybrid-sleep, if I forget my laptop in sleep mode, the battery state will be about the same as when I stopped working, whereas hybrid-sleep needs a recharge.
    So, do you know if it is possible to suspend to RAM and later to disk on Archlinux?
    Any pointers on how to do so?
    Thanks!
    Last edited by cjlano (2013-04-08 20:53:38)

    Hello,
    Here is my solution for a Archlinux / systemd "suspend sedation" based on http://askubuntu.com/questions/12383/ho … -hibernate
    The following script is a Systemd sleep hook. It uses a RTC wake up event (rtcwake) to get out of suspend state and go to hibernate state. If the system leaves suspend state before the RTC event, the RTC wake is cancelled.
    Save the following code in /usr/lib/systemd/system-sleep/suspend-sedation.sh, and make it executable.
    #!/bin/bash
    # Purpose: Auto hibernates after a period of sleep
    # Edit the "autohibernate" variable below to set the number of seconds to sleep.
    lockfile=/var/run/systemd/rtchibernate.lock
    curtime=$(date +%s)
    # 30 min
    autohibernate=1800
    case $1/$2 in
    pre/suspend)
    # Suspending. Record current time, and set a wake up timer.
    echo "Suspending until" `date -d "$autohibernate seconds"`
    echo "$curtime" > $lockfile
    rtcwake -m no -s $autohibernate
    post/suspend)
    # Coming out of sleep
    sustime=$(cat $lockfile)
    echo -n "Back from suspend... "
    rm $lockfile
    # Did we wake up due to the rtc timer above?
    if [ $(($curtime - $sustime)) -ge $autohibernate ]
    then
    # Then hibernate
    echo "hibernate"
    /usr/bin/systemctl hibernate
    else
    echo "wake-up"
    # Otherwise cancel the rtc timer and wake up normally.
    rtcwake -m disable
    fi
    esac
    This script outputs some log you can view using
    journalctl -b -u systemd-suspend
    Any improvements welcome!

  • [Solved] Suspend not working on Asus N82JV / USB 3.0

    *Solved* Turns out you just have to create a file in /etc/pm/config.d with the following text: SUSPEND_MODULES="xhci-hcd ehci-hcd". Voilá. Suspend to ram works by a) sudo pm-suspend b) Ordering KDE to suspend c) Fn+F1.
    I've been trying to figure this out for some time now.
    I've managed to get suspending to disk working, using hibernate-script with USuspendMethod disk. I had to blacklist xhci_hcd (usb 3.0) in order for it to work.
    I already tried pretty much every s2ram combination as described here, even though I haven't yet tried the booting with minimal environment part.
    Every combination ends up complety locking the system, with no possibility of ctrl+alt+fx or even ctrl+alt+del. Just hangs 'forever'.
    /etc/suspend.conf
    snapshot device = /dev/snapshot
    resume device = /dev/sda7
    #image size = 350000000
    suspend loglevel = 2
    compute checksum = y
    compress = y
    #encrypt = y
    #early writeout = y
    #splash = y
    shutdown method = shutdown
    /etc/hibernate/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 3
    #LogTimestamp yes
    AlwaysForce yes
    # AlwaysKill yes
    # HibernateVT 15
    Distribution arch
    # 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
    #DirectIsa
    ### devices
    # IncompatibleDevices /dev/dsp /dev/video*
    ### diskcache
    # DisableWriteCacheOn /dev/hda
    ### fbsplash (enable SwitchToTextMode if you use this)
    # FBSplash on
    # FBSplashTheme tuxonice
    ### 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
    # RadeonTool yes
    # Runi915resolution yes
    FullSpeedCPU yes
    ### lilo
    # EnsureLILOResumes yes
    ### lock (generally you only want one of the following options)
    ## For console you need vlock available.
    ## For x you need xscreensaver-command-command available.
    ## For gnome you need gnome-screensaver-command available.
    ## For kde you need dcop, kscreensaver available.
    ## For XAuto you need xautolock available.
    ## For Xtr you need xtrlock available.
    ## For Freedesktop (for example KDE4) you need dbus-send available
    # LockConsoleAs root
    # LockXScreenSaver yes
    LockGnomeScreenSaver yes
    # LockFreedesktop
    # LockKDE yes
    # LockXLock yes
    # LockXAutoLock yes
    # LockXtrLock 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 anacron
    # 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:
    ## For gnome you need zenity available.
    ## For kde you need dcop, kstart, kdialog available.
    ## For x you need to have xosd OR xmessage available.
    # 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
    ## You need to have dbus, gaim_remote available.
    # LogoutGaim yes
    # GaimRestoreStatus yes
    # GaimLogoutMessage Hibernating
    # GaimLoginMessage Back from hibernation
    ### pidgin
    # LogoutPidgin yes
    # PidginRestoreStatus yes
    # PidginLogoutMessage Hibernating - bye!
    # PidginLoginMessage I'm back!
    ### SSH and PGP keys
    # AgentsClearGPG yes
    # AgentsClearSSH yes
    ### Virtualbox
    # SuspendVirtualbox yes
    ### Dropping disk caches
    # As a way to speed up suspending, you can free the memory used for disk caches so there will be less to write to the disk. The downside is the risk of crashing your system. but I have had no trouble with it so far, while reducing the size of the suspended image by half.
    #OnSuspend 00 sync; echo 3 > /proc/sys/vm/drop_caches
    /etc/hibernate/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 s2ram is unsure, let it use system-specific options instead of having to
    ## force it.
    #USuspendRamUnsureOk 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
    ## if needed, pass the -v option to s2ram
    USuspendRamPciSave yes
    ## if needed, pass the -r option to s2ram
    # USuspendRamRadeontool yes
    Include common.conf
    Here's the output from /var/log/hibernate.conf, from when I try hibernate -F /etc/hibernate/ususpend-ram.conf
    Starting suspend at Seg Ago 16 22:38:02 WEST 2010
    hibernate: [01] Executing CheckLastResume ...
    hibernate: [01] Executing CheckRunlevel ...
    hibernate: [01] Executing LockFileGet ...
    hibernate: [01] Executing NewKernelFileCheck ...
    hibernate: [10] Executing EnsureUSuspendCapable ...
    hibernate: [11] Executing XHacksSuspendHook1 ...
    hibernate: [59] Executing RemountXFSBootRO ...
    hibernate: [61] Executing NMSuspend ...
    Putting NetworkManager to sleep
    hibernate: [89] Executing SaveKernelModprobe ...
    Saved /proc/sys/kernel/modprobe is /sbin/modprobe
    hibernate: [91] Executing LockGnomeScreensaver ...
    hibernate: [91] Executing ModulesUnloadBlacklist ...
    Unloading blacklisted modules listed /etc/hibernate/blacklisted-modules
    Module version for ipw2100 is 66050
    Module version for ipw2200 is 66050
    Module version for snd_bt_sco is
    Module version for ndiswrapper is
    Unloading blacklisted module uvcvideo (and dependencies)
    Unloading uvcvideo ...
    Removing modules with rmmod.
    Unloading blacklisted module xhci_hcd (and dependencies)
    Unloading xhci_hcd ...
    hibernate: [95] Executing XHacksSuspendHook2 ...
    xhacks: changing console from 7 to 15
    hibernate: [98] Executing CheckRunlevel ...
    hibernate: [98] Executing FullSpeedCPUSuspend ...
    Switched to performance, with min freq at 2267000
    Switched to performance, with min freq at 2267000
    Switched to performance, with min freq at 2267000
    Switched to performance, with min freq at 2267000
    hibernate: [99] Executing DoUSuspend ...
    hibernate: Running /usr/sbin/s2ram -f -m -a 3 -v...
    lspci
    spci
    00:00.0 Host bridge: Intel Corporation Core Processor DRAM Controller (rev 12)
    00:01.0 PCI bridge: Intel Corporation Core Processor PCI Express x16 Root Port (rev 12)
    00:02.0 VGA compatible controller: Intel Corporation Core Processor Integrated Graphics Controller (rev 12)
    00:16.0 Communication controller: Intel Corporation 5 Series/3400 Series Chipset HECI Controller (rev 06)
    00:1a.0 USB Controller: Intel Corporation 5 Series/3400 Series Chipset USB2 Enhanced Host Controller (rev 06)
    00:1b.0 Audio device: Intel Corporation 5 Series/3400 Series Chipset High Definition Audio (rev 06)
    00:1c.0 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 1 (rev 06)
    00:1c.1 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 2 (rev 06)
    00:1c.3 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 4 (rev 06)
    00:1c.5 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 6 (rev 06)
    00:1d.0 USB Controller: Intel Corporation 5 Series/3400 Series Chipset USB2 Enhanced Host Controller (rev 06)
    00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev a6)
    00:1f.0 ISA bridge: Intel Corporation Mobile 5 Series Chipset LPC Interface Controller (rev 06)
    00:1f.2 SATA controller: Intel Corporation 5 Series/3400 Series Chipset 4 port SATA AHCI Controller (rev 06)
    00:1f.3 SMBus: Intel Corporation 5 Series/3400 Series Chipset SMBus Controller (rev 06)
    00:1f.6 Signal processing controller: Intel Corporation 5 Series/3400 Series Chipset Thermal Subsystem (rev 06)
    01:00.0 VGA compatible controller: nVidia Corporation Device 0caf (rev ff)
    03:00.0 Network controller: Atheros Communications Inc. AR9285 Wireless Network Adapter (PCI-Express) (rev 01)
    04:00.0 USB Controller: NEC Corporation Device 0194 (rev 03)
    05:00.0 Ethernet controller: Atheros Communications Device 1063 (rev c0)
    ff:00.0 Host bridge: Intel Corporation Core Processor QuickPath Architecture Generic Non-core Registers (rev 02)
    ff:00.1 Host bridge: Intel Corporation Core Processor QuickPath Architecture System Address Decoder (rev 02)
    ff:02.0 Host bridge: Intel Corporation Core Processor QPI Link 0 (rev 02)
    ff:02.1 Host bridge: Intel Corporation Core Processor QPI Physical 0 (rev 02)
    ff:02.2 Host bridge: Intel Corporation Core Processor Reserved (rev 02)
    ff:02.3 Host bridge: Intel Corporation Core Processor Reserved (rev 02)
    lsusb
    Bus 002 Device 003: ID 0bda:0116 Realtek Semiconductor Corp. Mass Storage Device
    Bus 002 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
    Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 001 Device 003: ID 04f2:b1bb Chicony Electronics Co., Ltd
    Bus 001 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    lsmod
    Module Size Used by
    cryptd 6246 0
    aes_x86_64 7396 1
    aes_generic 26154 1 aes_x86_64
    acpi_call 1712 0
    ipv6 280376 32
    usb_storage 42628 0
    uvcvideo 59687 0
    videodev 39355 1 uvcvideo
    v4l1_compat 15554 2 uvcvideo,videodev
    v4l2_compat_ioctl32 10681 1 videodev
    snd_hda_codec_intelhdmi 10070 1
    snd_hda_codec_realtek 267731 1
    snd_seq_oss 29920 0
    snd_seq_midi_event 5420 1 snd_seq_oss
    snd_seq 51394 4 snd_seq_oss,snd_seq_midi_event
    snd_seq_device 5469 2 snd_seq_oss,snd_seq
    snd_hda_intel 21906 2
    snd_hda_codec 76787 3 snd_hda_codec_intelhdmi,snd_hda_codec_realtek,snd_hda_intel
    snd_hwdep 6286 1 snd_hda_codec
    snd_pcm 71781 2 snd_hda_intel,snd_hda_codec
    asus_laptop 14339 0
    sparse_keymap 2547 1 asus_laptop
    wmi 5925 0
    nouveau 523432 0
    snd_timer 19820 2 snd_seq,snd_pcm
    ac 3089 0
    battery 10055 0
    thermal 12258 0
    ttm 45713 1 nouveau
    snd 58291 13 snd_hda_codec_realtek,snd_seq_oss,snd_seq,snd_seq_device,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm,snd_timer
    snd_page_alloc 7233 2 snd_hda_intel,snd_pcm
    arc4 1362 2
    ecb 1993 2
    joydev 9863 0
    xhci_hcd 45124 0
    ath9k 72182 0
    ath9k_common 2529 1 ath9k
    iTCO_wdt 10669 0
    iTCO_vendor_support 1849 1 iTCO_wdt
    mac80211 182919 2 ath9k,ath9k_common
    ath9k_hw 216824 2 ath9k,ath9k_common
    ath 8790 2 ath9k,ath9k_hw
    cfg80211 141632 4 ath9k,ath9k_common,mac80211,ath
    rfkill 15518 2 asus_laptop,cfg80211
    led_class 2347 2 asus_laptop,ath9k
    atl1c 31680 0
    i2c_i801 8598 0
    ehci_hcd 36042 0
    usbcore 145453 5 usb_storage,uvcvideo,xhci_hcd,ehci_hcd
    cpufreq_powersave 942 0
    psmouse 53592 0
    cpufreq_ondemand 7990 4
    sg 25328 0
    acpi_cpufreq 6491 1
    freq_table 2339 2 cpufreq_ondemand,acpi_cpufreq
    evdev 8775 16
    serio_raw 4470 0
    pcspkr 1803 0
    processor 29040 5 acpi_cpufreq
    fuse 59417 7
    soundcore 6089 1 snd
    rtc_cmos 8886 0
    rtc_core 14439 1 rtc_cmos
    rtc_lib 1882 1 rtc_core
    ext4 330125 1
    mbcache 5762 1 ext4
    jbd2 75607 1 ext4
    crc16 1281 1 ext4
    sr_mod 14842 0
    cdrom 35809 1 sr_mod
    sd_mod 27923 5
    ahci 36972 4
    libata 155099 1 ahci
    scsi_mod 94212 5 usb_storage,sg,sr_mod,sd_mod,libata
    i915 296298 2
    drm_kms_helper 23740 2 nouveau,i915
    drm 162265 5 nouveau,ttm,i915,drm_kms_helper
    i2c_algo_bit 5071 2 nouveau,i915
    button 4818 2 nouveau,i915
    i2c_core 18364 7 videodev,nouveau,i2c_i801,i915,drm_kms_helper,drm,i2c_algo_bit
    video 19077 1 i915
    output 1956 1 video
    intel_agp 29074 2 i915
    Am I missing something? Is it another module? Some hardware that's causing this? The only other odd hardware configuration, other than USB 3.0 is the dual graphic cards (Nvidia Optimus). The Nvidia is powered down, though (tried both ways).
    Note: The default suspend system doesn't work, it just locks the screen (if in gnome/kde/whatever)
    Last edited by Xehoz (2010-11-25 23:37:14)

    Looke like tripplec has this right.  From http://support.lenovo.com/en_US/product-and-parts/detail.page?&DocID=PD024298
    Notes:
    ThinkPad T420, T420s and T520 models, USB 3.0 port on the Mini Dock Series 3 with USB 3.0 will function as a USB 2.0 port.
    Thinkpad T430, T430s and T530 models on the Mini Dock Series 3 with USB 3.0 will function as a USB 3.0 port.
    The functionality of the T420, T420s and T520 is a limitation of the Intel Chipset not a defect in either the Thinkpad or Mini Dock Series 3 with USB 3.0
    I don't see that on the sales page.  Only found it by searching on the part number
    Z.
    The large print: please read the Community Participation Rules before posting. Include as much information as possible: model, machine type, operating system, and a descriptive subject line. Do not include personal information: serial number, telephone number, email address, etc.  The fine print: I do not work for, nor do I speak for Lenovo. Unsolicited private messages will be ignored. ... GeezBlog
    English Community   Deutsche Community   Comunidad en Español   Русскоязычное Сообщество

  • Suspend failure on A8N-E

    hey all,
    this is yet another suspend problem, wondering if its anything trivial im doing wrong
    simply suspend runs the scripts (as far as i can see) pretty well and seems to work,  the screen turns off, some other hardware seem to shut down but essentially the system is still running at full power, which is my problem.
    i've tried pm-suspend and the in built suspend button in xfce, all fail with the problems above
    echo mem /sys/power/state is the same except the screen stays on with a blinking cursor in the corner
    some other info:
    /var/log/pm-suspend.log:
    Initial commandline parameters: --quirk-dpms-suspend
    --quirk-dpms-on
    --quirk-vbestate-restore
    --quirk-vbemode-restore
    --quirk-vga-mode3
    --quirk-vbe-post
    Sun Mar 8 20:59:53 GMT 2009: Running hooks for suspend.
    /usr/lib/pm-utils/sleep.d/00auto-quirk suspend suspend: success.
    /usr/lib/pm-utils/sleep.d/00logging suspend suspend: Linux sarin 2.6.28-ARCH #1 SMP PREEMPT Sun Feb 22 11:03:50 UTC 2009 i686 AMD Athlon(tm) 64 Processor 3700+ AuthenticAMD GNU/Linux
    Module Size Used by
    isofs 33700 1
    zlib_inflate 19968 1 isofs
    udf 82596 0
    crc_itu_t 3840 1 udf
    ipv6 260340 12
    radeon 145824 2
    drm 83880 3 radeon
    agpgart 31572 1 drm
    fuse 53020 4
    joydev 11712 0
    hid_logitech 11392 0
    ff_memless 6792 1 hid_logitech
    cx88_dvb 17668 0
    cx88_vp3054_i2c 4352 1 cx88_dvb
    mt352 8196 1 cx88_dvb
    s5h1409 10500 1 cx88_dvb
    dvb_pll 10632 1 cx88_dvb
    s5h1411 11396 1 cx88_dvb
    or51132 9988 1 cx88_dvb
    cx24116 17032 1 cx88_dvb
    nxt200x 14980 1 cx88_dvb
    isl6421 3840 1 cx88_dvb
    stb6000 5380 1 cx88_dvb
    zl10353 9352 1 cx88_dvb
    cx24123 15368 1 cx88_dvb
    lgdt330x 10244 1 cx88_dvb
    stv0299 11656 1 cx88_dvb
    stv0288 9352 1 cx88_dvb
    cx22702 7556 1 cx88_dvb
    wm8775 7596 0
    ppdev 9348 0
    tuner 26692 0
    tea5767 8580 1 tuner
    tda8290 14468 1 tuner
    tda18271 36360 1 tda8290
    tda827x 11652 1 tda8290
    tuner_xc2028 23600 2 cx88_dvb,tuner
    xc5000 13192 2 cx88_dvb,tuner
    tda9887 12164 2 cx88_dvb,tuner
    tuner_simple 16144 2 cx88_dvb,tuner
    tuner_types 16000 1 tuner_simple
    mt20xx 14088 1 tuner
    tea5761 6660 1 tuner
    lp 11108 0
    ppp_generic 25116 0
    slhc 7552 1 ppp_generic
    pcspkr 4352 0
    psmouse 55828 0
    cx88_alsa 12424 1
    cx8802 16900 1 cx88_dvb
    cx8800 31236 0
    cx88xx 69800 4 cx88_dvb,cx88_alsa,cx8802,cx8800
    compat_ioctl32 3072 1 cx8800
    v4l2_common 13184 3 wm8775,tuner,cx8800
    videodev 34176 3 tuner,cx8800,cx88xx
    v4l1_compat 15364 1 videodev
    ir_common 40452 1 cx88xx
    i2c_algo_bit 7556 2 cx88_vp3054_i2c,cx88xx
    tveeprom 13956 1 cx88xx
    videobuf_dvb 8324 3 cx88_dvb,cx8802,cx88xx
    dvb_core 81024 5 cx88_dvb,or51132,lgdt330x,stv0299,videobuf_dvb
    btcx_risc 6408 4 cx88_alsa,cx8802,cx8800,cx88xx
    videobuf_dma_sg 12932 5 cx88_dvb,cx88_alsa,cx8802,cx8800,cx88xx
    videobuf_core 17668 5 cx8802,cx8800,cx88xx,videobuf_dvb,videobuf_dma_sg
    serio_raw 7172 0
    k8temp 6144 0
    ohci1394 31280 0
    ieee1394 79940 1 ohci1394
    sg 26804 0
    usb_storage 95552 0
    ati_remote 11656 0
    usbhid 36640 1 hid_logitech
    hid 40704 2 hid_logitech,usbhid
    parport_pc 37700 1
    parport 33004 3 ppdev,lp,parport_pc
    i2c_nforce2 8580 0
    i2c_core 22804 33 cx88_vp3054_i2c,mt352,s5h1409,dvb_pll,s5h1411,or51132,cx24116,nxt200x,isl6421,stb6000,zl10353,cx24123,lgdt330x,stv0299,stv0288,cx22702,wm8775,tuner,tea5767,tda8290,tda18271,tda827x,tuner_xc2028,xc5000,tda9887,tuner_simple,mt20xx,tea5761,cx88xx,v4l2_common,i2c_algo_bit,tveeprom,i2c_nforce2
    evdev 11296 6
    thermal 17180 0
    fan 6276 0
    button 7824 0
    battery 12036 0
    ac 6020 0
    snd_seq_oss 31872 0
    snd_seq_midi_event 8192 1 snd_seq_oss
    snd_seq 49968 4 snd_seq_oss,snd_seq_midi_event
    snd_seq_device 8204 2 snd_seq_oss,snd_seq
    snd_intel8x0 30876 2
    snd_ac97_codec 102308 1 snd_intel8x0
    snd_pcm_oss 40192 0
    snd_pcm 70020 4 cx88_alsa,snd_intel8x0,snd_ac97_codec,snd_pcm_oss
    snd_timer 21384 2 snd_seq,snd_pcm
    snd_page_alloc 10120 2 snd_intel8x0,snd_pcm
    snd_mixer_oss 16512 2 snd_pcm_oss
    snd 50852 14 cx88_alsa,snd_seq_oss,snd_seq,snd_seq_device,snd_intel8x0,snd_ac97_codec,snd_pcm_oss,snd_pcm,snd_timer,snd_mixer_oss
    soundcore 8160 2 snd
    ac97_bus 3584 1 snd_ac97_codec
    arc4 3712 2
    ecb 4608 2
    zd1211rw 46596 0
    mac80211 161184 1 zd1211rw
    cfg80211 31760 2 zd1211rw,mac80211
    forcedeth 56592 0
    cpufreq_ondemand 8972 1
    powernow_k8 15364 0
    freq_table 5632 2 cpufreq_ondemand,powernow_k8
    processor 41388 2 thermal,powernow_k8
    rtc_cmos 12332 0
    rtc_core 17564 1 rtc_cmos
    rtc_lib 4480 1 rtc_core
    jfs 176364 1
    sd_mod 26904 5
    ohci_hcd 25360 0
    ehci_hcd 36876 0
    sr_mod 16708 1
    cdrom 35360 1 sr_mod
    usbcore 136848 7 usb_storage,ati_remote,usbhid,zd1211rw,ohci_hcd,ehci_hcd
    sata_nv 24072 4
    ata_generic 6788 0
    pata_amd 12292 1
    pata_acpi 6016 0
    libata 157856 4 sata_nv,ata_generic,pata_amd,pata_acpi
    scsi_mod 102164 5 sg,usb_storage,sd_mod,sr_mod,libata
    total used free shared buffers cached
    Mem: 1034812 815028 219784 0 66896 520532
    -/+ buffers/cache: 227600 807212
    Swap: 2096440 2832 2093608
    success.
    /usr/lib/pm-utils/sleep.d/00powersave suspend suspend: success.
    /usr/lib/pm-utils/sleep.d/01grub suspend suspend: not applicable.
    /usr/lib/pm-utils/sleep.d/11netcfg suspend suspend: /bin/stty: standard input: Invalid argument
    :: ZoomWLAN down [BUSY] [DONE]
    success.
    /usr/lib/pm-utils/sleep.d/49bluetooth suspend suspend: not applicable.
    /usr/lib/pm-utils/sleep.d/55NetworkManager suspend suspend: success.
    /usr/lib/pm-utils/sleep.d/75modules suspend suspend: not applicable.
    /usr/lib/pm-utils/sleep.d/90chvt suspend suspend: success.
    /usr/lib/pm-utils/sleep.d/90clock suspend suspend: not applicable.
    /usr/lib/pm-utils/sleep.d/94cpufreq suspend suspend: success.
    /usr/lib/pm-utils/sleep.d/95led suspend suspend: not applicable.
    /usr/lib/pm-utils/sleep.d/98smart-kernel-video suspend suspend: not applicable.
    /usr/lib/pm-utils/sleep.d/99video suspend suspend: kernel.acpi_video_flags = 0
    Allocated buffer at 0x2010 (base is 0x0)
    ES: 0x0201 EBX: 0x0000
    success.
    Sun Mar 8 20:59:54 GMT 2009: performing suspend
    Hardware:
    ASUS A8N-E
    AMD Athlon64 3700+
    ATI Radeon X1600 Pro (using radeon driver)
    ZyDAS ZD1211 WLAN
    Any ideas? kernel? acpi? If i need to provide any more information just ask
    Thanks

    The Supend to Disk page on the wiki is easy to follow, but I'll outline how I got it working just because.
    First I had to install uswsusp and hibernate-script.  You don't need to do anything with s2disk, but you need to configure hibernate properly to work with it.  To do that was actually quite easy.
    Edit the following files (in /etc/hibernate): blacklisted-modules, common.conf, disk.conf, hibernate.conf.
    In blacklisted-modules, if you use nVidia, you'll need to comment out or delete the nvidia line.  If you don't, you probably don't need to touch this file.
    In common.conf I added a line that says "RestartServices network" (no quotes) under the "###services" section because after resuming I was unable to do anything online at first.  This was the only edit.
    In disk.conf just make sure the first uncommented line is "TryMethod ususpend-disk.conf".  By default it should be listed first.
    In hibernate.conf I commented out "TryMethod suspend2.conf", although I'm not sure this was necessary since I don't have TuxOnIce installed or configured.  Other than this, make sure "TryMethod disk.conf" is listed first so hibernate knows to suspend to disk rather than RAM.
    The other three files that need editing are /etc/suspend.conf, /boot/grub/menu.lst and /etc/mkinitcpio.conf. 
    In suspend.conf change the "resume device" line to point to your swap partition.  I have "resume device = /dev/disk/by-uuid/91d8da0d-007e-42f1-bae3-d5f1741b5dd4" since I have 2 hard drives and occasionally they switch back and forth between sda and sdb, but if you have just one /dev/sdax works.  You'll also point to this partition in menu.lst; on the "kernel" line make sure you add the option "resume=/dev/..." (where ... will be replaced with sdax or disk/by-uuid, or whatever method  you prefer).
    Finally, edit the last line in mkinitcpio.conf by adding "uresume" between "sata" and "filesystems".
    After you've done all this run the command "mkinitcpio -p kernel26" as root and you should be set.  A simple "sudo hibernate" (or just running "hibernate" as root) will do the job, and hopefully everything will work.  I was surprised when it did, but pleased.

Maybe you are looking for

  • How to sync Nokia 9300i & Address Book without loosing contacts data/labels

    Hi, I have a Nokia comunicator 9300i and would like to backup the contacts in it (over 700) using a Mac. I can do that on the PC using Nokia's own backup suite. Yes, Nokia Comunicator 9300i is on the supported devices list and yes it does sync nicely

  • IPod needs to be formatted

    So I dont have any idea what happened to my iPod, but it needs to be fomatted now. And I don't have any of the music backed up or anywhere. Is there anyway I can get it off and put somewhere on the computer without formatting it?

  • Can lightroom 3 complete 1:1 previews when unreadable files are detected

    when lightroom 2.6 detects an unreadable file, be it a .mov or a corrupt file, it stops the process of creating 1:1 previews until I answer the dialogue box that pops up after the import and before the previews are built. Can it please allow the proc

  • Unable to restrict file share access

    I've got a weird issue with file share and firewall settings that has had me stumped for a couple of days. Hopefully someone can explain what I'm doing wrong or overlooking. I've got a single dedicated box running Server Essentials 2012 hosted in a d

  • Trying to Create External Table in 8i

    hi Grus, We are still on 8.1.7 version. And oracle 8i doesn't support the External table feature. last week i found a very useful documentation to access an operating system file from SQPLUS. but i am having a small problem, may be one of you guys ca