LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices


Reply
  Search this Thread
Old 09-29-2017, 12:28 PM   #1
zorro_kwh
Member
 
Registered: May 2007
Posts: 43

Rep: Reputation: 0
Question Raspberrypi 3 Looses wlan0 after sometime


I am Running a raspberrypi 3 as a small Squid Proxy. but from time to time I need to log in and need to restart the wlan0 interface. The raspberrypi lost its network connection. I cannot reach the box using ping or ssh.

Network configuration /etc/network/interfaces
Code:
auto lo
iface lo inet loopback

iface eth0 inet static
    address 192.168.0.14
    netmask 255.255.255.0
    gateway 192.168.0.1
    dns-nameserver 192.168.0.1

auto wlan0
allow-hotplug wlan0
iface wlan0 inet static
    address 192.168.0.15
    netmask 255.255.255.0
    gateway 192.168.0.1
    dns-nameserver 192.168.0.1
    wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

pre-up iw dev wlan0 set power_save off
post-down iw dev wlan0 set power_save on

allow-hotplug wlan1
iface wlan1 inet manual
    wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
When I lost connection I need to log in directly and run the commands in a root shell
Code:
# ifdown wlan0
# ifup wlan0
To make it work again. How can I avoid this?

The interface is not allowed for power save.
 
Old 09-29-2017, 01:24 PM   #2
linux-sys-adm
LQ Newbie
 
Registered: Oct 2012
Distribution: Debian
Posts: 21

Rep: Reputation: Disabled
I had this problem a year ago. It was faulty hardware. The USB dongle. I switched to a different brand and issue disappeared.
 
Old 09-29-2017, 05:26 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Is this the on-board wifi ?. I run mine 24x7 as router/gateway, never noticed an issue, but I have a small UPS in front of it.
 
Old 09-30-2017, 01:46 AM   #4
zorro_kwh
Member
 
Registered: May 2007
Posts: 43

Original Poster
Rep: Reputation: 0
Onboard wifi

It is the onboard wifi. Because I want to have a fix adress I use a static configuration. Before I had an dhcp configuration. But I had this with dhcp too. So I tried static. Then I have googled to turnoff power save. But even with power save off I have the problem from time to time. I checked power save off with
Code:
iw wlan0 get power_save
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Raspberrypi : [Jessie] Can log out davidj Debian 4 01-01-2016 01:01 AM
slackpkg and SlackwareARM on RaspberryPI andrixnet Slackware - ARM 12 12-23-2014 10:00 AM
remote desktop to Raspberrypi boloo Linux - Newbie 3 11-05-2014 06:22 AM
RaspberryPi: Cannot get raspbian distros to work right smeezekitty Linux - Embedded & Single-board computer 6 01-07-2014 03:34 PM
Broadcom wireless with ndiswrapper: ifconfig wlan0 works; ifup wlan0 fails orangechicken Linux - Wireless Networking 2 04-17-2004 05:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 10:08 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration