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

Multicast inbound packets are discarded

asked 2014-01-28 21:12:48 +0300

eber42 gravatar image

updated 2014-01-29 21:25:36 +0300

It seems Jolla phone discards incoming multicast packets when screen is off (even if plugged on AC), so applications like avahi and nss-mdns does not work (it's also easy to demonstrate with tcpdump).

On Android you could use the WifiManager.MulticastLock API to disable this kind of behaviour. Is there an equivalent on Jolla phone (API or settings) ?

Related question : Add support for Avahi (aka Zeroconf)

edit retag flag offensive close delete

2 Answers

Sort by » oldest newest most voted

answered 2014-05-17 20:37:09 +0300

eber42 gravatar image

A better solution was posted recently on sailfish-devel mailing list.

the following command makes avahi works again :

iwpriv wlan0 setMCBCFilter 0

This may again increase battery power usage. A value of 1 or 2 may be better, I haven't tried yet.

edit flag offensive delete publish link more

answered 2014-01-30 20:19:33 +0300

eber42 gravatar image

As far as i understand the problem, it's caused by early suspend (which is some low power mode that can't be prevented by wakelocks). As a workaround, it's possible to disable early suspend with following command :

mcetool --set-suspend-policy=disabled

mce also offers a dbus interface, to be used from applications.

This will deplete the battery way faster ("full" suspend is also disabled).

Maybe you could just disable suspend when you need it. I'll try to use only the avahi client part (connect from Jolla to other device) and disable suspend only during the name resolution time.

You can read about early suspend on this interesting thread on TMO

edit flag offensive delete publish link more

Automatically disabling this when connected to a charger would be nice solution. I my case, I only SSH in at home, and if I'm at home, the phone is most likely connected.

WhyNotHugo ( 2014-05-01 03:31:03 +0300 )edit
Login/Signup to Answer

Question tools



Asked: 2014-01-28 21:12:48 +0300

Seen: 426 times

Last updated: May 17 '14