![]() |
Re: Tinkering with DBus on Jolla
Someone know how to start/stop bluetooth, I mean switch on/off BT like you do from the setting -> right upper corner... ?
Already tried: Code:
dbus-send --type=method_call --dest=com.jolla.Bluetooth /com/jolla/Bluetooth org.freedesktop.DBus.Properties.Set string:"enable" |
Re: Tinkering with DBus on Jolla
I found that I can switch BT on with this command:
Code:
dbus-send --type=method_call --dest=com.jolla.Bluetooth /com/jolla/Bluetooth com.jolla.Bluetooth.startSessionIf in this moment you will run this command: Code:
dbus-send --type=method_call --dest=com.jolla.Bluetooth /com/jolla/Bluetooth com.jolla.Bluetooth.holdSession |
Re: Tinkering with DBus on Jolla
mcetool is not solution?
|
Re: Tinkering with DBus on Jolla
dbus-send --system --print-reply --dest=net.connman /net/connman/technology/bluetooth net.connman.Technology.SetProperty string:"Powered" variant:boolean:true
also |
Re: Tinkering with DBus on Jolla
Ahhh, thanks! It work now :)
I want create a simple package for the quick On/OFF BT. P.S. I tried mcetool but phone not found it. Tried to install but it also not found (dev mod activated). P.S. also when I searched it I used: /usr/lib/qt5/bin/qdbus to find this processes/actions, but I didn't see net.connman here.. |
Re: Tinkering with DBus on Jolla
|
Re: Tinkering with DBus on Jolla
Hmmm another question..
Coderus, can I somehow switch OFF BT, but not immediately like with "false" at the end of the command, I want see the progress bar on the top of the screen when it start disabling and if I want leave BT opened I can press on this bar to stop switching OFF. Is it possible ? (command with "endSession" not work) Thanks P.S. And I would like to know how to check if my phone connected to another device ? I connect Jolla to BT loudspeaker and if I run: Code:
/usr/lib/qt5/bin/qdbus --system net.connman /net/connman/technology/bluetooth net.connman.Technology.GetPropertiesCode:
Connected: false |
Re: Tinkering with DBus on Jolla
1. you can't do it using command line, you should use qt or bluez library.
|
Re: Tinkering with DBus on Jolla
@Schturman stop creating stu...simple icons in menu. Install lipstick-pandora :)
|
Re: Tinkering with DBus on Jolla
Quote:
Quote:
Can you know how to check if Jolla connected to another device ? |
| All times are GMT. The time now is 12:40. |
vBulletin® Version 3.8.8