{"id":10233,"date":"2020-06-04T16:16:03","date_gmt":"2020-06-04T16:16:03","guid":{"rendered":"http:\/\/ubuntuhandbook.org\/?p=10233"},"modified":"2020-06-04T16:16:03","modified_gmt":"2020-06-04T16:16:03","slug":"wifi-not-working-vpn-disconnected","status":"publish","type":"post","link":"https:\/\/ubuntuhandbook.org\/index.php\/2020\/06\/wifi-not-working-vpn-disconnected\/","title":{"rendered":"Fix WiFi Not Working After VPN Disconnected in Ubuntu"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/06\/networkicon.png\" alt=\"\" width=\"250\" height=\"250\" class=\"aligncenter size-full wp-image-10234\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/06\/networkicon.png 250w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/06\/networkicon-150x150.png 150w\" sizes=\"auto, (max-width: 250px) 100vw, 250px\" \/><\/p>\n<p>Sometimes after disconnected from a VPN network in Ubuntu 20.04, wireless does no longer work and even shows &#8216;No Adapter Found&#8217; in the settings. If you have the same problem, this tutorial may help.<\/p>\n<p><b>Without restarting<\/b> your computer, you can try following steps to make the wireless work again.<\/p>\n<p><b>1.) Restart Wifi network via system menu.<\/b><\/p>\n<p>Try turn off wireless network from system tray menu, and turn it on again.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/06\/turnoff-wifi.jpg\" alt=\"\" width=\"450\" height=\"300\" class=\"aligncenter size-full wp-image-10235\" \/><\/p>\n<p>This works in the case when I disconnected from PPTP VPN server.<\/p>\n<p><b>2.) Restart Wifi network via nmcli.<\/b><\/p>\n<p>The previous step may not work sometimes. If so, try running commands in terminal (<b>Ctrl+Alt+T<\/b>) to restart networking:<\/p>\n<pre style=\"border:none;\">nmcli networking off \r\n\r\nnmcli networking on<\/pre>\n<p>And this works in the case when I disconnected from a ExpressVPN server.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/06\/nmcli-toggle-600x110.jpg\" alt=\"\" width=\"600\" height=\"110\" class=\"aligncenter size-large wp-image-10236\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/06\/nmcli-toggle-600x110.jpg 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/06\/nmcli-toggle-450x82.jpg 450w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/06\/nmcli-toggle.jpg 716w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p><b>3.) Restart Wireless interface via ifconfig<\/b><\/p>\n<p>You may also run following 2 commands to restart the wireless network:<\/p>\n<pre style=\"border:none;\">sudo ifconfig wlo1 down\r\n\r\nsudo ifconfig wlo1 up<\/pre>\n<p>NOTE you need to replace <b>wlo1<\/b> to your wifi network name (usually <b>wlan0<\/b>). Check it via <code>ifconfig<\/code> command.<\/p>\n<p><b>4.) If none of the previous steps works, you may try to reload the wireless kernel module.<\/b><\/p>\n<p>Open terminal (Ctrl+Alt+T) from system application menu and run command to check your wireless driver:<\/p>\n<pre style=\"border:none;\">sudo lshw -C network 2>&1 | grep wireless | grep driver<\/pre>\n<p>As the picture shows, it&#8217;s <b>rtw_pci<\/b> in my case.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/06\/wireless-module.png\" alt=\"\" width=\"600\" height=\"138\" class=\"aligncenter size-full wp-image-10237\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/06\/wireless-module.png 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/06\/wireless-module-450x104.png 450w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p>Then run command to reload the kernel module:<\/p>\n<pre style=\"border:none;\">sudo modprobe -r MODULE_NAME && sudo modprobe MODULE_NAME<\/pre>\n<p>In my case the command is (<code>rtwpci<\/code> did work though it should be <code>rtw_pci<\/code>):<\/p>\n<pre style=\"border:none;\">sudo modprobe -r rtwpci && sudo modprobe rtwpci<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/06\/reload-kernel-driver.png\" alt=\"\" width=\"600\" height=\"110\" class=\"aligncenter size-full wp-image-10238\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/06\/reload-kernel-driver.png 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/06\/reload-kernel-driver-450x83.png 450w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>","protected":false},"excerpt":{"rendered":"<p>Sometimes after disconnected from a VPN network in Ubuntu 20.04, wireless does no longer work and even shows &#8216;No Adapter Found&#8217; in the settings. If you have the same problem, this tutorial may help. Without restarting your computer, you can try following steps to make the wireless work again. 1.) Restart Wifi network via system [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[1921],"class_list":["post-10233","post","type-post","status-publish","format-standard","hentry","category-howtos","tag-restart-wireless-network"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/10233","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/comments?post=10233"}],"version-history":[{"count":0,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/10233\/revisions"}],"wp:attachment":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media?parent=10233"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/categories?post=10233"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/tags?post=10233"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}