A Workaround for Slow Power-Offs in Fedora

firewalld's CleanupOnExit does the trick

4 June 2020

After I had set up my Surface Pro 4 for dual boot with Fedora 32, my Fedora installation was snappy fast. However, I noticed that power-offs were slow. It took somewhere around a minute to turn off my laptop on shutdown.

Luckily, there is a quick workaround if this bothers you. As suggested in posts in Fedora's community, you can modify a setting for Fedora's firewall management tool firewalld. The configuration file is located at /etc/firewalld/firewalld.conf.

In a shell, type:

sudo nano /etc/firewalld/firewalld.conf 

Find this section:

# Clean up on exit
# If set to no or false the firewall configuration will not get cleaned up
# on exit or stop of firewalld
# Default: yes

Here, change CleanupOnExit=yes to CleanupOnExit=no. Once saved, you can power off your computer. This time, it should only take seconds to do so.

While this workaround did the trick in my case, and has worked for others too, there's no guarantee it will fix the issue in your case. There may be other reasons for slow power-offs on your system, but it's worth giving this one a try.

Share this article