[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!

Similar Messages

  • [solved] unload module alx on suspend fails

    Hi!
    I'm having trouble getting my ethernet card to work properly with  suspend to ram (pm-suspend). Its a Qualcomm Atheros AR8161 Gigabit Ethernet Adapter (builtin ethernet-card of the Asus N56VZ) that I'm running with the alx-module that I build from the compat-drivers (compat-drivers-3.9-rc2-2-su, so version 1.2.3 of the alx module) on kernel 3.8.8-2. The driver works fine except it breaks suspend. A first suspend works fine (see suspend.log, upper part), however, after resuming, NetworkManager does not detect a cable being plugged in. Trying to suspend again fails results in the lower part  of suspend.log. Removing and probing the module again (reload.log) seems to work fine and resets the whole thing (network works, one suspend works, all following do not work)
    Logs see https://gist.github.com/anonymous/5467609
    I created a file SUSPEND_MODULES="alx" /etc/pm/config.d/modules (rights 644) that as far as I understand is supposed to unload and load the module upon suspend and resume but for some reason this does not seem to work properly. Why is that, am I just missing a typo? How can I fix it?
    Any help is appreciated!
      Hannes
    PS:
    $ lspci -v
    04:00.0 Ethernet controller: Qualcomm Atheros AR8161 Gigabit Ethernet (rev 10)
    Subsystem: ASUSTeK Computer Inc. N56VZ
    Flags: bus master, fast devsel, latency 0, IRQ 19
    Memory at f7800000 (64-bit, non-prefetchable) [size=256K]
    I/O ports at d000 [size=128]
    Capabilities: [40] Power Management version 3
    Capabilities: [58] Express Endpoint, MSI 00
    Capabilities: [c0] MSI: Enable- Count=1/16 Maskable+ 64bit+
    Capabilities: [d8] MSI-X: Enable+ Count=16 Masked-
    Capabilities: [100] Advanced Error Reporting
    Capabilities: [180] Device Serial Number [...]
    Kernel driver in use: alx
    PPS: This bug is related and it has been reported that SUSPEND_MODULES is a workaround: https://bugs.launchpad.net/ubuntu/+sour … ug/1130037. There has just been a bug filled that is kind of related: https://bugs.archlinux.org/task/34971 but I'm not sure if its of any use if I postmy information there.
    PPPS: This is also kind of related but does not provide any information http://askubuntu.com/questions/263867/u … -lid-close (I just list it for documentation purpose)
    Last edited by HaMF (2013-05-07 14:02:50)

    „Sleep hooks
    Systemd does not use pm-utils to put the machine to sleep when using systemctl suspend, systemctl hibernate or systemctl hybrid-sleep; pm-utils hooks, including any custom hooks, will not be run. However, systemd provides two similar mechanisms to run custom scripts on these events.” – from wiki, so the sad thing is it's not as easy as in Ubuntu.
    But (I guess) it's not impossible. I've got the same problem with ALX so I'm gonna try to make my own hook based on Wiki tips. Currently this Wiki page https://wiki.archlinux.org/index.php/Pm-utilspm is outdated (for Systemd user), so I'll try this section https://wiki.archlinux.org/index.php/Sy … management .

  • 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....

  • [SOLVED] Can't get suspend to ram to work (pm-utils)

    It suspends, but then when I wake up my desktop the display is black. I followed the wiki, did things like add the resume hook, remove the autodetect hook, pm-is-supported returns empty, and I can't see from the pm-suspend.log what the issue could be
    Initial commandline parameters:
    Fri Jun 15 12:19:28 EDT 2012: Running hooks for suspend.
    Running hook /usr/lib/pm-utils/sleep.d/00logging suspend suspend:
    Linux dump9 3.4.2-3-ck #1 SMP PREEMPT Tue Jun 12 23:20:36 EDT 2012 x86_64 GNU/Linux
    Module Size Used by
    fuse 68256 3
    dm_mod 70374 5
    it87 28605 0
    hwmon_vid 3164 1 it87
    btusb 11604 0
    bluetooth 187319 2 btusb
    rfkill 15508 1 bluetooth
    joydev 9895 0
    usbhid 36046 0
    hid 84805 1 usbhid
    cx18_alsa 6389 1
    mxl5005s 35031 1
    s5h1409 9894 1
    tuner_simple 13257 1
    tuner_types 11121 1 tuner_simple
    cs5345 2939 1
    tda9887 8613 1
    tda8290 12426 0
    snd_hda_codec_hdmi 23640 4
    tuner 16616 2
    nvidia 12291043 30
    nfs 274536 1
    nfs_acl 2327 1 nfs
    cx18 113932 1 cx18_alsa
    lockd 62244 1 nfs
    snd_hda_codec_via 37603 1
    tveeprom 13777 1 cx18
    i2c_algo_bit 5359 1 cx18
    auth_rpcgss 32135 1 nfs
    videobuf_vmalloc 4319 1 cx18
    sunrpc 182965 8 nfs,auth_rpcgss,lockd,nfs_acl
    fscache 40835 1 nfs
    microcode 12281 0
    firewire_ohci 31197 0
    edac_mce_amd 12373 0
    firewire_core 51008 1 firewire_ohci
    powernow_k8 13360 1
    edac_core 36624 0
    mperf 1235 1 powernow_k8
    videobuf_core 16007 2 cx18,videobuf_vmalloc
    cx2341x 16956 1 cx18
    dvb_core 94139 1 cx18
    v4l2_common 5338 4 cx18,cx2341x,tuner,cs5345
    videodev 92446 5 cx18,cx2341x,tuner,cs5345,v4l2_common
    media 10117 1 videodev
    snd_hda_intel 23765 5
    snd_hda_codec 93089 3 snd_hda_codec_hdmi,snd_hda_codec_via,snd_hda_intel
    snd_hwdep 6204 1 snd_hda_codec
    snd_pcm 74574 5 cx18_alsa,snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel
    snd_page_alloc 7249 2 snd_pcm,snd_hda_intel
    snd_timer 18774 1 snd_pcm
    snd 58325 19 cx18_alsa,snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_hda_codec_via,snd_pcm,snd_hda_codec,snd_hda_intel
    i2c_piix4 8224 0
    soundcore 5378 1 snd
    i2c_core 20241 14 cx18,tuner,i2c_piix4,tda8290,tda9887,i2c_algo_bit,cs5345,s5h1409,nvidia,v4l2_common,tveeprom,mxl5005s,tuner_simple,videodev
    ohci_hcd 21400 0
    ehci_hcd 40546 0
    usbcore 146125 5 btusb,ohci_hcd,ehci_hcd,usbhid
    usb_common 954 1 usbcore
    k10temp 2915 0
    r8169 48842 0
    crc_itu_t 1363 1 firewire_core
    mii 4059 1 r8169
    ppdev 5806 0
    parport_pc 30541 0
    parport 31139 2 ppdev,parport_pc
    processor 26567 1 powernow_k8
    wmi 8411 0
    sp5100_tco 4504 0
    psmouse 70248 0
    evdev 9722 26
    serio_raw 4621 0
    button 4502 0
    hfsplus 78321 0
    loop 18000 0
    autofs4 23767 2
    ext4 422063 4
    jbd2 73535 1 ext4
    mbcache 5977 1 ext4
    crc16 1359 2 ext4,bluetooth
    sr_mod 14663 0
    sd_mod 29047 11
    cdrom 35488 1 sr_mod
    pata_acpi 3376 0
    pata_atiixp 4000 5
    ahci 20517 2
    ata_generic 3295 0
    libahci 19959 1 ahci
    libata 165627 5 ahci,pata_acpi,libahci,ata_generic,pata_atiixp
    scsi_mod 132142 3 libata,sd_mod,sr_mod
    total used free shared buffers cached
    Mem: 8182220 2086832 6095388 0 65592 1007076
    -/+ buffers/cache: 1014164 7168056
    Swap: 2104476 0 2104476
    /usr/lib/pm-utils/sleep.d/00logging suspend suspend: success.
    Running hook /usr/lib/pm-utils/sleep.d/00powersave suspend suspend:
    /usr/lib/pm-utils/sleep.d/00powersave suspend suspend: success.
    Running hook /usr/lib/pm-utils/sleep.d/01grub suspend suspend:
    /usr/lib/pm-utils/sleep.d/01grub suspend suspend: success.
    Running hook /usr/lib/pm-utils/sleep.d/49bluetooth suspend suspend:
    /usr/lib/pm-utils/sleep.d/49bluetooth suspend suspend: success.
    Running hook /usr/lib/pm-utils/sleep.d/75modules suspend suspend:
    Unloading kernel module ehci_hcd...Done.
    /usr/lib/pm-utils/sleep.d/75modules suspend suspend: success.
    Running hook /etc/pm/sleep.d/90alsa suspend suspend:
    /etc/pm/sleep.d/90alsa suspend suspend: success.
    Running hook /usr/lib/pm-utils/sleep.d/90clock suspend suspend:
    /usr/lib/pm-utils/sleep.d/90clock suspend suspend: success.
    Running hook /usr/lib/pm-utils/sleep.d/94cpufreq suspend suspend:
    /usr/lib/pm-utils/sleep.d/94cpufreq suspend suspend: success.
    Running hook /usr/lib/pm-utils/sleep.d/95led suspend suspend:
    /usr/lib/pm-utils/sleep.d/95led suspend suspend: success.
    Running hook /usr/lib/pm-utils/sleep.d/98video-quirk-db-handler suspend suspend:
    nVidia binary video drive detected, not using quirks.
    /usr/lib/pm-utils/sleep.d/98video-quirk-db-handler suspend suspend: success.
    Running hook /usr/lib/pm-utils/sleep.d/99video suspend suspend:
    kernel.acpi_video_flags = 0
    /usr/lib/pm-utils/sleep.d/99video suspend suspend: success.
    Fri Jun 15 12:19:29 EDT 2012: performing suspend
    Last edited by boast (2012-06-16 21:21:45)

    ewaller wrote:I have no experience with nVidia controllers; sorry.  Does anyone know if it is normal to skip the quirks for that display?
    Yes, that's normal and should work.
    Looking at the module list maybe try stopping the video4linux before suspend.
    To double check: boast, you rebuilt the kernel, yes?

  • 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] Xfce4 Lock after suspend

    Hello everyone,
    I know that there was it already asked, but in my question is something different. Is there any option to lock screen with LightDM in Xfce4 when is system going to suspend ? I already edited /usr/bin/xflock4 and it locks screen when is executed from terminal or simply locked from xfce panel, but it doesn't lock screen when i suspend computer. In power manager and in session settings is option already ticked to lock the screen after suspend.
    PS: I know that "dm-tool lock" doesn't really lock the screen only redirect you to tty2.
    EDIT: Now it works so here is solution:
    1. Install light-locker
    pacman -S light-locker
    2. Create systemd service
    nano /etc/systemd/system/lock.service
    [Unit]
    Description=Lock X session
    Before=suspend.target
    [Service]
    Type=oneshot
    ExecStart=/usr/bin/xflock4
    [Install]
    WantedBy=suspend.target
    3. Enable systemd service
    systemctl enable lock
    4. Add light-locker to xflock4 script
    nano /usr/bin/xflock4
    #!/bin/sh
    light-locker-command -l
    Last edited by mako2580 (2014-05-07 16:46:26)

    You should place [SOLVED] in the Title.

  • Testing Function Module before using in DataSource?

    Hi Experts,
    After writing a Function module for Transaction DataSouce (by copying RSAX_BIW_GET_DATA_SIMPLE), is there any way to test the Function Module before using in Transaction DataSource? (to see how many records it retrieves).
    Also can somebody please throw some light in understanding the source code of RSAX_BIW_GET_DATA_SIMPLE function module, as it has many declarations like E_T_DATA,
    I_T_SELECT which will be used in the new function module?
    Looks like, the function module RSAX_BIW_GET_DATA_SIMPLE uses only one table SPFLI.
    If it is just one table why do we need to write function module to extract data?
    Forgive me for my lack of ABAP knowledge.
    Thank you,
    Lakshmi

    The generic function moduel is used when there is no BW extractor and you cannot get to the data via a view or table
    The extractor is quite simple
    You create a extract strcuture of data to send to BW
    Then you create the function module - e_t_data takes on the extract structure
    The select options read data via the infopackage selection from BW (and thus when you create your datasource you shoudl click the fields to be select option)
    So in the ABAP
    You read the select option and put them into a range
    You select from which ever tables you need to in R3 and put into an itab
    You then loop aroudn the itab and manipulate the data or read other tables
    The data finally ends up in e_t_data
    The whole thing gets looped around based on the size of the data package - ie if it is 10000 records then the fetch next cursor after 10000 records will send the package of e_t_data out to the refc scheduler and down the line to BW - then the fetch next cursor will get the next 10000 records for the next
    I use this all the tiem (so sorry for the brain dump)
    I especially use it for virtual cubes - ie to get real time data from R3 from within BW - the data is not requested by ipak but by the query at runtime against a Virtual cube which connects to this generic extractor
    Note: this generic extractor can also live on the BW side - ie you can use it instead of APD to snapshot cube or DSO data to send as an ipak into another cube

  • 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".

  • How to load kernel module before another kernel module?

    I have an Iomega ZIP 100 parallel port drive and need module imm to be loaded before lp module. But I don't know how to do this. Simple adding these modules in rc.conf in MODULES section in the correct order doesn't work. I also realized that udev loads lp module, but I don't know how to make udev load this module before or after other modules.
    Last edited by kotyz (2007-06-24 13:58:15)

    or in /etc/mkinitcpio.conf :
    # MODULES
    # The following modules are loaded before any boot hooks are
    # run.  Advanced users may wish to specify all system modules
    # in this array.  For instance:
    #     MODULES="piix ide_disk reiserfs"
    MODULES=""
    and make a new initrd image with mkinitcpio -g /boot/newkernel26.img ,edit menu.lst and reboot

  • Unloading modules in ubuntu

    Hi,
    How can I unload modules in ubunt (e.g., graphics module, keyboard, USB etc)?

    umairalipathan, please post questions about Ubuntu on their forums: http://ubuntuforums.org
    Also see: https://wiki.archlinux.org/index.php/Fo … ow_to_Post
    Closing.

  • 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]

  • Unloading Modules in Flex

    What does the debug trace [Unload SWF] mean?
    As per this blog
    http://blogs.adobe.com/tomsugden/2010/02/how_to_unload_modules_effectively.html
    "This trace indicates that the module have been successfully unloaded"
    Is this true?
    I am unloading a module, I see the [Unload SWF] trace, but after unloading, if I try to create an object of a class contained in the unloaded module (using reflection), I am still able to create it.
    Am I understanding it wrong?
    Thanks!

    That means that the bytes of the SWF have been removed from memory.  I'm not
    sure if you're just getting lucky or if there is some other thing going on.
    Post a simple test case.

  • [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).

  • [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.

Maybe you are looking for

  • Should be a no brainer: How do I include a web link in a flex input form?

    In addition to the form fields and the submit button I want to add a simple web link to the form (preferably without creating a button). I can't figure out how. I've tried to add a html UI control, but there is no option for adding links in the html

  • SQ01 ABAP Query - input field contains leading zeros

    Hi, I have a ABAP query where some of the values are stored with leading zeros in the table. This means that the user have to enter the leading zeros as well in the selection screen in SQ01 in order to get any output. What I would like to do is to re

  • Where should I store my files?

    I just bought my first Mac, a Mac mini. I also have two pc's that I use less and less. I have been storing all of my videos, mp3's, etc.  on a 1 tb NAS (dns-321). I was hoping to maintain that system, but it seems from my reading that some Mac progra

  • Apache2 crashes on restart after enabling ssl

    Hello, I have a problem with a xserve 2.26ghz quad-core running MacOS X Server 10.5.8 with the last updates. When I want to enable ssl on Apache2 with a test certificate (with ServerAdmin or SSH in /etc/apache2), Apache2 crashes on restart after it a

  • How do I rotate view 90 degrees in digital editions?

    how do I rotate view 90 degrees in digital editions?