Announcement

Collapse
No announcement yet.

Bumblebee and suspension

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

    Bumblebee and suspension

    PC: Asus K53SC-SX091
    CPU: Intel(R) Core(TM) i3-2310M CPU @ 2.10GHz
    RAM 8GB
    GPU: Nvidia GeForce GT 520MX
    VRAM: 1GB

    OS: Kubuntu 14.04 'Trusty Tahr'
    Kernel: 3.13.0-24-generic

    GPU Driver: nvidia-346 (installed also: bumblebee bumblebee-nvidia primus nvidia-modprobe)



    I've official NVidia drivers installed and I can use neither optirun nor primusrun after suspend to RAM or disk.

    Terminal output:
    martin@MartinuvPocitac:~$ dmesg
    martin@MartinuvPocitac:~$ primusrun "/media/martin/Martin/Portable Program Files/Blender/blender" /media/martin/Martin/Martin/Plocha/untitled.blend

    (Blender launched successfuly: )

    connect failed: No such file or directory
    Read new prefs: /home/martin/.config/blender/2.74/config/userpref.blend
    found bundled python: /media/martin/Martin/Portable Program Files/Blender/2.74/python
    read blend: /media/martin/Martin/Martin/Plocha/untitled.blend

    Blender quit
    martin@MartinuvPocitac:~$ dmesg
    [ 3887.857763] bbswitch: enabling discrete graphics
    [ 3888.347051] vgaarb: device changed decodes: PCI:0000:01:00.0,olddecodes=none,decodes=none:owns =none
    [ 3888.348937] [drm] Initialized nvidia-drm 0.0.0 20150116 for 0000:01:00.0 on minor 1
    [ 3888.348949] NVRM: loading NVIDIA UNIX x86_64 Kernel Module 346.59 Tue Mar 31 14:10:31 PDT 2015
    [ 3889.668857] nvidia 0000:01:00.0: irq 51 for MSI/MSI-X
    [ 3889.673881] ACPI Warning: \_SB_.PCI0.PEGR.GFX0._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20131115/nsarguments-95)
    [ 3889.673929] ACPI Warning: \_SB_.PCI0.PEGR.GFX0._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20131115/nsarguments-95)
    [ 3889.673953] ACPI Warning: \_SB_.PCI0.PEGR.GFX0._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20131115/nsarguments-95)
    [ 3889.673974] ACPI Warning: \_SB_.PCI0.PEGR.GFX0._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20131115/nsarguments-95)
    [ 3889.673995] ACPI Warning: \_SB_.PCI0.PEGR.GFX0._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20131115/nsarguments-95)
    [ 3889.674016] ACPI Warning: \_SB_.PCI0.PEGR.GFX0._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20131115/nsarguments-95)
    [ 3889.674091] ACPI Warning: \_SB_.PCI0.PEGR.GFX0._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20131115/nsarguments-95)
    [ 3889.674113] ACPI Warning: \_SB_.PCI0.PEGR.GFX0._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20131115/nsarguments-95)
    [ 3889.898856] ACPI Warning: \_SB_.PCI0.PEGR.GFX0._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20131115/nsarguments-95)
    [ 3895.930869] nvidia_uvm: Loaded the UVM driver, major device number 250
    martin@MartinuvPocitac:~$ sudo dmesg -C

    (Suspend to RAM )

    martin@MartinuvPocitac:~$ dmesg
    [ 4046.363293] PM: Syncing filesystems ... done.
    [ 4046.458613] PM: Preparing system for mem sleep
    [ 4046.574119] Freezing user space processes ... (elapsed 0.001 seconds) done.
    [ 4046.575608] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
    [ 4046.576728] PM: Entering mem sleep
    [ 4046.576786] Suspending console(s) (use no_console_suspend to debug)
    [ 4046.576978] wlan0: deauthenticating from f8:d1:11:4e:4d:68 by local choice (reason=3)
    [ 4046.610495] sd 0:0:0:0: [sda] Synchronizing SCSI cache
    [ 4046.610505] cfg80211: Calling CRDA to update world regulatory domain
    [ 4046.610602] sd 0:0:0:0: [sda] Stopping disk
    [ 4047.222494] PM: suspend of devices complete after 645.216 msecs
    [ 4047.222684] PM: late suspend of devices complete after 0.187 msecs
    [ 4047.222892] r8169 0000:05:00.0: System wakeup enabled by ACPI
    [ 4047.238364] xhci_hcd 0000:04:00.0: System wakeup enabled by ACPI
    [ 4047.270402] ehci-pci 0000:00:1d.0: System wakeup enabled by ACPI
    [ 4047.286505] ehci-pci 0000:00:1a.0: System wakeup enabled by ACPI
    [ 4047.318364] PM: noirq suspend of devices complete after 95.624 msecs
    [ 4047.318617] ACPI: Preparing to enter system sleep state S3
    [ 4047.318810] PM: Saving platform NVS memory
    [ 4047.319454] Disabling non-boot CPUs ...
    [ 4047.320804] kvm: disabling virtualization on CPU1
    [ 4047.422367] smpboot: CPU 1 is now offline
    [ 4047.423958] kvm: disabling virtualization on CPU2
    [ 4047.526420] smpboot: CPU 2 is now offline
    [ 4047.526888] Broke affinity for irq 16
    [ 4047.527931] kvm: disabling virtualization on CPU3
    [ 4047.630478] smpboot: CPU 3 is now offline
    [ 4047.631933] ACPI: Low-level resume complete
    [ 4047.631974] PM: Restoring platform NVS memory
    [ 4047.632451] Enabling non-boot CPUs ...
    [ 4047.632489] x86: Booting SMP configuration:
    [ 4047.632490] smpboot: Booting Node 0 Processor 1 APIC 0x2
    [ 4047.643479] kvm: enabling virtualization on CPU1
    [ 4047.645907] CPU1 is up
    [ 4047.645925] smpboot: Booting Node 0 Processor 2 APIC 0x1
    [ 4047.656921] kvm: enabling virtualization on CPU2
    [ 4047.659327] CPU2 is up
    [ 4047.659346] smpboot: Booting Node 0 Processor 3 APIC 0x3
    [ 4047.670429] kvm: enabling virtualization on CPU3
    [ 4047.672847] CPU3 is up
    [ 4047.676455] ACPI: Waking up from system sleep state S3
    [ 4047.724334] ehci-pci 0000:00:1a.0: System wakeup disabled by ACPI
    [ 4047.756328] ehci-pci 0000:00:1d.0: System wakeup disabled by ACPI
    [ 4047.804387] xhci_hcd 0000:04:00.0: System wakeup disabled by ACPI
    [ 4047.820456] PM: noirq resume of devices complete after 141.252 msecs
    [ 4047.820620] PM: early resume of devices complete after 0.127 msecs
    [ 4047.820673] mei_me 0000:00:16.0: irq 49 for MSI/MSI-X
    [ 4047.820797] usb usb3: root hub lost power or was reset
    [ 4047.820799] usb usb4: root hub lost power or was reset
    [ 4047.830519] r8169 0000:05:00.0: System wakeup disabled by ACPI
    [ 4047.830700] xhci_hcd 0000:04:00.0: irq 41 for MSI/MSI-X
    [ 4047.830710] xhci_hcd 0000:04:00.0: irq 42 for MSI/MSI-X
    [ 4047.830719] xhci_hcd 0000:04:00.0: irq 43 for MSI/MSI-X
    [ 4047.830725] xhci_hcd 0000:04:00.0: irq 44 for MSI/MSI-X
    [ 4047.830730] xhci_hcd 0000:04:00.0: irq 45 for MSI/MSI-X
    [ 4047.832508] snd_hda_intel 0000:00:1b.0: irq 50 for MSI/MSI-X
    [ 4047.848960] [drm] Wrong MCH_SSKPD value: 0x16040307
    [ 4047.848960] [drm] This can cause pipe underruns and display issues.
    [ 4047.848961] [drm] Please upgrade your BIOS to fix this.
    [ 4047.972522] r8169 0000:05:00.0 eth0: link down
    [ 4048.044525] usb 1-1.4: reset high-speed USB device number 5 using ehci-pci
    [ 4048.148476] ata2: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
    [ 4048.152269] ata2.00: configured for UDMA/100
    [ 4048.208613] usb 1-1.2: reset high-speed USB device number 4 using ehci-pci
    [ 4049.093031] [drm] Enabling RC6 states: RC6 on, RC6p off, RC6pp off
    [ 4049.553322] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
    [ 4049.554875] ata1.00: ACPI cmd ef/90:06:00:00:00:00 (SET FEATURES) succeeded
    [ 4049.554881] ata1.00: ACPI cmd f5/00:00:00:00:00:00 (SECURITY FREEZE LOCK) filtered out
    [ 4049.554886] ata1.00: ACPI cmd b1/c1:00:00:00:00:00 (DEVICE CONFIGURATION OVERLAY) filtered out
    [ 4049.557671] ata1.00: ACPI cmd ef/90:06:00:00:00:00 (SET FEATURES) succeeded
    [ 4049.557677] ata1.00: ACPI cmd f5/00:00:00:00:00:00 (SECURITY FREEZE LOCK) filtered out
    [ 4049.557682] ata1.00: ACPI cmd b1/c1:00:00:00:00:00 (DEVICE CONFIGURATION OVERLAY) filtered out
    [ 4049.559006] ata1.00: configured for UDMA/133
    [ 4049.573344] sd 0:0:0:0: [sda] Starting disk
    [ 4049.633928] PM: resume of devices complete after 1812.289 msecs
    [ 4049.634200] PM: Finishing wakeup.
    [ 4049.634201] Restarting tasks ... done.
    [ 4049.636429] video LNXVIDEO:00: Restoring backlight state
    [ 4049.636663] video LNXVIDEO:01: Restoring backlight state
    [ 4049.651732] cfg80211: World regulatory domain updated:
    [ 4049.651738] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
    [ 4049.651741] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    [ 4049.651745] cfg80211: (2457000 KHz - 2482000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    [ 4049.651747] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
    [ 4049.651750] cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    [ 4049.651753] cfg80211: (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    [ 4050.695372] wlan0: authenticate with f8:d1:11:4e:4d:68
    [ 4050.716329] wlan0: send auth to f8:d1:11:4e:4d:68 (try 1/3)
    [ 4050.718794] wlan0: authenticated
    [ 4050.722022] wlan0: associate with f8:d1:11:4e:4d:68 (try 1/3)
    [ 4050.726393] wlan0: RX AssocResp from f8:d1:11:4e:4d:68 (capab=0x31 status=0 aid=1)
    [ 4050.726472] wlan0: associated
    [ 4050.726994] cfg80211: Calling CRDA for country: CZ
    [ 4050.732978] ath: EEPROM regdomain: 0x80cb
    [ 4050.732986] ath: EEPROM indicates we should expect a country code
    [ 4050.732990] ath: doing EEPROM country->regdmn map search
    [ 4050.732995] ath: country maps to regdmn code: 0x36
    [ 4050.732999] ath: Country alpha2 being used: CZ
    [ 4050.733002] ath: Regpair used: 0x36
    [ 4050.733007] ath: regdomain 0x80cb dynamically updated by country IE
    [ 4050.733053] cfg80211: Regulatory domain changed to country: CZ
    [ 4050.733056] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
    [ 4050.733062] cfg80211: (2400000 KHz - 2483500 KHz @ 40000 KHz), (N/A, 2000 mBm)
    [ 4050.733066] cfg80211: (5150000 KHz - 5250000 KHz @ 40000 KHz), (N/A, 2301 mBm)
    [ 4050.733070] cfg80211: (5250000 KHz - 5350000 KHz @ 40000 KHz), (N/A, 2000 mBm)
    [ 4050.733074] cfg80211: (5470000 KHz - 5725000 KHz @ 40000 KHz), (N/A, 2698 mBm)
    [ 4050.733078] cfg80211: (57240000 KHz - 65880000 KHz @ 2160000 KHz), (N/A, 4000 mBm)
    martin@MartinuvPocitac:~$ sudo dmesg -C
    martin@MartinuvPocitac:~$ dmesg
    martin@MartinuvPocitac:~$ primusrun "/media/martin/Martin/Portable Program Files/Blender/blender" /media/martin/Martin/Martin/Plocha/untitled.blend

    (Blender did not lauch successfuly)

    primus: fatal: Bumblebee daemon reported: error: [XORG] (EE) Server terminated successfully (0). Closing log file.

    martin@MartinuvPocitac:~$ dmesg
    [ 4159.671207] nvidia 0000:01:00.0: irq 51 for MSI/MSI-X
    [ 4159.676284] ACPI Warning: \_SB_.PCI0.PEGR.GFX0._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20131115/nsarguments-95)
    [ 4159.676331] ACPI Warning: \_SB_.PCI0.PEGR.GFX0._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20131115/nsarguments-95)
    [ 4159.676355] ACPI Warning: \_SB_.PCI0.PEGR.GFX0._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20131115/nsarguments-95)
    [ 4159.676376] ACPI Warning: \_SB_.PCI0.PEGR.GFX0._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20131115/nsarguments-95)
    [ 4159.676397] ACPI Warning: \_SB_.PCI0.PEGR.GFX0._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20131115/nsarguments-95)
    [ 4159.676418] ACPI Warning: \_SB_.PCI0.PEGR.GFX0._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20131115/nsarguments-95)
    [ 4159.676493] ACPI Warning: \_SB_.PCI0.PEGR.GFX0._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20131115/nsarguments-95)
    [ 4159.676515] ACPI Warning: \_SB_.PCI0.PEGR.GFX0._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20131115/nsarguments-95)
    [ 4159.676977] ACPI Warning: \_SB_.PCI0.PEGR.GFX0._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20131115/nsarguments-95)
    [ 4159.708748] NVRM: RmInitAdapter failed! (0x25:0x40:1270)
    [ 4159.708758] NVRM: rm_init_adapter failed for device bearing minor number 0
    [ 4159.708784] NVRM: nvidia_frontend_open: minor 0, module->open() failed, error -5

    (I tried to restart bumblebeed service)

    martin@MartinuvPocitac:~$ sudo service bumblebeed restart
    bumblebeed stop/waiting
    bumblebeed start/running, process 4441
    martin@MartinuvPocitac:~$ primusrun "/media/martin/Martin/Portable Program Files/Blender/blender" /media/martin/Martin/Martin/Plocha/untitled.blend

    (Blender did not lauch successfuly again)

    primus: fatal: Bumblebee daemon reported: error: [XORG] (EE) NVIDIA(GPU-0): Failed to initialize the NVIDIA GPU at PCI:1:0:0. Please

    martin@MartinuvPocitac:~$ dmesg
    [ 4471.404829] nvidia 0000:01:00.0: irq 51 for MSI/MSI-X
    [ 4471.409988] ACPI Warning: \_SB_.PCI0.PEGR.GFX0._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20131115/nsarguments-95)
    [ 4471.410035] ACPI Warning: \_SB_.PCI0.PEGR.GFX0._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20131115/nsarguments-95)
    [ 4471.410059] ACPI Warning: \_SB_.PCI0.PEGR.GFX0._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20131115/nsarguments-95)
    [ 4471.410081] ACPI Warning: \_SB_.PCI0.PEGR.GFX0._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20131115/nsarguments-95)
    [ 4471.410101] ACPI Warning: \_SB_.PCI0.PEGR.GFX0._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20131115/nsarguments-95)
    [ 4471.410122] ACPI Warning: \_SB_.PCI0.PEGR.GFX0._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20131115/nsarguments-95)
    [ 4471.410198] ACPI Warning: \_SB_.PCI0.PEGR.GFX0._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20131115/nsarguments-95)
    [ 4471.410220] ACPI Warning: \_SB_.PCI0.PEGR.GFX0._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20131115/nsarguments-95)
    [ 4471.410677] ACPI Warning: \_SB_.PCI0.PEGR.GFX0._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20131115/nsarguments-95)
    [ 4471.440509] NVRM: RmInitAdapter failed! (0x25:0x40:1270)
    [ 4471.440519] NVRM: rm_init_adapter failed for device bearing minor number 0
    [ 4471.440542] NVRM: nvidia_frontend_open: minor 0, module->open() failed, error -5


    Please help me, I could not figure it out, any help is appreciated...

    (Sorry for my EXTREMELY bad english, if I made a mistake, please correct me, thank you. )

    #2
    I have absolutely no idea why, but I've just found out that it works again, I can start blender after resume, but after resume, blender stopped responding and GPU probably stopped rendering (after minimize and maximize the content of window become absolutely transparent). Is there a way to fix that behavior? (I do not want to restart blender after every suspend)
    EDIT:
    While editing install script, I accidentally removed nvidia version variable, so the driver was installed by bumblebee, so to run applications with bumblebee after resume, I have to use nvidia-304.

    Comment


      #3
      If I run blender with optirun --no-xorg, then blender window behave normally after resume, so I assume, that it's something wrong in bumblebee X or communication between X that bumblebee started and bumblebee, please help me.

      Comment

      Working...
      X