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

Conditional WLAN hotspot

asked 2015-09-30 13:04:24 +0300

99er gravatar image

updated 2015-09-30 13:18:43 +0300

I plan to use my Jolla phone as WLAN hotspot for my future Jolla tablet to enable taking it with me outside my home and I've started playing around with the functionality a little bit. The functionality takes quite a lot of battery charge which is not surprising and I do have my home WLAN also. So I was wondering could it be possible to have a "Conditional WLAN Hotspot"-functionality which would turn the hotspot functionality off, when the phone has been in range of predetermined trusted WLAN (like home WLAN) for let's say 5 minutes. And also turns on the WLAN Hotspot functionality when trusted WLANs haven't been in range for 5 minutes (or the strength of the signal is considered too low).

edit retag flag offensive close delete

Comments

1

What a coincidence! I was leaving the house this morning thinking exactly the same thing.

pichlo ( 2015-09-30 14:10:13 +0300 )edit

2 Answers

Sort by » oldest newest most voted
3

answered 2015-09-30 13:31:46 +0300

inte gravatar image

I think I read elsewhere that BT-tethering is not working at present, but I think this would be a better way to connect to the internet especially in terms of battery usage.

edit flag offensive delete publish link more

Comments

1

Yes, BT tethering should be much better. I've kept BT-sharing on my old n900 always on without noticeble battery impact. Here is the bug report:

https://together.jolla.com/question/107787/11728-bluetooth-tethering-via-connman-no-longer-supported/?sort=votes&page=1

butler ( 2015-09-30 17:50:32 +0300 )edit

@buttler I agree, I leave bluetooth on for the car, so I doubt I'd notice any battery usage except for when the tablet is actually getting data, compared to have a higher powered wifi connection for such a short distance.

GD ( 2015-10-01 03:30:15 +0300 )edit
1

answered 2015-09-30 15:41:56 +0300

tjp gravatar image

updated 2015-09-30 15:45:07 +0300

Not a very straightforward or optimal solution, but you could

  1. install connman-tools (pkcon install connman-tools)
  2. install Situations app
  3. enable running arbitrary commands in Situations settings (not sure whether it's enabled by default)
  4. create a situation where the condition is your WLAN SSID and action is the following command which effectively turns tethering off by using connmanctl: /usr/lib/connman/tools/connmanctl tether wifi off
  5. create another situation where the condition is reversed (NOT WLAN SSID) and command /usr/lib/connman/tools/connmanctl tether wifi on

I don't think it's possible to use a "after N minutes" or "WLAN signal strength" condition, though.

edit flag offensive delete publish link more

Comments

I tried this but the NOT(SSID) condition does not work when I move outside of WLAN range and I _think_ also moving back to the range of the WLAN would go unnoticed for the phone as it is not checking for the WLAN networks rather just working as hotspot...

99er ( 2015-09-30 22:05:15 +0300 )edit

Right, it seems you can't enable wifi when tethering and vice versa.

Perhaps you could come up with a different condition signaling that you're home (mobile network cell, bluetooth connection...)?

tjp ( 2015-09-30 23:01:03 +0300 )edit

Nothing idiot-proof comes into mind... I guess I have to enable/disable the hotspot manually until that BT tethering is fixed.

99er ( 2015-10-01 08:35:02 +0300 )edit
Login/Signup to Answer

Question tools

Follow
1 follower

Stats

Asked: 2015-09-30 13:04:24 +0300

Seen: 376 times

Last updated: Sep 30 '15