Turn bluetooth on from commandline in SFOS
Does anyone know how to turn bluetooth on and off from the commandline in SFOS?
I've been rummaging with dbus, so far I discovered this using qdbus: Code:
[nemo@Sailfish bluetooth]$ qdbus com.jolla.settings /com/jolla/settings/ui org.freedesktop.DBus.Properties.Set hci0 bar baz Anyone know how to do this? The end goal is to create a script to turn bluetooth on and restart rockpoold afterwards, and launch it as a user script with systemd (currently on fairphone 2 rockpool starts before bluetooth and therefore my pebble doesn't pair when I reboot until I turn on bluetooth and restart rockpool). |
Re: Turn bluetooth on from commandline in SFOS
better is add to rockpool proper api for controlling bluetooth.
|
Re: Turn bluetooth on from commandline in SFOS
Quote:
|
Re: Turn bluetooth on from commandline in SFOS
To turn bluetooth ON via dbus, you can use;
Code:
dbus-send --system --print-reply --dest=net.connman /net/connman/technology/bluetooth net.connman.Technology.SetProperty string:"Powered" variant:boolean:true Code:
dbus-send --system --print-reply --dest=net.connman /net/connman/technology/bluetooth net.connman.Technology.SetProperty string:"Powered" variant:boolean:false https://together.jolla.com/question/...onoff-via-cli/ - originally from - http://talk.maemo.org/showpost.php?p...6&postcount=64 Regards, |
Re: Turn bluetooth on from commandline in SFOS
Quote:
|
All times are GMT. The time now is 13:21. |
vBulletin® Version 3.8.8