Shutdown delay in GNOME even after trying the fix

Hi there! I’ve been experiencing delays in shutdown in my GNOME desktop (takes over a minute). I tried this fix a while ago but it seems to have crept back in. Here’s my journalctl for the last boot. There is a huge 1.5 minute delay in this region:

Jan 18 19:48:25 studio kernel: rtw_8822be 0000:03:00.0: start vif b6:9d:43:6c:57:7c on port 0
Jan 18 19:48:25 studio NetworkManager[652]: <info>  [1610979505.1082] manager: NetworkManager state is now DISCONNECTED
Jan 18 19:48:25 studio dbus-daemon[651]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='dbus-org.freedesktop.nm-dispatcher.service' requested by ':1.3' (uid=0 pid=652 comm="/usr/bin/NetworkManager --no-daemon ")
Jan 18 19:48:25 studio NetworkManager[652]: <info>  [1610979505.1182] device (wlan0): supplicant interface state: disconnected -> interface_disabled
Jan 18 19:48:25 studio NetworkManager[652]: <info>  [1610979505.1482] device (wlan0): supplicant interface state: interface_disabled -> disconnected
Jan 18 19:48:25 studio systemd[1]: bluetooth.service: Succeeded.
Jan 18 19:48:25 studio systemd[1]: Stopped Bluetooth service.
Jan 18 19:48:25 studio audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 subj==unconfined msg='unit=bluetooth comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Jan 18 19:48:25 studio systemd[1]: mkinitcpio-generate-shutdown-ramfs.service: Succeeded.
Jan 18 19:48:25 studio systemd[1]: Finished Generate shutdown-ramfs.
Jan 18 19:48:25 studio audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj==unconfined msg='unit=mkinitcpio-generate-shutdown-ramfs comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Jan 18 19:48:25 studio audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 subj==unconfined msg='unit=mkinitcpio-generate-shutdown-ramfs comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Jan 18 19:48:25 studio systemd[1]: optimus-manager.service: Succeeded.
Jan 18 19:48:25 studio systemd[1]: Stopped Optimus Manager Commands Daemon.
Jan 18 19:48:25 studio audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 subj==unconfined msg='unit=optimus-manager comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Jan 18 19:48:25 studio systemd[1]: session-3.scope: Succeeded.
Jan 18 19:48:25 studio systemd[1]: Stopped Session 3 of user mizumi.
Jan 18 19:48:25 studio dbus-daemon[651]: [system] Activation via systemd failed for unit 'rtkit-daemon.service': Refusing activation, D-Bus is shutting down.
Jan 18 19:48:25 studio dbus-daemon[651]: [system] Activation via systemd failed for unit 'dbus-org.freedesktop.nm-dispatcher.service': Refusing activation, D-Bus is shutting down.
Jan 18 19:48:25 studio systemd[1]: Stopping User Login Management...
Jan 18 19:48:25 studio systemd[1]: Stopping User Manager for UID 1000...
Jan 18 19:48:25 studio systemd[1241]: Stopping Application launched by gnome-session-binary.
Jan 18 19:48:25 studio dbus-daemon[651]: [system] Activating via systemd: service name='org.freedesktop.RealtimeKit1' unit='rtkit-daemon.service' requested by ':1.121' (uid=1000 pid=2822 comm="/usr/bin/pulseaudio --daemonize=no --log-target=jo")
Jan 18 19:48:25 studio systemd[1241]: Removed slice app-gnome\x2dsession\x2dmanager.slice.
Jan 18 19:48:25 studio dbus-daemon[651]: [system] Activation via systemd failed for unit 'rtkit-daemon.service': Refusing activation, D-Bus is shutting down.
Jan 18 19:48:25 studio systemd-logind[659]: Removed session 3.
Jan 18 19:48:25 studio systemd[1241]: Removed slice app-org.gnome.Terminal.slice.
Jan 18 19:48:25 studio systemd[1241]: Removed slice User Core Session Slice.
Jan 18 19:48:25 studio systemd[1241]: Stopped target Main User Target.
Jan 18 19:48:25 studio dbus-daemon[651]: [system] Activating via systemd: service name='org.freedesktop.RealtimeKit1' unit='rtkit-daemon.service' requested by ':1.122' (uid=1000 pid=2822 comm="/usr/bin/pulseaudio --daemonize=no --log-target=jo")
Jan 18 19:48:25 studio dbus-daemon[651]: [system] Activation via systemd failed for unit 'rtkit-daemon.service': Refusing activation, D-Bus is shutting down.
Jan 18 19:48:25 studio dbus-daemon[651]: [system] Activating via systemd: service name='org.freedesktop.RealtimeKit1' unit='rtkit-daemon.service' requested by ':1.123' (uid=1000 pid=2822 comm="/usr/bin/pulseaudio --daemonize=no --log-target=jo")
Jan 18 19:48:25 studio dbus-daemon[651]: [system] Activation via systemd failed for unit 'rtkit-daemon.service': Refusing activation, D-Bus is shutting down.
Jan 18 19:48:25 studio dbus-daemon[651]: [system] Activating via systemd: service name='org.freedesktop.RealtimeKit1' unit='rtkit-daemon.service' requested by ':1.124' (uid=1000 pid=2822 comm="/usr/bin/pulseaudio --daemonize=no --log-target=jo")
Jan 18 19:48:25 studio dbus-daemon[651]: [system] Activation via systemd failed for unit 'rtkit-daemon.service': Refusing activation, D-Bus is shutting down.
Jan 18 19:48:25 studio dbus-daemon[651]: [system] Activating via systemd: service name='org.freedesktop.RealtimeKit1' unit='rtkit-daemon.service' requested by ':1.125' (uid=1000 pid=2822 comm="/usr/bin/pulseaudio --daemonize=no --log-target=jo")
Jan 18 19:48:25 studio dbus-daemon[651]: [system] Activation via systemd failed for unit 'rtkit-daemon.service': Refusing activation, D-Bus is shutting down.
Jan 18 19:48:25 studio dbus-daemon[651]: [system] Activating via systemd: service name='org.freedesktop.RealtimeKit1' unit='rtkit-daemon.service' requested by ':1.126' (uid=1000 pid=2822 comm="/usr/bin/pulseaudio --daemonize=no --log-target=jo")
Jan 18 19:48:25 studio dbus-daemon[651]: [system] Activation via systemd failed for unit 'rtkit-daemon.service': Refusing activation, D-Bus is shutting down.
Jan 18 19:48:25 studio dbus-daemon[651]: [system] Activating via systemd: service name='org.freedesktop.RealtimeKit1' unit='rtkit-daemon.service' requested by ':1.127' (uid=1000 pid=2822 comm="/usr/bin/pulseaudio --daemonize=no --log-target=jo")
Jan 18 19:48:25 studio dbus-daemon[651]: [system] Activation via systemd failed for unit 'rtkit-daemon.service': Refusing activation, D-Bus is shutting down.
Jan 18 19:48:25 studio dbus-daemon[651]: [system] Activating via systemd: service name='org.freedesktop.RealtimeKit1' unit='rtkit-daemon.service' requested by ':1.128' (uid=1000 pid=2822 comm="/usr/bin/pulseaudio --daemonize=no --log-target=jo")
Jan 18 19:48:25 studio dbus-daemon[651]: [system] Activation via systemd failed for unit 'rtkit-daemon.service': Refusing activation, D-Bus is shutting down.
Jan 18 19:48:25 studio dbus-daemon[651]: [system] Activating via systemd: service name='org.freedesktop.RealtimeKit1' unit='rtkit-daemon.service' requested by ':1.129' (uid=1000 pid=2822 comm="/usr/bin/pulseaudio --daemonize=no --log-target=jo")
Jan 18 19:48:25 studio dbus-daemon[651]: [system] Activation via systemd failed for unit 'rtkit-daemon.service': Refusing activation, D-Bus is shutting down.
Jan 18 19:48:25 studio dbus-daemon[651]: [system] Activating via systemd: service name='org.freedesktop.RealtimeKit1' unit='rtkit-daemon.service' requested by ':1.130' (uid=1000 pid=2822 comm="/usr/bin/pulseaudio --daemonize=no --log-target=jo")
Jan 18 19:48:25 studio dbus-daemon[651]: [system] Activation via systemd failed for unit 'rtkit-daemon.service': Refusing activation, D-Bus is shutting down.
Jan 18 19:48:25 studio pulseaudio[2822]: Stale PID file, overwriting.
Jan 18 19:48:25 studio systemd[1]: systemd-logind.service: Succeeded.
Jan 18 19:48:25 studio systemd[1]: Stopped User Login Management.
Jan 18 19:48:25 studio audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 subj==unconfined msg='unit=systemd-logind comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Jan 18 19:48:25 studio kernel: kauditd_printk_skb: 17 callbacks suppressed
Jan 18 19:48:25 studio kernel: audit: type=1131 audit(1610979505.386:217): pid=1 uid=0 auid=4294967295 ses=4294967295 subj==unconfined msg='unit=systemd-logind comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Jan 18 19:48:25 studio audit: BPF prog-id=8 op=UNLOAD
Jan 18 19:48:25 studio audit: BPF prog-id=7 op=UNLOAD
Jan 18 19:48:25 studio kernel: audit: type=1334 audit(1610979505.423:218): prog-id=8 op=UNLOAD
Jan 18 19:48:25 studio kernel: audit: type=1334 audit(1610979505.423:219): prog-id=7 op=UNLOAD
Jan 18 19:48:26 studio wpa_supplicant[810]: wlan0: CTRL-EVENT-REGDOM-CHANGE init=BEACON_HINT type=UNKNOWN
Jan 18 19:49:54 studio systemd[1241]: Stopping D-Bus User Message Bus...
Jan 18 19:49:54 studio systemd[1241]: Stopping Multimedia Service...
Jan 18 19:49:54 studio systemd[1241]: dbus.service: Succeeded.
Jan 18 19:49:54 studio systemd[1241]: Stopped D-Bus User Message Bus.
Jan 18 19:49:54 studio systemd[1241]: app-gnome-libinput\x2dgestures-1658.scope: Succeeded.
Jan 18 19:49:54 studio systemd[1241]: Stopped Application launched by gnome-session-binary.
Jan 18 19:49:54 studio systemd[1241]: pipewire.service: Succeeded.
Jan 18 19:49:54 studio systemd[1241]: Stopped Multimedia Service.
Jan 18 19:49:54 studio dbus-daemon[651]: [system] Activating via systemd: service name='org.freedesktop.RealtimeKit1' unit='rtkit-daemon.service' requested by ':1.131' (uid=1000 pid=2822 comm="/usr/bin/pulseaudio --daemonize=no --log-target=jo")
Jan 18 19:49:54 studio dbus-daemon[651]: [system] Activation via systemd failed for unit 'rtkit-daemon.service': Refusing activation, D-Bus is shutting down.
Jan 18 19:49:55 studio dbus-daemon[651]: [system] Activating via systemd: service name='org.freedesktop.RealtimeKit1' unit='rtkit-daemon.service' requested by ':1.132' (uid=1000 pid=2822 comm="/usr/bin/pulseaudio --daemonize=no --log-target=jo")
Jan 18 19:49:55 studio dbus-daemon[651]: [system] Activation via systemd failed for unit 'rtkit-daemon.service': Refusing activation, D-Bus is shutting down.
Jan 18 19:49:55 studio dbus-daemon[651]: [system] Activating via systemd: service name='org.freedesktop.RealtimeKit1' unit='rtkit-daemon.service' requested by ':1.133' (uid=1000 pid=2822 comm="/usr/bin/pulseaudio --daemonize=no --log-target=jo")
Jan 18 19:49:55 studio dbus-daemon[651]: [system] Activation via systemd failed for unit 'rtkit-daemon.service': Refusing activation, D-Bus is shutting down.
Jan 18 19:49:55 studio dbus-daemon[651]: [system] Activating via systemd: service name='org.freedesktop.RealtimeKit1' unit='rtkit-daemon.service' requested by ':1.134' (uid=1000 pid=2822 comm="/usr/bin/pulseaudio --daemonize=no --log-target=jo")
Jan 18 19:49:55 studio dbus-daemon[651]: [system] Activation via systemd failed for unit 'rtkit-daemon.service': Refusing activation, D-Bus is shutting down.
Jan 18 19:49:55 studio dbus-daemon[651]: [system] Activating via systemd: service name='org.freedesktop.RealtimeKit1' unit='rtkit-daemon.service' requested by ':1.135' (uid=1000 pid=2822 comm="/usr/bin/pulseaudio --daemonize=no --log-target=jo")
Jan 18 19:49:55 studio dbus-daemon[651]: [system] Activation via systemd failed for unit 'rtkit-daemon.service': Refusing activation, D-Bus is shutting down.
Jan 18 19:49:55 studio dbus-daemon[651]: [system] Activating via systemd: service name='org.freedesktop.RealtimeKit1' unit='rtkit-daemon.service' requested by ':1.136' (uid=1000 pid=2822 comm="/usr/bin/pulseaudio --daemonize=no --log-target=jo")
Jan 18 19:49:55 studio dbus-daemon[651]: [system] Activation via systemd failed for unit 'rtkit-daemon.service': Refusing activation, D-Bus is shutting down.
Jan 18 19:49:55 studio dbus-daemon[651]: [system] Activating via systemd: service name='org.freedesktop.RealtimeKit1' unit='rtkit-daemon.service' requested by ':1.137' (uid=1000 pid=2822 comm="/usr/bin/pulseaudio --daemonize=no --log-target=jo")
Jan 18 19:49:55 studio dbus-daemon[651]: [system] Activation via systemd failed for unit 'rtkit-daemon.service': Refusing activation, D-Bus is shutting down.
Jan 18 19:49:55 studio dbus-daemon[651]: [system] Activating via systemd: service name='org.freedesktop.RealtimeKit1' unit='rtkit-daemon.service' requested by ':1.138' (uid=1000 pid=2822 comm="/usr/bin/pulseaudio --daemonize=no --log-target=jo")
Jan 18 19:49:55 studio dbus-daemon[651]: [system] Activation via systemd failed for unit 'rtkit-daemon.service': Refusing activation, D-Bus is shutting down.
Jan 18 19:49:55 studio dbus-daemon[651]: [system] Activating via systemd: service name='org.freedesktop.RealtimeKit1' unit='rtkit-daemon.service' requested by ':1.139' (uid=1000 pid=2822 comm="/usr/bin/pulseaudio --daemonize=no --log-target=jo")
Jan 18 19:49:55 studio dbus-daemon[651]: [system] Activation via systemd failed for unit 'rtkit-daemon.service': Refusing activation, D-Bus is shutting down.
Jan 18 19:49:55 studio dbus-daemon[651]: [system] Activating via systemd: service name='org.freedesktop.RealtimeKit1' unit='rtkit-daemon.service' requested by ':1.140' (uid=1000 pid=2822 comm="/usr/bin/pulseaudio --daemonize=no --log-target=jo")
Jan 18 19:49:55 studio dbus-daemon[651]: [system] Activation via systemd failed for unit 'rtkit-daemon.service': Refusing activation, D-Bus is shutting down.
Jan 18 19:49:55 studio pulseaudio[2822]: Unable to contact D-Bus session bus: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
Jan 18 19:49:55 studio pulseaudio[2822]: Failed to load module "module-jackdbus-detect" (argument: "channels=2"): initialization failed.
Jan 18 19:49:55 studio pulseaudio[2822]: module-rescue-stream is obsolete and should no longer be loaded. Please remove it from your configuration.
Jan 18 19:49:55 studio pulseaudio[2822]: Unable to contact D-Bus: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.
Jan 18 19:49:55 studio pulseaudio[2822]: Unable to contact D-Bus: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.

Here’s my inxi

>>> inxi -Fazy                                                                                                    
System:
  Kernel: 5.10.2-2-MANJARO x86_64 bits: 64 compiler: gcc v: 10.2.0 
  parameters: BOOT_IMAGE=/boot/vmlinuz-5.10-x86_64 
  root=UUID=56d77d09-dec0-4408-b59c-9e65207adba1 rw "acpi_osi=Windows 2020" 
  quiet apparmor=1 security=apparmor 
  resume=UUID=de30f955-1579-4142-b628-50d1170872b5 udev.log_priority=3 
  Desktop: GNOME 3.38.2 tk: GTK 3.24.24 wm: gnome-shell dm: GDM 3.38.2 
  Distro: Manjaro Linux 
Machine:
  Type: Laptop System: HP product: HP Pavilion Notebook v: N/A 
  serial: <filter> Chassis: type: 10 serial: <filter> 
  Mobo: HP model: 84F8 v: 08.11 serial: <filter> UEFI: AMI v: F.29 
  date: 07/17/2020 
Battery:
  ID-1: BAT0 charge: 21.9 Wh condition: 52.7/52.7 Wh (100%) volts: 11.0/11.6 
  model: HP Primary type: Li-ion serial: N/A status: Discharging 
  Device-1: hidpp_battery_0 model: Logitech Wireless Keyboard serial: <filter> 
  charge: 55% (should be ignored) rechargeable: yes status: Discharging 
CPU:
  Info: 6-Core model: Intel Core i7-8750H bits: 64 type: MT MCP 
  arch: Kaby Lake note: check family: 6 model-id: 9E (158) stepping: A (10) 
  microcode: DE L2 cache: 9 MiB 
  flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx 
  bogomips: 52815 
  Speed: 900 MHz min/max: 800/4100 MHz Core speeds (MHz): 1: 900 2: 900 3: 900 
  4: 900 5: 900 6: 900 7: 900 8: 900 9: 900 10: 900 11: 900 12: 900 
  Vulnerabilities: Type: itlb_multihit status: KVM: VMX disabled 
  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 UHD Graphics 630 vendor: Hewlett-Packard driver: i915 
  v: kernel bus ID: 00:02.0 chip ID: 8086:3e9b 
  Device-2: NVIDIA GP107M [GeForce GTX 1050 Mobile] vendor: Hewlett-Packard 
  driver: N/A alternate: nouveau, nvidia_drm, nvidia bus ID: 01:00.0 
  chip ID: 10de:1c8d 
  Device-3: Chicony HP Wide Vision HD type: USB driver: uvcvideo bus ID: 1-6:4 
  chip ID: 04f2:b56d 
  Display: x11 server: X.org 1.20.10 compositor: gnome-shell 
  driver: modesetting resolution: <missing: xdpyinfo> 
  OpenGL: renderer: Mesa Intel UHD Graphics 630 (CFL GT2) v: 4.6 Mesa 20.3.1 
  direct render: Yes 
Audio:
  Device-1: Intel Cannon Lake PCH cAVS vendor: Hewlett-Packard 
  driver: snd_hda_intel v: kernel alternate: snd_soc_skl,snd_sof_pci 
  bus ID: 00:1f.3 chip ID: 8086:a348 
  Sound Server: ALSA v: k5.10.2-2-MANJARO 
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet 
  vendor: Hewlett-Packard driver: r8169 v: kernel port: 4000 bus ID: 02:00.0 
  chip ID: 10ec:8168 
  IF: eno1 state: down mac: <filter> 
  Device-2: Realtek RTL8822BE 802.11a/b/g/n/ac WiFi adapter 
  vendor: Hewlett-Packard driver: rtw_8822be v: N/A modules: rtw88_8822be 
  port: 3000 bus ID: 03:00.0 chip ID: 10ec:b822 
  IF: wlan0 state: up mac: <filter> 
RAID:
  Hardware-1: Intel 82801 Mobile SATA Controller [RAID mode] driver: ahci 
  v: 3.0 port: 6060 bus ID: 00:17.0 chip ID: 8086.282a rev: 10 
Drives:
  Local Storage: total: 585 GiB used: 45.06 GiB (7.7%) 
  SMART Message: Unable to run smartctl. Root privileges required. 
  ID-1: /dev/sda maj-min: 8:0 vendor: Samsung model: MZNLN128HAHQ-000H1 
  size: 119.24 GiB block size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s 
  serial: <filter> rev: 3H3Q 
  ID-2: /dev/sdb maj-min: 8:16 vendor: Crucial model: CT500MX500SSD1 
  size: 465.76 GiB block size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s 
  serial: <filter> rev: 023 
Partition:
  ID-1: / raw size: 90 GiB size: 88.09 GiB (97.88%) used: 45.05 GiB (51.1%) 
  fs: ext4 dev: /dev/sdb4 maj-min: 8:20 
  ID-2: /boot/efi raw size: 500 MiB size: 499 MiB (99.80%) 
  used: 6.3 MiB (1.3%) fs: vfat dev: /dev/sdb1 maj-min: 8:17 
Swap:
  Kernel: swappiness: 60 (default) cache pressure: 100 (default) 
  ID-1: swap-1 type: partition size: 6 GiB used: 0 KiB (0.0%) priority: -2 
  dev: /dev/sdb6 maj-min: 8:22 
Sensors:
  System Temperatures: cpu: 52.0 C mobo: N/A 
  Fan Speeds (RPM): N/A 
Info:
  Processes: 304 Uptime: 16m wakeups: 3 Memory: 7.58 GiB 
  used: 2.21 GiB (29.2%) Init: systemd v: 247 Compilers: gcc: 10.2.0 
  clang: 11.0.0 Packages: pacman: 1666 lib: 395 flatpak: 0 Shell: Zsh v: 5.8 
  running in: gnome-terminal inxi: 3.2.01 

Please let me know there’s anything else I can provide that can help.

Hello,

Just to be sure, you did this:

and is not working ? Have you tried to change the

to something else? 2008, 2015 ?

What exact drivers have you installed for your laptop hybrid GPUs ?

Yes that is indeed what I did, added the .slice thingy, it worked fine for a while but recently I’ve been experiencing the delays again.

I have yet to experiment with different osi strings, I will try that and let you know how it goes by tomorrow.

I’m using the nvidia-455 drivers, and video-linux. I’m currently not home and I’m not using my external monitor, so I’m just running the Intel GPU.

I’m afk, will get back by tomorrow thanks for the tips!

Okay this is weird, the delay isn’t there anymore… I’ll report back if it happens again :thinking: