Too many services fighting for control?

Hi,
I came accross this message

wpa_supplicant[897]: nl80211: kernel reports: Match already configured

`journalctl -p 4`
-- Journal begins at Tue 2021-08-10 17:57:05 CEST, ends at Tue 2021-08-10 18:19:07 CEST. --
août 10 17:57:05 lmm-hpebk840g7nbpc kernel: x86/cpu: SGX disabled by BIOS.
août 10 17:57:05 lmm-hpebk840g7nbpc kernel: ENERGY_PERF_BIAS: Set to 'normal', was 'performance'
août 10 17:57:05 lmm-hpebk840g7nbpc kernel: nvme nvme0: missing or invalid SUBNQN field.
août 10 17:57:05 lmm-hpebk840g7nbpc kernel: i8042: PNP: PS/2 appears to have AUX port disabled, if this is incorrect please boot with i8042.nopnp
août 10 17:57:05 lmm-hpebk840g7nbpc kernel: usb: port power management may be unreliable
août 10 17:57:05 lmm-hpebk840g7nbpc kernel: tpm tpm0: [Firmware Bug]: TPM interrupt not working, polling instead
août 10 17:57:05 lmm-hpebk840g7nbpc kernel: acpi PNP0C14:01: duplicate WMI GUID 05901221-D566-11D1-B2F0-00A0C9062910 (first instance was on PNP0C14:00)
août 10 17:57:05 lmm-hpebk840g7nbpc kernel: acpi PNP0C14:02: duplicate WMI GUID 05901221-D566-11D1-B2F0-00A0C9062910 (first instance was on PNP0C14:00)
août 10 17:57:05 lmm-hpebk840g7nbpc kernel: iwlwifi 0000:00:14.3: api flags index 2 larger than supported by driver
août 10 17:57:06 lmm-hpebk840g7nbpc kernel: thermal thermal_zone12: failed to read out thermal zone (-61)
août 10 17:57:06 lmm-hpebk840g7nbpc kernel: hp_wmi: query 0x4 returned error 0x5
août 10 17:57:06 lmm-hpebk840g7nbpc kernel: hp_wmi: query 0xd returned error 0x5
août 10 17:57:06 lmm-hpebk840g7nbpc kernel: hp_wmi: query 0x1b returned error 0x5
août 10 17:57:06 lmm-hpebk840g7nbpc systemd-udevd[336]: cfg80211: Process '/usr/bin/set-wireless-regdom' failed with exit code 1.
août 10 17:57:06 lmm-hpebk840g7nbpc systemd-networkd[339]: wlan0: found matching network '/etc/systemd/network/20-wireless.network', based on potentially unpredictable interface name.
août 10 17:57:07 lmm-hpebk840g7nbpc wpa_supplicant[956]: nl80211: kernel reports: Match already configured
août 10 17:57:07 lmm-hpebk840g7nbpc wpa_supplicant[956]: nl80211: kernel reports: Match already configured
août 10 17:57:07 lmm-hpebk840g7nbpc wpa_supplicant[956]: nl80211: kernel reports: Match already configured
août 10 17:57:07 lmm-hpebk840g7nbpc wpa_supplicant[956]: nl80211: kernel reports: Match already configured
août 10 17:57:07 lmm-hpebk840g7nbpc wpa_supplicant[956]: nl80211: kernel reports: Match already configured
août 10 17:57:07 lmm-hpebk840g7nbpc wpa_supplicant[956]: nl80211: kernel reports: Match already configured
août 10 17:57:07 lmm-hpebk840g7nbpc kernel: sof-audio-pci-intel-cnl 0000:00:1f.3: ASoC: Parent card not yet available, widget card binding deferred
août 10 17:57:07 lmm-hpebk840g7nbpc kernel: snd_hda_codec_realtek ehdaudio0D0: ASoC: sink widget AIF1TX overwritten
août 10 17:57:07 lmm-hpebk840g7nbpc kernel: snd_hda_codec_realtek ehdaudio0D0: ASoC: source widget AIF1RX overwritten
août 10 17:57:07 lmm-hpebk840g7nbpc kernel: skl_hda_dsp_generic skl_hda_dsp_generic: ASoC: sink widget hifi3 overwritten
août 10 17:57:07 lmm-hpebk840g7nbpc kernel: skl_hda_dsp_generic skl_hda_dsp_generic: ASoC: sink widget hifi2 overwritten
août 10 17:57:07 lmm-hpebk840g7nbpc kernel: skl_hda_dsp_generic skl_hda_dsp_generic: ASoC: sink widget hifi1 overwritten
août 10 17:57:07 lmm-hpebk840g7nbpc kernel: skl_hda_dsp_generic skl_hda_dsp_generic: ASoC: source widget Codec Output Pin1 overwritten
août 10 17:57:07 lmm-hpebk840g7nbpc kernel: skl_hda_dsp_generic skl_hda_dsp_generic: ASoC: sink widget Codec Input Pin1 overwritten
août 10 17:57:07 lmm-hpebk840g7nbpc kernel: skl_hda_dsp_generic skl_hda_dsp_generic: ASoC: sink widget Analog Codec Playback overwritten
août 10 17:57:07 lmm-hpebk840g7nbpc kernel: skl_hda_dsp_generic skl_hda_dsp_generic: ASoC: sink widget Digital Codec Playback overwritten
août 10 17:57:07 lmm-hpebk840g7nbpc kernel: skl_hda_dsp_generic skl_hda_dsp_generic: ASoC: sink widget Alt Analog Codec Playback overwritten
août 10 17:57:07 lmm-hpebk840g7nbpc kernel: skl_hda_dsp_generic skl_hda_dsp_generic: ASoC: source widget Analog Codec Capture overwritten
août 10 17:57:07 lmm-hpebk840g7nbpc kernel: skl_hda_dsp_generic skl_hda_dsp_generic: ASoC: source widget Digital Codec Capture overwritten
août 10 17:57:07 lmm-hpebk840g7nbpc kernel: skl_hda_dsp_generic skl_hda_dsp_generic: ASoC: source widget Alt Analog Codec Capture overwritten
août 10 17:57:08 lmm-hpebk840g7nbpc kernel: Bluetooth: hci0: MSFT filter_enable is already on
août 10 17:57:12 lmm-hpebk840g7nbpc kernel: kauditd_printk_skb: 60 callbacks suppressed
août 10 17:57:16 lmm-hpebk840g7nbpc pulseaudio[1783]: stat('/etc/pulse/default.pa.d'): Aucun fichier ou dossier de ce type
août 10 17:57:16 lmm-hpebk840g7nbpc pulseaudio[1783]: GetManagedObjects() failed: org.freedesktop.systemd1.NoSuchUnit: Unit dbus-org.bluez.service not found.
août 10 17:57:16 lmm-hpebk840g7nbpc tumblerd[1824]: Failed to load plugin "tumbler-gepub-thumbnailer.so": libgepub-0.6.so.0: cannot open shared object file: No such file or directory
août 10 17:57:18 lmm-hpebk840g7nbpc kernel: kauditd_printk_skb: 74 callbacks suppressed
août 10 17:57:18 lmm-hpebk840g7nbpc NetworkManager[593]: <warn>  [1628611038.5616] dns-sd-resolved[18b289f714ccffd7]: send-updates SetLinkDomains@3 failed: GDBus.Error:org.freedesktop.resolve1.LinkBusy: Link wlan0 is manag>
août 10 18:10:25 lmm-hpebk840g7nbpc upowerd[1769]: treating change event as add on /sys/devices/pci0000:00/0000:00:14.0/usb1/1-4/1-4:1.2/0003:046D:C52B.0003/0003:046D:101A.0004/power_supply/hidpp_battery_0

Does that mean “too many” services are tying to manage the same function (controling wireless card)?
Or I am wrong?
Shall I be concern (and what could I do)?

cat /tmp/journal | eos-sendlog

inxi -Fxxc0z --no-host | curl -F ‘f:1=<-’ ix.io

It looks like you are running NetworkManager and systemd-networkd. In most cases, you wouldn’t want both of those running at the same time.

1 Like

Would you know how does it come ?
I mean, is it “default” when installing Eos? (this install is pretty fresh…and I “almost” didn’t change anything)

So I guess I have to get rid of systemd-networkd

Cheers!

edit: or shall i dump NetworkManager :upside_down_face:

Every EOS installation I have done has used NetworkManager, not systemd-networkd. That being said, I haven’t looked at it extensively or tried every DE option.

Did you enable systemd-netword and create the file /etc/systemd/network/20-wireless.network? :innocent:

1 Like

Not at all.

But there is indeed 2 files in /etc/systemd/network/
20-wireless.network
20-ethernet.network

Would it have been created on his own with a systemd update or something?y

edit: seeing the date of the files it has been created on install i guess… is it the same for everybody then?

I don’t have those files in my install but we probably installed off of different ISOs.

Did you do an offline install or online?

1 Like

Not totally sure which is which, but different ISO installs on my current machines do not have those files (nor do Garuda or Arch or!). Some kind of anomaly I guess!

1 Like

Weird :confused:

I did an offline install on this machine.

My setup is 2 x Arch, 5 x EnOS on 1 machine, and 3 x EnOS + 1 Arch and 1 Garuda on another. Mostly online install (to save updates) but 3 or 4 EnOS were offline for easier theming… The other distros on here aren’t systemd - so no way they would have them! :grin:

1 Like

these files are from archiso structure and not needed on installed system…
you can savely remove both of them…
https://github.com/endeavouros-team/EndeavourOS-archiso/tree/master/airootfs/etc/systemd
Could be that installation was not removing them…

So it could be you will have some more files not needed:
/etc/systemd/system/sockets.target.wants/systemd-networkd.socket
/etc/systemd/system/multi-user.target.wants/systemd-networkd.service
/etc/systemd/journald.conf.d/volatile-storage.conf

2 Likes

So i stopped and disabled systemd-networkd.service and systemd-networkd.socket, but the messages are still generated :confused:

.

Shall i remove that file too?

systemctl --type=service --state=running
UNIT                      LOAD   ACTIVE SUB     DESCRIPTION                                   
  accounts-daemon.service   loaded active running Accounts Service
  avahi-daemon.service      loaded active running Avahi mDNS/DNS-SD Stack
  cronie.service            loaded active running Periodic Command Scheduler
  dbus.service              loaded active running D-Bus System Message Bus
  iwd.service               loaded active running Wireless service
  lightdm.service           loaded active running Light Display Manager
  NetworkManager.service    loaded active running Network Manager
  polkit.service            loaded active running Authorization Manager
  rtkit-daemon.service      loaded active running RealtimeKit Scheduling Policy Service
  systemd-journald.service  loaded active running Journal Service
  systemd-logind.service    loaded active running User Login Management
  systemd-resolved.service  loaded active running Network Name Resolution
  systemd-timesyncd.service loaded active running Network Time Synchronization
  systemd-udevd.service     loaded active running Rule-based Manager for Device Events and Files
  udisks2.service           loaded active running Disk Manager
  upower.service            loaded active running Daemon for power management
  user@1000.service         loaded active running User Manager for UID 1000
  wpa_supplicant.service    loaded active running WPA supplicant

LOAD   = Reflects whether the unit definition was properly loaded.
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB    = The low-level unit activation state, values depend on unit type.
18 loaded units listed.
systemctl status iwd.service
 iwd.service - Wireless service
     Loaded: loaded (/usr/lib/systemd/system/iwd.service; enabled; vendor preset: disabled)
     Active: active (running) since Tue 2021-08-10 20:56:01 CEST; 1min 8s ago
   Main PID: 587 (iwd)
      Tasks: 1 (limit: 9248)
     Memory: 1.6M
        CPU: 42ms
     CGroup: /system.slice/iwd.service
             └─587 /usr/lib/iwd/iwd

août 10 20:56:01 lmm-hpebk840g7nbpc iwd[587]:                 VHT Capabilities:
août 10 20:56:01 lmm-hpebk840g7nbpc iwd[587]:                         160 Mhz operation
août 10 20:56:01 lmm-hpebk840g7nbpc iwd[587]:                         Short GI for 80Mhz
août 10 20:56:01 lmm-hpebk840g7nbpc iwd[587]:                         Short GI for 160 and 80 + 80 Mhz
août 10 20:56:01 lmm-hpebk840g7nbpc iwd[587]:                         Max RX MCS: 0-9 for NSS: 2
août 10 20:56:01 lmm-hpebk840g7nbpc iwd[587]:                         Max TX MCS: 0-9 for NSS: 2
août 10 20:56:01 lmm-hpebk840g7nbpc iwd[587]:         Ciphers: CCMP TKIP BIP
août 10 20:56:01 lmm-hpebk840g7nbpc iwd[587]:         Supported iftypes: ad-hoc station ap p2p-client p2p-go p2p-device
août 10 20:56:12 lmm-hpebk840g7nbpc iwd[587]: Unexpected connection related event -- is another supplicant running?
août 10 20:56:12 lmm-hpebk840g7nbpc iwd[587]: Unexpected connection related event -- is another supplicant running?
systemctl status wpa_supplicant.service
wpa_supplicant.service - WPA supplicant
     Loaded: loaded (/usr/lib/systemd/system/wpa_supplicant.service; disabled; vendor preset: disabled)
     Active: active (running) since Tue 2021-08-10 20:56:02 CEST; 2min 24s ago
   Main PID: 861 (wpa_supplicant)
      Tasks: 1 (limit: 9248)
     Memory: 4.5M
        CPU: 24ms
     CGroup: /system.slice/wpa_supplicant.service
             └─861 /usr/bin/wpa_supplicant -u -s -O /run/wpa_supplicant

août 10 20:56:02 lmm-hpebk840g7nbpc wpa_supplicant[861]: nl80211: kernel reports: Match already configured
août 10 20:56:02 lmm-hpebk840g7nbpc wpa_supplicant[861]: nl80211: kernel reports: Match already configured
août 10 20:56:02 lmm-hpebk840g7nbpc wpa_supplicant[861]: nl80211: kernel reports: Match already configured
août 10 20:56:02 lmm-hpebk840g7nbpc wpa_supplicant[861]: wlan0: CTRL-EVENT-SCAN-FAILED ret=-16
août 10 20:56:06 lmm-hpebk840g7nbpc wpa_supplicant[861]: wlan0: CTRL-EVENT-SCAN-FAILED ret=-16
août 10 20:56:12 lmm-hpebk840g7nbpc wpa_supplicant[861]: wlan0: SME: Trying to authenticate with 00:22:3f:26:39:9e (SSID='NETGEAR' freq=2412 MHz)
août 10 20:56:12 lmm-hpebk840g7nbpc wpa_supplicant[861]: wlan0: Trying to associate with 00:22:3f:26:39:9e (SSID='NETGEAR' freq=2412 MHz)
août 10 20:56:12 lmm-hpebk840g7nbpc wpa_supplicant[861]: wlan0: Associated with 00:22:3f:26:39:9e
août 10 20:56:12 lmm-hpebk840g7nbpc wpa_supplicant[861]: wlan0: CTRL-EVENT-CONNECTED - Connection to 00:22:3f:26:39:9e completed [id=0 id_str=]
août 10 20:56:12 lmm-hpebk840g7nbpc wpa_supplicant[861]: wlan0: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0

Does that mean I have to choose between iwd and wpa_supplicant?
(which one?)

And I don’t understand cause I stopped and disabled wpa_supplicant but it’s still running…

What do I miss?

I am not sure in this case but, generally speaking, units can be started by other units or be socket activated. It is possible that something else needs it and is starting it.

Since IWD is an alternative to wpa_supplicant, I suspect that you do need to choose.

1 Like

Ok, so I choose to keep iwd over wpa_supplicant (why where they both there?)
To do so, i edited NetworkManager.conf (which for me didn’t show any settings)

sudo nano /etc/NetworkManager/NetworkManager.conf

adding

[device]
wifi.backend=iwd

Then I disabled (i learned how to do it for good ^^) wpa_supplicant service

sudo systemctl stop wpa_supplicant 
sudo systemctl mask --now wpa_supplicant 
sudo systemctl daemon-reload

I restarted iwd service, one might want to enable and start it

sudo systemctl start iwd
sudo systemctl enable iwd

and I restarted NetworkManager

sudo systemctl restart NetworkManager

On next boot the messages weren’t there (obviously cause wpa_supplicant doesn’t run anymore)
I wonder if that would have been the case if I did the countrary (keep wpa_supplicant instead of iwd), cause without the addition of wifi.backend in NetworkManager.conf the wifi wasn’t working at all.

I still wonder why both those services were present and running…

Edit:

So, wifi does connect now ULTRA fast, like really… but… 2 connections appears on the NetworkManager applet in the taskbar (name like my connection, but 1 and 2), and I only have one… and… I can’t disconnect ^^ at least from the NetworkManager applet in the taskbar, i get the error message (1) uid 1000 has no permission to perform this operation
I can obviously disconnect with the key on the keyboard.

archiso was needing some of the services … and they should have been removed on target (installed system) looks like on your install this part was not 100% doing this…
Offline install uses the same image to install system as it uses to run the live environment …

1 Like

Arf… :confused:
Then, do you think any services here aren’t needed now? (leftovers from install?)

systemctl --type=service --state=active
  UNIT                                                                                      LOAD   ACTIVE SUB     DESCRIPTION                                                                  
  accounts-daemon.service                                                                   loaded active running Accounts Service
  alsa-restore.service                                                                      loaded active exited  Save/Restore Sound Card State
  asd.service                                                                               loaded active exited  Anything-sync-daemon
  avahi-daemon.service                                                                      loaded active running Avahi mDNS/DNS-SD Stack
  cronie.service                                                                            loaded active running Periodic Command Scheduler
  dbus.service                                                                              loaded active running D-Bus System Message Bus
  kmod-static-nodes.service                                                                 loaded active exited  Create List of Static Device Nodes
  lightdm.service                                                                           loaded active running Light Display Manager
  lvm2-monitor.service                                                                      loaded active exited  Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling
  NetworkManager.service                                                                    loaded active running Network Manager
  polkit.service                                                                            loaded active running Authorization Manager
  rtkit-daemon.service                                                                      loaded active running RealtimeKit Scheduling Policy Service
  systemd-backlight@backlight:intel_backlight.service                                       loaded active exited  Load/Save Screen Backlight Brightness of backlight:intel_backlight
  systemd-cryptsetup@luks\x2df6540be3\x2d39bf\x2d401d\x2d8c00\x2d5603b407b4cd.service       loaded active exited  Cryptography Setup for luks-f6540be3-39bf-401d-8c00-5603b407b4cd
  systemd-fsck@dev-disk-by\x2duuid-D476\x2dFF9D.service                                     loaded active exited  File System Check on /dev/disk/by-uuid/D476-FF9D
  systemd-fsck@dev-disk-by\x2duuid-f3496a94\x2d266c\x2d4596\x2da437\x2dda3530ad8f7e.service loaded active exited  File System Check on /dev/disk/by-uuid/f3496a94-266c-4596-a437-da3530ad8f7e
  systemd-journal-flush.service                                                             loaded active exited  Flush Journal to Persistent Storage
  systemd-journald.service                                                                  loaded active running Journal Service
  systemd-logind.service                                                                    loaded active running User Login Management
  systemd-modules-load.service                                                              loaded active exited  Load Kernel Modules
  systemd-random-seed.service                                                               loaded active exited  Load/Save Random Seed
  systemd-remount-fs.service                                                                loaded active exited  Remount Root and Kernel File Systems
  systemd-resolved.service                                                                  loaded active running Network Name Resolution
  systemd-sysctl.service                                                                    loaded active exited  Apply Kernel Variables
  systemd-timesyncd.service                                                                 loaded active running Network Time Synchronization
  systemd-tmpfiles-setup-dev.service                                                        loaded active exited  Create Static Device Nodes in /dev
  systemd-tmpfiles-setup.service                                                            loaded active exited  Create Volatile Files and Directories
  systemd-udev-trigger.service                                                              loaded active exited  Coldplug All udev Devices
  systemd-udevd.service                                                                     loaded active running Rule-based Manager for Device Events and Files
  systemd-update-utmp.service                                                               loaded active exited  Record System Boot/Shutdown in UTMP
  systemd-user-sessions.service                                                             loaded active exited  Permit User Sessions
  tlp.service                                                                               loaded active exited  TLP system startup/shutdown
  udisks2.service                                                                           loaded active running Disk Manager
  upower.service                                                                            loaded active running Daemon for power management
  user-runtime-dir@1000.service                                                             loaded active exited  User Runtime Directory /run/user/1000
  user@1000.service                                                                         loaded active running User Manager for UID 1000
  wpa_supplicant.service                                                                    loaded active running WPA supplicant

LOAD   = Reflects whether the unit definition was properly loaded.
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB    = The low-level unit activation state, values depend on unit type.
37 loaded units listed.

So in the end (for now…?) I did the contrary, i got rid of iwd and kept wpa_supplicant (which take much longer to connect i must say)

I tried this and it works well on my end (on a Dell XPS 9380). Thank you!

I got also two SSID for my connection while selecting which network to connect to. Then I went ahead to WiFi settings in my system’s setting manager, removed them both without any glitch. At the next scan only one appeared to which I could connect without probleb.

I should add that on this system I don’t notice any significant difference in time for the connection to be established.

1 Like

Cheers, erasing them and scan again is the way to go indeed :slight_smile:

Regarding the “time for connection” on my end it’s not more than a couple of seconds with wpa_supplicant, but it was instantaneous with iwd.
I might check iwd at one point for “fun” ^^

1 Like