nordie92
Goto Top

Raspberry Pi 3: WLAN Power save deaktivieren

Moin moin,
mein Raspberry Pi 3 Model B benötigt eine dauerhaft aktive WLAN-Verbindung.
Leider bricht die WLAN-Verbindung nach einigen Minuten ohne Traffic ab.
Schuld scheint der Powersaving-Modus zu sein. Aber das abstellen des Powersavings gelingt mir nicht oder es handelt sich um ein anderes Problem.

Meine /etc/network/interfaces:
source-directory /etc/network/interfaces.d

allow-hotplug wlan0
iface wlan0 inet manual
    wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

#deactivate power saving
#wireless-power off (hat auch nicht geklappt)
post-up iw dev wlan0 set power_save off

Meine /etc/wpa_supplicant/wpa_supplicant.conf:
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=GB

network={
        ssid="###########"  
        psk="###########"  
}

Ich hoffe jemand kann mir helfen.
lg nordie92

Content-Key: 371783

Url: https://administrator.de/contentid/371783

Ausgedruckt am: 28.03.2024 um 13:03 Uhr

Mitglied: Cornitus
Cornitus 20.04.2018 um 13:58:35 Uhr
Goto Top
Hallo,

was passiert denn wenn du das an der Konsole eingibst:

iw wlan0 set power_save off

und dann den Status prüfst:

iw wlan0 get power_save

Welch Ausgabe bekommst du? Power save: off? Dann liegt es evtl. an etwas anderem.

Grüße
Mitglied: nordie92
nordie92 20.04.2018 aktualisiert um 14:03:35 Uhr
Goto Top
Auch ohne "iw wlan0 set power_save off" leider:
iw wlan0 get power_save
Power save: off
Mitglied: aqui
aqui 20.04.2018 aktualisiert um 14:34:55 Uhr
Goto Top
Ein sudo iw wlan0 set power_save off löst ertmal das Power Save Problem sofort.
Wie gesagt an der Konsole und das bleibt dann auch permanent.
Auf der Interface Dewfinition solltest du es dann nur mit wireless-power off eintragen !

Und noch ein gravierender Fehler !!
country=GB
Ist natürlich FALSCH. Wenigstens wenn du in D lebst, denn dann sollte da logischerweise country=DE stehen !

Hier rufst du mit raspi-config das Konfig Menü auf und stellt dort erstmal das WLAN Modul auf DE !
Ggf. auch die anderen Dinge wie Tastatur Layout und Zeitzone usw.
Die WLAN Länder Domain ist aber sehr wichtig, da es hier diverse Unterschiede gibt.
Weitere Tipps zur WLAN Konfig auch hier:
https://www.heise.de/ct/ausgabe/2017-22-Digitales-Flugblatt-Raspberry-Pi ...
Mitglied: Cornitus
Cornitus 20.04.2018 aktualisiert um 14:33:51 Uhr
Goto Top
Zitat von @aqui:

Ein sudo iw wlan0 set power_save off löst ertmal das Power Save Problem sofort.
Wie gesagt an der Konsole und das bleibt dann auch permanent.

Nein. Der Konsolenbefehl erlischt nach einem neustart und bleibt eben nicht permanent.

Daher ist auch noch das hier nötig:

Auf der Interface Dewfinition solltest du es dann nur mit wireless-power off eintragen !


Und noch ein gravierender Fehler !!
country=GB
Woher willst du das wissen? Hast du ne Glaskugel?

Ist natürlich FALSCH. Wenigstens wenn du in D lebst, denn dann sollte da logischerweise country=DE stehen !

Ist völlig unerheblich. Technisch funktioniert es auch mit GB als Country. Hast nur das Problem der Grenzwerte bzw. Kanäle. Gravierend ist das in jedem Fall eher nicht.


Grüße
Mitglied: aqui
aqui 20.04.2018 aktualisiert um 14:46:00 Uhr
Goto Top
und bleibt eben nicht permanent.
Sorry im Eifer des Gefechts übersehen, du hast recht, ist korrigiert.
Woher willst du das wissen? Hast du ne Glaskugel?
Yes, otherwise you should have opened this thread in a totally different language face-wink But sorry, maybe we have totally overseen that you are British. Apologises for that. This may happen on a Friday and even more if its hot like today !
Ist völlig unerheblich.
Nope ! Channel allowings are different in the UK !
Gravierend ist das in jedem Fall eher nicht.
Depends totally on your Client. If he scans the wrong channels you maybe sol. But overall you are right it should have nothing to do with a broken wlan connection after 15 minutes.
This shows most likely more the above discussed power saving issue or that you have probably misconfigured your AP with an SSID with special characters or used an WPA password with those or erraneously have enabled TKIP, no channel spacing in 4 hops to another neighbor APs or whatever.
This thread has the typical issues regarding this:
Seit WLAN Umstellung von Cisco WAP 200 auf Zyxel NWA3560-N schlechtere Verbindung
Besides this i can asure you that a RasPi 3 runs here without any issues 24 by 7 over a WLAN with those settings.
Nice and sunny weekend to the UK ! face-smile
Mitglied: Cornitus
Cornitus 20.04.2018 um 14:45:57 Uhr
Goto Top
Zitat von @aqui:

und bleibt eben nicht permanent.
Sorry im Eifer des Gefechts übersehen, du hast recht, ist korrigiert.
Woher willst du das wissen? Hast du ne Glaskugel?
Yes, otherwise you should have opened this thread in a totally different language face-wink But sorry, maybe we have totally overseen that you are British. Apologises for that. This may happen on a Friday and even more if its hot like today !
Ist völlig unerheblich.
Nope ! Channel allowings are different in the UK !
Gravierend ist das in jedem Fall eher nicht.
Depends totally on your Client. If he scans the wrong channels you maybe sol. But overall you are right it should have nothing to do with a broken wlan connection after 15 minutes.
This shows mabe more the above discussed power saving issue or that you have misconfigured the AP with an SSID with special characters or used an WPA password with those or erraneously have enabled TKIP or whatever.
This thread has the typical issues regarding this:
Seit WLAN Umstellung von Cisco WAP 200 auf Zyxel NWA3560-N schlechtere Verbindung
Besides this i can asure you that a RasPi 3 runns here without any issues 24 by 7 over a WLAN with those settings.
Nice and sunny weekend to the UK ! face-smile

Great! ;)
Mitglied: Cornitus
Cornitus 20.04.2018 aktualisiert um 14:55:11 Uhr
Goto Top
Zitat von @aqui:

Besides this i can asure you that a RasPi 3 runs here without any issues 24 by 7 over a WLAN with those settings.

Kann ich so ebenfalls bestätigen. Wo es aber teilweise Probleme geben soll, sind externe Sticks. Manche machen was Sie wollen und lassen es nicht zu der PowerSave abgeschaltet wird.

Welches OS hast du denn installiert?
Mitglied: nordie92
nordie92 20.04.2018 um 16:19:43 Uhr
Goto Top
Danke für die zahlreichen Antworten.

Zitat von @Cornitus:
Welches OS hast du denn installiert?

Raspbian GNU/Linux 9
Mitglied: nordie92
nordie92 20.04.2018 um 16:20:40 Uhr
Goto Top
Zitat von @aqui:
Und noch ein gravierender Fehler !!
country=GB
Ist natürlich FALSCH. Wenigstens wenn du in D lebst, denn dann sollte da logischerweise country=DE stehen !

Danke für den Hinweis, ich dachte das ist komplett irrelevant.
Mitglied: aqui
aqui 20.04.2018 um 18:04:30 Uhr
Goto Top
Wo es aber teilweise Probleme geben soll, sind externe Sticks
Hat sich ja mit dem RasPi 2B und 3 erledigt, denn die haben bekanntlich WLAN und Bluetooth gleich an Bord face-wink

Das WLAN Land ist nicht irrelevant. Leider gibt es auch innerhalb der EU sehr unterschiedliche Kanalnutzung und Beschränkungen. Will man nicht in solche Falle tappen sollte man das IMMER wenn irgend möglich auf sein Land anpassen !
Mitglied: nordie92
nordie92 20.04.2018 um 18:22:38 Uhr
Goto Top
Ich pinge jetzt minütlich 127.0.0.1 an, das scheint zu klappen. Schön ist das aber nicht.
Mitglied: aqui
aqui 20.04.2018 aktualisiert um 18:26:44 Uhr
Goto Top
Nee, das ist auch eine kranke Lösung und zeigt klar das du einen Fehler im Setup gemacht hast.

Hier klappt das sowohl mit einem RasPi 2+ als auch 3 fehlerlos !
Kannst du z.B. auch an einem Kodi Image sehen. Würde sich das WLAN da schlafen legen wäre das unbrauchbar...
Da musst du also nochmal in dich gehen und suchen. Auch wenn draußen die Sonne scheint !
Mitglied: nordie92
nordie92 21.04.2018 aktualisiert um 00:07:34 Uhr
Goto Top
Ich habe das Betriebssystem neu aufgesetzt, leider keine Besserung.
Außer Cronejobs(Pythonskrips) und ein Apache2 nichts weiter installiert.

Grüße
Mitglied: aqui
aqui 21.04.2018 um 10:21:28 Uhr
Goto Top
Mitglied: nordie92
nordie92 24.08.2018 aktualisiert um 01:38:28 Uhr
Goto Top
Moin moin,
frag mich nicht warum aber Problem gelöst!

Seitdem der Pi besser gekühlt ist tritt der Fehler nicht mehr auf. Vorher hat sich der Pi ab 60°C selbstständig neu gestartet, wobei sich das WLAN nicht wieder verbunden hat.
Warum dieser Fehler nicht auftritt wenn der Pi regelmäßigen Traffic zu verzeichnen hat verstehe ich jedoch nicht.

Trotzdem vielen Dank für die Hilfestellungen!
lg
Mitglied: aqui
aqui 24.08.2018 um 11:52:25 Uhr
Goto Top
Mitglied: nordie92
nordie92 19.10.2018 um 13:29:17 Uhr
Goto Top
Ich benötigte tatsächlich eine aktive Kühlung.
www.amazon.de/gp/product/B073QLMZJS/ref=oh_aui_detailpage_o02_s00?ie=UTF8&psc=1
Dieser Lüfter ist klein leise und kann direkt von der gpio schnittstelle versorgt werden face-smile