An unintelligible sentence
- Is  better? The article has other clarity issues, though. -- Alad (talk) 09:50, 12 January 2015 (UTC)
Resume connection after suspend
On my laptop (Thinkpad X61) connman doesn't restore the wifi connection after resuming from suspend. To have it working again I have to un/set the physical wifi switch. I've found a workaround, but it's crude and the issue may be hardware-related (though wicd works just fine, maybe because it has resume scripts) so I'm leaving it here for review.
[Unit] Description=Connman resume actions After=suspend.target [Service] Type=simple ExecStart=/usr/bin/systemctl restart connman.service ExecStart=/usr/bin/sh -c 'sleep 1; /usr/bin/rfkill unblock 0 1' [Install] WantedBy=suspend.target
# systemctl enable connman-resume
Much of this wiki really old
I just struggled to get this working properly on my laptops and RPIs and there are a couple of details which are important and are not in this wiki.
- the 'using iwd' portion of the wiki is way out of date. No longer required to use the
--wifi=iwd_agent. IMO best is to disable wpa_supplicant with
systemctl disable wpa_supplicantif you cannot uninstall it (i.e if you don't want to or cannot uninstall NetworkManager). If you can uninstall it, it is best to do so. In most cases the default iwd and connman services are fine, IMO.
# If you want connman to reconnect when the SSID drops and reappears, you must add a line to the /etc/connman/main.conf: This is wrong according to the connman list, this setting is only for wpa_supplicant and not for iwd. They are working on rescan.
BackgroundScanning = true. If this is not added, connman will never tell iwd to re-scan to see if/when the SSID returns and will, therefore, never reconnect.
- the Arch package has no tmpfile, for some reason so the connman cannot create /run/connman/resolv.conf. One option is to add a line to the connman.service file:
ExecStartPre=/bin/mkdir -p /run/connman, but this is frowned upon in the systemd group and the 'right way', apparently, is to add a file /etc/tmpfiles.d/connman_resolvconf.conf which has the contents:
d /run/connman - - - - L /etc/resolv.conf - - - - /run/connman/resolv.conf
this way connman can create its resolv.conf and not complain in the journal that the folder does not exist and can nod do DNS lookups.
- As someone who has repeatedly tried to use connman together with iwd using the this wiki page and has failed again and again, I think that the information is indeed outdated. I would appreciate if someone with more knowledge took the time write a working
iwdsection. Wlhlm (talk) 17:26, 3 November 2020 (UTC)
DNS and ntp information
There is information on setting up custom DNS for NetworkManager and I think the same could be provided for connman. Also, connman is menioned in System_time#Time_synchronization section. So, a section for configuring ntp servers for connman would also be nice. --RaZorr (talk) 10:00, 17 January 2022 (UTC)