I started this conversation month ago at the sailfish-devel mailingslist. Now, lets continue here.
With newer Sailfish OS version (starting from 18.104.22.168) I noticed a regular drop of an established TCP connection during device sleep in the Shmoose xmpp client . I was able to prevent his by triggering the iphbd regularly in the previous versions. This seems not to work as expected anymore.
The only way to get a stable long-term TCP connection with the current SFOS releases is by using this on the command line:
This disables late suspend of the device. Battery drain is only slightly more at my device with this setting.
Two questions on this:
Has this changed from the previous SFOS versions? I did not need this for Shmoose in the past.
Can this setting be applied to SFOS programmatically within an app with no special permissions? How would one do this?