Skip to content

Instantly share code, notes, and snippets.

@febritecno
Last active March 1, 2021 18:48
Show Gist options
  • Save febritecno/2a5b6dd14bc7a8d1b7c688a04ef03cd4 to your computer and use it in GitHub Desktop.
Save febritecno/2a5b6dd14bc7a8d1b7c688a04ef03cd4 to your computer and use it in GitHub Desktop.
SOLVE NOTES LINUX

FIX ERROR START DOCKER (Failed to start docker.service: Unit docker.service is masked.)

sudo systemctl unmask docker
sudo systemctl start docker

enable your swap before you're trying this method

This is a common issue for hibernate and suspend in Ubuntu / Debian.

  1. install uswsusp
sudo apt-get install uswsusp
  1. then try the following for suspend and hibernate respectively,
sudo s2ram
sudo s2disk
  1. if it works, then you can make it permanent, back up the following,
sudo cp /usr/lib/hal/scripts/linux/hal-system-power-suspend-linux /usr/lib/hal/scripts/linux/hal-system-power-suspend-linux.bak

sudo cp /usr/lib/hal/scripts/linux/hal-system-power-hibernate-linux /usr/lib/hal/scripts/linux/hal-system-power-hibernate-linux.bak
  1. and edit the following,
/usr/lib/hal/scripts/linux/hal-system-power-suspend-linux

#!/bin/sh
/sbin/s2ram –force
/usr/lib/hal/scripts/linux/hal-system-power-hibernate-linux

#!/bin/sh
/sbin/s2disk

systemctl disable

If you are not using systemd (Ubuntu 14.10 and earlier) use:

update-rc.d -f remove

The following command will give you a list of all services on your machine:

service --status-all

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment