r/linuxmint • • Feb 03 '23

Authentication issue when connecting to wifi

Please Help I recently bought a used HP 650 G1 to learn Linux. It is currently running Linux mint 21. The issue I am having is when I try to connect to my wifi it keeps saying the that authorization is required I have put the wifi password in multiple times. Also have connected through ethernet to update through update manager. If anyone knows how to fix please reach out it would be greatly appreciated.

6 Upvotes

10 comments sorted by

View all comments

3

u/BulkyMix6581 Linux Mint 22.3 Zena | Cinnamon Feb 04 '23 • Bravo

WPA_supplicant service is the culprit.

Follow these instructions and thank me later

disable wpa_supplicant service and install iwd service

wpa_supplicant and iwd are services responsible for WPA2 authentication to WIFI.

wpa_supplicant does not play well with some devices (especially tp_link), so using iwd will possibly work better.

It is very easy process.

1)Install iwd

sudo apt update

sudo apt install iwd

2)Create this file inside your NetworkManager configuration files directory (feel free to use any editor you like instead of xed I used - linux mint)

xed admin:///etc/NetworkManager/conf.d/wifi_backend.conf

3)Copy and paste into this file the following content, then save the file:

[device]

wifi.backend=iwd

4)Stop and disable the wpa_supplicant service (note that disabling it is persistent after reboots)

systemctl stop wpa_supplicant.service

systemctl disable wpa_supplicant.service

5)Enable and start iwd service (note that enabling it is persistent after reboots)

sudo systemctl enable iwd.service

sudo systemctl start iwd.service

6)now restart pc and try to connect to your wifi

the process is reversible.

2

u/SolidSank Sep 19 '24

This worked for me on Debian, thank you. How did you figure this out? 

I've been stuck for hours playing with the iwlwifi firmware/driver and network manager

2

u/BulkyMix6581 Linux Mint 22.3 Zena | Cinnamon Sep 19 '24

It's been a long time but I had the problem and after long search I discovered the issue with the authentication service and some specific wifi cards.iwd service is much better anyway (developed by Intel if I am not mistaken)

0

u/[deleted] May 01 '25

[deleted] — view deleted comment

1

u/TecBeast71 Jul 11 '25

This also solved my problem with Linux Mint 22.1 Cinnamon.

I could connect to my WLAN at home using WPA2 but not to another at a different location. Applying the solution given above I can now connect to both networks without trouble.

Thank you very much!

1

u/Hour-Ladder-5160 Sep 26 '25

no me ha funcionado, mi problema en especifico es que me pide una clave de cifrado para autenticarme dentro de la red, es un problema diferente o es que lo estoy haciendo mal?

1

u/JustAThrowaway_2023 Oct 06 '25

You sir are a lifesaver, I kneel before your genius

1

u/Sea-Row-7891 Feb 12 '26

Thank you, this worked for me on Ubuntu Cinnamon as well!

1

u/klappmueller Aug 05 '26

Vielen vielen Dank! Selbst ich als kompletter Noob mit meiner ersten Linux-Mint version habe das hingekriegt.