![]() |
Wifi sleep - Printable Version +- Moode Forum (https://moodeaudio.org/forum) +-- Forum: moOde audio player (https://moodeaudio.org/forum/forumdisplay.php?fid=3) +--- Forum: Feature requests (https://moodeaudio.org/forum/forumdisplay.php?fid=8) +--- Thread: Wifi sleep (/showthread.php?tid=1091) |
Wifi sleep - Sandorra - 02-14-2019 Wifi only Raspberry zero W looses wifi connection after hours / days. iwconfig in terminal gives reply stating: Power Management:on So I did: sudo nano /etc/rc.local and added (just above exit 0): iwconfig wlan0 power off Saved, rebooted and now wifi is stable. I Think this should be standard behaviour or a setting in the web interface: disable wifi sleep. RE: Wifi sleep - Tim Curtis - 02-14-2019 Hi, Very odd. I've never seen WiFi "go to sleep" on my ZeroW. Does your WiFi connection drop while the UI is open or music is playing? Below is some data from the ZeroW which has been up for over 4 days continuously and no WiFi issues. Top part of System info Code: S Y S T E M P A R A M E T E R S From Network config screen Code: 192.168.1.172 - quality 81%, level -53 dBm RE: Wifi sleep - Sandorra - 02-14-2019 Only service used is AirPlay, no mpd, samba or other services keeping the wlan0 awake. The WiFi does nog log its state to syslog or Any other log i am aware off. Iwconfig is the only way to tell if power management is disabled or not. Confusing thing is that “wlan0 power on” is short for “wlan power management on”. And that means WiFi will be off after few Hours of netwerk inactivity. Statistics, now with uptime of 7 hours and counting: S Y S T E M P A R A M E T E R S Date and time = 2019-02-14 17:04:38 System uptime = up 7 hours, 42 minutes Timezone = Europe/Amsterdam Release = moOde 4.4 2018-12-09 Update = 2018-12-19 Host name = zolder ETH0 IP = unassigned ETH0 MAC = no adapter WLAN0 IP = 192.168.2.99 WLAN0 MAC = b8:27:eb:f5:68:e3 WiFi country = NL 192.168.2.99 - quality 96%, level -43 dBm RE: Wifi sleep - TheOldPresbyope - 02-14-2019 As of two years ago, power management of the onboard WiFi transceiver has been disabled in the kernel https://github.com/raspberrypi/firmware/commit/8b4e5482b52e6fb438dddc0d88ba0ba8d44af54b You can confirm this by looking at dmesg output Code: pi@moode45k2:~ $ dmesg|grep power In the words of @DougieWatson (he's one of the core RPi developers), https://www.raspberrypi.org/forums/viewtopic.php?t=194619#p1239465 Quote:For the RPF built-in Broadcom (aka Cypress) WiFi/BT there's no control for power management. It's disabled by the kernel and the only thing you're seeing is a bug in the iw / iwlist / iwconfig commands. Regards, Kent RE: Wifi sleep - DRONE7 - 02-14-2019 Quote:@DougieWatson (he's one of the core RPi developers)and here he is on walkabout contemplating wifi power management......oops ![]() https://www.google.com/imgres?imgurl=https%3A%2F%2Fc8.alamy.com%2Fcomp%2FGH5J1X%2Fqueen-elizabeth-ii-with-major-dougie-watson-royal-guard-commander-GH5J1X.jpg&imgrefurl=https%3A%2F%2Fwww.alamy.com%2Fstock-photo-queen-elizabeth-ii-with-major-dougie-watson-royal-guard-commander-113835286.html&docid=zm4hn0qEiCQsUM&tbnid=4C6DCYQjJW7DaM%3A&vet=10ahUKEwjo18rm6bvgAhXCeisKHVdgBpIQMwg7KAAwAA..i&w=1071&h=1390&client=ubuntu&bih=922&biw=1920&q=DougieWatson&ved=0ahUKEwjo18rm6bvgAhXCeisKHVdgBpIQMwg7KAAwAA&iact=mrc&uact=8 I think Kent means the acerbic @DougieLawson.... ![]() RE: Wifi sleep - TheOldPresbyope - 02-14-2019 (02-14-2019, 06:18 PM)DRONE7 Wrote:Quote:@DougieWatson (he's one of the core RPi developers)and here he is on walkabout contemplating wifi power management......oops ![]() Another sign of the dreaded Old-Timers disease, perhaps. RE: Wifi sleep - Tim Curtis - 02-14-2019 lol RE: Wifi sleep - DRONE7 - 02-15-2019 (02-14-2019, 06:18 PM)DRONE7 Wrote:Quote:@DougieWatson (he's one of the core RPi developers)and here he is on walkabout contemplating wifi power management......oops Yeah, strange as I thought "That's Liz he's talking to but I don't think it's our Liz Upton" ... ![]() RE: Wifi sleep - TheOldPresbyope - 02-15-2019 (02-15-2019, 06:45 AM)DRONE7 Wrote:(02-14-2019, 06:18 PM)DRONE7 Wrote:Quote:@DougieWatson (he's one of the core RPi developers)and here he is on walkabout contemplating wifi power management......oops In my defense, I knew a Dougie Watson at school more than half a century ago. That's why I think this curious event resulted from OTD (Old Timers Disease). My Dougie didn't look anything like the Fusillier, though, whereas Liz looks just like my mother-in-law, who knew nothing about WiFi power management ![]() Regards, Kent |