Skip to content
Support

Ignition Timers

Platforms with an ignition MCU control the vehicle power sequence with a set of timers. The timers decide how the PC powers up when you turn the key and how it powers down when you turn it off.

Two platforms have them, and their timer sets are different:

PlatformTimersUnit
In-CarPC CQ20FourAlways seconds
In-CarPC CQ40N seriesFiveSelectable, minutes or seconds

The timers are stored in the MCU’s non-volatile memory on both platforms, so they persist across restarts and power loss. This is different from the CQ40 series digital outputs, which reset every time the machine reboots.

The CQ40 series has no ignition timers. There, pcu-cli ign reports ERROR: Ignition timers are not available on In-CarPC CQ40 series. and exits with code 2. See Supported Platforms for the feature comparison.

The CQ20 has four timers, all counted in seconds.

The MCU watches the vehicle’s ignition signal and steps the PC through a fixed sequence at each change.

Startup. When the ignition comes on, the MCU waits the Anti-Crank Delay before doing anything. This filters out the brief, unstable signals that happen while an engine is cranking. If the ignition signal drops during this wait, the MCU cancels the boot entirely. Once the delay passes and the ignition is still on, the MCU applies DC power, waits the Boot Delay for the supply voltages to stabilise, then presses the power button to start the PC.

Shutdown. When the ignition goes off, the MCU does not shut the PC down straight away. It waits the Shutdown Delay, which gives you time to restart the engine or finish what you are doing. If the ignition comes back on within that window, the shutdown is cancelled. Once the delay expires, the MCU sends the operating system a shutdown command. If the OS has not finished shutting down after the Force Off Timeout, the MCU cuts power anyway, so a hung shutdown cannot sit there draining the vehicle battery.

TimerLabelRangeDefaultRecommended
ign-on-delayAnti-Crank Delay1-60s6s3-10s
sw-on-delayBoot Delay1-60s4s2-5s
sw-off-delayShutdown Delay3-7200s300s (5m)30-300s
pw-off-delayForce Off Timeout10-7200s120s (2m)60-180s

How long the MCU waits after detecting the ignition signal before turning on DC power. This filters out the brief, unstable signals that happen when an engine is cranking, so the PC will not try to boot until the engine is properly running.

  • Too low: the PC may try to boot while the engine is still cranking, then lose power mid-startup.
  • Too high: the PC takes longer than necessary to start after the key is turned.

How long the MCU waits after applying DC power before pressing the power button. This gives the power supply time to stabilise, so the motherboard receives clean voltage when it starts up.

  • Too low: the power button may be pressed before voltages have stabilised.
  • Too high: adds unnecessary delay to the boot process.

How long the MCU waits after the ignition signal is removed before telling the operating system to shut down. This gives you time to restart the engine without the PC shutting down, and gives running tasks time to finish. If the ignition comes back during this window, the shutdown is cancelled.

  • Too low: brief ignition interruptions could trigger unwanted shutdowns, and the OS may not have time to save data.
  • Too high: the PC runs for a long time after the vehicle is turned off, draining the battery.

How long the MCU waits after sending the shutdown command before cutting power regardless of whether the OS has finished shutting down. This is a safety net: if the OS freezes during shutdown (a stuck update, a crashed program), the MCU cuts power to prevent the battery draining indefinitely. Under normal operation this timer should never trigger.

  • Too low: the OS may not have finished shutting down, risking data loss or file corruption.
  • Too high: if the OS is frozen, the PC sits draining the battery for too long.

The CQ40N series has five timers. Three cover the ignition sequence and two cover running on the UPS battery after the vehicle supply is lost. Four of the five are counted in a delay unit you can switch between minutes and seconds; the Ignition On Delay is always in seconds.

Startup. When the ignition comes on, the MCU waits the Ignition On Delay, then starts the system. This is a shorter sequence than the CQ20’s: there is one delay between the key and the system starting, not two.

Shutdown. When the ignition goes off, the MCU waits the Ignition Off Delay, then begins the shutdown. If the shutdown has not completed after the Force Off Timeout, the MCU cuts power anyway.

Power loss and the UPS battery. The two UPS timers are separate from the ignition sequence and only have an effect when the UPS battery is fitted. If the main supply is lost, the UPS Off Delay is how long the system keeps running on the battery before shutting down. Once that shutdown starts, the UPS Force Off Timeout is the backstop that cuts power if the OS does not finish.

TimerLabelRangeDefaultRecommendedUnit
ign-on-delayIgnition On Delay0-255s7s3-10sAlways seconds
ign-off-delayIgnition Off Delay0-25511-10Follows the delay unit
pw-off-delayForce Off Timeout0-255155-30Follows the delay unit
ups-off-delayUPS Off Delay0-2055-10Follows the delay unit
ups-pw-off-delayUPS Force Off Timeout0-25521-5Follows the delay unit

The four timers that follow the delay unit are shown without a unit on purpose. The number stored in the MCU is a plain count, and the delay unit decides what it counts. A value of 5 means five minutes or five seconds depending on the current setting.

ups-off-delay is the only one of the five whose maximum is not 255. Its limit of 20 is enforced by the MCU itself, so a larger value is not accepted even if something tries to write it.

How long the MCU waits after the ignition switches on before the system powers up. This filters out the brief, unstable signals that happen while an engine is cranking. Unlike the other four, this timer is always counted in seconds, whatever the delay unit is set to.

  • Too low: the PC may try to start while the engine is still cranking, then lose power mid-startup.
  • Too high: the PC takes longer than necessary to start after the key is turned.

How long the MCU waits after the ignition switches off before the shutdown starts. This gives you time to restart the engine or finish what you are doing.

  • Too low: brief ignition interruptions could trigger unwanted shutdowns.
  • Too high: the PC runs for a long time after the vehicle is turned off, draining the battery.

How long the MCU waits after the shutdown starts before cutting power anyway. This is a safety net for a shutdown that hangs. Under normal operation it should never trigger.

  • Too low: the OS may not have finished shutting down, risking data loss or file corruption.
  • Too high: if the OS is frozen, the PC sits draining the battery for too long.

How long the system keeps running on the UPS battery after the main supply is lost, before it starts to shut down. This only has an effect when the UPS battery is fitted. The range is 0-20.

  • Too low: a brief supply interruption shuts the machine down when it did not need to.
  • Too high: the UPS battery is drained further before the machine starts shutting down.

How long the MCU waits after a shutdown on UPS battery starts before cutting power anyway. This is the UPS equivalent of the Force Off Timeout, and it only has an effect when the UPS battery is fitted.

  • Too low: the OS may not have finished shutting down before the battery is cut.
  • Too high: the UPS battery is drained further by a shutdown that has already hung.

The CQ40N counts four of its five timers in a unit you can change. From the factory the unit is minutes. You can switch it to seconds, and switch back.

The unit is stored in the MCU alongside the timers, so it also survives a restart and power loss.

The Ignition On Delay is not affected. That timer is always counted in seconds whatever the unit is set to.

Read the current unit with pcu-cli ign unit, and change it with pcu-cli ign unit minutes or pcu-cli ign unit seconds. Both are covered on the Command Reference. In the app, use the “Delay Unit” card on the Ignition page.

You can change timers from the GUI or the CLI. Either way, the values you type are in the connected platform’s own unit, and pcu reads the value back after writing to confirm it took.

In the GUI, use the Ignition page. Each timer has a description, its recommended range and default, quick-select presets, and a custom value box. Saving asks you to confirm and then reads the value back to check the write took.

From the CLI, pcu-cli ign shows the current values. On a CQ20:

Terminal window
$ pcu-cli ign
pcu v1.1.0 - In-CarPC CQ20 Ignition
----------------------------------------
MCU Firmware : 12
Ignition Mode : On
Anti-Crank Delay : 6s IGN on to DC power
Boot Delay : 4s DC on to power button
Shutdown Delay : 300s (5m) IGN off to ACPI shutdown
Force Off Timeout : 120s (2m) Hard power cut if OS hangs

On a CQ40N the same command lists that platform’s five timers instead, and adds a Delay Unit line showing whether they are being counted in minutes or seconds.

Set a timer with pcu-cli ign set <timer> <value>. It asks you to confirm, writes the value, and reads it back:

Terminal window
$ pcu-cli ign set sw-off-delay 120
Write Shutdown Delay = 120s (2m)? [y/N] y
Shutdown Delay: 120s (2m) - verified

A value outside the timer’s range is rejected before anything is written, and the error shows the default and the recommended range:

Terminal window
$ pcu-cli ign set sw-off-delay 9000
ERROR: Shutdown Delay must be 3-7200s. Got: 9000
Default: 300s (5m) | Recommended: 30-300s

For the full command surface, exit codes, and scripting notes, see the Command Reference.

The ignition mode decides whether the MCU runs the automatic power sequence at all. It is a CQ20 feature. pcu shows it, but only for reading.

The CQ40N series has no ignition mode setting at all, so nothing is shown for it there.