Shutdown using power button: why do I need to press twice?

Please post suggestions for improvement of Cinnamon on:
https://github.com/linuxmint/Cinnamon
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
jcockx

Shutdown using power button: why do I need to press twice?

Post by jcockx »

I am running Mint 19 Tara with Cinnamon, and I configured the "Power Management" settings to shutdown my computer when I press the power button.

This usually works only when I press the power button twice. After the first press, typically some windows close and others remain open, and the computer does not shut down. After the second press, it shuts down as intended.

Why is this? Is this intended behavior?
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
murcsl

Re: Shutdown using power button: why do I need to press twice?

Post by murcsl »

Same probleme for me, if i try to shutdown/reboot using the menu. Every time i need to open the menu twice.
jcockx

Re: Shutdown using power button: why do I need to press twice?

Post by jcockx »

Yes indeed, I also have this problem when shutting down via the menu. Same problem when trying to log out via the menu.
User avatar
AZgl1800
Level 20
Level 20
Posts: 11168
Joined: Thu Dec 31, 2015 3:20 am
Location: Oklahoma where the wind comes Sweeping down the Plains
Contact:

Re: Shutdown using power button: why do I need to press twice?

Post by AZgl1800 »

Make a Keyboard Shortcut

use the command shutdown 0 and it will go down "now" and won't ask forgiveness for making a mistake.
or you can use shutdown now

I use the combo cntl-alt-O
LM21.3 Cinnamon ASUS FX705GM | Donate to Mint https://www.patreon.com/linux_mint
Image
jcockx

Re: Shutdown using power button: why do I need to press twice?

Post by jcockx »

Yes I can use a command to shutdown, or a keyboard shortcut, but that still doesn't answer the question: why doesn't this work using the menu, or power button? Is this intended behavior or a bug? If it is intended, why doesn't it ask for confirmation, instead of mysteriously failing to work the first time?
User avatar
AZgl1800
Level 20
Level 20
Posts: 11168
Joined: Thu Dec 31, 2015 3:20 am
Location: Oklahoma where the wind comes Sweeping down the Plains
Contact:

Re: Shutdown using power button: why do I need to press twice?

Post by AZgl1800 »

jcockx wrote: Sun Oct 07, 2018 5:54 am Yes I can use a command to shutdown, or a keyboard shortcut, but that still doesn't answer the question: why doesn't this work using the menu, or power button? Is this intended behavior or a bug? If it is intended, why doesn't it ask for confirmation, instead of mysteriously failing to work the first time?
You can configure the Power Button in Preferences, but it is dangerous to have it immediately shutdown w/o the "are you sure?" box to come up.
powerButton.png
LM21.3 Cinnamon ASUS FX705GM | Donate to Mint https://www.patreon.com/linux_mint
Image
jcockx

Re: Shutdown using power button: why do I need to press twice?

Post by jcockx »

Yes I get that, I might lose unsaved work etc.

So, why doesn't the "are you sure" box come up?
User avatar
AZgl1800
Level 20
Level 20
Posts: 11168
Joined: Thu Dec 31, 2015 3:20 am
Location: Oklahoma where the wind comes Sweeping down the Plains
Contact:

Re: Shutdown using power button: why do I need to press twice?

Post by AZgl1800 »

jcockx wrote: Sun Oct 07, 2018 6:37 am Yes I get that, I might lose unsaved work etc.

So, why doesn't the "are you sure" box come up?
for that, you need someone better than I to answer that one.
LM21.3 Cinnamon ASUS FX705GM | Donate to Mint https://www.patreon.com/linux_mint
Image
Locked

Return to “Cinnamon”