DART-6UL suspend: Difference between revisions

From Variscite Wiki
(Created page with "{{PageHeader|Suspend to RAM}} {{DocImage|category1=Yocto|category2=DART-6UL}} = Suspend to RAM = This state offers significant power savings as everything in the system is pu...")
 
(Add category Debian)
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{PageHeader|Suspend to RAM}}
{{PageHeader|Suspend to RAM}}
{{DocImage|category1=Yocto|category2=DART-6UL}}
{{DocImage|category1=Yocto|category2=Debian}} [[Category:DART-6UL]]
= Suspend to RAM =
= Suspend to RAM =


Line 9: Line 9:
<pre>
<pre>
Enable Wi-Fi if not enabled to ensure the firmware is loaded:
Enable Wi-Fi if not enabled to ensure the firmware is loaded:
$ ifconfig wlan0 up
# ifconfig wlan0 up


Disable Wi-Fi to put it into sleep state:
Disable Wi-Fi to put it into sleep state:
$ ifconfig wlan0 down
# ifconfig wlan0 down


Disable Bluetooth
Disable Bluetooth
$ echo 0 > /sys/class/gpio/gpio132/value
# echo 0 > /sys/class/gpio/gpio132/value


Enter Sleep mode
Enter Sleep mode
$ echo mem > /sys/power/state
# pm-suspend
</pre>
</pre>


Line 39: Line 39:
  };
  };
  };
  };
- Using the RTC you can wake at a specific time <br>


= Current consumption when suspended =
= Current consumption when suspended =
To measure the current remove resistor R4 and connect ampere meter instead.<br>
To measure the current remove resistor R4 on the 6ULCustomBoard and connect an ammeter instead.<br>
The current consumption should be measured is around 5mA at 3.3V<br>
The expected measured current consumption should be around 4.5mA at 3.3V<br>

Latest revision as of 19:31, 28 April 2023

Suspend to RAM

Suspend to RAM

This state offers significant power savings as everything in the system is put into a low-power state, except for memory, which is placed into the self-refresh mode to retain its contents.

NOTE:
The test in this section was performed with LCD display disconnected.

To suspend to RAM:

Enable Wi-Fi if not enabled to ensure the firmware is loaded:
# ifconfig wlan0 up

Disable Wi-Fi to put it into sleep state:
# ifconfig wlan0 down

Disable Bluetooth
# echo 0 > /sys/class/gpio/gpio132/value

Enter Sleep mode
# pm-suspend

Wake up

There are many possible ways to wake up from suspend.
A few examples:
- Pushing the ON/OFF button (when present on the board)
- Pushing a button on the board which has the boolean property "gpio-key,wakeup" set in its device tree node (under gpio_keys), e.g.:

	gpio-keys {
		compatible = "gpio-keys";
		pinctrl-names = "default";
		pinctrl-0 = <&pinctrl_gpio_keys>;

		back {
			label = "Back";
			gpios = <&gpio5 20 GPIO_ACTIVE_LOW>;
			linux,code = <KEY_BACK>;
			gpio-key,wakeup;
		};
	};

Current consumption when suspended

To measure the current remove resistor R4 on the 6ULCustomBoard and connect an ammeter instead.
The expected measured current consumption should be around 4.5mA at 3.3V