Posts: 1,980
Threads: 45
Joined: Mar 2020
Reputation:
93
I've got an Rpi4 on moode 7 in a wireless config that's been running for weeks and I've never noticed the LAN turning off even after 24 hours of inactivity. Is this only when you are using the Access Point?
----------------
Robert
Posts: 15
Threads: 3
Joined: Apr 2018
Reputation:
0
I'm using wifi only connexion (not wifi dongle but the integrated one), to be more precise it is the B version of the Rpi 4. After some hours (I can't tell exactly how many, but more than 24 I would say), the web interface become not accessible so I should use Ethernet connexion to have again access to the interface. I'm not using Rpi as access point but only connected to my home wifi network.
Posts: 6,203
Threads: 184
Joined: Apr 2018
Reputation:
249
And to be clear, turning off power management solved your issue?
Looking at the github repo for Raspberry Pi OS I see that the brcmfmac.c module (which drives the Broadcom WiFi chip) has had a patch to disable power management applied and removed a number of times in the past year or so. They can't seem to make up their minds.
What I couldn't find was a good explanation of how WiFi power management works---what triggers it and why---or of how it interferes with proper operation of the RPi3B (which is why the patch was introduced in the first place).
It occurs to me that going into sleep mode may depend on external factors such as the make/model of access point being used, whether static IP or DHCP is being used, etc. Not an easy problem to characterize.
Turning power management off seems to do no harm other that costing 55ma or so on an RPi4B when the interface is idle, and it used to be turned off by default. I guess I'd just leave it off.
Regards,
Kent
Posts: 13,995
Threads: 318
Joined: Mar 2018
Reputation:
570
Looks like something may have changed in RaspiOS or the kernel cos power save used to be automatically set to disabled during boot.
I'll add "/sbin/iwconfig wlan0 power off" to startup but better to have it run from worker.php which can log the event Also any command in rc.local that generates an error usually causes rc.local to bomb.
Posts: 19
Threads: 1
Joined: May 2020
Reputation:
0
I've also been experiencing the RPi4 going to sleep since upgrading recently. A search for a cure led me to this thread.
Posts: 47
Threads: 6
Joined: Jan 2021
Reputation:
2
I'm using Pi 4 Model B, and when I query power_save, as per first post in this thread, the response is Power save: on.
I think that a default of OFF would be better, with an option to set ON.
I noticed this when trying to access the Pi after a couple of days without using it - can't be sure of exactly how long.
Regards,
Geoff
Posts: 13,995
Threads: 318
Joined: Mar 2018
Reputation:
570
It's defaulted to off in upcoming 7.1.0.