What to do when laptop takes minutes to shut down after power off?
Maybe the logs from journalctl
will help? Use the command journalctl -b -1
to bring up the log from the previous boot. Then check the end of the log to see if there’s anything that may be slowing the shutdown procedures.
I remember once I had the same problem and the cause of the problem was akmods service is trying to build something and fail every time ,I do not know (maybe) you have the same problem.
systemctl status akmods.service
I agree with @ertain, but use journalctl -r -b -1
. The “-r” will reverse the log, I simply find it more convenient.
Doesn’t this happen at start-up?
Slightly early to suggest a fix before diagnosing the issue, no?
My suggestion (systemctl status akmos.service) maybe diagnose the issue .
There is akmods.service and also akmods-shutdown.service .
systemctl cat akmods-shutdown.service
I do not remember the module that was being built before shutdown .
I do not know in detailed how it works
hit ESC key during hanging shutdown
I guess journald is unable to close the log’s/shutdown and/or needs several minutes to do so ?!
Happens to me sometimes and not every shutdown…
ESC gives a log when closing, very clarifying. Thanks
so you might hard power off the box (long pressing power button) if this happens.
I experienced NO harm so far.
Not nice, but I haven’t investigated it further so far…
Any solutions found for this yet? I just upgraded to F30 and am also experiencing a long shut down time. I’ve looked journalctl -r -b -1
. What things in there would indicate what the shut down process is being held up by?
In general, anything that says stuff regarding a “timeout”. Often I find using -e
instead of -r
a bit easier to read, since instead of reversing the order so that the newest are first, it leaves the chronological oldest-first order but jumps straight down to the bottom.
Having just looked through the output for “timeout” I get that firewalld.service: Failed with result 'timeout'.
Is there a way to resolve this issue?
Here’s more info I found on the firewalld.service
:>
> Jul 09 07:07:23 bojohnson systemd[1]: Stopping firewalld - dynamic firewall daemon...
> Jul 09 07:08:53 bojohnson systemd[1]: firewalld.service: State 'stop-sigterm' timed out. Killing.
> Jul 09 07:08:53 bojohnson systemd[1]: firewalld.service: Killing process 888 (firewalld) with signal SIGKILL.
> Jul 09 07:08:53 bojohnson systemd[1]: firewalld.service: Killing process 11839 (rmmod) with signal SIGKILL.
> Jul 09 07:08:53 bojohnson systemd[1]: firewalld.service: Main process exited, code=killed, status=9/KILL
> Jul 09 07:08:53 bojohnson systemd[1]: firewalld.service: Killing process 11839 (rmmod) with signal SIGKILL.
> Jul 09 07:10:23 bojohnson systemd[1]: firewalld.service: Processes still around after final SIGKILL. Entering failed mode.
> Jul 09 07:10:23 bojohnson systemd[1]: firewalld.service: Failed with result 'timeout'.
> Jul 09 07:10:23 bojohnson systemd[1]: Stopped firewalld - dynamic firewall daemon.
You could try setting CleanupOnExit=no
as [described here], not the cleanest fix but shouldn’t make a huge difference in this case. Or, if you’re not using firewalld, you can disable it.
How would I know if I’m using it…?
By default, you are.
You can check with:
sudo systemctl status firewalld.service
. Hope nothing bad happens by disabling it.
I’ve been reading that iptables might be a replacement. Is it a good idea to install this if I stop firewalld?
It is generally not suggested to disable the firewall. It’ll be much better if we can figure out what’s making it crash instead. Could you copy over the output of fpaste --sysinfo --printonly
for us please?
Here’s the output from that
=== fpaste 0.3.9.2 System Information (fpaste --sysinfo) ===
OS Release (cat /etc/*-release | uniq):
Fedora release 30 (Thirty)
NAME=Fedora
VERSION=“30 (Workstation Edition)”
ID=fedora
VERSION_ID=30
VERSION_CODENAME=“”
PLATFORM_ID=“platform:f30”
PRETTY_NAME=“Fedora 30 (Workstation Edition)”
ANSI_COLOR=“0;34”
LOGO=fedora-logo-icon
CPE_NAME=“cpe:/o:fedoraproject:fedora:30”
HOME_URL=“https://fedoraproject.org/”
DOCUMENTATION_URL=“System Administrator’s Guide :: Fedora Docs”
SUPPORT_URL=“Communication in Fedora :: Fedora Docs”
BUG_REPORT_URL=“https://bugzilla.redhat.com/”
REDHAT_BUGZILLA_PRODUCT=“Fedora”
REDHAT_BUGZILLA_PRODUCT_VERSION=30
REDHAT_SUPPORT_PRODUCT=“Fedora”
REDHAT_SUPPORT_PRODUCT_VERSION=30
PRIVACY_POLICY_URL=“Privacy Statement for the Fedora Project :: Fedora Docs”
VARIANT=“Workstation Edition”
VARIANT_ID=workstation
Fedora release 30 (Thirty)Kernel (uname -r ; cat /proc/cmdline):
5.1.16-300.fc30.x86_64
BOOT_IMAGE=(hd0,gpt2)/vmlinuz-5.1.16-300.fc30.x86_64 root=/dev/mapper/fedora-root ro resume=/dev/mapper/fedora-swap rd.lvm.lv=fedora/root rd.lvm.lv=fedora/swap rhgb quietDesktop(s) Running (ps -eo comm= | grep -E ‘(gnome-session|startkde|startactive|xfce.?-session|fluxbox|blackbox|hackedbox|ratpoison|enlightenment|icewm-session|od-session|wmaker|wmx|openbox-lxde|openbox-gnome-session|openbox-kde-session|mwm|e16|fvwm|xmonad|sugar-session|mate-session|lxqt-session|cinnamon)’ ):
gnome-session-bDesktop(s) Installed (ls -m /usr/share/xsessions/ | sed ‘s/.desktop//g’ ):
gnome-classic, gnome, gnome-xorgSELinux Status (sestatus):
SELinux status: enabled
SELinuxfs mount: /sys/fs/selinux
SELinux root directory: /etc/selinux
Loaded policy name: targeted
Current mode: enforcing
Mode from config file: enforcing
Policy MLS status: enabled
Policy deny_unknown status: allowed
Memory protection checking: actual (secure)
Max kernel policy version: 31SELinux Errors (without results: “selinuxenabled && journalctl --since yesterday |grep avc: | grep -Eo comm=”[^ ]+" | sort |uniq -c |sort -rn"):
N/ACPU Model (grep ‘model name’ /proc/cpuinfo | awk -F: ‘{print $2}’ | uniq -c |
sed -re ‘s/^ +//’ ):
4 Intel(R) Core™ i7-6500U CPU @ 2.50GHz64-bit Support (grep -q ’ lm ’ /proc/cpuinfo && echo Yes || echo No):
YesHardware Virtualization Support (grep -Eq ‘(vmx|svm)’ /proc/cpuinfo && echo Yes || echo No):
YesLoad average (uptime):
08:32:49 up 11:43, 1 user, load average: 0.77, 0.52, 0.31Memory usage (free -m):
total used free shared buff/cache available
Mem: 15891 2106 9878 411 3906 13039
Swap: 8011 0 8011Top 5 CPU hogs (ps axuScnh | awk ‘$2!=7186’ | sort -rnk3 | head -5):
0 6467 23.0 2.1 1036960 352228 ? Ssl 08:31 0:24 packagekitd
1000 7141 2.7 0.0 226500 5676 pts/1 Ss 08:32 0:00 bash
1000 6781 2.6 0.7 86834996 125804 tty2 Sl+ 08:31 0:02 evolution.bin
1000 6854 0.8 0.5 86022996 93540 tty2 SLl+ 08:31 0:00 WebKitWebProces
1000 6766 0.7 0.3 1209032 57916 tty2 Sl+ 08:31 0:00 evolution-calenTop 5 Memory hogs (ps axuScnh | sort -rnk4 | head -5):
1000 3611 0.3 2.7 2048904 441528 tty2 Sl+ Jul09 2:15 firefox
1000 2110 0.0 2.3 1271628 384824 tty2 Sl+ Jul09 0:12 gnome-software
0 6467 23.0 2.1 1036960 352228 ? Ssl 08:31 0:24 packagekitd
1000 3703 0.1 1.9 1944108 313772 tty2 Sl+ Jul09 1:03 Web Content
1000 1677 0.3 1.7 3721332 289816 tty2 Sl+ Jul09 2:15 gnome-shellDisk space usage (df -hT):
Filesystem Type Size Used Avail Use% Mounted on
devtmpfs devtmpfs 7.8G 0 7.8G 0% /dev
tmpfs tmpfs 7.8G 72M 7.7G 1% /dev/shm
tmpfs tmpfs 7.8G 1.8M 7.8G 1% /run
tmpfs tmpfs 7.8G 0 7.8G 0% /sys/fs/cgroup
/dev/mapper/fedora-root ext4 49G 19G 28G 40% /
tmpfs tmpfs 7.8G 104K 7.8G 1% /tmp
/dev/sda2 ext4 976M 199M 710M 22% /boot
/dev/mapper/fedora-home ext4 176G 31G 137G 19% /home
/dev/sda1 vfat 200M 18M 182M 9% /boot/efi
tmpfs tmpfs 1.6G 12M 1.6G 1% /run/user/1000Block devices (without results: “blkid” AND “/sbin/blkid”):
N/APCI devices (lspci):
00:00.0 Host bridge: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Host Bridge/DRAM Registers (rev 08)
00:02.0 VGA compatible controller: Intel Corporation Skylake GT2 [HD Graphics 520] (rev 07)
00:14.0 USB controller: Intel Corporation Sunrise Point-LP USB 3.0 xHCI Controller (rev 21)
00:14.2 Signal processing controller: Intel Corporation Sunrise Point-LP Thermal subsystem (rev 21)
00:15.0 Signal processing controller: Intel Corporation Sunrise Point-LP Serial IO I2C Controller #0 (rev 21)
00:15.1 Signal processing controller: Intel Corporation Sunrise Point-LP Serial IO I2C Controller #1 (rev 21)
00:16.0 Communication controller: Intel Corporation Sunrise Point-LP CSME HECI #1 (rev 21)
00:17.0 SATA controller: Intel Corporation Sunrise Point-LP SATA Controller [AHCI mode] (rev 21)
00:1c.0 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port #1 (rev f1)
00:1c.5 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port #6 (rev f1)
00:1d.0 PCI bridge: Intel Corporation Sunrise Point-LP PCI Express Root Port #9 (rev f1)
00:1f.0 ISA bridge: Intel Corporation Sunrise Point-LP LPC Controller (rev 21)
00:1f.2 Memory controller: Intel Corporation Sunrise Point-LP PMC (rev 21)
00:1f.3 Audio device: Intel Corporation Sunrise Point-LP HD Audio (rev 21)
00:1f.4 SMBus: Intel Corporation Sunrise Point-LP SMBus (rev 21)
01:00.0 3D controller: NVIDIA Corporation GM108M [GeForce 940MX] (rev a2)
02:00.0 Network controller: Broadcom Inc. and subsidiaries BCM4350 802.11ac Wireless Network Adapter (rev 08)
03:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS5229 PCI Express Card Reader (rev 01)USB devices (lsusb):
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 0a5c:6414 Broadcom Corp. BCM2045A0
Bus 001 Device 002: ID 5986:0710 Acer, Inc EasyCamera
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hubDRM Information (journalctl -k -b | grep -o ‘kernel:.drm.$’ | cut -d ’ ’ -f 2- ):
fb0: switching to inteldrmfb from EFI VGA
[drm] ACPI BIOS requests an excessive sleep of 20000 ms, using 1500 ms instead
[drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[drm] Driver supports precise vblank timestamp query.
[drm] Finished loading DMC firmware i915/skl_dmc_ver1_27.bin (v1.27)
[drm] Initialized i915 1.6.0 20190207 for 0000:00:02.0 on minor 0
fbcon: inteldrmfb (fb0) is primary device
i915 0000:00:02.0: fb0: inteldrmfb frame buffer device
[drm] Initialized nouveau 1.3.1 20120801 for 0000:01:00.0 on minor 1Xorg modules (grep LoadModule /var/log/Xorg.0.log ~/.local/share/xorg/Xorg.0.log | cut -d " -f 2 | xargs):
glx modesetting fbdev vesa fbdevhw glamoregl fb glamoregl fb libinputGL Support (glxinfo | grep -E “OpenGL version|OpenGL renderer”):
OpenGL renderer string: Mesa DRI Intel(R) HD Graphics 520 (Skylake GT2)
OpenGL version string: 3.0 Mesa 19.0.8Xorg errors (grep ‘^[.*(EE)’ /var/log/Xorg.0.log ~/.local/share/xorg/Xorg.0.log | cut -d ‘:’ -f 2- ):
[ 12942.987] (EE) open /dev/fb0: Permission deniedKernel buffer tail (dmesg | tail):
[ 3719.893484] Bluetooth: hci0: BCM (003.006.007) build 0000
[ 3719.893555] bluetooth hci0: Direct firmware load for brcm/BCM-0a5c-6414.hcd failed with error -2
[ 3719.893557] Bluetooth: hci0: BCM: Patch brcm/BCM-0a5c-6414.hcd not found
[ 3719.969559] nouveau 0000:01:00.0: bus: MMIO read of 00000000 FAULT at 6013d4 [ IBUS ]
[ 3720.163966] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac4350-pcie for chip BCM4350/8
[ 3720.164134] brcmfmac: brcmf_c_process_clm_blob: no clm_blob available (err=-2), device may have limited channels available
[ 3720.164835] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4350/8 wl0: Oct 22 2015 06:16:26 version 7.35.180.119 (r594535) FWID 01-e791c176
[ 3720.256586] brcmfmac 0000:02:00.0 wlp2s0: renamed from wlan0
[ 3732.495172] IPv6: ADDRCONF(NETDEV_CHANGE): wlp2s0: link becomes ready
[ 3852.412166] nouveau 0000:01:00.0: bus: MMIO read of 00000000 FAULT at 6013d4 [ IBUS ]Last few reboots (last -x -n10 reboot runlevel):
runlevel (to lvl 5) 5.1.16-300.fc30. Tue Jul 9 20:49 still running
reboot system boot 5.1.16-300.fc30. Tue Jul 9 20:49 still running
runlevel (to lvl 5) 5.1.16-300.fc30. Tue Jul 9 16:32 - 20:49 (04:16)
reboot system boot 5.1.16-300.fc30. Tue Jul 9 16:32 - 20:49 (04:16)
runlevel (to lvl 5) 5.1.16-300.fc30. Tue Jul 9 07:13 - 16:29 (09:15)
reboot system boot 5.1.16-300.fc30. Tue Jul 9 07:13 - 16:29 (09:15)
runlevel (to lvl 5) 5.1.16-300.fc30. Mon Jul 8 23:16 - 07:10 (07:54)
reboot system boot 5.1.16-300.fc30. Mon Jul 8 23:15 - 07:10 (07:54)
reboot system boot 5.1.16-200.fc29. Mon Jul 8 22:44 - 23:15 (00:31)
runlevel (to lvl 5) 5.1.16-200.fc29. Mon Jul 8 21:54 - 22:41 (00:47)wtmp begins Mon Mar 25 12:46:10 2019
DNF Repositories (dnf repolist):
repo id repo name status
*fedora Fedora 30 - x86_64 56,582
*fedora-modular Fedora Modular 30 - x86_64 135
*rpmfusion-free RPM Fusion for Fedora 30 - Free 616
*rpmfusion-free-updates RPM Fusion for Fedora 30 - Free - Updates 225
*rpmfusion-nonfree RPM Fusion for Fedora 30 - Nonfree 227
*rpmfusion-nonfree-updates RPM Fusion for Fedora 30 - Nonfree - Updates 42
*updates Fedora 30 - x86_64 - Updates 9,689
*updates-modular Fedora Modular 30 - x86_64 - Updates 140DNF Extras (dnf -C list extras):
Extra Packages
beignet.x86_64 1.3.2-5.fc29 @fedora
code.x86_64 1.33.1-1554971173.el7 @@commandline
evolution-debuginfo.x86_64 3.30.5-1.fc29 @updates-debuginfo
evolution-debugsource.x86_64 3.30.5-1.fc29 @updates-debuginfo
glib2-debuginfo.x86_64 2.58.3-1.fc29 @updates-debuginfo
glib2-debugsource.x86_64 2.58.3-1.fc29 @updates-debuginfo
gtk3-debuginfo.x86_64 3.24.1-3.fc29 @updates-debuginfo
gtk3-debugsource.x86_64 3.24.1-3.fc29 @updates-debuginfo
gtk3-devel-debuginfo.x86_64 3.24.1-3.fc29 @updates-debuginfo
kernel.x86_64 5.1.15-200.fc29 @updates
kernel.x86_64 5.1.16-200.fc29 @updates
kernel-core.x86_64 5.1.15-200.fc29 @updates
kernel-core.x86_64 5.1.16-200.fc29 @updates
kernel-devel.x86_64 5.1.15-200.fc29 @updates
kernel-devel.x86_64 5.1.16-200.fc29 @updates
kernel-modules.x86_64 5.1.15-200.fc29 @updates
kernel-modules.x86_64 5.1.16-200.fc29 @updates
kernel-modules-extra.x86_64 5.1.15-200.fc29 @updates
kernel-modules-extra.x86_64 5.1.16-200.fc29 @updates
msttcore-fonts-installer.noarch 2.6-1 @System
openh264.x86_64 1.8.0-3.fc29 @fedora-cisco-openh264
python2-SecretStorage.noarch 2.3.1-10.fc29 @fedora
python2-entrypoints.noarch 0.2.3-9.fc29 @fedora
python2-keyring.noarch 13.2.1-3.fc29 @fedoraLast 20 packages installed (rpm -qa --nodigest --nosignature --last | head -20):
iptables-services-1.8.2-1.fc30.x86_64 Tue 09 Jul 2019 04:35:31 PM MDT
tex-preview-12.1-6.fc30.noarch Tue 09 Jul 2019 11:47:42 AM MDT
gnuplot-latex-5.0.6-11.fc30.noarch Tue 09 Jul 2019 11:47:42 AM MDT
gnuplot-common-5.0.6-11.fc30.x86_64 Tue 09 Jul 2019 11:44:13 AM MDT
gnuplot-5.0.6-11.fc30.x86_64 Tue 09 Jul 2019 11:44:13 AM MDT
satyr-0.28-1.fc30.x86_64 Tue 09 Jul 2019 06:54:29 AM MDT
qemu-guest-agent-3.1.0-9.fc30.x86_64 Tue 09 Jul 2019 06:54:29 AM MDT
perl-Text-Template-1.55-2.fc30.noarch Tue 09 Jul 2019 06:54:29 AM MDT
perl-JSON-Parse-0.55-5.fc30.x86_64 Tue 09 Jul 2019 06:54:29 AM MDT
perl-Finance-Quote-1.48-1.fc30.noarch Tue 09 Jul 2019 06:54:29 AM MDT
perl-DateTime-Format-Strptime-1.76-1.fc30.noarch Tue 09 Jul 2019 06:54:29 AM MDT
libvirt-daemon-kvm-5.1.0-9.fc30.x86_64 Tue 09 Jul 2019 06:54:29 AM MDT
libvirt-daemon-config-network-5.1.0-9.fc30.x86_64 Tue 09 Jul 2019 06:54:29 AM MDT
qemu-ui-sdl-3.1.0-9.fc30.x86_64 Tue 09 Jul 2019 06:54:28 AM MDT
qemu-ui-gtk-3.1.0-9.fc30.x86_64 Tue 09 Jul 2019 06:54:28 AM MDT
qemu-ui-curses-3.1.0-9.fc30.x86_64 Tue 09 Jul 2019 06:54:28 AM MDT
qemu-system-x86-core-3.1.0-9.fc30.x86_64 Tue 09 Jul 2019 06:54:28 AM MDT
qemu-system-x86-3.1.0-9.fc30.x86_64 Tue 09 Jul 2019 06:54:28 AM MDT
qemu-kvm-3.1.0-9.fc30.x86_64 Tue 09 Jul 2019 06:54:28 AM MDT
perl-Time-HiRes-1.9760-1.fc30.x86_64 Tue 09 Jul 2019 06:54:28 AM MDTEFI boot manager output (efibootmgr -v):
BootCurrent: 0001
Timeout: 0 seconds
BootOrder: 0001,0000,2001,2002,2003
Boot0000* Fedora HD(1,GPT,243f0520-1753-4fc4-bfd6-7f01b2134563,0x800,0x64000)/File(\EFI\fedora\shim.efi)RC
Boot0001* Fedora HD(1,GPT,243f0520-1753-4fc4-bfd6-7f01b2134563,0x800,0x64000)/File(\EFI\fedora\shimx64.efi)
Boot0006* Windows Boot Manager HD(2,GPT,c969ba3e-432d-4702-924e-22894660528a,0x96800,0x32000)/File(\EFI\Microsoft\Boot\bootmgfw.efi)WINDOWS…x…B.C.D.O.B.J.E.C.T.=.{.9.d.e.a.8.6.2.c.-.5.c.d.d.-.4.e.7.0.-.a.c.c.1.-.f.3.2.b.3.4.4.d.4.7.9.5.}…
Boot2001* EFI USB Device RC
Boot2002* EFI DVD/CDROM RC
Boot2003* EFI Network RC