Posts

Showing posts with the label hibernate

Suspend then hibernate when battery low

After suspending laptop, it will wake up again when battery drop below 5% (Thinkpad) then it will stay powered on If you set handle lid switch to suspend, it will rapidly resume, suspend which is not good To put laptop hibernate when it wake up, edit /etc/UPower/UPower.conf And set PercentageAction=4 CriticalPowerAction=hibernate And reboot your laptop

Hibernate your laptop (Fedora 25)

You can hibernate your laptop for faster boot next time. Hibernate is suspending to disk , so you'll need swap partition. I dont use suspend to RAM because it sucks battery. Follow these steps to make hibernate work using Fedora 25/24: Create swap partition or logical volume (LV) Common size for hibernating: RAM 8 GB  create 12 GB swap RAM 4 GB  create 8 GB swap RAM 2 GB  create 4 GB swap Format swap partition Check new created swap using lsblk -p For example: mkswap /dev/mapper/VG-Swap Add swap to fstab /dev/mapper/VG-Swap            swap            swap    defaults  0  0 Activate and check swapon -a swapon --show     #or swapon -s Recreate initramfs dracut --force Edit grub cmdline dracut --print-cmdline will print recommended GRUB_CMDLINE_LINUX Add resume= and rd.lvm.lv= lines to /etc/default/grub (GRU...