Welcome to RDK X5 Robot repository
4.Open and close APP program control
Open and close APP program control
Open and close APP program control4.1. What is the APP control program that starts automatically when the system starts?4.2, temporary shutdown4.3, Permanent shutdown4.4, Set startup4.5. Temporary startup program
4.1. What is the APP control program that starts automatically when the system starts?
In order to facilitate the experience of the APP function of the car, a program is added to the system. This program integrates the APP control function, so it is called "APP control program". When the mainboard system is turned on, this program will automatically start, so it is called "APP control program that starts automatically when the system starts".
The APP control program that starts automatically when the system starts is just for the convenience of experiencing the APP function of the mobile phone. In actual development, it is necessary to close the APP control program, otherwise it will occupy the device and cause unpredictable errors. Therefore, please close the APP control program before developing the program.
There are two ways to close the APP control program that starts automatically when the system starts. One is to close it only once, and it will start automatically the next time it starts, which is called temporary closure. The other way is that it will not start automatically the next time it starts after closing, unless it is manually reopened, which is called permanent closure.
Factory default user name: sunrise password: yahboom
xxxxxxxxxxThe system supports root and sunrise user login, the password is yahboom. It is recommended to use sunrise user, because the RDK motherboard needs to use administrator privileges to call the MIPI camera, and all sunrise users need to use the sudo command to run camera-related programs
4.2, temporary shutdown
If there is a display screen and mouse and keyboard, log in to the desktop after connecting.
If there is no display screen and mouse and keyboard, please use the computer in the same LAN to open the VNC Viewer software to remotely log in to the desktop to enter the desktop.
After entering the desktop, you will see a terminal. Click the X symbol in the upper right corner to close the terminal to close the APP control program. Sometimes you may be prompted to close the terminal to close the running program. Select Confirm to close it.

If there is no desktop environment, open the terminal and run the following command to shut it down:
xxxxxxxxxxsh /home/sunrise/sunriseRobot/app_SunriseRobot/kill_program.sh
4.3, Permanent shutdown
First, shut down the running APP control program in the way of temporary shutdown.
Open the application of the Ubuntu system and follow the steps below to permanently shut down the APP control program.

Checking the corresponding auto-start program is to set the startup auto-start APP control program, and not checking it is to turn off the startup auto-start APP program:

Restart the system after the modification is completed!
4.4, Set startup
Open the application of the Ubuntu system and follow the steps below to permanently open the APP control program.


Restart the system after the modification is completed!
4.5. Temporary startup program
If you need to manually run the APP control program, please open the Ubuntu terminal first, and then enter the following command:
xxxxxxxxxxsudo python3 /home/sunrise/sunriseRobot/app_SunriseRobot/app_SunriseRobot.py