OpenMandrivaAssociation / distribution

OpenMandriva Lx is an exciting free Desktop Operating System that aims to cater to and interest first time and advanced users alike. It has the breadth and depth of an advanced system but is designed to be simple and straightforward in use.
https://openmandriva.org
7 stars 2 forks source link

IWD #2712

Open tpgxyz opened 5 years ago

tpgxyz commented 5 years ago

Use IWD as a modern alternative for wpa_supplicant for WiFi connections

If you want to test it, please follow below steps:

  1. dnf install iwd
  2. systemctl start iwd.service <- just to be sure :)
  3. edit /usr/lib/NetworkManager/conf.d/00-wifi-backend.conf and commend wpa_supplicant and uncomment iwd lines
  4. systemctl restart NetworkManager.service
  5. Try to connect to wifi network by using plasma NM applet or nmtui
  6. Observe logs
tpgxyz commented 5 years ago

NetworkManager is ready: https://github.com/OpenMandrivaAssociation/networkmanager/commit/b59975176853ca856720d9ad0193cc2615d543fb

ell library needed for IWD got packaged : https://github.com/OpenMandrivaAssociation/ell/commit/976f91c3029d067cb8fbfd42454286d758f5c58f

AngryPenguinPL commented 5 years ago

Unfortunately these changes (in my case) - make it impossible to connect to wifi. I had to downgrade packages that appeared in cooker repo yesterday.

tpgxyz commented 5 years ago

@AngryPenguinPL Do you have any logs, anything that may help to fix this issue ?

benbullard79 commented 5 years ago

This was discussed by contributors group on IRC and agreed that it is not time for this in OM yet. Discussion took place on May 31 and is well know by everyone. Including:

https://github.com/OpenMandrivaAssociation/omdv-build-iso/commit/8031648fbd8940fa95cc6bb568a90259741f412e

And this is breaking peoples wifi right now.

tpgxyz commented 5 years ago

@benbullard79 it's cooker, and we are after release. Can you please provide some logs so i can fix this issue ?

AngryPenguinPL commented 5 years ago

I will not lie, I am not a fan of iwd. Currently, I do not have time to investigate why it does not work and cause problems, thats why I downgrade package. If you want to deal with searching for causes, I give you some info.

inxi dmesg journalctl

In principle, the networkmanager does not show anything at all. No connection. Just like in this screenshot

As described on the arch wiki. In konsole iwctl gives me nothing - just this:

[x@openmandriva-cooker ~]$ iwctl
Waiting for IWD to appear...

IWMON:

[x@openmandriva-cooker ~]$ iwmon
Wireless monitor ver 0.18
Failed to create monitor interface nlmon: Unknown error -1

I've now looked at iwd.service status. Look, it's loaded but not active.

[x@openmandriva-cooker ~]$ systemctl status iwd
 iwd.service - Wireless service
   Loaded: loaded (/lib/systemd/system/iwd.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Fri 2019-07-19 00:59:13 CEST; 3min 16s ago
  Process: 1771 ExecStart=/usr/libexec/iwd (code=exited, status=226/NAMESPACE)
 Main PID: 1771 (code=exited, status=226/NAMESPACE)

lip 19 00:59:13 openmandriva-cooker systemd[1]: iwd.service: Service RestartSec=100ms expired, scheduling restart.
lip 19 00:59:13 openmandriva-cooker systemd[1]: iwd.service: Scheduled restart job, restart counter is at 5.
lip 19 00:59:13 openmandriva-cooker systemd[1]: Stopped Wireless service.
lip 19 00:59:13 openmandriva-cooker systemd[1]: iwd.service: Start request repeated too quickly.
lip 19 00:59:13 openmandriva-cooker systemd[1]: iwd.service: Failed with result 'exit-code'.
lip 19 00:59:13 openmandriva-cooker systemd[1]: Failed to start Wireless service.

Start this service or restart gives this error:

[x@openmandriva-cooker ~]$ systemctl start iwd
Job for iwd.service failed because the control process exited with error code.
See "systemctl status iwd.service" and "journalctl -xe" for detail

and here mentioned in above error journalctl -xe

benbullard79 commented 5 years ago

My point has nothing to do with whether iwd is good or bad. It may, eventually, be the greatest change in the history of wifi. My issue is about following policy which was not done in this instance. This policy:

https://wiki.openmandriva.org/en/Policies/Repository_Policies

tpgxyz commented 5 years ago

@AngryPenguinPL many thanks for detailed report. I'll try to figure out how it may be solved

Can you please run over this wiki https://iwd.wiki.kernel.org/debugging

Second, can you please disable systemd-networkd and try again with iwd

AngryPenguinPL commented 5 years ago

Disabling systemd-networkd does not help. It's the same as it was. Debugging guide also - running any command from debbug guide like sudo iwd -d gives me error "command not found".

Perhaps IWD does not support my Realtek chip? I dont know. In the meantime, I tried IWD on my PC, with a cheap TP-Link WIFI card on USB and it does not work too.

tpgxyz commented 5 years ago

@AngryPenguinPL well that is very strange that iwd -d does not show anything. Have you stop iwd.service ?

Can you please try with these quirks https://wiki.archlinux.org/index.php/Wireless_network_configuration#Realtek

benbullard79 commented 4 years ago

Network controller: Intel Corporation Wi-Fi 6 AX200 (rev 1a)

This is fairly new hardware. Quick test in Cooker today and this is working so for.

Test on older hardware to come.

abucodonosor commented 4 years ago

@benbullard79

Intel HW is not the issue here, test everything else but Intel.

tpgxyz commented 1 year ago

@berolinux can we finally switch to iwd ?