LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-24-2017, 10:37 PM   #1
tamalguha
LQ Newbie
 
Registered: Mar 2017
Location: India
Distribution: Ubuntu
Posts: 3

Rep: Reputation: Disabled
Problems with WiFi connectivity


Hello,

I am a completely new Linux user and I am not sure if this is the right forum to post this issue. But I hope I am doing this correctly.

My issue is that ever since I installed Ubuntu 16.10, my WiFi connection is not stable. Every few minutes, pages will stop loading and I have to manually disconnect and reconnect to get them working again.

Any leads or help will be appreciated.

My Wireless adapter details are as follows.

*-network
description: Wireless interface
product: RT5390 [802.11 b/g/n 1T1R G-band PCI Express Single Chip]
vendor: Ralink corp.
physical id: 0
bus info: pci@0000:0d:00.0
logical name: wlo1
version: 00
serial: 90:00:4e:65:74:7e
width: 32 bits
clock: 33MHz
capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
configuration: broadcast=yes driver=rt2800pci driverversion=4.8.0-41-generic firmware=0.40 ip=192.168.0.2 latency=0 link=yes multicast=yes wireless=IEEE 802.11
resources: irq:17 memory:c4500000-c450ffff



Regards
 
Old 03-25-2017, 12:01 AM   #2
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,231

Rep: Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006
Your wifi hardware could well be relevant here. For example, sometimes it's driver power management at play.

Network PCI (class 02) hardware chipset and driver info can be got by filtering the lspci output like this
Code:
/sbin/lspci -nnk|grep '\[02' -A3
Report back with the results
 
Old 03-25-2017, 12:08 AM   #3
tamalguha
LQ Newbie
 
Registered: Mar 2017
Location: India
Distribution: Ubuntu
Posts: 3

Original Poster
Rep: Reputation: Disabled
I think this is the info you are looking for

07:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 06)
DeviceName: Realtek Lan Controller
Subsystem: Hewlett-Packard Company RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [103c:1656]
Kernel driver in use: r8169
Kernel modules: r8169
0d:00.0 Network controller [0280]: Ralink corp. RT5390 [802.11 b/g/n 1T1R G-band PCI Express Single Chip] [1814:539f]
DeviceName: Broadcom 4313 802.11b/g/nr
Subsystem: Hewlett-Packard Company Pavilion DM1Z-3000 PCIe wireless card [103c:1637]
Kernel driver in use: rt2800pci
Kernel modules: rt2800pci
 
Old 03-25-2017, 12:46 AM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 19,710

Rep: Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548
Looks like an unresolved bug - see here. Interestingly people report it was ok in 14.04.
Keep an eye on the bug entry and see if a resolution pops up.

Realtek and Broadcom have a very poor history with Linux support.
 
Old 03-25-2017, 02:08 AM   #5
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,231

Rep: Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006
Outstanding bugs notwithstanding, this may be helpful...

http://askubuntu.com/questions/78962...-ralink-rt5392

It mentions creating a custom file eg /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf (or add as a section to /etc/NetworkManager.conf)...
Code:
[connection]
# Values are 0 (use default), 1 (ignore/don't touch), 2 (disable) or 3 (enable).
wifi.powersave = 2
After changes are made NM will need to be restarted to take effect
Code:
sudo systemctl restart NetworkManager
References:
https://gist.github.com/jcberthon/ea...c5a95344bc8b55
http://manpages.ubuntu.com/manpages/...er.conf.5.html
 
Old 03-25-2017, 03:05 AM   #6
beachboy2
Senior Member
 
Registered: Jan 2007
Location: Wild West Wales, UK
Distribution: Linux Mint 20 MATE, MX-19.3, antiX, EndeavourOS
Posts: 3,323
Blog Entries: 17

Rep: Reputation: 1262Reputation: 1262Reputation: 1262Reputation: 1262Reputation: 1262Reputation: 1262Reputation: 1262Reputation: 1262Reputation: 1262
tamalguha,

Welcome to LQ.

ferrari is right. You need to disable the wifi-powersave by changing the default setting of 3 to 2.

Open a Terminal (Ctrl+Alt+T) and run these exact commands separately.

Use Copy and Paste to avoid typing errors!

Code:
sudo sed -i 's/wifi.powersave = 3/wifi.powersave = 2/' /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf
Press the Enter key. You will be asked for your user password.

Type it and press Enter once more.

NB Your user password will NOT be displayed for security reasons.

Now copy and paste the following command into Terminal and press the Enter key.

Code:
sudo systemctl restart NetworkManager
That should fix the problem.

Last edited by beachboy2; 03-25-2017 at 03:06 AM.
 
Old 03-25-2017, 03:12 AM   #7
tamalguha
LQ Newbie
 
Registered: Mar 2017
Location: India
Distribution: Ubuntu
Posts: 3

Original Poster
Rep: Reputation: Disabled
It seems disabling WiFi powersave did the trick. I will observe it for a day to confirm.

Thanks a lot guys.
 
Old 03-25-2017, 04:17 AM   #8
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,231

Rep: Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006
Good to know that worked for you.
 
Old 03-25-2017, 04:29 AM   #9
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 19,710

Rep: Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548Reputation: 3548
Me too - I hope it is a permanent solution. I saw some threads that suggested it may not be.
 
Old 03-28-2017, 10:34 AM   #10
conflicker
Member
 
Registered: Sep 2011
Posts: 92

Rep: Reputation: Disabled
I'm having the same problem, however the solution above is not working. Upon checking the log file I see this
Quote:
ieee80211 phy0: rt2800pci_set_device_state: Error - Device failed to enter state 4 (-5)
I don't think that is some NetworkManager issue.

Upon running /sbin/lspci -nnk|grep '\[02' -A3 here's the result:
Quote:
01:00.0 Network controller [0280]: Ralink corp. RT3290 Wireless 802.11n 1T/1R PCIe [1814:3290]
Subsystem: Hewlett-Packard Company Ralink RT3290LE 802.11bgn 1x1 Wi-Fi and Bluetooth 4.0 Combo Adapter [103c:18ec]
Kernel driver in use: rt2800pci
Kernel modules: rt2800pci
--
02:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8101/2/6E PCI Express Fast/Gigabit Ethernet controller [10ec:8136] (rev 05)
Subsystem: Hewlett-Packard Company Device [103c:183f]
Kernel driver in use: r8169
Kernel modules: r8169
Kindly enlighten me with meaning of the log message.

The wifi was working after fresh install of fedora 25, it stop working after dnf update and then reboot. Please help, thanks in advance!

Last edited by conflicker; 03-28-2017 at 12:26 PM. Reason: determine distro
 
Old 03-28-2017, 02:30 PM   #11
ferrari
LQ Guru
 
Registered: Sep 2003
Location: Auckland, NZ
Distribution: openSUSE Leap
Posts: 5,231

Rep: Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006Reputation: 1006
Quote:
The wifi was working after fresh install of fedora 25, it stop working after dnf update and then reboot. Please help, thanks in advance!
Hmmm...related to a possible kernel update perhaps? Does completely shutting down the laptop help with this?

https://ask.fedoraproject.org/en/que...-of-fedora-24/
 
  


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 connectivity sujit11 Linux - Newbie 2 05-22-2012 10:05 AM
Forwarding wifi connectivity from one router through a single-card Wifi computer CJ Chitwood Linux - Networking 3 11-01-2008 08:56 PM
Outgoing Connectivity problems. Incoming connectivity fine Fionnbharr Linux - Newbie 1 10-02-2008 12:51 PM
WiFi Connectivity (Configure WiFi in Fedora) saidul Linux - Newbie 1 07-23-2008 07:48 AM
WindowsXP, Wifi, WEP, and Samba: connectivity problems pembo13 Linux - Wireless Networking 1 05-26-2005 10:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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