I have discovered a little trick to turn on bluetooth automatically, but however, i have no idea of turn it off (yet)... Try this simple script:
setconfig /ezx_user/download/appwrite/setup/ezx_bluetooth.cfg BluetoothPower 1
/usr/SYSbt/mbtsrv -n $your_bluetooth_name &
/usr/SYSqtapp/bluetooth/bluetooth
Change $your_bluetooth_name above to the name you setup on the bluetooth settings...
With this code, bluetooth automatically turned on when the bluetooth program launched... So only in single click... (havent tested to connect yet)
BTW, to turn off, i tried to kill mbtsrv process, but it automatically turned on again after 2 or 3 seconds...
I see that the bluetooth program remove /tmp/mbtsrv.sck when turn it off, but i have no luck trying it... Something bother me is that the mbtsrv process is changed to something like "[mbtsrv] <defunct>", while i watch the turn off process... (using "ps h -A -o cmd" when i manually turn off bluetooth)
Any help?