[Solved] lmde3 hibernation

Quick to answer questions about finding your way around LMDE as a new user.
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums within the support section.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
mn-mint

[Solved] lmde3 hibernation

Post by mn-mint »

Is there any way to suspend hibernation in Cindy?
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
mn-mint

Re: lmde3 hibernation

Post by mn-mint »

I found the answer at https://sites.google.com/site/easytipsf ... nd-suspend

Type (or copy/paste) the following terminal command:
sudo touch /etc/polkit-1/localauthority/90-mandatory.d/disable-hibernate.pkla

Then type (or copy/paste) the following command:

For distro's using gedit:
gksudo gedit /etc/polkit-1/localauthority/90-mandatory.d/disable-hibernate.pkla

For distros' using pluma:
gksudo pluma /etc/polkit-1/localauthority/90-mandatory.d/disable-hibernate.pkla

For distro's using leafpad:
gksudo leafpad /etc/polkit-1/localauthority/90-mandatory.d/disable-hibernate.pkla

Press enter and type your password and press enter again. Do not close the terminal at any time!

An empty text file will be opened. In this file copy and paste the following lines:

[Disable hibernate (upower)]
Identity=unix-user:*
Action=org.freedesktop.upower.hibernate
ResultActive=no
ResultInactive=no
ResultAny=no

[Disable hibernate (logind)]
Identity=unix-user:*
Action=org.freedesktop.login1.hibernate
ResultActive=no

[Disable hibernate for all sessions (logind)]
Identity=unix-user:*
Action=org.freedesktop.login1.hibernate-multiple-sessions
ResultActive=no

Save the text file and close the text editor.

To complete this action, reboot your system (full reboot). After rebooting your system, hibernation will be no longer shown in the shutdown menu as an available option.


It worked well with no issues.
Locked

Return to “Beginner Questions”