Mavproxy ignores command in terminal

I have connected the pixhawk cube orange and jetson nano for communication using mavproxy.
I have established a connection for pixhawk and jetson using GPIO AND TELEM2 port.
then I run a mavproxy link command on jetson nano terminal .
using this below command .
-----sudo mavproxy.py --master=/dev/ttyTHS1---------
It got connected and communication between pixhawk and jetson nano is done

-------problem-------

I can’t change any flight mode from the terminal but it changes modes when I give from RC
like when i type >>>mode it gives output of different modes but when i type >>>mode STABILISE it do not change the mode,Also if try to change mode though our RC connections all logs are displayed and mode gets changed.

It is STABILIZE.
Also, LOITER mode and fence require GPS lock.