You are not logged in.

#1 2023-01-09 10:35:17

arch&evilwm
Member
Registered: 2016-02-24
Posts: 2

iwd problem

I have started using systemd-network and iwd.
When I boot up, the wifi does not connect properly. If I disable my adaptor & restart it, it connects properly.

I was wondering if it is something to do with when systemd.resolved starts?

The time when unit became active or started is printed after the "@" character.
The time the unit took to start is printed after the "+" character.

graphical.target @8.240s
└─multi-user.target @8.240s
  └─getty.target @8.230s
    └─getty@tty1.service @8.227s
      └─systemd-user-sessions.service @8.170s +40ms
        └─network.target @8.151s
          └─iwd.service @3.451s +4.698s
            └─basic.target @3.417s
              └─sockets.target @3.417s
                └─dbus.socket @3.415s
                  └─sysinit.target @3.411s
                    └─systemd-resolved.service @3.030s +380ms
                      └─systemd-tmpfiles-setup.service @2.806s +203ms
                        └─local-fs.target @2.777s
                          └─run-credentials-systemd\x2dtmpfiles\x2dsetup.service.mount @2.820s
                            └─local-fs-pre.target @1.723s
                              └─systemd-tmpfiles-setup-dev.service @1.514s +208ms
                                └─kmod-static-nodes.service @1.225s +124ms
                                  └─systemd-journald.socket @1.210s
                                    └─system.slice @1.161s
                                      └─-.slice @1.161s

This is my wireless conf file.

[Match]
Name=wlan0

[Network]
DHCP=yes
IgnoreCarrierLoss=3s

[DHCPv4]
RouteMetric=20

This is my main.conf

[General]
EnableNetworkConfiguration=true

[Network]
NameResolvingService=systemd

Last edited by arch&evilwm (2023-01-09 10:44:28)


Dell Inspiron i7 + Nvidia card
HP Pavilion G2 (AMD E2-1800 & Radeon graphics).
6 Gb RAM, 60Gb ssd.
Both Arch + sway

Offline

#2 2023-01-09 11:06:12

Raynman
Member
Registered: 2011-10-22
Posts: 1,539

Re: iwd problem

Sounds like a known problem. The wiki suggests a  `sleep`, but IMHO making it start after the network device is better (at least for the common case with one fixed device) and that worked on my laptop. Someone else had the same idea: https://insanity.industries/post/racefree-iwd/ I had the same problem with the old "wlan0" naming, so I'm not sure the problem analysis is entirely accurate, but the solution is the same.

Offline

#3 2023-01-09 11:37:11

arch&evilwm
Member
Registered: 2016-02-24
Posts: 2

Re: iwd problem

Thanks Raynman. I tried the sleep but that did not work. I have now added after & requires bits to my override.conf and it works fine


Dell Inspiron i7 + Nvidia card
HP Pavilion G2 (AMD E2-1800 & Radeon graphics).
6 Gb RAM, 60Gb ssd.
Both Arch + sway

Offline

Board footer

Powered by FluxBB