Cinnamon: Power Button causes no action, logind fail

Created on 27 Apr 2016  Â·  10Comments  Â·  Source: linuxmint/cinnamon

Linux 3.19.0-32-generic #37~14.04.1-Ubuntu SMP Thu Oct 22 09:41:40 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
Linux Mint 17.3 Rosa 64-bit, Cinnamon
Thinkpad T420

When pressing the power button, no shutdown action (menu or otherwise) is taken even though an appropriate ACPI event is triggered. This is due to /etc/acpi/powerbtn.sh exiting due to finding a PID for logind (line 11). The intended function is for logind to handle the shutdown requests if it is running.

I have fixed the issue on my computer by following the instructions at https://forums.linuxmint.com/viewtopic.php?t=197339#p1024204 ; namely, in terminal:

gsettings set org.cinnamon.desktop.session settings-daemon-uses-logind true
gsettings set org.cinnamon.desktop.session session-manager-uses-logind true
gsettings set org.cinnamon.desktop.session screensaver-uses-logind false

After performing these commands and rebooting, the power button performs as expected (to the preferences set in power management gui).

BUG BUG REPRODUCED

Most helpful comment

  1. Held down power button.

Surely that's expected behaviour?

Holding / long press of the power button is a forced power-down on most hardware.

A short press of the power-button gives me the action set in the power settings without fail.

All 10 comments

I've just installed Mint 18 Cinnamon and wanted to suspend my Dell E7450 laptop by pressing the power button, as I do in Ubuntu.

Nothing happened.

@dandv did you set it to in System Settings ->Power Management?

@JosephMcc: not at all. However, the Suspend - Hibernate - Restart - Cancel - Shutdown dialog did appear after I stood by the laptop by closing the lid, resumed, and pressed the power button.

I checked the option now and it's set to "Ask", but I had never visited that dialog before. This bug must be caused by some uninitialized setting, since I had just installed Mint.

@calebmillerkb3 , is this still an issue for you in Cinnamon 4.2?

Cannot confirm resolution, no longer have affected laptop

On Tue, Nov 26, 2019, 2:49 PM Vahan Harutyunyan notifications@github.com
wrote:

@calebmillerkb3 https://github.com/calebmillerkb3 , is this still an
issue for you in Cinnamon 4.2?

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/linuxmint/cinnamon/issues/5250?email_source=notifications&email_token=ABVNSDELLLC53UPBABYWLGTQVV4TNA5CNFSM4CCELSHKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEFHHNXA#issuecomment-558790364,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABVNSDBTKX4ZUQKFOHZN7STQVV4TNANCNFSM4CCELSHA
.

@calebmillerkb3, thanks for your reply.

@icarter09, can we close the issue?

@Vahan86 i'll test this out on my laptop

Linux Mint 19.2
Cinnamon 4.2.4

Was able to reproduce this issue. Steps taken were:

  1. Verified that it was set to "Ask" in the Power Management settings when the power button is pressed.
  2. Held down power button.
  3. No Session dialog with Shutdown Options was presented. Laptop instead shutdown.

Tried this several times with the same results.

  1. Held down power button.

Surely that's expected behaviour?

Holding / long press of the power button is a forced power-down on most hardware.

A short press of the power-button gives me the action set in the power settings without fail.

@smurphos great point and you are correct. A short press did give me the same result as you. I have grown so used to pressing and holding down the power button for a given computer over the years that I never do a short press. Thanks.

Was this page helpful?
0 / 5 - 0 ratings