View Single Post
Feathers McGraw's Avatar
Posts: 654 | Thanked: 2,368 times | Joined on Jul 2014 @ UK
#1
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
Error: org.freedesktop.DBus.Error.UnknownInterface
Interface hci0 was not found in object /com/jolla/settings/ui
But I guess the problem is that I don't know the name of the bluetooth interface.

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).
 

The Following 2 Users Say Thank You to Feathers McGraw For This Useful Post: