System frozen on wake up when using Nvidia GPU

Hello everyone!

Recently I found out that if I suspend my system while using the Nvidia GPU, the system is completely frozen on wake up. The desktop shows up, but immediately freezes. I can’t even switch to a virtual terminal using the Ctrl + Alt + (F1-F7). The only solution is to reboot the system.

I am using a Dell laptop, with Manjaro kernel version 5.4 (because I cannot get CUDA to work on higher kernel versions), using KDE. I have an Nvidia Geforce GT930M, with the 390xx drivers installed and switching to it using the optimus manager. Another thing to mention is that I dual boot Windows 10 and Manjaro.

Here is the output of inxi -Fazy:

System:
  Kernel: 5.4.101-1-MANJARO x86_64 bits: 64 compiler: gcc v: 10.2.1 
  parameters: BOOT_IMAGE=/boot/vmlinuz-5.4-x86_64 
  root=UUID=25a71533-a3b5-465a-8445-892268c668b2 rw 
  resume=UUID=f3465aa7-30b6-4b8c-8c25-70afd649f990 quiet apparmor=1 
  security=apparmor udev.log_priority=3 i915.enable_dpcd_backlight=0 
  Console: N/A wm: kwin_x11 DM: SDDM Distro: Manjaro Linux 
Machine:
  Type: Laptop System: Dell product: Inspiron 5558 v: N/A serial: <filter> 
  Chassis: type: 9 serial: <filter> 
  Mobo: Dell model: 0R3N0T v: A00 serial: <filter> UEFI: Dell v: A16 
  date: 09/27/2018 
Battery:
  ID-1: BAT0 charge: 1.5 Wh condition: 1.5/41.4 Wh (4%) volts: 16.5/14.8 
  model: LGC DELL 991XP58E58E type: Li-ion serial: <filter> status: Full 
CPU:
  Info: Dual Core model: Intel Core i3-5005U socket: BGA1168 bits: 64 
  type: MT MCP arch: Broadwell family: 6 model-id: 3D (61) stepping: 4 
  microcode: 2F L1 cache: 64 KiB L2 cache: 3 MiB L3 cache: 2.9 MiB 
  flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx 
  bogomips: 15971 
  Speed: 1104 MHz min/max: 500/1900 MHz base/boost: 2000/2000 volts: 0.9 V 
  ext-clock: 100 MHz Core speeds (MHz): 1: 1104 2: 1300 3: 1131 4: 1133 
  Vulnerabilities: Type: itlb_multihit status: KVM: Split huge pages 
  Type: l1tf 
  mitigation: PTE Inversion; VMX: conditional cache flushes, SMT vulnerable 
  Type: mds mitigation: Clear CPU buffers; SMT vulnerable 
  Type: meltdown mitigation: PTI 
  Type: spec_store_bypass 
  mitigation: Speculative Store Bypass disabled via prctl and seccomp 
  Type: spectre_v1 
  mitigation: usercopy/swapgs barriers and __user pointer sanitization 
  Type: spectre_v2 mitigation: Full generic retpoline, IBPB: conditional, 
  IBRS_FW, STIBP: conditional, RSB filling 
  Type: srbds mitigation: Microcode 
  Type: tsx_async_abort status: Not affected 
Graphics:
  Device-1: Intel HD Graphics 5500 vendor: Dell driver: i915 v: kernel 
  bus ID: 00:02.0 chip ID: 8086:1616 class ID: 0300 
  Device-2: NVIDIA GK208BM [GeForce 920M] driver: N/A 
  alternate: nouveau, nvidia_drm, nvidia bus ID: 08:00.0 chip ID: 10de:1299 
  class ID: 0302 
  Device-3: Sunplus Innovation Integrated_Webcam_HD type: USB driver: uvcvideo 
  bus ID: 2-5:2 chip ID: 1bcf:2b90 class ID: 0e02 
  Display: server: X.Org 1.20.10 compositor: kwin_x11 driver: 
  loaded: modesetting display ID: :0 screens: 1 
  Screen-1: 0 s-res: 1366x768 s-dpi: 96 s-size: 361x203mm (14.2x8.0") 
  s-diag: 414mm (16.3") 
  Monitor-1: eDP-1 res: 1366x768 hz: 60 dpi: 101 size: 344x194mm (13.5x7.6") 
  diag: 395mm (15.5") 
  OpenGL: renderer: Mesa Intel HD Graphics 5500 (BDW GT2) v: 4.6 Mesa 20.3.4 
  direct render: Yes 
Audio:
  Device-1: Intel Broadwell-U Audio vendor: Dell driver: snd_hda_intel 
  v: kernel bus ID: 00:03.0 chip ID: 8086:160c class ID: 0403 
  Device-2: Intel Wildcat Point-LP High Definition Audio vendor: Dell 
  driver: snd_hda_intel v: kernel bus ID: 00:1b.0 chip ID: 8086:9ca0 
  class ID: 0403 
  Device-3: NVIDIA GK208 HDMI/DP Audio driver: snd_hda_intel v: kernel 
  bus ID: 08:00.1 chip ID: 10de:0e0f class ID: 0403 
  Sound Server: ALSA v: k5.4.101-1-MANJARO 
Network:
  Device-1: Intel Wireless 3160 driver: iwlwifi v: kernel port: f040 
  bus ID: 06:00.0 chip ID: 8086:08b3 class ID: 0280 
  IF: wlp6s0 state: up mac: <filter> 
  Device-2: Realtek RTL810xE PCI Express Fast Ethernet vendor: Dell 
  driver: r8169 v: kernel port: e000 bus ID: 07:00.0 chip ID: 10ec:8136 
  class ID: 0200 
  IF: enp7s0 state: down mac: <filter> 
Bluetooth:
  Device-1: Intel Bluetooth wireless interface type: USB driver: btusb v: 0.8 
  bus ID: 2-6:3 chip ID: 8087:07dc class ID: e001 
  Message: Required tool hciconfig not installed. Check --recommends 
Drives:
  Local Storage: total: 931.51 GiB used: 79.95 GiB (8.6%) 
  ID-1: /dev/sda maj-min: 8:0 vendor: Seagate model: ST1000LM024 HN-M101MBB 
  family: Seagate SpinPoint M8 (AF) size: 931.51 GiB block size: 
  physical: 4096 B logical: 512 B sata: 3.0 speed: 6.0 Gb/s rotation: 5400 rpm 
  serial: <filter> rev: 0003 temp: 26 C scheme: GPT 
  SMART: yes state: enabled health: PASSED on: 1y 88d 19h cycles: 6458 
  read: 5.04 GiB written: 2.93 GiB Old-Age: g-sense error rate: 408 
Partition:
  ID-1: / raw size: 46.57 GiB size: 45.58 GiB (97.89%) used: 21.62 GiB (47.4%) 
  fs: ext4 block size: 4096 B dev: /dev/sda6 maj-min: 8:6 
  ID-2: /boot/efi raw size: 599 MiB size: 597.8 MiB (99.80%) 
  used: 141.4 MiB (23.7%) fs: vfat block size: 512 B dev: /dev/sda1 
  maj-min: 8:1 
  ID-3: /home raw size: 100.43 GiB size: 98.36 GiB (97.93%) 
  used: 58.19 GiB (59.2%) fs: ext4 block size: 4096 B dev: /dev/sda8 
  maj-min: 8:8 
Swap:
  Kernel: swappiness: 60 (default) cache pressure: 100 (default) 
  ID-1: swap-1 type: partition size: 15.91 GiB used: 0 KiB (0.0%) priority: -2 
  dev: /dev/sda7 maj-min: 8:7 
Sensors:
  System Temperatures: cpu: 46.0 C mobo: N/A sodimm: SODIMM C 
  Fan Speeds (RPM): cpu: 0 fan-2: 0 fan-3: 0 
Info:
  Processes: 197 Uptime: 32m wakeups: 1 Memory: 7.69 GiB 
  used: 1.98 GiB (25.7%) Init: systemd v: 247 Compilers: gcc: 10.2.0 
  clang: 11.1.0 Packages: pacman: 1484 lib: 451 Shell: Zsh (sudo) v: 5.8 
  running in: server inxi: 3.3.01 

I cannot find any logs that address this particular issue, so if you need any additional logs, I will be more than happy to provide them.

Here is the output of running journalctl -p 3 -b 0. At 07:04 my system booted up using the integrated GPU, and at 07:41 I used optimus manager to switch to the Nvidia GPU.

-- Journal begins at Sat 2021-02-27 06:39:51 CET, ends at Thu 2021-03-11 07:43:18 CET. --
Mar 11 07:04:35 scyllius kernel: snd_hda_intel 0000:08:00.1: no codecs found!
Mar 11 07:04:41 scyllius kernel: proc: Bad value for 'hidepid'
Mar 11 07:04:42 scyllius kernel: Bluetooth: hci0: unexpected event for opcode 0xfc2f
Mar 11 07:04:42 scyllius kernel: proc: Bad value for 'hidepid'
Mar 11 07:04:48 scyllius bluetoothd[645]: src/adapter.c:reset_adv_monitors_complete() Failed to reset Adv Monitors: Unknown Command (0x01)
Mar 11 07:04:48 scyllius kernel: proc: Bad value for 'hidepid'
Mar 11 07:06:05 scyllius systemd-coredump[1272]: Process 1144 (appimagelaunche) of user 1000 dumped core.
                                                 
                                                 Stack trace of thread 1144:
                                                 #0  0x00007fd4521702e0 _ZNK4QDireqERKS_ (libQt5Core.so.5 + 0x1cd2e0)
                                                 #1  0x000056305ea8445e n/a (appimagelauncherd + 0x1f45e)
                                                 #2  0x000056305ea72c4a n/a (appimagelauncherd + 0xdc4a)
                                                 #3  0x00007fd45228fd86 n/a (libQt5Core.so.5 + 0x2ecd86)
                                                 #4  0x00007fd452293dfb _ZN6QTimer7timeoutENS_14QPrivateSignalE (libQt5Core.so.5 + 0x2f0dfb)
                                                 #5  0x00007fd45228546f _ZN7QObject5eventEP6QEvent (libQt5Core.so.5 + 0x2e246f)
                                                 #6  0x00007fd452258a00 _ZN16QCoreApplication15notifyInternal2EP7QObjectP6QEvent (libQt5Core.so.5 + 0x2b5a00)
                                                 #7  0x00007fd4522b0a15 _ZN14QTimerInfoList14activateTimersEv (libQt5Core.so.5 + 0x30da15)
                                                 #8  0x00007fd4522b12fa n/a (libQt5Core.so.5 + 0x30e2fa)
                                                 #9  0x00007fd453423b84 g_main_context_dispatch (libglib-2.0.so.0 + 0x53b84)
                                                 #10 0x00007fd453477c21 n/a (libglib-2.0.so.0 + 0xa7c21)
                                                 #11 0x00007fd4534223b1 g_main_context_iteration (libglib-2.0.so.0 + 0x523b1)
                                                 #12 0x00007fd4522b1691 _ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt5Core.so.5 + 0x30e691)
                                                 #13 0x00007fd4522573ac _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt5Core.so.5 + 0x2b43ac)
                                                 #14 0x00007fd45225f844 _ZN16QCoreApplication4execEv (libQt5Core.so.5 + 0x2bc844)
                                                 #15 0x000056305ea71255 n/a (appimagelauncherd + 0xc255)
                                                 #16 0x00007fd451c06b25 __libc_start_main (libc.so.6 + 0x27b25)
                                                 #17 0x000056305ea716ce n/a (appimagelauncherd + 0xc6ce)
Mar 11 07:06:20 scyllius pulseaudio[1282]: Failed to find a working profile.
Mar 11 07:06:20 scyllius pulseaudio[1282]: Failed to load module "module-alsa-card" (argument: "device_id="2" name="pci-0000_08_00.1" card_name="alsa_card.pci-0000_08_00.1" namereg_fail=false tsched=yes fixed_latency_range=no ignore_dB=no deferred_volume=yes use_ucm=yes avoid_resampling=no card_properties="module-udev-detect.discovered=1""): initialization failed.
Mar 11 07:06:46 scyllius systemd-coredump[1515]: Process 1422 (appimagelaunche) of user 1000 dumped core.
                                                 
                                                 Stack trace of thread 1422:
                                                 #0  0x00007f6f226062e0 _ZNK4QDireqERKS_ (libQt5Core.so.5 + 0x1cd2e0)
                                                 #1  0x000055cb42d3945e n/a (appimagelauncherd + 0x1f45e)
                                                 #2  0x000055cb42d27c4a n/a (appimagelauncherd + 0xdc4a)
                                                 #3  0x00007f6f22725d86 n/a (libQt5Core.so.5 + 0x2ecd86)
                                                 #4  0x00007f6f22729dfb _ZN6QTimer7timeoutENS_14QPrivateSignalE (libQt5Core.so.5 + 0x2f0dfb)
                                                 #5  0x00007f6f2271b46f _ZN7QObject5eventEP6QEvent (libQt5Core.so.5 + 0x2e246f)
                                                 #6  0x00007f6f226eea00 _ZN16QCoreApplication15notifyInternal2EP7QObjectP6QEvent (libQt5Core.so.5 + 0x2b5a00)
                                                 #7  0x00007f6f22746a15 _ZN14QTimerInfoList14activateTimersEv (libQt5Core.so.5 + 0x30da15)
                                                 #8  0x00007f6f227472fa n/a (libQt5Core.so.5 + 0x30e2fa)
                                                 #9  0x00007f6f238b9b84 g_main_context_dispatch (libglib-2.0.so.0 + 0x53b84)
                                                 #10 0x00007f6f2390dc21 n/a (libglib-2.0.so.0 + 0xa7c21)
                                                 #11 0x00007f6f238b83b1 g_main_context_iteration (libglib-2.0.so.0 + 0x523b1)
                                                 #12 0x00007f6f22747691 _ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt5Core.so.5 + 0x30e691)
                                                 #13 0x00007f6f226ed3ac _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt5Core.so.5 + 0x2b43ac)
                                                 #14 0x00007f6f226f5844 _ZN16QCoreApplication4execEv (libQt5Core.so.5 + 0x2bc844)
                                                 #15 0x000055cb42d26255 n/a (appimagelauncherd + 0xc255)
                                                 #16 0x00007f6f2209cb25 __libc_start_main (libc.so.6 + 0x27b25)
                                                 #17 0x000055cb42d266ce n/a (appimagelauncherd + 0xc6ce)
Mar 11 07:07:27 scyllius systemd-coredump[1730]: Process 1533 (appimagelaunche) of user 1000 dumped core.
                                                 
                                                 Stack trace of thread 1533:
                                                 #0  0x00007f7a376592e0 _ZNK4QDireqERKS_ (libQt5Core.so.5 + 0x1cd2e0)
                                                 #1  0x00005632180c745e n/a (appimagelauncherd + 0x1f45e)
                                                 #2  0x00005632180b5c4a n/a (appimagelauncherd + 0xdc4a)
                                                 #3  0x00007f7a37778d86 n/a (libQt5Core.so.5 + 0x2ecd86)
                                                 #4  0x00007f7a3777cdfb _ZN6QTimer7timeoutENS_14QPrivateSignalE (libQt5Core.so.5 + 0x2f0dfb)
                                                 #5  0x00007f7a3776e46f _ZN7QObject5eventEP6QEvent (libQt5Core.so.5 + 0x2e246f)
                                                 #6  0x00007f7a37741a00 _ZN16QCoreApplication15notifyInternal2EP7QObjectP6QEvent (libQt5Core.so.5 + 0x2b5a00)
                                                 #7  0x00007f7a37799a15 _ZN14QTimerInfoList14activateTimersEv (libQt5Core.so.5 + 0x30da15)
                                                 #8  0x00007f7a3779a2fa n/a (libQt5Core.so.5 + 0x30e2fa)
                                                 #9  0x00007f7a3890cb84 g_main_context_dispatch (libglib-2.0.so.0 + 0x53b84)
                                                 #10 0x00007f7a38960c21 n/a (libglib-2.0.so.0 + 0xa7c21)
                                                 #11 0x00007f7a3890b3b1 g_main_context_iteration (libglib-2.0.so.0 + 0x523b1)
                                                 #12 0x00007f7a3779a691 _ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt5Core.so.5 + 0x30e691)
                                                 #13 0x00007f7a377403ac _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt5Core.so.5 + 0x2b43ac)
                                                 #14 0x00007f7a37748844 _ZN16QCoreApplication4execEv (libQt5Core.so.5 + 0x2bc844)
                                                 #15 0x00005632180b4255 n/a (appimagelauncherd + 0xc255)
                                                 #16 0x00007f7a370efb25 __libc_start_main (libc.so.6 + 0x27b25)
                                                 #17 0x00005632180b46ce n/a (appimagelauncherd + 0xc6ce)
Mar 11 07:40:50 scyllius kernel: nvidia-modeset: ERROR: Failed to find GPU ID
Mar 11 07:40:51 scyllius pulseaudio[4316]: Failed to find a working profile.
Mar 11 07:40:51 scyllius pulseaudio[4316]: Failed to load module "module-alsa-card" (argument: "device_id="2" name="pci-0000_08_00.1" card_name="alsa_card.pci-0000_08_00.1" namereg_fail=false tsched=yes fixed_latency_range=no ignore_dB=no deferred_volume=yes use_ucm=yes avoid_resampling=no card_properties="module-udev-detect.discovered=1""): initialization failed.
Mar 11 07:41:19 scyllius systemd-coredump[4621]: Process 4193 (appimagelaunche) of user 1000 dumped core.
                                                 
                                                 Stack trace of thread 4193:
                                                 #0  0x00007fe70bcef2e0 _ZNK4QDireqERKS_ (libQt5Core.so.5 + 0x1cd2e0)
                                                 #1  0x000055d38a1e845e n/a (appimagelauncherd + 0x1f45e)
                                                 #2  0x000055d38a1d6c4a n/a (appimagelauncherd + 0xdc4a)
                                                 #3  0x00007fe70be0ed86 n/a (libQt5Core.so.5 + 0x2ecd86)
                                                 #4  0x00007fe70be12dfb _ZN6QTimer7timeoutENS_14QPrivateSignalE (libQt5Core.so.5 + 0x2f0dfb)
                                                 #5  0x00007fe70be0446f _ZN7QObject5eventEP6QEvent (libQt5Core.so.5 + 0x2e246f)
                                                 #6  0x00007fe70bdd7a00 _ZN16QCoreApplication15notifyInternal2EP7QObjectP6QEvent (libQt5Core.so.5 + 0x2b5a00)
                                                 #7  0x00007fe70be2fa15 _ZN14QTimerInfoList14activateTimersEv (libQt5Core.so.5 + 0x30da15)
                                                 #8  0x00007fe70be302fa n/a (libQt5Core.so.5 + 0x30e2fa)
                                                 #9  0x00007fe70cfa2b84 g_main_context_dispatch (libglib-2.0.so.0 + 0x53b84)
                                                 #10 0x00007fe70cff6c21 n/a (libglib-2.0.so.0 + 0xa7c21)
                                                 #11 0x00007fe70cfa13b1 g_main_context_iteration (libglib-2.0.so.0 + 0x523b1)
                                                 #12 0x00007fe70be30691 _ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEventLoop17ProcessEventsFlagEE (libQt5Core.so.5 + 0x30e691)
                                                 #13 0x00007fe70bdd63ac _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (libQt5Core.so.5 + 0x2b43ac)
                                                 #14 0x00007fe70bdde844 _ZN16QCoreApplication4execEv (libQt5Core.so.5 + 0x2bc844)
                                                 #15 0x000055d38a1d5255 n/a (appimagelauncherd + 0xc255)
                                                 #16 0x00007fe70b785b25 __libc_start_main (libc.so.6 + 0x27b25)
                                                 #17 0x000055d38a1d56ce n/a (appimagelauncherd + 0xc6ce)
Mar 11 07:41:23 scyllius systemd-coredump[4750]: Process 4662 (chrome) of user 1000 dumped core.
                                                 
                                                 Stack trace of thread 4662:
                                                 #0  0x00007fd08997fb27 n/a (nvidia_drv_video.so + 0x3b27)
                                                 #1  0x00007fd089982989 n/a (nvidia_drv_video.so + 0x6989)
                                                 #2  0x00007fd089982e1f __vaDriverInit_1_10 (nvidia_drv_video.so + 0x6e1f)
                                                 #3  0x00007fd089940c39 n/a (libva.so.2 + 0x3c39)
                                                 #4  0x00007fd089943caf vaInitialize (libva.so.2 + 0x6caf)
                                                 #5  0x00005634a34a8914 n/a (chrome + 0x2bc3914)
                                                 #6  0x00005634a34a7ff6 n/a (chrome + 0x2bc2ff6)
                                                 #7  0x00005634a34a0293 n/a (chrome + 0x2bbb293)
                                                 #8  0x00005634a34a7643 n/a (chrome + 0x2bc2643)
                                                 #9  0x00005634a9943cfd n/a (chrome + 0x905ecfd)
                                                 #10 0x00005634a6cd5bcd n/a (chrome + 0x63f0bcd)
                                                 #11 0x00005634a9943739 n/a (chrome + 0x905e739)
                                                 #12 0x00005634a516c4e8 n/a (chrome + 0x48874e8)
                                                 #13 0x00005634a516a80a n/a (chrome + 0x488580a)
                                                 #14 0x00005634a29494c4 ChromeMain (chrome + 0x20644c4)
                                                 #15 0x00007fd0909e7b25 __libc_start_main (libc.so.6 + 0x27b25)
                                                 #16 0x00005634a260b46a _start (chrome + 0x1d2646a)
                                                 
                                                 Stack trace of thread 4666:
                                                 #0  0x00007fd0921179ba __futex_abstimed_wait_common64 (libpthread.so.0 + 0x159ba)
                                                 #1  0x00007fd092111574 pthread_cond_timedwait@@GLIBC_2.3.2 (libpthread.so.0 + 0xf574)
                                                 #2  0x00005634a5266f48 n/a (chrome + 0x4981f48)
                                                 #3  0x00005634a52675d3 n/a (chrome + 0x49825d3)
                                                 #4  0x00005634a51d886f n/a (chrome + 0x48f386f)
                                                 #5  0x00005634a522ac5c n/a (chrome + 0x4945c5c)
                                                 #6  0x00005634a51ff2c1 n/a (chrome + 0x491a2c1)
                                                 #7  0x00005634a52440c9 n/a (chrome + 0x495f0c9)
                                                 #8  0x00005634a526af44 n/a (chrome + 0x4985f44)
                                                 #9  0x00007fd09210b299 start_thread (libpthread.so.0 + 0x9299)
                                                 #10 0x00007fd090abf053 __clone (libc.so.6 + 0xff053)
Mar 11 07:41:24 scyllius systemd-coredump[4834]: Process 4831 (chrome) of user 1000 dumped core.
                                                 
                                                 Stack trace of thread 4831:
                                                 #0  0x00007fd08997fb27 n/a (nvidia_drv_video.so + 0x3b27)
                                                 #1  0x00007fd089982989 n/a (nvidia_drv_video.so + 0x6989)
                                                 #2  0x00007fd089982e1f __vaDriverInit_1_10 (nvidia_drv_video.so + 0x6e1f)
                                                 #3  0x00007fd089940c39 n/a (libva.so.2 + 0x3c39)
                                                 #4  0x00007fd089943caf vaInitialize (libva.so.2 + 0x6caf)
                                                 #5  0x00005634a34a8914 n/a (chrome + 0x2bc3914)
                                                 #6  0x00005634a34a7ff6 n/a (chrome + 0x2bc2ff6)
                                                 #7  0x00005634a34a0293 n/a (chrome + 0x2bbb293)
                                                 #8  0x00005634a34a7643 n/a (chrome + 0x2bc2643)
                                                 #9  0x00005634a9943cfd n/a (chrome + 0x905ecfd)
                                                 #10 0x00005634a6cd5bcd n/a (chrome + 0x63f0bcd)
                                                 #11 0x00005634a9943739 n/a (chrome + 0x905e739)
                                                 #12 0x00005634a516c4e8 n/a (chrome + 0x48874e8)
                                                 #13 0x00005634a516a80a n/a (chrome + 0x488580a)
                                                 #14 0x00005634a29494c4 ChromeMain (chrome + 0x20644c4)
                                                 #15 0x00007fd0909e7b25 __libc_start_main (libc.so.6 + 0x27b25)
                                                 #16 0x00005634a260b46a _start (chrome + 0x1d2646a)
                                                 
                                                 Stack trace of thread 4832:
                                                 #0  0x00007fd0921179ba __futex_abstimed_wait_common64 (libpthread.so.0 + 0x159ba)
                                                 #1  0x00007fd092111574 pthread_cond_timedwait@@GLIBC_2.3.2 (libpthread.so.0 + 0xf574)
                                                 #2  0x00005634a5266f48 n/a (chrome + 0x4981f48)
                                                 #3  0x00005634a52675d3 n/a (chrome + 0x49825d3)
                                                 #4  0x00005634a51d886f n/a (chrome + 0x48f386f)
                                                 #5  0x00005634a522ac5c n/a (chrome + 0x4945c5c)
                                                 #6  0x00005634a51ff2c1 n/a (chrome + 0x491a2c1)
                                                 #7  0x00005634a52440c9 n/a (chrome + 0x495f0c9)
                                                 #8  0x00005634a526af44 n/a (chrome + 0x4985f44)
                                                 #9  0x00007fd09210b299 start_thread (libpthread.so.0 + 0x9299)
                                                 #10 0x00007fd090abf053 __clone (libc.so.6 + 0xff053)
Mar 11 07:41:25 scyllius systemd-coredump[4851]: Process 4848 (chrome) of user 1000 dumped core.
                                                 
                                                 Stack trace of thread 4848:
                                                 #0  0x00007fd08997fb27 n/a (nvidia_drv_video.so + 0x3b27)
                                                 #1  0x00007fd089982989 n/a (nvidia_drv_video.so + 0x6989)
                                                 #2  0x00007fd089982e1f __vaDriverInit_1_10 (nvidia_drv_video.so + 0x6e1f)
                                                 #3  0x00007fd089940c39 n/a (libva.so.2 + 0x3c39)
                                                 #4  0x00007fd089943caf vaInitialize (libva.so.2 + 0x6caf)
                                                 #5  0x00005634a34a8914 n/a (chrome + 0x2bc3914)
                                                 #6  0x00005634a34a7ff6 n/a (chrome + 0x2bc2ff6)
                                                 #7  0x00005634a34a0293 n/a (chrome + 0x2bbb293)
                                                 #8  0x00005634a34a7643 n/a (chrome + 0x2bc2643)
                                                 #9  0x00005634a9943cfd n/a (chrome + 0x905ecfd)
                                                 #10 0x00005634a6cd5bcd n/a (chrome + 0x63f0bcd)
                                                 #11 0x00005634a9943739 n/a (chrome + 0x905e739)
                                                 #12 0x00005634a516c4e8 n/a (chrome + 0x48874e8)
                                                 #13 0x00005634a516a80a n/a (chrome + 0x488580a)
                                                 #14 0x00005634a29494c4 ChromeMain (chrome + 0x20644c4)
                                                 #15 0x00007fd0909e7b25 __libc_start_main (libc.so.6 + 0x27b25)
                                                 #16 0x00005634a260b46a _start (chrome + 0x1d2646a)
                                                 
                                                 Stack trace of thread 4849:
                                                 #0  0x00007fd0921179ba __futex_abstimed_wait_common64 (libpthread.so.0 + 0x159ba)
                                                 #1  0x00007fd092111574 pthread_cond_timedwait@@GLIBC_2.3.2 (libpthread.so.0 + 0xf574)
                                                 #2  0x00005634a5266f48 n/a (chrome + 0x4981f48)
                                                 #3  0x00005634a52675d3 n/a (chrome + 0x49825d3)
                                                 #4  0x00005634a51d886f n/a (chrome + 0x48f386f)
                                                 #5  0x00005634a522ac5c n/a (chrome + 0x4945c5c)
                                                 #6  0x00005634a51ff2c1 n/a (chrome + 0x491a2c1)
                                                 #7  0x00005634a52440c9 n/a (chrome + 0x495f0c9)
                                                 #8  0x00005634a526af44 n/a (chrome + 0x4985f44)
                                                 #9  0x00007fd09210b299 start_thread (libpthread.so.0 + 0x9299)
                                                 #10 0x00007fd090abf053 __clone (libc.so.6 + 0xff053)

And finally, here is my optimus manager config file:

[amd]
DRI=3
driver=modesetting
tearfree=

[intel]
DRI=3
accel=
driver=modesetting
modeset=yes
tearfree=

[nvidia]
DPI=96
PAT=yes
allow_external_gpus=no
dynamic_power_management=no
ignore_abi=no
modeset=yes
options=overclocking

[optimus]
auto_logout=yes
pci_power_control=no
pci_remove=no
pci_reset=function_level
startup_auto_battery_mode=integrated
startup_auto_extpower_mode=nvidia
startup_mode=integrated
switching=bbswitch

Any help will be greatly appreciated.

EDIT:
I found out that if I log out when using the Nvidia GPU, and then log back in, journalctl shows kwin_core: Compositing is not possible. In the compositor settings, I use OpenGL 3.1, which crashes after login when using Nvidia. So I suspect that the dedicated gpu is not started before kwin, but that might not be the case, since I’m no expert in linux.

I do not wish to switch to Xrender (except as a last resort), because I use a couple of effects and transparency which I love on my system.

After a lot of searching I finally fixed the problem.

All I did was change the optimus manager configuration in /etc/optimus-manager/optimus-manager.conf with the following content:

[optimus]
switching=none
pci_power_control=yes
pci_remove=no
pci_reset=no

This is the whole content of the config file. Now I can successfully wake up the laptop in Nvidia mode.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.