Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8609

Beginners • Re: Can not get wifi connection Pi 5 to OpenWRT router working

$
0
0
When adding the wpa_supplicant.conf file, did you write it with a text editor or a word processor.
This is a Pi5 per OP which requires Bookworm, and Bookworm does not use wpa_supplicant to configure WiFi networks.

On Bookworm, WiFi networks are configured using Network Manager, either via the GUI applets, or command line nmtui or nmcli.
When using nmtui, I can see both the 5G and 2.4G networks. Both with good signal strength.
I also did edit the 2.4G connection a few times to set the password again. But the 2.4G network just does not want to connect.

Note that some times the 2.4G network does not show up in the list of nmtui, while the 5G does. How can I refresh the list?
After reading through this thread it seems to me that It's time to have a deeper look into your wifi. Please post the output from the following commands. There shouldn't be any secrets leakage so please provide the complete output. For "<connection>" substitute the name of the connection you think should connect to the 2.4G network.

You can copy these lines of text to a file, change the protection to make it executable (chmod 755), and then run it from the command line.

If at all possible, please reboot the system before running the script.

These commands will produce a lot of output in the file diags.txt. Please post the contents of that file and PLEASE enclose it inside code tags ([ code ] and [ /code ], without the spaces), as it will be impossibly annoying to read if you don't use code tags. You can see the effect of code tags right here (the code below is enclosed in code tags), and you can see the effect on your own post before posting it by using the "Preview" button.

Code:

#!/bin/bashrm -f diags.txtprintf "\n** nmcli general status\n" >> diags.txtsudo nmcli general status | tee -a diags.txtprintf "\n** nmcli device status\n" >> diags.txtsudo nmcli device status | tee -a diags.txtprintf "\n** nmcli c show\n" >> diags.txtsudo nmcli c show | tee -a diags.txtprintf "\n** nmcli show connection <connection>\n" >> diags.txtsudo nmcli c show <connection> | grep 802-11 | tee -a diags.txtprintf "\n** nmcli device wifi list\n" >> diags.txtsudo nmcli device wifi list | tee -a diags.txtprintf "\n** nmcli device wifi rescan\n" >> diags.txtsudo nmcli device wifi rescan | tee -a diags.txtprintf "\n** nmcli device wifi list\n" >> diags.txtsudo nmcli device wifi list | tee -a diags.txtprintf "\n** nmcli c up <connection>\n" >> diags.txtsudo nmcli c up <connection>| tee -a diags.txtprintf "\n** journalctl -b -g wlan0\n\n" >> diags.txtjournalctl -b -g wlan0 | tee -a diags.txt

Statistics: Posted by bls — Thu Jul 03, 2025 1:44 pm



Viewing all articles
Browse latest Browse all 8609

Trending Articles