You are not logged in.

#1 2018-01-31 00:06:34

mik13ST
Member
Registered: 2017-10-12
Posts: 5

Bad graphics performance after resuming from sleep, Optimus, Bumblebee

My laptop is Optimus enabled and is using Bumblebee and bbswitch. I have been having this issue since the beginning of my ArchLinux experience on this laptop.
I used the Unigine Heaven benchmark for this test.

Issues after resuming from sleep (from S3 power state):

  • crackling sound occurring rarely, but only after resuming from sleep

  • youtube videos lagging (static frame for a few tenths of second)

  • gameplay unstable with very low minimal framerate and average framerate being some 50% of original

Unigine Heaven tests on Nvidia GPU (min - max):
normal:
35 - 70

after resuming:
7 - 73

Nvidia Settings observations:
When picture is stuttering, the GPU Utilization and PCIe Bandwidth Utilization drops to low values. The values it drops to are similar to those, when the window is minimized, but minimized only after waking up. Minimizing the benchmark window before suspending and waking up, does not cause these utilization values to drop in any way.

I tried these two troubleshooting tips from ArchWiki:
    https://wiki.archlinux.org/index.php/Bu … om_suspend
    https://wiki.archlinux.org/index.php/Bu … om_standby
Setting this or installing the acpi packages does not help. My problem is just slightly different.

Since I am having sound problems next to graphics problems, I assume the issue is not graphics bound, but something system-wide.
What utilities will uncover what is going on in the system?

Note: Unigine benchmark after resuming from sleep was partly ran in miminized window which had an impact on the GPU load and framerate. The performance drop is not seemingly exact 50% (if judging from the score values).

relevant dmesg after waking up and running 'primusrun unigine-heaven' at 182s:

[   38.603164] [drm] RC6 on
[   38.639785] PM: suspend exit
[   39.068710] IPv6: ADDRCONF(NETDEV_UP): enp4s0f1: link is not ready
[   39.085993] r8169 0000:04:00.1 enp4s0f1: link down
[   39.086047] IPv6: ADDRCONF(NETDEV_UP): enp4s0f1: link is not ready
[   39.086766] IPv6: ADDRCONF(NETDEV_UP): wlp3s0: link is not ready
[   40.716496] r8169 0000:04:00.1 enp4s0f1: link up
[   40.716514] IPv6: ADDRCONF(NETDEV_CHANGE): enp4s0f1: link becomes ready
[  182.018310] bbswitch: enabling discrete graphics
[  182.215896] nvidia: module license 'NVIDIA' taints kernel.
[  182.215897] Disabling lock debugging due to kernel taint
[  182.233830] nvidia-nvlink: Nvlink Core is being initialized, major device number 241
[  182.234210] NVRM: loading NVIDIA UNIX x86_64 Kernel Module  387.34  Tue Nov 21 03:09:00 PST 2017 (using threaded interrupts)
[  182.324386] NVRM: failed to enable MSI. Therefore, using PCIe virtual-wire interrupts.
[  182.750171] nvidia-modeset: Loading NVIDIA Kernel Mode Setting Driver for UNIX platforms  387.34  Tue Nov 21 02:09:45 PST 2017
[  182.751194] nvidia-modeset: Allocated GPU:0 (GPU-0d9d08a4-fc1c-5f55-0c71-d30ae0ced33d) @ PCI:0000:01:00.0
[  182.751388] nvidia-modeset: Freed GPU:0 (GPU-0d9d08a4-fc1c-5f55-0c71-d30ae0ced33d) @ PCI:0000:01:00.0
[  183.388667] nvidia-modeset: Allocated GPU:0 (GPU-0d9d08a4-fc1c-5f55-0c71-d30ae0ced33d) @ PCI:0000:01:00.0
[  183.389225] nvidia-modeset: Freed GPU:0 (GPU-0d9d08a4-fc1c-5f55-0c71-d30ae0ced33d) @ PCI:0000:01:00.0

set of debugging materials:
bad performance:

normal performance:

Offline

Board footer

Powered by FluxBB