Reply
Thread Tools
Schturman's Avatar
Posts: 5,339 | Thanked: 4,133 times | Joined on Jan 2010 @ Israel
#61
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"
but without success

Last edited by Schturman; 2014-04-26 at 08:01.
 
Schturman's Avatar
Posts: 5,339 | Thanked: 4,133 times | Joined on Jan 2010 @ Israel
#62
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.startSession
but the problem is after 2 seconds it start switching BT off (you can see the running line on the top side of screen.
If 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
it will stop it and BT stayed ON. But now I can't switch BT off, the "endSession" command not work
 
coderus's Avatar
Posts: 6,436 | Thanked: 12,701 times | Joined on Nov 2011 @ Ängelholm, Sweden
#63
mcetool is not solution?
__________________
Telegram | Openrepos | GitHub | Revolut donations
 
coderus's Avatar
Posts: 6,436 | Thanked: 12,701 times | Joined on Nov 2011 @ Ängelholm, Sweden
#64
dbus-send --system --print-reply --dest=net.connman /net/connman/technology/bluetooth net.connman.Technology.SetProperty string:"Powered" variant:boolean:true
also
__________________
Telegram | Openrepos | GitHub | Revolut donations
 
Schturman's Avatar
Posts: 5,339 | Thanked: 4,133 times | Joined on Jan 2010 @ Israel
#65
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..

Last edited by Schturman; 2014-04-26 at 09:46.
 
Guest | Posts: n/a | Thanked: 0 times | Joined on
#66
 

The Following User Says Thank You to For This Useful Post:
Schturman's Avatar
Posts: 5,339 | Thanked: 4,133 times | Joined on Jan 2010 @ Israel
#67
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.GetProperties
it show me:
Code:
Connected: false
Name: Bluetooth
Powered: true
Tethering: false
Type: bluetooth
The first line show me false although it connected and work good. Why ?

Last edited by Schturman; 2014-04-26 at 16:04.
 
coderus's Avatar
Posts: 6,436 | Thanked: 12,701 times | Joined on Nov 2011 @ Ängelholm, Sweden
#68
1. you can't do it using command line, you should use qt or bluez library.
__________________
Telegram | Openrepos | GitHub | Revolut donations
 
coderus's Avatar
Posts: 6,436 | Thanked: 12,701 times | Joined on Nov 2011 @ Ängelholm, Sweden
#69
@Schturman stop creating stu...simple icons in menu. Install lipstick-pandora
__________________
Telegram | Openrepos | GitHub | Revolut donations
 
Schturman's Avatar
Posts: 5,339 | Thanked: 4,133 times | Joined on Jan 2010 @ Israel
#70
Originally Posted by coderus View Post
1. you can't do it using command line, you should use qt or bluez library.
Ahh, ok

Originally Posted by coderus View Post
@Schturman stop creating stu...simple icons in menu. Install lipstick-pandora
lipstick-pandora don't do what I need

Can you know how to check if Jolla connected to another device ?
 
Reply


 
Forum Jump


All times are GMT. The time now is 20:23.