New answers tagged

2

You may use sleep command. It accepts postfix m to numbers, which stands for minutes. I.e. you can execute sleep 60m && someCommand Now, here's a little problem that sudo after a time limit requires to enter the password again, and if you'd execute sudo sleep 60m && sudo somecommand, the someCommand wouldn't do in time. To workaround it, ...


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.


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

I had the exact same problem last year for backups that took several hours! You can try Keep.Awake https://launchpad.net/keep.awake It can monitor CPU load, network traffic and user activity for minimum thresholds. I still haven't gotten around to creating a snap or deb for it. However temporarily you can download the program from Launchpad here The ...


0

If you would like to keep the pc awake based on network traffic, or cpu load or user activity then you can try Keep.Awake instead of Caffeine https://launchpad.net/keep.awake I haven't developed a GUI for it yet so you will need to use the command prompt. I still haven't gotten around to creating a snap or deb for it. However temporarily you can download ...


0

You can try Keep.Awake instead of Caffeine https://launchpad.net/keep.awake I haven't developed a GUI for it yet so you will need to use the command prompt. I still haven't gotten around to creating a snap or deb for it. However temporarily you can download the program from Launchpad here The current version is stable and works on all Ubuntu versions from ...


0

I had a similar problem, I needed the backup server to stay awake for a long backup before suspending to ram. You can use Keep.Awake https://launchpad.net/keep.awake. However it doesn't work yet with hibernate and only works with suspend to ram. I will be updating the program to allow hibernation as well in the near future. There's still no snap or deb ...


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 ...


0

Ubuntu 16.04 - from suspend/sleep into hibernate after a pre-determined time It seems that on Ubuntu 16.04 things are a little different, so steps I took to make it work were: Make sure hibernate is working as expected when running systemctl hibernate Copy the original suspend.target file: sudo cp /lib/systemd/system/suspend.target /etc/systemd/system/...


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 ...


0

You system seems confused as to why you want don't want it to sleep when the lid is closed. You can try disabling the feature that suspends the laptop when closing the lid. The downside to this is that you'll have to suspend it manually. Open a terminal and edit the logind.conf file using gksudo gedit /etc/systemd/logind.conf Look for the line that says ...



Top 50 recent answers are included