Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 831631 - net-wireless/iwd-1.20: doesn't start via dbus (by networkmanager)
Summary: net-wireless/iwd-1.20: doesn't start via dbus (by networkmanager)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Ben Kohler
URL: https://lore.kernel.org/iwd/CAGaigJP9...
Whiteboard:
Keywords: PATCH, PullRequest
Depends on:
Blocks:
 
Reported: 2022-01-20 20:13 UTC by Nikita Zlobin
Modified: 2023-09-01 15:24 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
fix-dbus-launcher.patch (fix-dbus-launcher.patch,279 bytes, patch)
2022-10-04 16:30 UTC, Nikita Zlobin
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Nikita Zlobin 2022-01-20 20:13:37 UTC
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.
Comment 1 Mike Gilbert gentoo-dev 2022-01-20 20:19:01 UTC
I suspect the auto-start behavior is only designed to work with systemd, not openrc.
Comment 2 Nikita Zlobin 2022-01-20 20:46:29 UTC
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).
Comment 4 Mike Gilbert gentoo-dev 2022-01-20 20:53:57 UTC
If setting Exec=/usr/libexec/iwd works, I would suggest submitting that change upstream.
Comment 5 Nikita Zlobin 2022-10-04 16:30:15 UTC
Created attachment 819160 [details, diff]
fix-dbus-launcher.patch

There's patch to get dbus launcher working back in essential way.
Comment 6 Mike Gilbert gentoo-dev 2022-10-04 16:56:28 UTC
(In reply to Nikita Zlobin from comment #5)

It would be better to submit the patch upstream.
Comment 7 Nikita Zlobin 2022-11-23 12:16:09 UTC
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).
Comment 8 Nikita Zlobin 2022-11-23 12:33:22 UTC
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.
Comment 9 Mike Gilbert gentoo-dev 2022-11-23 15:25:32 UTC
(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.
Comment 10 Mike Gilbert gentoo-dev 2022-11-23 15:33:44 UTC
(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.
Comment 11 Nikita Zlobin 2022-11-23 15:41:27 UTC
> 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.
Comment 12 Nikita Zlobin 2022-11-23 15:45:00 UTC
https://lore.kernel.org/iwd/CAGaigJP9aDt3hiQOVbg4U_x-_6T1+FHbimEE1KLBD1mYumJPaQ@mail.gmail.com/T/

Just noticed, there are not only patches.
Comment 13 Mike Gilbert gentoo-dev 2022-11-23 15:46:28 UTC
Thanks!
Comment 14 Larry the Git Cow gentoo-dev 2023-09-01 15:24:59 UTC
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(+)