Announcement

Collapse
No announcement yet.

Virtualbox & Okular misbehave after resuming from suspend

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Virtualbox & Okular misbehave after resuming from suspend

    After I awaken my system from suspend, both virtualbox and okular misbehave.

    In virtualbox after resuming, I can't boot into my guest VM (Windows 7) -- Windows hangs before getting to the login screen. If I try to load a saved machine state, the desktop appears but is frozen. A Kubuntu reboot fixes the problem in both cases.

    After resuming, okular appears to be lacking in memory when reading pdf files. I can scroll down a single page, but at page breaks the program hesitates for several seconds. I thought at first that the files were simply too big to be read smoothly, but the same files present no problem when I do a fresh boot of Kubuntu.

    I'm running 14.10, but this was a problem for me in 14.04 as well.

    Here's a section of my suspend.log, in case that's helpful:

    Code:
    Initial commandline parameters: 
    Sat Nov 22 07:13:09 EST 2014: Running hooks for suspend.
    Running hook /usr/lib/pm-utils/sleep.d/000kernel-change suspend suspend:
    /usr/lib/pm-utils/sleep.d/000kernel-change suspend suspend: success.
    
    
    Running hook /usr/lib/pm-utils/sleep.d/000record-status suspend suspend:
    /usr/lib/pm-utils/sleep.d/000record-status suspend suspend: success.
    
    
    Running hook /usr/lib/pm-utils/sleep.d/00logging suspend suspend:
    Linux gary-desktop 3.16.0-24-generic #32-Ubuntu SMP Tue Oct 28 13:07:32 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
    Module                  Size  Used by
    pci_stub               12622  1 
    vboxpci                23256  0 
    vboxnetadp             25670  0 
    vboxnetflt             27605  0 
    vboxdrv               418013  3 vboxnetadp,vboxnetflt,vboxpci
    uas                    23264  0 
    usb_storage            66398  1 uas
    btusb                  32448  0 
    hid_logitech_dj        18469  0 
    usbhid                 52574  0 
    hid                   110426  3 usbhid,hid_logitech_dj
    rfcomm                 69509  12 
    bnep                   19543  2 
    bluetooth             446190  22 bnep,btusb,rfcomm
    intel_rapl             18783  0 
    x86_pkg_temp_thermal    14205  0 
    6lowpan_iphc           18702  1 bluetooth
    intel_powerclamp       18786  0 
    coretemp               13441  0 
    kvm_intel             143553  0 
    kvm                   459843  1 kvm_intel
    arc4                   12608  2 
    crct10dif_pclmul       14307  0 
    crc32_pclmul           13133  0 
    ghash_clmulni_intel    13230  0 
    rt61pci                32035  0 
    rt2x00pci              13287  1 rt61pci
    rt2x00mmio             13603  1 rt61pci
    aesni_intel           152552  1 
    rt2x00lib              55170  3 rt61pci,rt2x00pci,rt2x00mmio
    aes_x86_64             17131  1 aesni_intel
    lrw                    13287  1 aesni_intel
    gf128mul               14951  1 lrw
    glue_helper            13944  1 aesni_intel
    ablk_helper            13597  1 aesni_intel
    cryptd                 20360  3 ghash_clmulni_intel,aesni_intel,ablk_helper
    binfmt_misc            17468  1 
    mac80211              660592  2 rt2x00lib,rt2x00pci
    serio_raw              13434  0 
    snd_hda_codec_hdmi     47547  1 
    snd_hda_codec_realtek    76887  1 
    snd_hda_codec_generic    68914  1 snd_hda_codec_realtek
    cfg80211              510218  2 mac80211,rt2x00lib
    eeprom_93cx6           13344  1 rt61pci
    crc_itu_t              12707  1 rt61pci
    snd_hda_intel          30379  4 
    snd_hda_controller     35152  1 snd_hda_intel
    lpc_ich                21093  0 
    snd_hda_codec         139675  5 snd_hda_codec_realtek,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_intel,snd_hda_controller
    shpchp                 37040  0 
    snd_hwdep              17698  1 snd_hda_codec
    snd_pcm               104102  4 snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel,snd_hda_controller
    mei_me                 19742  0 
    mei                    87931  1 mei_me
    snd_seq_midi           13564  0 
    snd_seq_midi_event     14899  1 snd_seq_midi
    snd_rawmidi            30876  1 snd_seq_midi
    snd_seq                67224  2 snd_seq_midi_event,snd_seq_midi
    mac_hid                13227  0 
    snd_seq_device         14497  3 snd_seq,snd_rawmidi,snd_seq_midi
    snd_timer              29513  2 snd_pcm,snd_seq
    soc_button_array       12720  0 
    snd                    87611  19 snd_hda_codec_realtek,snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_pcm,snd_seq,snd_rawmidi,snd_hda_codec_generic,snd_hda_codec,snd_hda_intel,snd_seq_device
    soundcore              15052  2 snd,snd_hda_codec
    parport_pc             32741  0 
    ppdev                  17671  0 
    lp                     17759  0 
    parport                42299  3 lp,ppdev,parport_pc
    i915                  917618  6 
    i2c_algo_bit           13406  1 i915
    drm_kms_helper         61627  1 i915
    e1000e                230184  0 
    ahci                   34062  3 
    drm                   310919  5 i915,drm_kms_helper
    libahci                32424  1 ahci
    r8169                  71471  0 
    ptp                    19445  1 e1000e
    mii                    13934  1 r8169
    pps_core               19333  1 ptp
    video                  20128  1 i915
                 total       used       free     shared    buffers     cached
    Mem:       7837012    3431532    4405480     139540     237560    2165024
    -/+ buffers/cache:    1028948    6808064
    Swap:      8042492          0    8042492
    /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 /etc/pm/sleep.d/10_grub-common suspend suspend:
    /etc/pm/sleep.d/10_grub-common suspend suspend: success.
    
    
    Running hook /etc/pm/sleep.d/10_unattended-upgrades-hibernate suspend suspend:
    /etc/pm/sleep.d/10_unattended-upgrades-hibernate suspend suspend: success.
    
    
    Running hook /usr/lib/pm-utils/sleep.d/50unload_alx suspend suspend:
    /usr/lib/pm-utils/sleep.d/50unload_alx suspend suspend: success.
    
    
    Running hook /usr/lib/pm-utils/sleep.d/60_wpa_supplicant suspend suspend:
    Failed to connect to non-global ctrl_ifname: (null)  error: No such file or directory
    /usr/lib/pm-utils/sleep.d/60_wpa_supplicant suspend suspend: success.
    
    
    Running hook /usr/lib/pm-utils/sleep.d/75modules suspend suspend:
    /usr/lib/pm-utils/sleep.d/75modules suspend suspend: not applicable.
    
    
    Running hook /usr/lib/pm-utils/sleep.d/90clock suspend suspend:
    /usr/lib/pm-utils/sleep.d/90clock suspend suspend: not applicable.
    
    
    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/95anacron suspend suspend:
    /usr/lib/pm-utils/sleep.d/95anacron suspend suspend: success.
    
    
    Running hook /usr/lib/pm-utils/sleep.d/95hdparm-apm suspend suspend:
    /usr/lib/pm-utils/sleep.d/95hdparm-apm suspend suspend: not applicable.
    
    
    Running hook /usr/lib/pm-utils/sleep.d/95led suspend suspend:
    /usr/lib/pm-utils/sleep.d/95led suspend suspend: not applicable.
    
    
    Running hook /usr/lib/pm-utils/sleep.d/98video-quirk-db-handler suspend suspend:
    Kernel modesetting video driver 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.
    
    
    Running hook /etc/pm/sleep.d/novatel_3g_suspend suspend suspend:
    /etc/pm/sleep.d/novatel_3g_suspend suspend suspend: success.
    
    
    Sat Nov 22 07:13:10 EST 2014: performing suspend
    Sat Nov 22 18:18:23 EST 2014: Awake.
    Sat Nov 22 18:18:23 EST 2014: Running hooks for resume
    Running hook /etc/pm/sleep.d/novatel_3g_suspend resume suspend:
    /etc/pm/sleep.d/novatel_3g_suspend resume suspend: success.
    
    
    Running hook /usr/lib/pm-utils/sleep.d/99video resume suspend:
    /usr/lib/pm-utils/sleep.d/99video resume suspend: success.
    
    
    Running hook /usr/lib/pm-utils/sleep.d/98video-quirk-db-handler resume suspend:
    /usr/lib/pm-utils/sleep.d/98video-quirk-db-handler resume suspend: success.
    
    
    Running hook /usr/lib/pm-utils/sleep.d/95led resume suspend:
    /usr/lib/pm-utils/sleep.d/95led resume suspend: not applicable.
    
    
    Running hook /usr/lib/pm-utils/sleep.d/95hdparm-apm resume suspend:
    
    
    /dev/sda:
     setting Advanced Power Management level to 0xfe (254)
     APM_level    = 254
    
    
    /dev/sdb:
     setting Advanced Power Management level to 0xfe (254)
     APM_level    = 254
    
    
    /dev/sdc:
     setting Advanced Power Management level to 0xfe (254)
     APM_level    = 254
    /usr/lib/pm-utils/sleep.d/95hdparm-apm resume suspend: success.
    
    
    Running hook /usr/lib/pm-utils/sleep.d/95anacron resume suspend:
    /usr/lib/pm-utils/sleep.d/95anacron resume suspend: success.
    
    
    Running hook /usr/lib/pm-utils/sleep.d/94cpufreq resume suspend:
    /usr/lib/pm-utils/sleep.d/94cpufreq resume suspend: success.
    
    
    Running hook /usr/lib/pm-utils/sleep.d/90clock resume suspend:
    /usr/lib/pm-utils/sleep.d/90clock resume suspend: not applicable.
    
    
    Running hook /usr/lib/pm-utils/sleep.d/75modules resume suspend:
    Reloaded unloaded modules.
    /usr/lib/pm-utils/sleep.d/75modules resume suspend: success.
    
    
    Running hook /usr/lib/pm-utils/sleep.d/60_wpa_supplicant resume suspend:
    Failed to connect to non-global ctrl_ifname: (null)  error: No such file or directory
    /usr/lib/pm-utils/sleep.d/60_wpa_supplicant resume suspend: success.
    
    
    Running hook /usr/lib/pm-utils/sleep.d/50unload_alx resume suspend:
    /usr/lib/pm-utils/sleep.d/50unload_alx resume suspend: success.
    
    
    Running hook /etc/pm/sleep.d/10_unattended-upgrades-hibernate resume suspend:
    /etc/pm/sleep.d/10_unattended-upgrades-hibernate resume suspend: success.
    
    
    Running hook /etc/pm/sleep.d/10_grub-common resume suspend:
    /etc/pm/sleep.d/10_grub-common resume suspend: success.
    
    
    Running hook /usr/lib/pm-utils/sleep.d/00powersave resume suspend:
    /usr/lib/pm-utils/sleep.d/00powersave resume suspend: success.
    
    
    Running hook /usr/lib/pm-utils/sleep.d/00logging resume suspend:
    /usr/lib/pm-utils/sleep.d/00logging resume suspend: success.
    
    
    Running hook /usr/lib/pm-utils/sleep.d/000record-status resume suspend:
    /usr/lib/pm-utils/sleep.d/000record-status resume suspend: success.
    
    
    Running hook /usr/lib/pm-utils/sleep.d/000kernel-change resume suspend:
    /usr/lib/pm-utils/sleep.d/000kernel-change resume suspend: success.
    
    
    Sat Nov 22 18:18:34 EST 2014: Finished.

    #2
    https://www.kubuntuforums.net/showth...hlight=suspend
    "A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
    – John F. Kennedy, February 26, 1962.

    Comment


      #3
      I may be missing the point, but I don't see the relevance of that thread. The thread's OP was having trouble getting suspend to work at all within KDE. I don't have that problem; it's only on resuming after a suspend that things go wrong. In any event, I did reinstall pm-utils, and it had no effect. Also, the OP in that thread suggested that he only encountered the problem on a system that had been upgraded. I've had my problem both on a clean install (14.04) and an upgrade (14.10).

      Comment


        #4
        Hibernate is off by default but can be enabled. "The Ubuntu developers disabled this a couple of years ago because hibernate didn’t work reliably on all systems – proceed at your own risk!"

        Hibernate writes the contents of RAM to the swap partition if you have one. For hibernation your swap size would have to be bigger than your RAM size. If you don't have a swap partition or if it isn't big enough hibernation will fail.

        Suspend has an icon on the "Leave" dialog.

        Hibernate AND Suspend have mixed results, which appear to be highly hardware dependent. My acer suspends OK, but a relative noticed that when she came back from suspend the Network Manager and some software which was open didn't work properly afterwords. She had to do a power cycle to restore control.

        In my power management dialog I have replaced all the time out actions with power downs, instead of suspend (which continues to use battery power to maintain RAM, mouse and keyboard) or hibernate which saves RAM to the SWAP partition and then powers down. (On power up the hibernate flag tells the OS to read the RAM state from swap.)
        "A nation that is afraid to let its people judge the truth and falsehood in an open market is a nation that is afraid of its people.”
        – John F. Kennedy, February 26, 1962.

        Comment


          #5
          There might also be differences in the way devices expect to be initialized when coming out of suspend or hibernate. Remember, hardware manufacturers only test their stuff with Windows. Windows reinitializes peripheral devices upon resumption from either state. Certain Linux drivers might not do that -- thus, unpredictable behavior.

          Comment

          Working...
          X