For example, to reboot the system when the power button is pressed, run the command:
$ snap set core system.power-key-action=reboot
System Power Management
Configuring low power states: S3 and S4
Configure sleep state–S3
$ sudo systemctl suspend
Configure hibernate state–S4
$ sudo systemctl hibernate
Rebooting or power off
To reboot the system
$ sudo reboot
To power off
$ sudo poweroff
Configuring system wake-up from LAN or WLAN
1.
Enable
Wake on LAN
in the BIOS program. For more information on accessing the BIOS program, see
Accessing BIOS settings
2.
Connect the system to a wireless network.
$ sudo network-manager.nmcli dev wifi connect $SSID password $PSK ifname wlan0
3.
Enable
Wake on LAN
.
$ sudo iw phy0 wowlan enable magic-packet
4.
Recheck the support status.
$ sudo iw phy phy0 wowlan show
5.
Make sure wlan0 is up and running with IP address.
6.
Perform sleep.
$ sudo systemctl sleep
Or, perform hibernation.
$ sudo systemctl hibernate
7.
Use another system to wake from wlan (Supported tools: wakeonlan, and etherwake).
$ sudo wakeonlan MAC
$ sudo etherwake MAC
Restoring Ubuntu Core 16
When the operating system is restored to the factory image, all data on the system is deleted. You can restore Ubuntu Core 16
operating system to the factory image using one of the following methods:
•
Restore Ubuntu Core 16 from USB flash drive
•
Restore Ubuntu Core 16 from the recovery partition on the Edge Gateway
–
Option 1: Restoring from the operating system
–
Option 2: Restoring during system POST
Option 1: Restoring from the operating system
CAUTION: These steps will delete all the data on your Edge Gateway
1.
Connect the Edge Gateway remotely or through a KVM session.
2.
Log in to the operating system.
60