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

Add support for Avahi (aka Zeroconf)

asked 2014-01-05 19:49:48 +0300

cos gravatar image

updated 2019-03-29 21:48:23 +0300

rozgwi gravatar image

With Avahi user could ssh to myjolla.local instead of figuring out the IP address. Also the device could advertise its services (whatever they are) on the local network. Could be a good building block for "Jolla PC suite" which could work over wifi.

Should be pretty trivial to package for Sailfish. Remember to also add enable/disable checkbox into settings.

edit retag flag offensive close delete



Someone handily repackaged Avahi for Harmattan and I had it working great on my N9. Seconding this for sure!

tehdely ( 2014-01-05 20:34:49 +0300 )edit

I'd appreciate that, both ways, if possible. So all my infrastructure at home could be accessed easily.

the_mgt ( 2014-01-06 16:32:49 +0300 )edit

@the_mgt, Please turn your "answer" into comment. Your response is more comment than answer. Now it seems that this question has been answered.

LaruX ( 2014-01-06 19:19:46 +0300 )edit

Excellent idea!

LaruX ( 2014-01-06 19:20:05 +0300 )edit

Packaging avahi only is not enough, because multicast packets are discarded when screen is off (i've posted a separate issue here)

eber42 ( 2014-01-28 21:19:59 +0300 )edit

3 Answers

Sort by » oldest newest most voted

answered 2014-01-19 01:23:17 +0300

Robin Burchell _ w00t gravatar image

I had started packaging this a while ago, for my own use/amusement. I'll try and get some time to pursue it again.

edit flag offensive delete publish link more


This would be nice if you could combine it (release/built in the phone) with a way to manage the phone over the browser. See here > https://together.jolla.com/question/25222/poll-what-technology-would-you-prefer-for-a-pc-suite/

ApB ( 2014-04-20 20:02:01 +0300 )edit

answered 2015-06-23 02:13:43 +0300

DrYak gravatar image

Hello !

I wanted also exactly the same : "{myjollaname}.local".

So I took openSUSE 13.2's avahi package, and hammered it until I got it to compile on MerProject's OBS.

Currently, there's no interface. It simply starts after installation. Somebody else should try to write it.

Also note that I've disabled autoipd (IP4LL) because network is handled by connman nad it's (obvisouly) its job to handle IP.

Openrepos :

MerProject Build:

edit flag offensive delete publish link more


IIRC, the main issue was that Sailfish ignores multicast when it's in low-power mode (eg: the screen off, unplugged). Does it work okay for you plugged? And unplugged? Even if it's just the former, it's a huge improvement.

WhyNotHugo ( 2015-06-23 02:25:09 +0300 )edit

Currently on my home WiFi network, IPv4 works on Wifi even if the phone is sleepingandunplugged, IPv6 doesn't work.

Perhaps the people at Jolla have changed the policies ?

I haven't investigated further yet. This can also simply be caches.

DrYak ( 2015-06-23 04:05:12 +0300 )edit

That's an improvement. But it's a shame that IPv6 doesn't work, since that's all I have at home. :(
I'll give it a try and see what I can find.

WhyNotHugo ( 2015-06-23 04:20:20 +0300 )edit

Okay, did experiment a bit more:

  • while in sleeping mode, it seems unreliable. Sometime it works, sometime not. Caching is probably the reason.
  • so this answer and this e-mail are probably still relevant.
    • as this is a power-saving measure, multicast could configured to be re-enabled when sleeping but plugged.
  • IPv6 actually does work. It's the firewall on my laptop which isn't properly configured. The other machines on the network are able to auto-discover its IPv6 address to,
DrYak ( 2015-06-23 04:29:09 +0300 )edit

Thanks, great work!

Has anyone made any power consumption measurements with Avahi enabled and disabled?

cos ( 2015-06-23 10:20:47 +0300 )edit

answered 2017-02-25 12:32:19 +0300

ElderOrb gravatar image

Did anybody check it with ? Stopped working for me.

edit flag offensive delete publish link more
Login/Signup to Answer

Question tools



Asked: 2014-01-05 19:49:48 +0300

Seen: 1,525 times

Last updated: Feb 25 '17