We have moved to a new Sailfish OS Forum. Please start new discussions there.
34

1.1.7.28 Bluetooth Tethering via Connman no longer supported

asked 2015-09-09 18:56:29 +0200

moofang gravatar image

updated 2015-12-15 09:18:14 +0200

c.la gravatar image

Bluetooth tethering used to work on Jolla via the "Tethering" app (https://github.com/jlehtoranta/harbour-tethering-gui), but no longer works since 1.1.7.28. This is already reported to the app developer (https://github.com/jlehtoranta/harbour-tethering-gui/issues/4) but I took a look at the app code and realized it is only a frontend that makes dbus calls to connman, and that the problem appears to be at connman - and thus probably system level rather than a problem with the "Tethering" app itself. Specifically, attempting to enable "Tethering" for bluetooth with Connman via dbus, eg

dbus-send --system --print-reply --type=method_call --dest=net.connman /net/connman/technology/bluetooth net.connman.Technology.SetProperty string:Tethering variant:boolean:true

Now returns

Error net.connman.Error.NotSupported: Not supported

Has something changed with connman or with the bluetooth driver or something in 1.1.7.28?

As bluetooth tethering is a really valuable feature for me (and I'm sure many other people), I would greatly appreciate it if someone could take a look and see if this can be properly diagnosed and fixed up :)

EDIT 2015-12-15 by c.la: this topic will be discussed on Dec, 17th Jolla Community meeting. If you plan to attend please edit the post and add your name in the list of substitutes in case I can't show up (50% chance atm)

edit retag flag offensive close delete

Comments

This does need to be fixed:(

richardski ( 2015-09-10 00:54:31 +0200 )edit
3

This is still the case in 1.1.9.28 (Sailfish 2.0 initial release) :(

moofang ( 2015-09-25 05:40:23 +0200 )edit

This would really be useful for tethering the tablet. As it can be left on with little effect on battery.

GD ( 2015-10-01 03:28:28 +0200 )edit
2

I've used alot with my TomTom to get traffic info while drivin... Now I can't escape from traffic jams.. :( Please Jolla fix this!!!

Amilcar Santos ( 2015-10-12 11:51:19 +0200 )edit
1

New update (Saimaa) has been released, anyone checked the BT tethering with this update?

Amilcar Santos ( 2015-10-22 23:40:27 +0200 )edit

1 Answer

Sort by » oldest newest most voted
2

answered 2016-03-12 09:34:20 +0200

moofang gravatar image

updated 2016-03-12 12:30:39 +0200

FWIW, this was discussed in a community meeting (on Dec 17th, I'm not aware of any updates after that) and I believe the situation is Jolla doesn't have a good BT engineer to deal with this now. It is tracked in their internal bugtracker and the final comment was:

Some time ago had to create a workaround in connman so that BT rfkill initialization during bootup works predictably (other alternatives were tried, but were found to be more difficult to implement reliably).

Due to weirdness in connman code the presence of a dummy BT rfkill driver that doesn't have tethering functionality prevents tethering by the "real" driver; not difficult to change the code in the problematic place but should understand why it was written as it is in the first place.

Problem is that while technology.c:set_tethering() should iterate over drivers once it finds one that can attempt tethering, technology->tech_drivers isn't updated when drivers are added if the technology struct has already been created.

See set_tethering() at https://github.com/mer-packages/connman/blob/master/connman/src/technology.c#L234, technology_get() at https://github.com/mer-packages/connman/blob/master/connman/src/technology.c#L1168 and technology_driver_register() at https://github.com/mer-packages/connman/blob/master/connman/src/technology.c#L1249"

The mentioned file is now hosted at https://git.merproject.org/mer-core/connman/blob/master/connman/src/technology.c in case anyone wants to take a look.

Edit: converted to answer on advice :)

edit flag offensive delete publish link more

Comments

Thanks. This gives a lot of information on the subject.

evdw ( 2016-03-12 12:36:45 +0200 )edit

thanks. Any update on this?

c.la ( 2016-05-04 00:04:28 +0200 )edit
Login/Signup to Answer

Question tools

Follow
8 followers

Stats

Asked: 2015-09-09 18:56:29 +0200

Seen: 2,317 times

Last updated: Mar 12 '16