Ubuntu server reconnect wifi

WiFi randomly disconnected on Ubuntu 18.04 LTS

I installed Ubuntu 18.04 LTS in this week and now I have a problem with wifi connection. The WiFi connection auto disconnected every 5 — 10 minutes but wifi signal is still fine.
I did a search, found some answers for older versions of Ubuntu and tried it but the problem was not resolved.
Here is my wireless adapter information:

description: Wireless interface product: QCA9565 / AR9565 Wireless Network Adapter vendor: Qualcomm Atheros physical id: 0 bus info: pci@0000:02:00.0 logical name: wlp2s0 version: 01 serial: a4:db:30:03:32:8c width: 64 bits clock: 33MHz capabilities: pm msi pciexpress bus_master cap_list rom ethernet physical wireless configuration: broadcast=yes driver=ath9k driverversion=4.15.0-20-generic firmware=N/A ip=10.0.138.105 latency=0 link=yes multicast=yes wireless=IEEE 802.11 resources: irq:18 memory:f0600000-f067ffff memory:f0680000-f068ffff 

You can get more information by running journalctl —follow in a terminal window. Then, when your WiFi drops, look at the messages.

Read man journalctl . The —follow option is documented as Show only the most recent journal entries, and continuously print new entries as they are appended to the journal

Which suggestions did you try that did not work? Were there any error messages you received that you can include in your question?

@Emily The first option I tried is to install resolvconf package, add nameserver 8.8.8.8 to /etc/resolvconf/resolv.conf.d/tail file and regenerate /etc/resolv.conf file using sudo resolvconf -u command. The second one is to edit /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf file and change wifi.powersave = 3 to wifi.powersave = 0 .

Источник

Automatically reconnect wireless connection

The wireless connection in my house unfortunately often disappears, requiring a wireless router reboot. Making this worse is that my ubuntu media pc, does not automatically reconnect to the wireless network when it’s been gone, and then comes up about a minute later. The network in question is setup as «connect automatically» in the network settings. If I manually select my wireless network, using the wireless icon in the topright of my screen, everything works fine, until the next time that wireless goes down. I’m looking for a way so I don’t have to remember to do this manually all the time.

Читайте также:  Wi fi 360 rotek rx 22200

I have the exact same problem. I’d be satisfied with a solution that used, e.g. a cron script every 5 minutes asking for Network Manager to reconnect, if it’s not connected already.

8 Answers 8

This seems to be posted all over the net with no good solutions. I guess the best fix/workaround is to make it check for internet connectivity and if it is not there then reconnect. I did this via a ping test to google.com and then I simply made it restart networking. Code is not tested (the restart part and the cron part, if statement tested), so I’ll just wait for it to disconnect at some point. I have an Ubuntu Server 12.10, so no GUI, and is a pain to connect monitor and keyboard every time the wireless stuffs up.

Cron part done via webmin so Idk much about it. Script is as follows:

# edited by dim_voly for networking restart on no pingback every 5 mins #!/bin/bash # Name of File: networkingCron # Purpose: to check if the internet is up (via ping test to google) and if not, restart networking service # this script is invoked via cron, ideally every 5 mins. #check if there is internet via ping test if ! [ "`ping -c 1 google.com`" ]; then #if ping exits nonzero. sudo service networking restart #restart the whole thing echo Networking service restarted due to no ping response from google.com fi echo Script 'networkingCron' completed, if no message above then there was no network restart. # dunno how to restart the wifi only since that is the only active connection that server uses. # also I don't think those echos go anywhere 

Make sure to run as root and make sure the script has execute (u+x) permissions.

Источник

WIFI auto reconnect Ubuntu 16.04

Firstly its worth mentioning that i’ve trawled the Internet and tried over 15 different ways to fix this already, many of them from this website. I have a rather unstable WIFI connection (which unfortunately I cannot change). I run a server from my ubuntu 16.04 box, and I need to find a method which automatically reconnects it to the WIFI when it disconnects, and never stops trying to do so on disconnect. Are there any new scripts, programs or ideas in 2016 to do this? Thanks

I believe it tries to reconnect every 2 minutes. My syslog used to be spammed with searching for new AP message every 2 minutes even when already connected and the neighbour’s APs had on profile setup anyway. I had to go through some hops to make the spam disappear.

Читайте также:  Подключить каналы через вайфай

Do you mean that you cannot change the settings in the router or access point, or do you mean that you have tried every setting available at the driver and it doesn’t change the instability? Power saving? 11n disable? Updated firmware? Etc., etc.?

I don’t have access to the WIFI router sadly. It prompts for password confirmation when it disconnects annoyingly, if I could just get it to continue forever without prompting for password it would resolve the situation..

Do you mean that the router has some web-based password access, such as at a retail store, or that the router prompts for the password to connect to the SSID?

@WinEunuuchs2Unix On my laptop (Ubuntu 16.04), as well as on my Desktop (Ubuntu 17.04), when my wifi connection is dropped, it shows a messagebox asking me to input my password again, and it’s useless to click on the connect button on that box since it doesn’t connect. I have to click on the networking icon in the taskbar and select my network from the available networks for it to connect (and it doesn’t even ask for a password when reconnecting that way). Something is wrong in that department.

Источник

Debian, Ubuntu et al.

A blog about Linux, Debian, Ubuntu, Raspberry Pi and Python.

Search This Blog

Automatically Reconnect WIFI (Debian, Ubuntu etc.)

The Problem

For several reason I do not have access to LAN and thus have to rely on WIFI for my mining rigs. It is fine for most of the time, but the shit hits the fan, when the connection drops for one reason or another.

wlan=`/sbin/ifconfig wlan1 | grep inet\ addr | wc -l`
if [ $wlan -eq 0 ]; then
service network-manager restart
else
echo WIFI IS UP
fi

Note: It’s either wlan0 or wlan1. Check with sudo ifconfig.

Save the script and make it executable.

Now there are several ways of making sure that our script is being executed every x minutes. The easiest way of accomplishing that I think is by using the command watch.

Or you implement a so called cron job

Add the following

  • Get link
  • Facebook
  • Twitter
  • Pinterest
  • Email
  • Other Apps

Labels

  • Get link
  • Facebook
  • Twitter
  • Pinterest
  • Email
  • Other Apps

Comments

Post a Comment

This is a list of working deep web links. To access the deep web you will need TOR. Either you can use the TOR Browser bundle or a more secure «version» of TOR to avoid being tracked online . The list below is for educational/research purposes only. Consider leaving a comment. No CP. Thank you!

  • Get link
  • Facebook
  • Twitter
  • Pinterest
  • Email
  • Other Apps
Читайте также:  Wifi адаптер haier кондиционер

How to unblock Kickass Torrents

KickassTorrents was founded in 2008 and is the most popular torrent directory in the world. Since March 2013, major UK ISPs are blocking the website. Also, Google Chrome started blocking the website in 2015 due to «unsafe» content. How to bypass the blocking Fortunately it is rather easy to get around this barrier. In March 2016 Kickass made it possible for users to access the website on the TOR network, which is an anonymous network that makes it hard for your ISP to block content. KickassTorrents can now be accessed via lsuzvpko6w6hzpnn.onion on the TOR network. The link will not work with your «normal» web-browser. What you need is the so-called Tor Browser. STEP 1: Download Tor Browser Go to the Torproject homepage and download Tor browser for your operating system. STEP 2: Open Tor Browser And put the KickasTorrents .onion link ( lsuzvpko6w6hzpnn.onion ) in the address bar. DONE! You have now unblocked Kickass Torrents regardless whether y

  • Get link
  • Facebook
  • Twitter
  • Pinterest
  • Email
  • Other Apps

Post-Install Tips & Tricks for Ubuntu 16.04

1. Install Media Codecs Due to legal issues Ubuntu does not come with media codecs pre-installed, which are needed to play most audio and video formats. Installing the required codecs is straightforward: sudo apt-get install ubuntu-restricted-extras 1.1 Install unrestricted version of libavcodec sudo apt-get install libavcodec-extra 2. Install Java Most likely you will only require the Java browser plugin and OpenJRE. sudo apt install icedtea-8-plugin openjdk-8-jre 3. Adobe Flash on Ubuntu Unfortunately Flash is still needed for many web applications. sudo apt-get install flashplugin-installer Alternatively you can use chromium (recommended!). sudo apt-get install chromium-browser chromium-browser-l10n chromium-codecs-ffmpeg 4. Install Linux Graphics Drivers AMD users will experience a drop in performance because the AMD driver is not supported as of now (June 2016) in Ubuntu 16.04. So think twice before upgrading if you are playing games or performing GPU-inte

  • Get link
  • Facebook
  • Twitter
  • Pinterest
  • Email
  • Other Apps

Источник

Оцените статью
Adblock
detector