Hot answers tagged

20

You can use the killall command to send a SIGSTOP signal to all processes matching a given name to freeze them and later send SIGCONT the same way to thaw them again. First find out the process name using pgrep -l SEARCH_PATTERN: $ pgrep -l chrom 13010 chromium-browse 13036 chromium-browse 13038 chromium-browse 13153 chromium-browse 13166 chromium-browse ...


7

To suspend, try: killall -SIGTSTP chromium-browser If this does not work, try the forceful version: killall -SIGSTOP chromium-browser. Either way, to continue use killall -SIGCONT chromium-browser. I tried with Firefox and it worked. Do note however, that if you click buttons in Chromium while it is suspended it will execute that stuff once you continue ...


2

If you have an issue with this share, you can unmount it on hibernate/suspend and remount it on resume. In order to do that you should create a script in /etc/pm/sleep.d/, call it 50-share_handling (for example), and put the next lines in it: #!/bin/sh # Unmount CIFS share on hibernate/suspend and remount it on resume case "$1" in ...


2

You can try the following (in a Terminal): ps aux | grep gedit Then you'll see something like this: barend 7166 5.3 1.0 722620 39044 ? Sl 16:19 0:00 gedit Write down the number 7166 (or whatever number it is) and then do: kill -STOP 7166 That will suspend execution of the process. It won't immediately free the memory used by it, but ...


1

On my Lenovo laptop I had the same problem. A bios upgrade was the solution, but you need windows to install it :(


1

Adapted from this answer on askubuntu: Use TuxOnIce kernel with uswsup for suspending Double check if your swap partition/file is setup correctly in /etc/default/grub; you can do so by checking the location with either cat /proc/swaps or swapon -s; or you could better yet, find out the UUID or label of the swap partition/files(s) and use that: tail -n ...


1

I don't know why it doesn't work in 16.04, but I do have a workaround: I first added my swap partition to grub, rebooted, and there was no change. Next I installed the Ubuntu kernel packages with TuxOnIce stable and the option to hibernate appeared, but that failed. I later I installed the package hibernate which uses uswsusp for suspending to disk & ...



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