Disable hibernate and suspend

Back to home

Hibernate and suspend doesn't always work that well under Linux Mint and Ubuntu systems. The hibernate and suspend mode can make some computers malfunction or even put them in a state of coma. This still happens with some hardware, and till today this problem is not fixed properly yet. To avoid any malfunction it is better to turn of both modes on your system. However, under under Ubuntu hibernation mode is disabled by default, but not the suspend mode. If suspend works well on your machine, you don't have to change anything. Under Linux Mint the hibernation and suspend mode are both enabled by default which can be turned off.

The hack shown below is not meant for Linux Mint 13 since this Mint version needs another type of hacking!
Disable hibernation

The hibernation mode(suspend-to-disk) can be disabled as follows:
  • Open a terminal

  • 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.
Disable suspend

Disabling the suspend mode (suspend-to-ram) works similar as disabling the hibernation mode. To disable the suspend mode, follow these steps:
  • Open a terminal

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

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

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

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

    For distro's using leafpad:
    gksudo leafpad /etc/polkit-1/localauthority/90-mandatory.d/disable-suspend.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 suspend (upower)]
    Identity=unix-user:*
    Action=org.freedesktop.upower.suspend
    ResultActive=no
    ResultInactive=no
    ResultAny=no

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

    [Disable suspend for all sessions (logind)]
    Identity=unix-user:*
    Action=org.freedesktop.login1.suspend-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, the suspend mode will be no longer shown in the shutdown menu as an available option.