Suspend not working (bbswitch)

Hell, I am using 5.0.0-15-generic. When I am trying to suspend my laptop it always wakes up (looking into the log it looks like it never really suspends).

May 31 00:32:35 t490 gnome-shell[1706]: GNOME Shell started at Fri May 31 2019 00:32:34 GMT+0200 (CEST) May 31 00:32:38 t490 systemd[1]: systemd-fsckd.service: Succeeded. May 31 00:32:38 t490 systemd-timesyncd[791]: Synchronized to time server [2001:67c:1560:8003::c7]:123 (ntp.ubuntu.com). May 31 00:32:40 t490 dbus-daemon[1571]: [session uid=1000 pid=1571] Activating via systemd: service name='org.gtk.vfs.Metadata' unit='gvfs-metadata.service' requested by ':1.13' (uid=1000 pid=1706 comm="/usr/bin/gnome-shell " label="unconfined") May 31 00:32:40 t490 systemd[1545]: Starting Virtual filesystem metadata service... May 31 00:32:40 t490 dbus-daemon[1571]: [session uid=1000 pid=1571] Successfully activated service 'org.gtk.vfs.Metadata' May 31 00:32:40 t490 systemd[1545]: Started Virtual filesystem metadata service. May 31 00:32:42 t490 systemd-resolved[789]: Server returned error NXDOMAIN, mitigating potential DNS violation DVE-2018-0001, retrying transaction with reduced feature level UDP. May 31 00:32:42 t490 gnome-shell[1706]: JS WARNING: [/usr/share/gnome-shell/extensions/pop-suspend-button@system76.com/extension.js 202]: assignment to undeclared variable gnomeShellVersion May 31 00:32:42 t490 NetworkManager[899]: <info>  [1559255562.9543] manager: sleep: sleep requested (sleeping: no  enabled: yes) May 31 00:32:42 t490 NetworkManager[899]: <info>  [1559255562.9545] device (p2p-dev-wlp0s20f3): state change: disconnected -> unmanaged (reason 'sleeping', sys-iface-state: 'managed') May 31 00:32:42 t490 NetworkManager[899]: <info>  [1559255562.9554] manager: NetworkManager state is now ASLEEP May 31 00:32:43 t490 gnome-shell[1706]: Source ID 331 was not found when attempting to remove it May 31 00:32:43 t490 gnome-shell[1706]: [System monitor] applet disable May 31 00:32:43 t490 gnome-shell[1706]: Source ID 328 was not found when attempting to remove it May 31 00:32:43 t490 gnome-shell[1706]: ../../../gobject/gsignal.c:2641: instance '0x558a7e5666b0' has no handler with id '11240' May 31 00:32:45 t490 systemd-resolved[789]: Server returned error NXDOMAIN, mitigating potential DNS violation DVE-2018-0001, retrying transaction with reduced feature level UDP. May 31 00:32:45 t490 systemd-resolved[789]: message repeated 3 times: [ Server returned error NXDOMAIN, mitigating potential DNS violation DVE-2018-0001, retrying transaction with reduced feature level UDP.] May 31 00:32:45 t490 systemd[1]: Reached target Sleep. May 31 00:32:45 t490 systemd[1]: Starting Suspend... May 31 00:32:45 t490 systemd-sleep[2218]: Suspending system... May 31 00:32:45 t490 kernel: [   45.963289] PM: suspend entry (deep) May 31 00:32:45 t490 systemd[1]: systemd-suspend.service: Main process exited, code=killed, status=9/KILL May 31 00:32:45 t490 systemd[1]: systemd-suspend.service: Failed with result 'signal'. May 31 00:32:45 t490 kernel: [   45.963291] PM: Syncing filesystems ... done. May 31 00:32:45 t490 kernel: [   45.972079] BUG: unable to handle kernel paging request at 000000046d10b038 May 31 00:32:45 t490 kernel: [   45.972082] #PF error: [normal kernel read fault] May 31 00:32:45 t490 kernel: [   45.972083] PGD 0 P4D 0  May 31 00:32:45 t490 kernel: [   45.972086] Oops: 0000 [#1] SMP NOPTI May 31 00:32:45 t490 kernel: [   45.972089] CPU: 3 PID: 2218 Comm: systemd-sleep Tainted: G     U     OE     5.0.0-15-generic #16pop0-Ubuntu May 31 00:32:45 t490 kernel: [   45.972091] Hardware name: LENOVO 20N3S02L00/20N3S02L00, BIOS N2IET31W (1.09 ) 03/20/2019 May 31 00:32:45 t490 kernel: [   45.972095] RIP: 0010:dis_dev_get+0x15/0x40 [bbswitch] May 31 00:32:45 t490 kernel: [   45.972097] Code: 48 c7 c6 a0 d0 a6 c0 48 89 e5 e8 46 af e6 cb 5d c3 0f 1f 40 00 0f 1f 44 00 00 48 8b 05 64 35 00 00 48 8b 40 10 48 85 c0 74 20 <48> 8b 78 38 48 85 ff 74 17 55 48 81 c7 b0 00 00 00 be 04 00 00 00 May 31 00:32:45 t490 kernel: [   45.972099] RSP: 0018:ffffa7d5c43bfd18 EFLAGS: 00010206 May 31 00:32:45 t490 kernel: [   45.972101] RAX: 000000046d10b000 RBX: 00000000fffffff7 RCX: 0000000000000003 May 31 00:32:45 t490 kernel: [   45.972102] RDX: 0000000000000000 RSI: 0000000000000003 RDI: ffffffffc0a70000 May 31 00:32:45 t490 kernel: [   45.972103] RBP: ffffa7d5c43bfd30 R08: 0000000000000000 R09: 0000000000000610 May 31 00:32:45 t490 kernel: [   45.972105] R10: 0000000000000988 R11: ffff9a305e4e1c04 R12: ffffffff8ddd3040 May 31 00:32:45 t490 kernel: [   45.972106] R13: 0000000000000003 R14: 0000000000000000 R15: ffffa7d5c43bfdcc May 31 00:32:45 t490 kernel: [   45.972108] FS:  00007ffadf0fe440(0000) GS:ffff9a305e4c0000(0000) knlGS:0000000000000000 May 31 00:32:45 t490 kernel: [   45.972109] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033 May 31 00:32:45 t490 kernel: [   45.972111] CR2: 000000046d10b038 CR3: 000000046146a006 CR4: 00000000003606e0 May 31 00:32:45 t490 kernel: [   45.972112] Call Trace: May 31 00:32:45 t490 kernel: [   45.972116]  ? bbswitch_pm_handler+0x62/0xa0 [bbswitch] May 31 00:32:45 t490 kernel: [   45.972121]  notifier_call_chain+0x4c/0x70 May 31 00:32:45 t490 kernel: [   45.972124]  __blocking_notifier_call_chain+0x4b/0x70 May 31 00:32:45 t490 kernel: [   45.972127]  __pm_notifier_call_chain+0x1f/0x40 May 31 00:32:45 t490 kernel: [   45.972129]  pm_suspend.cold.7+0x179/0x397 May 31 00:32:45 t490 kernel: [   45.972131]  state_store+0x84/0xf0 May 31 00:32:45 t490 kernel: [   45.972135]  kobj_attr_store+0x12/0x20 May 31 00:32:45 t490 kernel: [   45.972139]  sysfs_kf_write+0x3b/0x40 May 31 00:32:45 t490 kernel: [   45.972141]  kernfs_fop_write+0x12e/0x1b0 May 31 00:32:45 t490 kernel: [   45.972143]  __vfs_write+0x1b/0x40 May 31 00:32:45 t490 kernel: [   45.972145]  vfs_write+0xab/0x1b0 May 31 00:32:45 t490 kernel: [   45.972147]  ksys_write+0x55/0xc0 May 31 00:32:45 t490 kernel: [   45.972149]  __x64_sys_write+0x1a/0x20 May 31 00:32:45 t490 kernel: [   45.972152]  do_syscall_64+0x5a/0x110 May 31 00:32:45 t490 kernel: [   45.972155]  entry_SYSCALL_64_after_hwframe+0x44/0xa9 May 31 00:32:45 t490 kernel: [   45.972157] RIP: 0033:0x7ffadfd84024 May 31 00:32:45 t490 kernel: [   45.972159] Code: 00 f7 d8 64 89 02 48 c7 c0 ff ff ff ff eb b3 0f 1f 80 00 00 00 00 48 8d 05 b9 d3 0d 00 8b 00 85 c0 75 13 b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 54 c3 0f 1f 00 41 54 49 89 d4 55 48 89 f5 53 May 31 00:32:45 t490 kernel: [   45.972160] RSP: 002b:00007ffeeff86de8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 May 31 00:32:45 t490 kernel: [   45.972162] RAX: ffffffffffffffda RBX: 0000000000000004 RCX: 00007ffadfd84024 May 31 00:32:45 t490 kernel: [   45.972164] RDX: 0000000000000004 RSI: 00007ffeeff86ea0 RDI: 0000000000000004 May 31 00:32:45 t490 kernel: [   45.972165] RBP: 00007ffeeff86ea0 R08: 0000000000000004 R09: 0000000000000000 May 31 00:32:45 t490 kernel: [   45.972166] R10: 00007ffadfe5bca0 R11: 0000000000000246 R12: 000055688b9ee290 May 31 00:32:45 t490 kernel: [   45.972167] R13: 0000000000000004 R14: 0000000000000004 R15: 00007ffadfe5c960 May 31 00:32:45 t490 kernel: [   45.972169] Modules linked in: ccm pci_stub vboxpci(OE) vboxnetadp(OE) vboxnetflt(OE) vboxdrv(OE) msr bnep bbswitch(OE) nls_iso8859_1 snd_hda_codec_hdmi intel_rapl x86_pkg_temp_thermal intel_powerclamp coretemp kvm_intel arc4 crct10dif_pclmul crc32_pclmul ghash_clmulni_intel uvcvideo videobuf2_vmalloc videobuf2_memops videobuf2_v4l2 videobuf2_common joydev input_leds videodev iwlmvm media btusb snd_soc_skl btrtl snd_soc_hdac_hda btbcm btintel mac80211 snd_hda_ext_core snd_soc_skl_ipc bluetooth snd_soc_sst_ipc snd_soc_sst_dsp snd_soc_acpi_intel_match snd_soc_acpi aesni_intel snd_hda_codec_realtek ecdh_generic snd_soc_core aes_x86_64 crypto_simd cryptd snd_hda_codec_generic glue_helper snd_compress iwlwifi wmi_bmof intel_cstate intel_rapl_perf ac97_bus snd_pcm_dmaengine snd_hda_intel intel_wmi_thunderbolt thinkpad_acpi snd_hda_codec serio_raw snd_seq_midi snd_hda_core snd_seq_midi_event snd_hwdep nvram snd_pcm ledtrig_audio snd_rawmidi cfg80211 mei_me mei processor_thermal_device ucsi_acpi May 31 00:32:45 t490 kernel: [   45.972198]  typec_ucsi intel_soc_dts_iosf intel_pch_thermal typec snd_seq snd_seq_device snd_timer snd soundcore int3403_thermal int340x_thermal_zone mac_hid int3400_thermal acpi_thermal_rel acpi_pad sch_fq_codel parport_pc ppdev lp parport ip_tables x_tables autofs4 raid10 raid456 async_raid6_recov async_memcpy async_pq async_xor async_tx xor raid6_pq libcrc32c raid1 raid0 multipath linear system76_io(OE) i915 kvmgt vfio_mdev mdev vfio_iommu_type1 vfio kvm irqbypass i2c_algo_bit drm_kms_helper syscopyarea sysfillrect sysimgblt fb_sys_fops nvme drm e1000e psmouse nvme_core i2c_i801 wmi pinctrl_cannonlake video pinctrl_intel May 31 00:32:45 t490 kernel: [   45.972223] CR2: 000000046d10b038 May 31 00:32:45 t490 kernel: [   45.972225] ---[ end trace bcaf5bb8c615b12b ]--- May 31 00:32:45 t490 kernel: [   45.972228] RIP: 0010:dis_dev_get+0x15/0x40 [bbswitch] May 31 00:32:45 t490 kernel: [   45.972230] Code: 48 c7 c6 a0 d0 a6 c0 48 89 e5 e8 46 af e6 cb 5d c3 0f 1f 40 00 0f 1f 44 00 00 48 8b 05 64 35 00 00 48 8b 40 10 48 85 c0 74 20 <48> 8b 78 38 48 85 ff 74 17 55 48 81 c7 b0 00 00 00 be 04 00 00 00 May 31 00:32:45 t490 kernel: [   45.972231] RSP: 0018:ffffa7d5c43bfd18 EFLAGS: 00010206 May 31 00:32:45 t490 kernel: [   45.972232] RAX: 000000046d10b000 RBX: 00000000fffffff7 RCX: 0000000000000003 May 31 00:32:45 t490 kernel: [   45.972234] RDX: 0000000000000000 RSI: 0000000000000003 RDI: ffffffffc0a70000 May 31 00:32:45 t490 kernel: [   45.972235] RBP: ffffa7d5c43bfd30 R08: 0000000000000000 R09: 0000000000000610 May 31 00:32:45 t490 kernel: [   45.972236] R10: 0000000000000988 R11: ffff9a305e4e1c04 R12: ffffffff8ddd3040 May 31 00:32:45 t490 kernel: [   45.972237] R13: 0000000000000003 R14: 0000000000000000 R15: ffffa7d5c43bfdcc May 31 00:32:45 t490 kernel: [   45.972239] FS:  00007ffadf0fe440(0000) GS:ffff9a305e4c0000(0000) knlGS:0000000000000000 May 31 00:32:45 t490 kernel: [   45.972240] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033 May 31 00:32:45 t490 kernel: [   45.972242] CR2: 000000046d10b038 CR3: 000000046146a006 CR4: 00000000003606e0 May 31 00:32:45 t490 systemd[1]: Failed to start Suspend. May 31 00:32:45 t490 systemd[1]: Dependency failed for Suspend. May 31 00:32:45 t490 systemd[1]: suspend.target: Job suspend.target/start failed with result 'dependency'. May 31 00:32:45 t490 systemd[1]: Stopped target Sleep. May 31 00:32:45 t490 NetworkManager[899]: <info>  [1559255565.8993] manager: sleep: wake requested (sleeping: yes  enabled: yes) May 31 00:32:45 t490 NetworkManager[899]: <info>  [1559255565.8994] device (enp0s31f6): state change: unavailable -> unmanaged (reason 'sleeping', sys-iface-state: 'managed') May 31 00:32:45 t490 kernel: [   46.056516] e1000e: enp0s31f6 NIC Link is Down May 31 00:32:45 t490 NetworkManager[899]: <info>  [1559255565.9810] device (wlp0s20f3): state change: activated -> unmanaged (reason 'sleeping', sys-iface-state: 'managed') May 31 00:32:45 t490 NetworkManager[899]: <info>  [1559255565.9833] dhcp4 (wlp0s20f3): canceled DHCP transaction, DHCP client pid 1112 May 31 00:32:45 t490 NetworkManager[899]: <info>  [1559255565.9837] dhcp4 (wlp0s20f3): state changed bound -> done May 31 00:32:45 t490 NetworkManager[899]: <info>  [1559255565.9843] dhcp6 (wlp0s20f3): canceled DHCP transaction May 31 00:32:45 t490 NetworkManager[899]: <info>  [1559255565.9843] dhcp6 (wlp0s20f3): state changed terminated -> done May 31 00:32:45 t490 avahi-daemon[871]: Withdrawing address record for 192.168.104.162 on wlp0s20f3. May 31 00:32:45 t490 avahi-daemon[871]: Leaving mDNS multicast group on interface wlp0s20f3.IPv4 with address 192.168.104.162. May 31 00:32:45 t490 avahi-daemon[871]: Interface wlp0s20f3.IPv4 no longer relevant for mDNS. May 31 00:32:45 t490 avahi-daemon[871]: Withdrawing address record for 2a02:8071:1b4:6500:d8b0:eadf:c010:f554 on wlp0s20f3. May 31 00:32:45 t490 avahi-daemon[871]: Withdrawing address record for 2a02:8071:1b4:6500:9e21:27e8:8ebc:5074 on wlp0s20f3. May 31 00:32:45 t490 avahi-daemon[871]: Leaving mDNS multicast group on interface wlp0s20f3.IPv6 with address 2a02:8071:1b4:6500:9e21:27e8:8ebc:5074. May 31 00:32:45 t490 avahi-daemon[871]: Joining mDNS multicast group on interface wlp0s20f3.IPv6 with address fe80::ea7:ba0a:dbe9:8d84. May 31 00:32:45 t490 avahi-daemon[871]: Registering new address record for fe80::ea7:ba0a:dbe9:8d84 on wlp0s20f3.*. May 31 00:32:45 t490 avahi-daemon[871]: Withdrawing address record for fe80::ea7:ba0a:dbe9:8d84 on wlp0s20f3. May 31 00:32:45 t490 avahi-daemon[871]: Leaving mDNS multicast group on interface wlp0s20f3.IPv6 with address fe80::ea7:ba0a:dbe9:8d84. May 31 00:32:45 t490 avahi-daemon[871]: Interface wlp0s20f3.IPv6 no longer relevant for mDNS. May 31 00:32:45 t490 kernel: [   46.067443] wlp0s20f3: deauthenticating from 9c:3d:cf:ea:db:10 by local choice (Reason: 3=DEAUTH_LEAVING) May 31 00:32:45 t490 NetworkManager[899]: <info>  [1559255565.9918] manager: NetworkManager state is now CONNECTED_GLOBAL May 31 00:32:45 t490 gnome-shell[1706]: An active wireless connection, in infrastructure mode, involves no access point? May 31 00:32:45 t490 systemd[1]: Starting resolvconf-pull-resolved.service... May 31 00:32:46 t490 wpa_supplicant[903]: wlp0s20f3: CTRL-EVENT-DISCONNECTED bssid=9c:3d:cf:ea:db:10 reason=3 locally_generated=1 May 31 00:32:46 t490 wpa_supplicant[903]: wlp0s20f3: CTRL-EVENT-SIGNAL-CHANGE above=0 signal=0 noise=9999 txrate=0 May 31 00:32:46 t490 NetworkManager[899]: <info>  [1559255566.0225] manager: NetworkManager state is now DISCONNECTED May 31 00:32:46 t490 gnome-shell[1706]: An active wireless connection, in infrastructure mode, involves no access point? May 31 00:32:46 t490 sh[2236]: /etc/resolvconf/update.d/libc: Warning: /etc/resolv.conf is not a symbolic link to /run/resolvconf/resolv.conf May 31 00:32:46 t490 NetworkManager[899]: <info>  [1559255566.0343] device (enp0s31f6): state change: unmanaged -> unavailable (reason 'managed', sys-iface-state: 'managed') May 31 00:32:46 t490 wpa_supplicant[903]: nl80211: deinit ifname=wlp0s20f3 disabled_11b_rates=0 May 31 00:32:46 t490 systemd[1]: resolvconf-pull-resolved.service: Succeeded. May 31 00:32:46 t490 systemd[1]: Started resolvconf-pull-resolved.service. May 31 00:32:46 t490 gsd-sharing[1846]: Failed to StopUnit service: GDBus.Error:org.freedesktop.systemd1.NoSuchUnit: Unit gnome-user-share-webdav.service not loaded. May 31 00:32:46 t490 gsd-sharing[1846]: Failed to StopUnit service: GDBus.Error:org.freedesktop.systemd1.NoSuchUnit: Unit rygel.service not loaded. May 31 00:32:46 t490 gsd-sharing[1846]: Failed to StopUnit service: GDBus.Error:org.freedesktop.systemd1.NoSuchUnit: Unit gnome-remote-desktop.service not loaded. May 31 00:32:46 t490 dbus-daemon[861]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='dbus-org.freedesktop.nm-dispatcher.service' requested by ':1.18' (uid=0 pid=899 comm="/usr/sbin/NetworkManager --no-daemon " label="unconfined") May 31 00:32:46 t490 systemd[1]: Starting Network Manager Script Dispatcher Service... May 31 00:32:46 t490 dbus-daemon[861]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher' 

The only similar issue I could find was this one: Suspend not working (cat /proc/acpi/bbswitch killed).

Can someone please help me understand the kernel error?

edit: When I switch to the nvidia GPU suspend is working fine.