LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-22-2019, 05:41 PM   #1
Puffcio
LQ Newbie
 
Registered: Feb 2019
Posts: 2

Rep: Reputation: Disabled
Wifi issue


Hi All,

I have recently installed Linux Mint 19.1 so i am completely newbie in this topic.

Everything works great except of my wifi keeps disconnecting randomly. Once disconnected wifi is not finding any network and i am unable to change this unless i restart my machine.

My Laptop:
Code:
System:
  Host: krzysztof-K501UQ Kernel: 4.15.0-45-generic x86_64 bits: 64 
  compiler: gcc v: 7.3.0 Desktop: Cinnamon 4.0.9 
  Distro: Linux Mint 19.1 Tessa base: Ubuntu 18.04 bionic 
Machine:
  Type: Laptop System: ASUSTeK product: K501UQ v: 1.0 serial: <filter> 
  Mobo: ASUSTeK model: K501UQ v: 1.0 serial: <filter> 
  UEFI: American Megatrends v: K501UQ.202 date: 04/26/2016 
Battery:
  ID-1: BAT0 charge: 9.5 Wh condition: 27.7/48.3 Wh (57%) 
  model: ASUSTeK ASUS Battery status: Charging 
CPU:
  Topology: Dual Core model: Intel Core i7-6500U bits: 64 type: MT MCP 
  arch: Skylake rev: 3 L2 cache: 4096 KiB 
  flags: lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 20736 
  Speed: 500 MHz min/max: 400/3100 MHz Core speeds (MHz): 1: 500 2: 500 
  3: 500 4: 500 
Graphics:
  Device-1: Intel HD Graphics 520 vendor: ASUSTeK Skylake GT2 driver: i915 
  v: kernel bus ID: 00:02.0 
  Device-2: NVIDIA vendor: ASUSTeK driver: nvidia v: 390.77 bus ID: 01:00.0 
  Display: x11 server: X.Org 1.19.6 driver: modesetting,nvidia 
  unloaded: fbdev,nouveau,vesa resolution: 1920x1080~60Hz 
  OpenGL: renderer: GeForce 940MX/PCIe/SSE2 v: 4.6.0 NVIDIA 390.77 
  direct render: Yes 
Audio:
  Device-1: Intel Sunrise Point-LP HD Audio vendor: ASUSTeK 
  driver: snd_hda_intel v: kernel bus ID: 00:1f.3 
  Sound Server: ALSA v: k4.15.0-45-generic 
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet 
  vendor: ASUSTeK driver: r8169 v: 2.3LK-NAPI port: d000 bus ID: 02:00.0 
  IF: enp2s0 state: down mac: <filter> 
  Device-2: Intel Wireless 7265 driver: iwlwifi v: kernel port: d000 
  bus ID: 03:00.0 
  IF: wlp3s0 state: up mac: <filter> 
Drives:
  Local Storage: total: 1.38 TiB used: 19.79 GiB (1.4%) 
  ID-1: /dev/sda vendor: Toshiba model: MQ01ABD100 size: 931.51 GiB 
  ID-2: /dev/sdb vendor: SK Hynix model: HFS512G39MND-3510A size: 476.94 GiB 
RAID:
  Hardware-1: Intel 82801 Mobile SATA Controller [RAID mode] driver: ahci 
  v: 3.0 bus ID: 00:17.0 
Partition:
  ID-1: / size: 18.65 GiB used: 8.16 GiB (43.7%) fs: ext4 dev: /dev/sdb6 
  ID-2: /home size: 55.98 GiB used: 11.61 GiB (20.7%) fs: ext4 
  dev: /dev/sdb8 
  ID-3: swap-1 size: 3.81 GiB used: 0 KiB (0.0%) fs: swap dev: /dev/sdb7 
Sensors:
  System Temperatures: cpu: 59.0 C mobo: N/A gpu: nvidia temp: 57 C 
  Fan Speeds (RPM): cpu: 4700 
Info:
  Processes: 220 Uptime: 5m Memory: 11.60 GiB used: 1.40 GiB (12.1%) 
  Init: systemd runlevel: 5 Compilers: gcc: 7.3.0 Shell: bash v: 4.4.19 
  inxi: 3.0.27
Syslog:

Code:
Feb 19 00:14:21 krzysztof-K501UQ wpa_supplicant[847]: wlp3s0: CTRL-EVENT-DISCONNECTED bssid=84:47:65:e2:42:c1 reason=4 locally_generated=1
Feb 19 00:14:21 krzysztof-K501UQ NetworkManager[868]: <warn>  [1550535261.7035] sup-iface[0x5562de58b240,wlp3s0]: connection disconnected (reason -4)
Feb 19 00:14:21 krzysztof-K501UQ NetworkManager[868]: <info>  [1550535261.7284] device (wlp3s0): supplicant interface state: completed -> disconnected
Feb 19 00:14:21 krzysztof-K501UQ NetworkManager[868]: <info>  [1550535261.8099] device (wlp3s0): supplicant interface state: disconnected -> scanning
Feb 19 00:14:22 krzysztof-K501UQ dhclient[4259]: Internet Systems Consortium DHCP Client 4.3.5
Feb 19 00:14:22 krzysztof-K501UQ dhclient[4259]: Copyright 2004-2016 Internet Systems Consortium.
Feb 19 00:14:22 krzysztof-K501UQ dhclient[4259]: All rights reserved.
Feb 19 00:14:22 krzysztof-K501UQ dhclient[4259]: For info, please visit https://www.isc.org/software/dhcp/
Feb 19 00:14:22 krzysztof-K501UQ dhclient[4259]: 
Feb 19 00:14:22 krzysztof-K501UQ dhclient[4259]: Listening on LPF/wlp3s0/a4:02:b9:24:cf:16
Feb 19 00:14:22 krzysztof-K501UQ dhclient[4259]: Sending on   LPF/wlp3s0/a4:02:b9:24:cf:16
Feb 19 00:14:22 krzysztof-K501UQ dhclient[4259]: Sending on   Socket/fallback
Feb 19 00:14:22 krzysztof-K501UQ avahi-daemon[793]: Withdrawing address record for 192.168.1.2 on wlp3s0.
Feb 19 00:14:22 krzysztof-K501UQ avahi-daemon[793]: Leaving mDNS multicast group on interface wlp3s0.IPv4 with address 192.168.1.2.
Feb 19 00:14:22 krzysztof-K501UQ NetworkManager[868]: <info>  [1550535262.4249] manager: NetworkManager state is now CONNECTED_SITE
Feb 19 00:14:22 krzysztof-K501UQ avahi-daemon[793]: Interface wlp3s0.IPv4 no longer relevant for mDNS.
Feb 19 00:14:22 krzysztof-K501UQ dbus-daemon[801]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='dbus-org.freedesktop.nm-dispatcher.service' requested by ':1.9' (uid=0 pid=868 comm="/usr/sbin/NetworkManager --no-daemon " label="unconfined")
Feb 19 00:14:22 krzysztof-K501UQ systemd[1]: Starting Network Manager Script Dispatcher Service...
Feb 19 00:14:22 krzysztof-K501UQ dbus-daemon[801]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
Feb 19 00:14:22 krzysztof-K501UQ systemd[1]: Started Network Manager Script Dispatcher Service.
Feb 19 00:14:22 krzysztof-K501UQ avahi-daemon[793]: Interface wlp3s0.IPv6 no longer relevant for mDNS.
Feb 19 00:14:22 krzysztof-K501UQ avahi-daemon[793]: Leaving mDNS multicast group on interface wlp3s0.IPv6 with address fe80::a602:b9ff:fe24:cf16.
Feb 19 00:14:22 krzysztof-K501UQ avahi-daemon[793]: Withdrawing address record for fe80::a602:b9ff:fe24:cf16 on wlp3s0.
Feb 19 00:14:22 krzysztof-K501UQ dhclient[1480]: receive_packet failed on wlp3s0: Network is down
Feb 19 00:14:22 krzysztof-K501UQ nm-dispatcher: req:1 'connectivity-change': new request (1 scripts)
Feb 19 00:14:22 krzysztof-K501UQ nm-dispatcher: req:1 'connectivity-change': start running ordered scripts...
Feb 19 00:14:22 krzysztof-K501UQ NetworkManager[868]: <info>  [1550535262.4469] device (wlp3s0): supplicant interface state: scanning -> disabled
Feb 19 00:14:22 krzysztof-K501UQ kernel: [  831.107480] IPv6: ADDRCONF(NETDEV_UP): wlp3s0: link is not ready
Feb 19 00:14:22 krzysztof-K501UQ NetworkManager[868]: <info>  [1550535262.4526] device (wlp3s0): supplicant interface state: disabled -> scanning
Feb 19 00:14:22 krzysztof-K501UQ wpa_supplicant[847]: nl80211: deinit ifname=p2p-dev-wlp3s0 disabled_11b_rates=0
Feb 19 00:14:22 krzysztof-K501UQ dhclient[4291]: Internet Systems Consortium DHCP Client 4.3.5
Feb 19 00:14:22 krzysztof-K501UQ dhclient[4291]: Copyright 2004-2016 Internet Systems Consortium.
Feb 19 00:14:22 krzysztof-K501UQ dhclient[4291]: All rights reserved.
Feb 19 00:14:22 krzysztof-K501UQ dhclient[4291]: For info, please visit https://www.isc.org/software/dhcp/
Feb 19 00:14:22 krzysztof-K501UQ dhclient[4291]: 
Feb 19 00:14:22 krzysztof-K501UQ dhclient[4291]: Listening on LPF/enp2s0/34:97:f6:72:5e:65
Feb 19 00:14:22 krzysztof-K501UQ dhclient[4291]: Sending on   LPF/enp2s0/34:97:f6:72:5e:65
Feb 19 00:14:22 krzysztof-K501UQ dhclient[4291]: Sending on   Socket/fallback
Feb 19 00:14:22 krzysztof-K501UQ wpa_supplicant[847]: p2p-dev-wlp3s0: CTRL-EVENT-TERMINATING
Feb 19 00:14:22 krzysztof-K501UQ wpa_supplicant[847]: nl80211: deinit ifname=wlp3s0 disabled_11b_rates=0
Feb 19 00:14:22 krzysztof-K501UQ wpa_supplicant[847]: wlp3s0: CTRL-EVENT-TERMINATING
Feb 19 00:14:22 krzysztof-K501UQ NetworkManager[868]: <info>  [1550535262.7360] supplicant: wpa_supplicant stopped
Feb 19 00:14:22 krzysztof-K501UQ NetworkManager[868]: <info>  [1550535262.7362] device (wlp3s0): supplicant interface state: scanning -> down
Feb 19 00:14:22 krzysztof-K501UQ NetworkManager[868]: <info>  [1550535262.7367] device (wlp3s0): state change: activated -> unavailable (reason 'supplicant-failed', sys-iface-state: 'managed')
Feb 19 00:14:22 krzysztof-K501UQ NetworkManager[868]: <info>  [1550535262.7698] dhcp4 (wlp3s0): canceled DHCP transaction, DHCP client pid 1480
Feb 19 00:14:22 krzysztof-K501UQ NetworkManager[868]: <info>  [1550535262.7699] dhcp4 (wlp3s0): state changed bound -> done
Feb 19 00:14:22 krzysztof-K501UQ NetworkManager[868]: <info>  [1550535262.8084] manager: NetworkManager state is now CONNECTED_LOCAL
Feb 19 00:14:22 krzysztof-K501UQ NetworkManager[868]: <info>  [1550535262.8086] manager: NetworkManager state is now DISCONNECTED
Feb 19 00:14:22 krzysztof-K501UQ kernel: [  831.467866] r8169 0000:02:00.0 enp2s0: link down
Feb 19 00:14:22 krzysztof-K501UQ kernel: [  831.467933] IPv6: ADDRCONF(NETDEV_UP): enp2s0: link is not ready
Feb 19 00:14:22 krzysztof-K501UQ systemd[1]: Starting resolvconf-pull-resolved.service...
Feb 19 00:14:22 krzysztof-K501UQ NetworkManager[868]: <warn>  [1550535262.8136] sup-iface: failed to remove network: The name :1.4 was not provided by any .service files
Feb 19 00:14:22 krzysztof-K501UQ nm-dispatcher: req:2 'down' [wlp3s0]: new request (1 scripts)
Feb 19 00:14:22 krzysztof-K501UQ nm-dispatcher: req:2 'down' [wlp3s0]: start running ordered scripts...
Feb 19 00:14:22 krzysztof-K501UQ systemd[1]: Started resolvconf-pull-resolved.service.
Feb 19 00:14:23 krzysztof-K501UQ goa-daemon[1392]: goa_ews_client_autodiscover() failed: 2 — Error resolving “outlook.office365.com”: Name or service not known
Feb 19 00:14:23 krzysztof-K501UQ goa-daemon[1392]: goa_ews_client_autodiscover() failed: 2 — Error resolving “autodiscover.outlook.office365.com”: Name or service not known
Feb 19 00:14:23 krzysztof-K501UQ goa-daemon[1392]: /org/gnome/OnlineAccounts/Accounts/account_1548784306_1: Setting AttentionNeeded to TRUE because EnsureCredentials() failed with: Invalid password with username “krzysztof.puchalski@joules.com” (goa-error-quark, 0): Cannot resolve hostname (goa-error-quark, 4)
Feb 19 00:14:24 krzysztof-K501UQ goa-daemon[1392]: goa_ews_client_autodiscover() failed: 2 — Error resolving “outlook.office365.com”: Name or service not known
Feb 19 00:14:24 krzysztof-K501UQ goa-daemon[1392]: goa_ews_client_autodiscover() failed: 2 — Error resolving “autodiscover.outlook.office365.com”: Name or service not known
Feb 19 00:14:33 krzysztof-K501UQ NetworkManager[868]: <info>  [1550535273.2983] supplicant: wpa_supplicant die count reset
iwconfig
Code:
wlp3s0    IEEE 802.11  ESSID:"KoziolekMatolek"  
          Mode:Managed  Frequency:5.5 GHz  Access Point: 84:47:65:E2:42:C1   
          Bit Rate=866.7 Mb/s   Tx-Power=22 dBm   
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Power Management:off
          Link Quality=54/70  Signal level=-56 dBm  
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:45   Missed beacon:0

lo        no wireless extensions.

enp2s0    no wireless extensions.

[connection]
wifi.powersave = 3
Hope anyone can help me as i enjoy using Mint.

Regards
 
Old 02-22-2019, 09:58 PM   #2
Brains
Senior Member
 
Registered: Apr 2009
Distribution: All OS except Apple
Posts: 1,591

Rep: Reputation: 389Reputation: 389Reputation: 389Reputation: 389
Open up the terminal and run the command below to add a line in /etc/modprobe.d/iwlwifi.conf, it will add what's in between the brackets.
Code:
echo "options iwlwifi 11n_disable=8" | sudo tee -a /etc/modprobe.d/iwlwifi.conf
Reboot, if it's not working properly you may also need to disable power management for your wireless adapter, run the command below to open appropriate file in a text editor:
Code:
sudo xed /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf
Change the value of 3 to 2 ----> wifi.powersave = 2
Save the file and reboot.
The value of powersave field are:
Code:
NM_SETTING_WIRELESS_POWERSAVE_DEFAULT (0): use the default value
NM_SETTING_WIRELESS_POWERSAVE_IGNORE (1): don't touch existing setting
NM_SETTING_WIRELESS_POWERSAVE_DISABLE (2): disable powersave
NM_SETTING_WIRELESS_POWERSAVE_ENABLE (3): enable powersave
Look at menu item 7.4.3 of this article for explanation
 
Old 02-23-2019, 12:59 AM   #3
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
^ sounds reasonable.

anyhow, i noticed these lines in your syslog, seems to be what's happening:
Quote:
Originally Posted by Puffcio View Post
Code:
Feb 19 00:14:22 krzysztof-K501UQ NetworkManager[868]: <info>  [1550535262.7360] supplicant: wpa_supplicant stopped
Feb 19 00:14:22 krzysztof-K501UQ NetworkManager[868]: <info>  [1550535262.7362] device (wlp3s0): supplicant interface state: scanning -> down
Feb 19 00:14:22 krzysztof-K501UQ NetworkManager[868]: <info>  [1550535262.7367] device (wlp3s0): state change: activated -> unavailable (reason 'supplicant-failed', sys-iface-state: 'managed')
Feb 19 00:14:22 krzysztof-K501UQ NetworkManager[868]: <info>  [1550535262.7698] dhcp4 (wlp3s0): canceled DHCP transaction, DHCP client pid 1480
Feb 19 00:14:22 krzysztof-K501UQ NetworkManager[868]: <info>  [1550535262.7699] dhcp4 (wlp3s0): state changed bound -> done
Feb 19 00:14:22 krzysztof-K501UQ NetworkManager[868]: <info>  [1550535262.8084] manager: NetworkManager state is now CONNECTED_LOCAL
Feb 19 00:14:22 krzysztof-K501UQ NetworkManager[868]: <info>  [1550535262.8086] manager: NetworkManager state is now DISCONNECTED
 
Old 02-23-2019, 09:11 AM   #4
Puffcio
LQ Newbie
 
Registered: Feb 2019
Posts: 2

Original Poster
Rep: Reputation: Disabled
Thank you all,

I will try solution suggested by Brains and let you know soon if this has worked.

***Everything seems to workfine now, thank you***

Regards,

Last edited by Puffcio; 02-23-2019 at 03:22 PM. Reason: Update
 
Old 02-23-2019, 03:25 PM   #5
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
unstable driver can be the issue. Newer firmware might be available and solves the issue. Newer driver even, probably from a github source. Other quirks for drivers that don't yet have fixes, like disabling power-save modes.

Other possibilities like if you configure it on the CLI and there's a "manager" running, when it kicks in, it undoes what you did on the CLI. So stop that "manager" before you do a manual CLI configuration. Or actually use the manager to establish the connection. nmtui for network manager on some distros for the CLI option of that "manager". Or just wifi bridge through another device over ethernet.
 
Old 02-24-2019, 07:37 AM   #6
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by Puffcio View Post
***Everything seems to workfine now, thank you***
please mark your thread SOLVED.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Wifi option is there but no wifi scanning or wifi not working Aakash447 Linux - Newbie 3 06-28-2018 11:48 PM
Want to share my wifi by creating a wifi hotspot ( While staying connected to wifi)? shadyXV Linux - Desktop 4 07-20-2015 05:37 PM
WiFi Only Connects Using Shell, GUI Fails on Fiesty 7.04 / Dell 1350 WiFi Card pr0gr4mm3r Linux - Wireless Networking 1 07-10-2007 08:43 PM
Best WiFi PCI (or else) card in general for Linux and WiFi network experimentation? ICEMANII Linux - Wireless Networking 2 09-21-2006 04:50 PM
Ralink WIFI with Asus@Home WIFI wavemachine Linux - Hardware 0 10-20-2004 03:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:15 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