is it possible dat my raspberry pi 5 is broken? It works fine for month's and than no wifi anymore, only with network cable I can connect.
Pi-Star scans no wifi network.
Welcome to Pi-Star: v4.3.0
Last login: Sat Nov 30 10:46:56 CET 2024 from 192.168.178.33 on pts/1
pi-star@pi-star(ro):~$ sudo iwlist wlan0 scan
wlan0 Interface doesn't support scanning : Network is down
no wifi
Re: no wifi
Are you running on a Pi5? Do you keep your HS up 24/7?
A subtle problem seems to have creep into recent Debian updates for Bookworm relating to Pi5's that results in the wifi (wlan0) being flagged as "blocked". The change appears to have occurred about a month or two ago, but if one had not cycled their HS, they would not have noticed.
Working with several HS's, I have found this change seems to fix/circumvent the problem. Try adding the following to the /etc/rc.local file:
YMMV. Let us know if this corrects your problem, please, and thank you.
A subtle problem seems to have creep into recent Debian updates for Bookworm relating to Pi5's that results in the wifi (wlan0) being flagged as "blocked". The change appears to have occurred about a month or two ago, but if one had not cycled their HS, they would not have noticed.
Working with several HS's, I have found this change seems to fix/circumvent the problem. Try adding the following to the /etc/rc.local file:
Code: Select all
:
# Disable WiFi Power Management
if ifconfig wlan0 >/dev/null 2>&1; then
/sbin/iwconfig wlan0 power off
fi
sudo rfkill unblock wlan 2>/dev/null # <-------
#sudo ifconfig wlan0 up 2>/dev/null # <-------
# Shuffle the time for the daily crontab jobs
:
Re: no wifi
I am on a pi 5. Power management is off. But the wlam0 is blocked. with rfkill unblock all wifi is working gain. But when I reboot wifi wlan0 is blocked again. PI5 is not 24/7 always on. I wil try this code if this solve the problem
Re: no wifi
i am not able to edit the file. I use filezilla. But after edit the file will not upload. The rights will also not change to read and write, when i change this in filezila
Re: no wifi
From the Pi-Star dashboard, follow the menu items: Configuration --> Expert --> SSH Access. At the prompt, enter your Pi-Star user name and password, then enter these commands:
If those commands were entered correctly and executed without errors, then, optionally, you can enter this to double check the change:
If that looks good, type "exit" to close the SSH access, then reboot.
You should be good to go thereafter.
Note: FileZilla is not an appropriate tool in this case, because, as you've undoubtedly found out, the read/write status of the system and the limited access permissions make this route for file editting much, much more involved.
Code: Select all
rpi-rw
sudo sed -i 's/\/usr\/local\/sbin\/pistar-motdgen/&\n\nsudo rfkill unblock wlan 2>\/dev\/nul/g' /etc/rc.local
Code: Select all
cat /etc/rc.local
You should be good to go thereafter.
Note: FileZilla is not an appropriate tool in this case, because, as you've undoubtedly found out, the read/write status of the system and the limited access permissions make this route for file editting much, much more involved.
Re: no wifi
Many thanx, wifi is working again.