no wifi

Help setting up WiFi
Post Reply
PA5WIL
Posts: 23
Joined: Sun Apr 15, 2018 10:15 am

no wifi

Post by PA5WIL »

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
KN2TOD
Posts: 320
Joined: Sun Nov 11, 2018 6:36 pm

Re: no wifi

Post by KN2TOD »

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:

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
           :
YMMV. Let us know if this corrects your problem, please, and thank you.
PA5WIL
Posts: 23
Joined: Sun Apr 15, 2018 10:15 am

Re: no wifi

Post by PA5WIL »

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
PA5WIL
Posts: 23
Joined: Sun Apr 15, 2018 10:15 am

Re: no wifi

Post by PA5WIL »

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
KN2TOD
Posts: 320
Joined: Sun Nov 11, 2018 6:36 pm

Re: no wifi

Post by KN2TOD »

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:

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
If those commands were entered correctly and executed without errors, then, optionally, you can enter this to double check the change:

Code: Select all

cat /etc/rc.local
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.
PA5WIL
Posts: 23
Joined: Sun Apr 15, 2018 10:15 am

Re: no wifi

Post by PA5WIL »

Many thanx, wifi is working again.
Post Reply