Users Guide

Temperature (degC) = (in_temp_raw + in_temp_offset) * in_temp_scale
Table 17. Convert motion sensor raw data
Motion sensor—Accelerometer ST Micro LNG2DMTR
accel_{x/y/z} (m/s^2) = in_accel_{x/y/z}_raw * in_accel_{x/y/z}_scale
Table 18. Convert pressure sensor raw data
Pressure sensor ST Micro LPS22HB
Pressure (hPa) = in_pressure_raw * in_pressure_scale * 10
Temperature (m degC) = in_temp_raw * in_temp_scale
Ignition Pin
The ignition pin can be used to wake the system from S3, S4, and S5 power states. The user can use the operating system power
management to configure S3, S4, and S5 power states and shutdown.
NOTE: For more information about configuring the ignition pin (using the system.power-key-action command), see https://
docs.ubuntu.com/core/en/reference/core-configuration.
Specify the action to take when the power button is pressed.
Table 19. Values and configuration options for the ignition pin
ignore
Do nothing
poweroff (default) Shut down the system
reboot
Reboot the system
halt
Halt the system
kexec
Direct-boot a new kernel
suspend
Suspend the system
hibernate
Hibernate the system
hybrid-sleep
Suspend to both disk and RAM
lock
Screen-lock all running sessions.
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
62