Reply
Thread Tools
nonsuch's Avatar
Posts: 584 | Thanked: 1,550 times | Joined on Sep 2019
#491
Originally Posted by hhaveri View Post
When a situations ends, it should restore settings like wifi state to the value before that situation was activated. So there is no need to do it explicitly.
I am amazed that this bit seems to work flawlessly, even when I disable the app or switch off the phone!

Originally Posted by nonsuch View Post
I will now test how it fares when I leave home, and if it generally switches Wlan off reliably.
Recording network cells with all different modes in Settings => Mobile network seems to have helped, as well as reducing two situations to one.
With 8 cells recorded now, I need to move pretty far from my house before Wifi switches off (looong after it looses connection to my access point) but that's OK because I live in a residential area where it's unlikely that Wifi access points scan who's moving about (like e.g. in a mall).
I guess I can still fine-tune this by re-recording the cells under slightly stricter conditions (yesterday I even held out the phone over my balcony).
______________________________

One more thing I'd like to ask:
When I start Situations it often seems to think that the phone is charging (What = Charger) even though no cable is connected.
Any idea what could be going on there?
__________________
N900 in 2020
SFOS in 2021
 
peterleinchen's Avatar
Posts: 4,117 | Thanked: 8,901 times | Joined on Aug 2010 @ Ruhrgebiet, Germany
#492
One question:
I do not have
Device- Charger
even all feature modules installed and on v3.2.258
Where/how to enable?
__________________
SIM-Switcher, automated SIM switching with a Double (Dual) SIM adapter
--
Thank you all for voting me into the Community Council 2014-2016!

Please consider your membership / supporting Maemo e.V. and help to spread this by following/copying this link to your TMO signature:
[MC eV] Maemo Community eV membership application, http://talk.maemo.org/showthread.php?t=94257

editsignature, http://talk.maemo.org/profile.php?do=editsignature
 
Posts: 203 | Thanked: 596 times | Joined on Jan 2015 @ Finland
#493
Originally Posted by nonsuch View Post
When I start Situations it often seems to think that the phone is charging (What = Charger) even though no cable is connected.
Any idea what could be going on there?
Hmm... no idea, but I'll check if I manage to reproduce the issue somehow. Charger state is currently read from /var/run/state/providers/udev/Battery/ChargerType. Should be quite straightforward but I don't know how reliable that source is.

Br,
Heikki
 

The Following User Says Thank You to hhaveri For This Useful Post:
Posts: 203 | Thanked: 596 times | Joined on Jan 2015 @ Finland
#494
Originally Posted by peterleinchen View Post
One question:
I do not have
Device- Charger
even all feature modules installed and on v3.2.258
Where/how to enable?
You can find it inside the Accessory condition.

Br,
Heikki
 

The Following User Says Thank You to hhaveri For This Useful Post:
nonsuch's Avatar
Posts: 584 | Thanked: 1,550 times | Joined on Sep 2019
#495
Originally Posted by hhaveri View Post
Hmm... no idea, but I'll check if I manage to reproduce the issue somehow. Charger state is currently read from /var/run/state/providers/udev/Battery/ChargerType. Should be quite straightforward but I don't know how reliable that source is.
With no charger connected, that file has no content.
After connecting to the Computer it still has no content - well, it takes as long as it took me to write this to change state, it's now 'usb'.

However, there's another file in that directory called 'IsCharging' - that one is '0' with no charger connected, and immediately changed to '1' with a charger connected.

The same happens when I disconnect the charger - 'IsCharging' changes to '0' immediately, 'ChargerType' takes longer to become empty again.

It's the same with a wall plug although the lag is shorter for 'ChargerType'.

Wouldn't 'IsCharging' be more reliable, since Situations doesn't differentiate between types of chargers anyhow?
________________________________________

Since I have your attention, one more question:

Erasing network cells seems to be taking as long as recording them.
In fact, atm it seems to be stuck on 5 cells (was 8).
Why? Isn't it just erasing files?
________________________________________

BTW, my Sailfish device is a Sony Xperia XA2.
________________________________________

Thank you for all the good work.
__________________
N900 in 2020
SFOS in 2021
 
Posts: 203 | Thanked: 596 times | Joined on Jan 2015 @ Finland
#496
Originally Posted by nonsuch View Post
Wouldn't 'IsCharging' be more reliable, since Situations doesn't differentiate between types of chargers anyhow?
Perhaps, but the problem is that the condition is supposed to detect a charger being connected regardless of any charging actually happening (for example battery already at 100%). Anyway, I'll check if 'IsCharging' can be used for that.

Originally Posted by nonsuch View Post
Erasing network cells seems to be taking as long as recording them.
In fact, atm it seems to be stuck on 5 cells (was 8).
Why? Isn't it just erasing files?
Erasing is the opposite of recording - that is, from the recorded list of cells, it erases only those seen by the device. If you want to clear the condition, you can just move it to trash and create a new condition.

Not having erased all the 8 cells just shows how different internal & external conditions may affect which cells the device connects to.

Br,
Heikki
 

The Following User Says Thank You to hhaveri For This Useful Post:
nonsuch's Avatar
Posts: 584 | Thanked: 1,550 times | Joined on Sep 2019
#497
Originally Posted by hhaveri View Post
Perhaps, but the problem is that the condition is supposed to detect a charger being connected regardless of any charging actually happening (for example battery already at 100%).
Oh, that makes sense and I didn't see it that way.

Erasing is the opposite of recording - that is, from the recorded list of cells, it erases only those seen by the device.
Wow, this is some advanced logic.

If you want to clear the condition, you can just move it to trash and create a new condition.
That's what I did in the end.

Anyhow, thanks again. Glad to be using this app.
__________________
N900 in 2020
SFOS in 2021
 
Posts: 343 | Thanked: 819 times | Joined on Jan 2010 @ Paris, France
#498
I upgraded to the newly released 3.4 (OS update) and situations seem not to work anymore. It launches but then vanishes.
 

The Following User Says Thank You to P@t For This Useful Post:
Posts: 203 | Thanked: 596 times | Joined on Jan 2015 @ Finland
#499
Originally Posted by P@t View Post
I upgraded to the newly released 3.4 (OS update) and situations seem not to work anymore. It launches but then vanishes.
Thanks for the report! I will have a look at the platform update as soon as possible.

Br,
Heikki
 

The Following 3 Users Say Thank You to hhaveri For This Useful Post:
Posts: 203 | Thanked: 596 times | Joined on Jan 2015 @ Finland
#500
Could someone try installing the new release package at https://github.com/pastillilabs/pack...leases/tag/268 ?

Not quite sure what was causing the problems with the latest platform. I recompiled against the latest SDK and app seems to start again at least for me.

There have been some very small changes since the previous official release - perhaps the most significant one being a new "night" icon.

Br,
Heikki
 
Reply

Tags
sailfish os, situations


 
Forum Jump


All times are GMT. The time now is 06:50.