How to reduce system shutdown count down time?

Shutdown count down is 60 seconds now, I want 5 seconds.

This is hardcoded in gnome-session:

3 Likes

This is the hardcoded timeout. If something is reaching it, it means it didn’t exit cleanly before that. You need to find out what is taking so long and why.

If something is reaching it, it means it didn’t exit cleanly before that.

No, this particular timeout is strictly about the UI. That is, how long the “Power Off” dialog remains open if the user does not click “Cancel” or “Power Off”.

As far as I know, the timeout is intentionally quite long to avoid pressuring the user into a quick decision (“5 SECONDS TO LOSE YOUR WORK, 4, 3, …”). I doubt that it is very common to be reached, i.e. I’d expect most users to click “Cancel” or “Power Off” way before it expires.

oh my bad! I thought this was about the systemd timeout. I didn’t it would be about the dialog since the Poweroff button makes it instant if you need to.

Sorry for adding to the confusion