•
To retrieve data from the motion sensor, run the command.
$ cat in_accel_scale_available
$ cat in_accel_*_scale
$ cat in_accel_*_raw
•
To retrieve data from the pressure sensor, run the command.
$ cat in_pressure_raw
$ cat in_pressure_scale
Converting raw data for use
Apply the formula in the table to convert the raw data collected into usable measurements.
Table 12. Convert relative humidity and temperature sensor raw data
Relative humidity and temperature sensor
ST Micro HTS221
RH (in %) = (in_humidityrelati in_humidityrelative_offset) * in_humidityrelative_scale
Temperature (degC) = (in_te in_temp_offset) * in_temp_scale
Table 13. 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 14. 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 15. 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.
59