networking - Wifi disconnected after resume 16.04 - Other solutions don't work - Ask Ubuntu


i new ubuntu user , have far enjoyed it. however, spent around 3 hours yesterday trying wifi resume after laptop wakes sleep mode (it works if reboot). have scoured message boards , links on google purple 3 or 4 pages in every search result on matter. therefore, don't think question repeat.

i have

  • a dell inspiron 15
  • amd a6-6310
  • ubuntu a6-6310
  • my wireless card labeled (device) wlp3s0 (driver) ath9k

and have tried following:

i have put these config folder in /config.d

suspend_modules="$suspend_modules ath9k"  suspend_modules="ath9k" 

i have created executable files in /sleep.d such as:

 #!/bin/sh #tell network manager resume successful case "$1" in         thaw)        /usr/bin/nmcli nm sleep false       ;;  esac  #!/bin/sh  case "${1}" in  resume|thaw)  nmcli r wifi off && nmcli r wifi on ;; esac 

and many other variants thereof.

also, restarts networkmanager not connect wifi again:

sudo service network-manager restart 

there couple other things have tried can't remember commands nmcli d wifi on, or something. didnt work.

now, may wrong, think problem might lie in this:

sudo nmcli nm sleep false 

now, terminal not recognize "nm" , says:

sudo nmcli nm sleep false 

and when pull menu nmcli, nm in object list. feel might key problem. so, there haven't done should , there way "fix" "nm" problem? in advance!

edit: driver misbehavior on returning suspend problem i've run across several times several network interfaces across several operating systems. thing i've found effective across of these turn power management off wifi card. after reviewing adjustments made system resolve similar problem offer following resolution.

first make backup of existing default power management settings with:

sudo cp /etc/networkmanager/conf.d/default-wifi-powersave-on.conf /etc/networkmanager/conf.d/default-wifi-powersave-on.conf.bak 

next edit content turn power management wifi off entirely. gksu gedit /etc/networkmanager/conf.d/default-wifi-powersave-on.conf contains default value wifi.powersave = 3 enables power saving on wifi device. changing content of file to:

[connection] wifi.powersave = 0 

completing above , renaming interface wlan0 resolved issues under 16.04

once done you'll need reboot or issue command sudo systemctl restart networkmanager restart network manager

note: card not have atheros chip , identified follows:

*-network description: wireless interface product: rt2561/rt61 802.11g pci vendor: ralink corp. physical id: 1 bus info: pci@0000:04:01.0 logical name: wlan0 version: 00 serial: 00:1a:ef:03:00:aa width: 32 bits clock: 33mhz capabilities: pm bus_master cap_list ethernet physical wireless

alternatives may work others similar problem are:

put bash script below in /etc/pm/sleep.d folder name 99_wifiup.

note: 99_ needed 99 highest number in folder ensure runs last.

you'll need insure script has execute permissions , you'll need superuser (sudo) permissions write file there. once in place every time come out of suspend run.

#!/bin/bash  case "$1" in suspend | hibernate) # executed on suspend ;; resume | thaw) # executed on resume /usr/sbin/rfkill block /usr/sbin/rfkill unblock /sbin/iwlist wlan0 scan ;; *) ;; esac  

if doesn't work should worth exploring modifying script issue commands nmcli networking off on suspend , nmcli networking on on thaw.

if none of these solutions work , notice other anomalies may have faulty wifi adapter or perhaps this bug has been resurrected.

sources:

modified /etc/networkmanager/conf.d/default-wifi-powersave-on.conf , /etc/udev/rules.d/70-persistent-net.rules on 1 of systems.

mickeypop post #9 https://ubuntuforums.org/showthread.php?t=2321399

man nmcli

https://gist.github.com/jcberthon/ea8cfe278998968ba7c5a95344bc8b55


Comments

Popular posts from this blog

download - Firefox cannot save files (most of the time), how to solve? - Super User

windows - "-2146893807 NTE_NOT_FOUND" when repair certificate store - Super User

sql server - "Configuration file does not exist", Event ID 274 - Super User