Page 1 of 1

Disable hibernate/suspend

Posted: Fri Mar 04, 2016 8:32 am
by mbod
Hi,

I am looking for a way to remove the Hibernate/Suspend options from the MDM menu and from the cinnamon shutdown dialog.
I only want to see the options poweroff and reboot.

How do I do that?

Matthias

Re: Disable hibernate/suspend

Posted: Fri Mar 04, 2016 8:50 am
by Crewp
Try this, I hope it helps.

In the terminal, type:

Code: Select all

sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target

Re: Disable hibernate/suspend

Posted: Fri Mar 04, 2016 10:00 am
by Pjotr
This is a tried and tested way to do that:
https://sites.google.com/site/easylinux ... ter-a-coma
(item 9, left column)

Guaranteed to work. :)

Re: Disable hibernate/suspend

Posted: Fri Mar 04, 2016 2:13 pm
by mbod
I am sorry to say that, but I think you are both wrong. :(

@Crewp:
LMDE does not ship with systemd. In that regard it is deviating from debian stable. Therefor your proposal with masking services via systemctl does not work.

@Pjotr,

the tutorial you linked to is for Ubuntu based Mint. in LMDE2 there is no such file: /etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla

Any other idea?

Matthias

Re: Disable hibernate/suspend

Posted: Fri Mar 04, 2016 2:52 pm
by Crewp
you are correct, sorry.

Re: Disable hibernate/suspend

Posted: Fri Mar 04, 2016 4:40 pm
by killer de bug
The solution given here may work: viewtopic.php?f=239&t=197339

For you, it should be

Code: Select all

gsettings set org.cinnamon.desktop.session session-manager-uses-logind fasle

Re: Disable hibernate/suspend

Posted: Fri Mar 04, 2016 5:20 pm
by Pjotr
mbod wrote:the tutorial you linked to is for Ubuntu based Mint. in LMDE2 there is no such file: /etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla
You're right: I overlooked the fact that you have LMDE2.... :P

Re: Disable hibernate/suspend

Posted: Fri Mar 04, 2016 5:24 pm
by killer de bug
Pjotr wrote: You're right: I overlooked the fact that you have LMDE2.... :P
That's actually the purpose of the LMDE section :mrgreen:

Re: Disable hibernate/suspend

Posted: Fri Mar 04, 2016 6:46 pm
by mbod

Code: Select all

gsettings set org.cinnamon.desktop.session session-manager-uses-logind fasle
So that works for me at least for the cinnamon logout dialog. Thank you!

But it does not change the MDM menu. Any idea for that?

Matthias

Re: Disable hibernate/suspend

Posted: Sat Mar 05, 2016 4:42 am
by mbod
mbod wrote:

Code: Select all

gsettings set org.cinnamon.desktop.session session-manager-uses-logind fasle
So that works for me at least for the cinnamon logout dialog. Thank you!
But how do I make this seting global? Currently it is only active for my user.

Matthias

Re: Disable hibernate/suspend

Posted: Fri Mar 11, 2016 7:22 am
by franute
I have followed this in LMDE2 to disable hibernate (useless with SSDs) and worked like a charm:

https://sites.google.com/site/easytipsf ... nd-suspend

Hope this helps :)

Re: Disable hibernate/suspend

Posted: Sun Mar 13, 2016 10:27 am
by mbod
Hello farnute,

that works at least for cinnamon. Thanks.

But mdm still shows "Bereitschaft" = suspend in the menu.

Matthias