NetworkManager connection issues, "no password given"

I have major wifi issues that currently make it nonfunctional.

I am using Kinoite 40, and had issues where the KDE menu didnt show any wifi networks, I am not sure but think to remember that nmcli also didnt show any.

Then I tried a couple of methods to restore Wifi functionality.

sudo nmcli networking off
sudo rfkill unblock all
sudo systemctl restart --now NetworkManager
sudo nmcli networking on

sudo ip link show
sudo ip link set wlp48s0 down
sudo ip link set wlp48s0 up

sudo ip link set wlan0 down
sudo ip link set wlan0 up

After doing that once, every wifi network showed up as SSID (wlan0) and I needed to enter the password and save it again.

This still happens.

And then some times, I tried to connect with such a SSID (wlan0) network getting an error “no password was given” which is not correct, as it is normally saved with KWallet and the correct password.

My current infos:

sudo ip link show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: enp47s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN mode DEFAULT group default qlen 1000
    link/ether 80:fa:5b:88:be:79 brd ff:ff:ff:ff:ff:ff
5: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DORMANT group default qlen 1000
    link/ether b0:a4:60:ff:48:df brd ff:ff:ff:ff:ff:ff
    altname wlp48s0
24: wg0-mullvad: <POINTOPOINT,UP,LOWER_UP> mtu 1380 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    link/none 
nmcli networking connectivity
full
IN-USE  BSSID              SSID              MODE   CHAN  RATE       SIGNAL  BARS  SECURITY 
*       40:75:C3:19:DF:18  SSID              Infra  6     65 Mbit/s  60      â–‚â–„â–†_  WPA2  

I want to find a possible cause for those 2 issues and revert it back to normal.

If that includes replacing networkmanager with iwd, which is supposed to be better, that is also fine.

I just want to fix my KDE Network settings :cry:

thanks!

Try saving the PSK in the connection profile:

nmcli connection show
nmcli connection modify "${CONNECTION}" \
    wifi-sec.psk-flags "0" \
    wifi-sec.psk "${WIFI_PSK}"
nmcli connection up "${CONNECTION}"
2 Likes

Thanks! So I will do this:

CONNECTION="SSID-of-my-Wifi-network"

nmcli connection modify "${CONNECTION}" \
    wifi-sec.psk-flags "0" \
    wifi-sec.psk "PASSWORD"
nmcli connection up "${CONNECTION}"

Now logging in here works… strange.

Is this an issue with my password store, i.e. KWallet? Or something just in NetworkManager using hashed keys?

WARNING: This workaround will store the wifi password in plain text, which is easily exploitable

Try reproducing the problem from a new user.
If you want to use the password manager, read about psk-flags:
nm-settings-nmcli: NetworkManager Reference Manual

1 Like

Yes I tried on a vanilla profile, different network where I just entered the password, same happened there.

The password is stored there in plain text

so, update

I cannot reproduce this on another device running Kinoite 41.

I changed all wifi passwords to “all users, unencrypted”, and it still doesnt work.

My workaround literally is to turn it off and on again a few times. On first login it never works and wifis also dont autoconnect.

sudo ip link set wlp48s0 down
sudo ip link set wlp48s0 up

sudo ip link set wlan0 down
sudo ip link set wlan0 up

sudo nmcli networking off && sudo rfkill unblock all && sudo systemctl restart --now NetworkManager && sudo nmcli networking on

This fixes it for some reason

I’m trying to follow your description and no longer sure if it’s a single issue or a combination of different ones, but you can try to disable power saving to better isolate the root cause:
How to keep internet connection connected without interruption - #4 by vgaetera

No it will not be anything power related. I tried on battery or on AC, tuned and ppd, different profiles

It always is the issue “no password was given”

Perhaps this is hardware specific, but Wi-Fi power saving remains enabled for me even on AC, so it’s worth checking the output:

iw dev wlan0 get power_save
1 Like

Interesting, yes powersave is on.

My wifi card is an Intel AX200 rev 1a wifi6

Added intel-wifi-card, power-management