Ferramentas do usuário

Ferramentas do site


public:hibernar-mint-19

Essa é uma revisão anterior do documento!


Habilitar hibernação no linux mint 19

https://forums.linuxmint.com/viewtopic.php?t=284100

  • sudo swapoff -a
  • SIZE=10 como regra use o tamanho da RAM + 2GB. Se for 8GB use SIZE=10 sudo dd if=/dev/zero of=/swapfile bs=1M count=$1) sudo chmod 0600 /swapfile sudo mkswap /swapfile sudo sed -i '/swap/{s/^/#/}' /etc/fstab sudo tee -a /etc/fstab«<GESHI_QUOT /swapfile none swap sw 0 0GESHI_QUOTRESUME_PARAMS=GESHI_QUOTresume=UUID=$(findmnt / -o UUID -n) resume_offset=$(sudo filefrag -v /swapfile|awk 'NR==4{gsub(/\./,GESHI_QUOTGESHI_QUOT);print $4;}') GESHI_QUOT </file> <code>if grep resume /etc/default/grub>/dev/null; then echo -e GESHI_QUOT \nERROR: Hibernation already configured. Remove the existing configuration from /etc/default/grub and add these parameters instead:\n$RESUME_PARAMSGESHI_QUOT;else sudo sed -i GESHI_QUOTs/GRUB_CMDLINE_LINUX_DEFAULT=\GESHI_QUOT /GRUB_CMDLINE_LINUX_DEFAULT=\GESHI_QUOT $RESUME_PARAMS/GESHI_QUOT /etc/default/grub;fisudo update-grub sudo tee /etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla «'EOB' [Enable hibernate] Identity=unix-user:* Action=org.freedesktop.login1.hibernate;org.freedesktop.login1.handle-hibernate-key;org.freedesktop.login1;org.freedesktop.login1.hibernate-multiple-sessions ResultActive=yes EOB REBOOT busctl call org.freedesktop.login1 /org/freedesktop/login1 org.freedesktop.login1.Manager CanHibernate tem de retornar YES Já deve estar no menu a opção hibernar ou systemctl hibernate

1)
$SIZE * 1024
public/hibernar-mint-19.1559999920.txt.gz · Última modificação: (edição externa)