Shutting Down Now takes a very long time: over 9 minutes

So you did not even see the effects of the change.

I was under the impression that the logs from the last boot where asked for - it would make the most sense to me, at least.

There may be a graphical GUI for that in Plasma - I don’t know.

pictures are mostly useless - and there are file sharing sites to which you can post those and share the link here

Pictures are just as useless there as they are here. :man_shrugging:

2 Likes

i dont undestand why in this case rtkit-deamon want to run ( 8mn ), and firefox need to save / sync before quit

There is: KSystemLog — but when I tried using it a while back, couldn’t find a way of going back through the logs beyond the last “page”.

Better just to use the Terminal. :wink:

Do the long shutdown time occur after having used Windows?

Unless shutting Windows OS down cleanly, various operating system state values is written to NVRAM - one speculates if such value could be causing confusion for the Linux OS - especially for the onboard wifi.

linux kernel

I recall seeing topics on Ryzen 9 7900X and as your system is on Linux 6.12.4 - you are on stable branch.

I saw from a topic a link to phoronix that 6.13 would bring some long awaited features for these Ryzen cpus.

To improve your experience - I suggest you switch to testing which has Linux 6.13.0rc7-1 (unstable has 6.13.0-1)

sudo pacman-mirrors --api --set-branch testing

Then run a full system sync adding Linux 6.13

sudo pacman -Syu linux613

After this has succesfully finished

reboot

watchdog

You may improving performance by removing the watchdog.

You may edit /etc/default/grub and add nowatchdog

sudo nano /etc/default/grub

In addition to the existing arguments insert (the dots illustrate the existing content)

GRUB_CMDLINE_LINUX_DEFAULT="... nowatchdog  ..."

In additions to nowatchdog one should add a file

sudo nano /etc/modprobe.d/blacklist-watchdog.conf

Add the blacklisting of watchdog module

blacklist iTCO_wdt

Save the changes and rebuild grub.cfg

sudo grub-mkconfig -o /boot/grub/grub.cfg

Then restart your system to test the changes.

mitigations=off

Another method to improve performance is to disable CPU vulnerability mitigations by adding mitigations=off to the kernel cmdline (remember to rebuild grub configuration)

sudo nano /etc/default/grub

In addition to the existing arguments insert (the dots illustrate the existing content)

GRUB_CMDLINE_LINUX_DEFAULT="... mitigations=off ..."

Restart the system and test the changes

I have done all the nowatchdog steps and that definitely speeds up shutdown and startup.

I got error when trying to complete the final step for moving to the testing branch.

I got the following:

 sudo pacman -Syu linux613                                                                                                   ✔ 
[sudo] password for raymond: 
:: Synchronising package databases...
 core is up to date
 extra is up to date
 multilib is up to date
:: Starting full system upgrade...
:: Replace linux419 with core/linux-lts-meta? [Y/n] y
:: Replace linux419-headers with core/linux-lts-headers-meta? [Y/n] y
resolving dependencies...
looking for conflicting packages...
**error: failed to prepare transaction (could not satisfy dependencies)**
:: removing linux419 breaks dependency 'linux419' required by linux419-nvidia
:: removing linux419 breaks dependency 'linux419' required by linux419-virtualbox-host-modules
:: installing ppp (2.5.2-1) breaks dependency 'ppp=2.5.1' required by networkmanager-l2tp
:: installing ppp (2.5.2-1) breaks dependency 'ppp=2.5.1' required by networkmanager-pptp

I have now also added mitigations=off to grub.cfg and everything is working well.

It is just moving to the testing branch for the Ryzen 9 support that needs to be resolved now as per the error above about some virtualbox dependencies.

1 Like

Known issue with rtkit that it uses LogLevel 5 (notice) or 6 (info) and spams the journal

To reduce LogLevel to 4 (warning)

sudo mkdir /etc/systemd/system/rtkit-daemon.service.d/
sudo tee /etc/systemd/system/rtkit-daemon.service.d/override.conf << '[Service]
LogLevelMax=4

But this would only make journal less verbose and not likely to help with delays when shutting down

1 Like

:bangbang: Tip :bangbang:

When posting terminal output, copy the output and paste it here, wrapped in three (3) backticks, before AND after the pasted text. Like this:

```
pasted text
```

Or three (3) tilde signs, like this:

~~~
pasted text
~~~

This will just cause it to be rendered like this:

Sed
sollicitudin dolor
eget nisl elit id
condimentum
arcu erat varius
cursus sem quis eros.

Instead of like this:

Sed sollicitudin dolor eget nisl elit id condimentum arcu erat varius cursus sem quis eros.

Alternatively, paste the text you wish to format as terminal output, select all pasted text, and click the </> button on the taskbar. This will indent the whole pasted section with one TAB, causing it to render the same way as described above.

Thereby increasing legibility thus making it easier for those trying to provide assistance.

For more information, please see:

As I’m a moderator on the forum, I have taken the liberty of doing this for you, this time.


:bangbang::bangbang: Additionally

If your language isn’t English, please prepend any and all terminal commands with LC_ALL=C. For example:

LC_ALL=C bluetoothctl

This will just cause the terminal output to be in English, making it easier to understand and debug.

Note that the above text is partially pre-prepared as a general introduction for new forum Users. Please take the time to to understand how it is done and encourage quality responses.

I thought you could use ### as well as delimiters but I was obviously wrong.