How can deepstream autorun after power on?

how can i get deepstream to run automatically when power on jetson nx?

thanks,

Hi @wilicyy,

We have discussed this subject before. You can check the subject in below.

Hope it helps.

could you show me a demo of py to try?

many many thanks

Hi,
You may also refer to this post:
omxh264enc and nvvidconv NOT working unless... - #22 by DaneLLL

sir,
i know how to use systemd service or gnome.
but i don’t know how to write .py script to instead of deepstream-app -c…

thanks

You can use “Startup Application Preferences”. To do that, click “Add” button and type the whole command with full file paths in the “command” part.

it is ok like this:
command: /opt/nvidia/…/sources/mypipline/deepstream-app -c deepstream_app_config_yoloV4.txt

right?

The full path of “deepstream_app_config_yoloV4.txt” file is needed as well.

i do like this but failed again:
gnome command:
/opt/nvidia/deepstrea/…/mypipline/deepstream-app -c /opt/nvidia/…/mypipline/deepstream_app_config_yolov4.txt

failed after reboot, and my /opt/ under root which samilar path with etc.
not terminal enter directly…

pls help me how to do now.

Try it like this,

deepstream-app -c /opt/nvidia/…/mypipline/deepstream_app_config_yolov4.txt

or

/usr/bin/deepstream-app -c /opt/nvidia/…/mypipline/deepstream_app_config_yolov4.txt

boss, it works now by /usr/bin/ command!
so much thanks a lots lots…

and how to block showing: system throttled due to over-current?
i must run deepstream by 24th, this over-current is somewhere problems?

Good to hear that it worked. For system throttled issue, this post has worked for us.

Regards.

1 Like

boss, i did # echo 5000 > /sys/devices/c250000.i2c/i2c-7/7-0040/iio:device0/crit_current_limit_0
reboot but shows again over-current when running deepstream.

how to do now?

Hi,
If your model is heavy, it is still possible to hit overcurrent and the system throttles. On developer kit, we would suggest set to 5A at max for keeping system stability.

yes my model is really heavy, it is already to change 5A after done your command:

echo 5000 > /sys/devices/c250000.i2c/i2c-7/7-0040/iio:device0/crit_current_limit_0?

i did this and disable notification, and it feels better a little from my eyes at least.
and another a very important question for my project:
how can i restart deepstream automatically if it shut down?
i have to get it work 7*24…

You need to write a systemd service for working your application continuosly. Even if your application terminates, it restarts automatically by using systemd service.
Pay attention to cooling your device. If your application runs 7*24, it gets hot gradually. Jetson clocks are decreased when the temperature exceeds some limitations automatically. Avoiding these kind of circumstances, cooling has vital importance.

what useful file-loop? it is helpful for me?
and i am writing systemd to prepare it, do you have a good demo?
can i write like this: after-all?
and next week i will try 7*24 to work and check what happens…

thanks.

yes you are right, sir.
i need a big fan for cooling, it works very well at rain weather but down at near to 40 degree hot sun…

thank you