Hot answers tagged

2

The other answer is great! But it requires root cron. If you want to hibernate from non-sudo cron, there are 2 options: 1. Using polkit Make a file containing the following: [Enable hibernate to be run via cron] Identity=unix-user:* Action=org.freedesktop.login1.hibernate;org.freedesktop.login1.hibernate-multiple-sessions ResultAny=yes named ...


1

Caffeine You could give caffeine a try - quoting the launchpad page: A status bar application able to temporarily prevent the activation of both the screensaver and the "sleep" powersaving mode.


1

This is happening because it needs root privileges. The solution is to add the hibernate command using sudo crontab -e instead of crontab -e. polkit is necessary for power management as an unprivileged user. If you are in a local systemd-logind user session and no other session is active, the following commands will work without root privileges. If ...


1

Yep, it must be greater or equal RAM size (let it strictly greater). Partition shrinking needs to move some data blocks. It's up to you to backup or to take the risk. However, 2GB is considered a short time operation, if it is taken from the end of partition (ie sda2). If it was from the beginning of a large partition (example: sda4), my advice forget it. To ...



Only top voted, non community-wiki answers of a minimum length are eligible