I have two problems aroudn iwd & openrc, both of which make impossible to have wifi from start without special actions. This is problem 1. iwd is claimed to be startable by networkmanager via dbus, so no need to add to runlevels. However, it simply doesn't work. Command to start it by dbus, in file /usr/share/dbus-1/system-services/net.connman.iwd.service, is jst '/bin/false'. If I set it to /usr/libexec/iwd, as in init service file, start by dbus works and networkmanager can start it. I use iwd-1.20 and openrc-0.44.10, (networkmanager is not in list for suspected). Reproducible: Always Steps to Reproduce: 1. get networkmanager emerged with USE=iwd 2. make sure iwd is not runing (stop iwd service) 3. restart networkmanager, get result one Actual Results: If there was wifi connection before iwd is stoped, it's now disconnected, its device - unavailable (runing cmd "nmcli device"). Expected Results: iwd should be respawned if missing when networkmanager starts, that's according to gentoo iwd wiki.
I suspect the auto-start behavior is only designed to work with systemd, not openrc.
Are they really can't coexist? Looks more like intentional sticks to wheels against regular dbus. Would be strange if systemd refused services, which set service cmd to something meaningful (though I probably have seen /bin/false occurences before, perhaps it's just default from some template).
https://git.kernel.org/pub/scm/network/wireless/iwd.git/commit/src/net.connman.iwd.service?id=28573c90d1f19be8a1f0a56cb2df6652182ea6b0
If setting Exec=/usr/libexec/iwd works, I would suggest submitting that change upstream.
Created attachment 819160 [details, diff] fix-dbus-launcher.patch There's patch to get dbus launcher working back in essential way.
(In reply to Nikita Zlobin from comment #5) It would be better to submit the patch upstream.
I wrote to iwd mailing list, sending urls to this patch and discussion. However, this is intel's thing and I'm not sure, they will not intentionally ignore me. Moreover, from first look - most patch mails in that list are in specific strict format, usually generated by git patch mailing commands (which is really uncomfortable to setup, give I have no access to original PC for now).
That message to iwd list was certainly rejected, because sent as html. I'm currently stuck to gmail web client, where I found no option for plain text mode.
(In reply to Nikita Zlobin from comment #8) > That message to iwd list was certainly rejected, because sent as html. I'm > currently stuck to gmail web client, where I found no option for plain text > mode. There's an option for "Plain text mode" in the 3 dots menu on the compose dialog. A web search for "gmail plain text mode" will turn up dozens of results if you still have trouble finding it.
(In reply to Nikita Zlobin from comment #7) > Moreover, from first look - most patch mails in that list are in specific > strict format, usually generated by git patch mailing commands (which is > really uncomfortable to setup, give I have no access to original PC for now). Yes, it would be best to make the change in a cloned copy of the iwd git repo, and send it using git-send-email. Someone will have to go through this process before we apply the change in Gentoo. Perhaps someone else will do it if you wait long enough, but there's no guarantee.
> There's an option for "Plain text mode" in the 3 dots menu on the compose > dialog. Thanks. I looked in wrong place - opened in Sent, hoping to resend, but this option is only for new mails. For now - just sent links.
https://lore.kernel.org/iwd/CAGaigJP9aDt3hiQOVbg4U_x-_6T1+FHbimEE1KLBD1mYumJPaQ@mail.gmail.com/T/ Just noticed, there are not only patches.
Thanks!
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7843a0085dec7e5f22e421749eb9b4c7658a74b6 commit 7843a0085dec7e5f22e421749eb9b4c7658a74b6 Author: Paul Zander <negril.nx+gentoo@gmail.com> AuthorDate: 2023-08-29 14:24:46 +0000 Commit: Ben Kohler <bkohler@gentoo.org> CommitDate: 2023-09-01 15:24:48 +0000 net-wireless/iwd: enable start via dbus for NetworkManager Change the command from `/bin/false` to `${EPREFIX}/usr/libexec/iwd` as used in `iwd.initd-r1`. Bug: https://bugs.gentoo.org/831631 Closes: https://bugs.gentoo.org/831631 Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/32508 Signed-off-by: Ben Kohler <bkohler@gentoo.org> net-wireless/iwd/iwd-2.8-r1.ebuild | 186 +++++++++++++++++++++++++++++++++++++ 1 file changed, 186 insertions(+) Additionally, it has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7843a0085dec7e5f22e421749eb9b4c7658a74b6 commit 7843a0085dec7e5f22e421749eb9b4c7658a74b6 Author: Paul Zander <negril.nx+gentoo@gmail.com> AuthorDate: 2023-08-29 14:24:46 +0000 Commit: Ben Kohler <bkohler@gentoo.org> CommitDate: 2023-09-01 15:24:48 +0000 net-wireless/iwd: enable start via dbus for NetworkManager Change the command from `/bin/false` to `${EPREFIX}/usr/libexec/iwd` as used in `iwd.initd-r1`. Bug: https://bugs.gentoo.org/831631 Closes: https://bugs.gentoo.org/831631 Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/32508 Signed-off-by: Ben Kohler <bkohler@gentoo.org> net-wireless/iwd/iwd-2.8-r1.ebuild | 186 +++++++++++++++++++++++++++++++++++++ 1 file changed, 186 insertions(+)