8

I'm facing a similar issue to this one, How do I disable suspend mode?, except I have a Raspberry Pi 3 and am running OpenELEC 6.0.3. When I leave it on without using it for awhile, I can no longer ssh to it or connect to it via samba. I have to use it use again and then I'm able to connect to it (although occasionally I have to reboot in order to be able to ssh to it for some reason).

Is the wifi going into sleep mode when there is no traffic? How can I disable it on the Pi 3?

  • Have you checked in the settings for something which gives you control over how long the Pi stays awake before going to sleep? – Darth Vader May 9 '16 at 15:59
  • 1
    @DarthVader Yes I have and there are no power settings in OpenELEC – OpenUserX03 May 9 '16 at 20:46
10

To stop your wifi from go to sleep after idle for awhile, you need to disable its power management.

Edit file /etc/network/interfaces

Assume you Pi connect to network through wlan0. Add new line with wireless-power off right BELOW the line iface wlan0 inet manual

Save and reboot your Pi

run iwconfig now you should see Power Management:off

  • There is no /etc/network/interfaces nor iwconfig in OpenELEC though... – OpenUserX03 May 9 '16 at 20:40
  • F.Y.I about OpenELEC, power saving has been disabled in the brcmfmac driver with RPi 4.4.5 linux kernel. You should use builds come with that kernel version – Huy.PhamNhu May 10 '16 at 1:32
  • 1
    Another user suggested in an edit (rejected) that "right above the line" here should be "right below the line". – goldilocks Jun 5 '16 at 16:20
  • 1
    @goldilocks: You're right! Writing the added command above the line as suggested by Huy.PhamNhu actually BREAKS Wi-Fi. His tip is correct in substance, but the command should be written BELOW the line. Not happy with such a casualness because I currently not have a mouse nor keyboard to fix the issue, and both my SSH and VNC accesses to my pi3 from my laptop are now broken :( – user54484 Oct 4 '16 at 11:36
  • 1
    On Raspbian Stretch, there is no line "iface wlan0 inet manual" in the config file. If I add the option to the end and reboot, power management is still on. I used the command "iw wlan0 set power_save off" instead. – TSGames Jun 23 '18 at 18:00
0

Octopi going to sleep fix.

The following did the trick for Octopi print server:

added the wireless-power off into the ipconfig.txt file since this file is called by the file at: /etc/network/interfaces

No more sleeping octopi server!

Dana

  • Welcome -- but this is not a direct answer to the question. Although it might be implied that the same answer will work generally, it's not clear that is the case. And please take the tour to understand better how the site works ;) – goldilocks Nov 18 '17 at 18:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.