Power reboot from console

hi
i want to reboot my autopi without remove it from the car odd
I try this command without success
reboot
sudo reboot
also
power.reboot: |-

Nothing work form autopicloud console

any idea ?

How about falling back to using SSH client instead of the Web UI if you need it done and Web UI is not enabled to do it? if your using android phone, install a SSH client and connect with that and run the command there.

1 Like

You should be able to run all the same commands from the web terminal as you can from ssh.
But just remember that the web terminal is not a normal shell, it only allows you to run custom modules, and all the default saltstack modules.

If you want to run shell commands, you must remember to use the module cmd.run to do so.

cmd.run 'reboot'

Note: Depending on why you want to reboot, you might be able to just reboot the core minion service instead of rebooting the entire OS.
To reboot the minion service, you can use this command.

minionutil.restart

You can read more about the commands here.
http://docs.autopi.io/commands/minionutil/

power.help
power.help: |-
Shows this help information.

power.hibernate: |-
Power down system and put device into hibernate state.
Optional arguments:
- delay (str): Delay in seconds before powering down. Default is ‘10’.
- confirm (bool): Acknowledge the execution of this command. Default is ‘False’.
- reason (str): Reason code that tells why we decided to hibernate. Default is ‘unknown’.

power.reboot: |-
Reboot system immediately.
Optional arguments:
- reason (str): Reason code that tells why we decided to reboot. Default is ‘unknown’.

power.request_reboot: |-
Request for a future system reboot.
Optional arguments:
- pending (bool): Default is ‘True’.
- immediately (bool): Default is ‘False’.
- reason (str): Reason code that tells why we decided to reboot. Default is ‘unknown’.

power.restart_modem: |-
Restart modem the hard way by stopping and starting its power supply.

power.sleep: |-
Power down system and put device into sleep state.
Optional arguments:
- interval (int): Sleep interval in seconds. Default is ‘60’.
- delay (str): Delay in seconds before powering down. Default is ‘10’.
- modem_off (bool): Power off 3V3 supply to modem on mPCIe slot. Default is ‘False’.
- acc_off (bool): Put accelerometer into standby. Default is ‘False’.
- confirm (bool): Acknowledge the execution of this command. Default is ‘False’.
- reason (str): Reason code that tells why we decided to sleep. Default is ‘unknown’.

power.sleep_timer: |-
Setup sleep timer to schedule power off upon inactivity.
NOTE: Do not access pillar data in this function as they will not be available when called from engines (separate processes).
Optional arguments:
- enable (bool): Enable or disable timer.
- period (int): Timer period in seconds before performing sleep. Default is ‘1800’.
- reason (str): Reason code that tells why we decided to sleep. Default is ‘unknown’.

power.status: |-
Get status and debug information regarding power management.