Author Topic: Wireless woes after Ubuntu 16 upgrade [SOLVED?]  (Read 5700 times)

0 Members and 1 Guest are viewing this topic.

Offline Keith

  • Hero Member
  • *****
  • Posts: 714
  • Karma: 10
  • Gender: Male
  • Linux Novice
    • View Profile
    • Awards
Wireless woes after Ubuntu 16 upgrade [SOLVED?]
« on: August 25, 2016, 03:14:41 pm »
I have just upgraded Ubuntu 14.04 to 16.04 on my Lenovo T500.  It all went amazingly well, except for Teamviewer which is missing one file, and I installed gnome-fallback (or "flashback" as it is now called). 

After a while I lost wireless contact so tried the usual things:
1. rebooted the BT router (although my internet 'phone was still working)
2. iwlist scan  command showed signals available including my router
3. Ethernet cable reinstated communications to the internet
So must be a PC wireless problem.  Removed the Ethernet cable. 

1. still no Wi-Fi connection
2. Clicked the wireless icon in the top-right panel
3. deselected "Enable Wi-Fi" then
4. re-selected it again
Wireless comms re-instated! 

But the connection was lost again after closing the PC lid for a cup of tea.   
Clicking the wireless icon showed "wireless disconnected" although both Network and wireless "enabled".
iwlist scan showed no devices available. 

Hmmm!  A dying PC wireless receiver perhaps.  Scrabbled around and found a USB wireless dongle thingy and plugged it in:  connection re-instated!  For a few minutes anyway.  Although there is communication with the router (iwlist, etc) there is no connection to the internet. 

Tried disabling then enabling Wi-Fi via the wireless icon and the connection is back - for now!

Is my PC's receiver dying/dead or might the problem be related to the upgrade?  Ethernet connection is always reliable.  I would be grateful for advice, as usual. 

Keith

Update 16:26     Reliable internet connection is now only possible via the Ethernet, and not at all using the PC's receiver.  Connection via the USB dongle works only occasionally.
« Last Edit: February 11, 2017, 10:10:24 am by Keith »

Online Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 16921
  • Karma: 426
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Wireless woes after Ubuntu 16 upgrade
« Reply #1 on: August 26, 2016, 02:11:28 am »
Can you post the output from:
Code: [Select]
sudo lshw -C network
and
Code: [Select]
lspci -vnn | grep -iA2 net
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

Offline Keith

  • Hero Member
  • *****
  • Posts: 714
  • Karma: 10
  • Gender: Male
  • Linux Novice
    • View Profile
    • Awards
Re: Wireless woes after Ubuntu 16 upgrade
« Reply #2 on: August 26, 2016, 09:16:04 am »
Hello Mark.  Here are the outputs:

keith@T500:~$ sudo lshw -C network
[sudo] password for keith:
  *-network               
       description: Ethernet interface
       product: 82567LM Gigabit Network Connection
       vendor: Intel Corporation
       physical id: 19
       bus info: pci@0000:00:19.0
       logical name: eth0
       version: 03
       serial: 00:22:68:0a:4b:c2
       capacity: 1Gbit/s
       width: 32 bits
       clock: 33MHz
       capabilities: pm msi bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=e1000e driverversion=3.2.6-k firmware=1.8-3 latency=0 link=no multicast=yes port=twisted pair
       resources: irq:28 memory:fc000000-fc01ffff memory:fc025000-fc025fff ioport:1840(size=32)
  *-network
       description: Wireless interface
       product: Ultimate N WiFi Link 5300
       vendor: Intel Corporation
       physical id: 0
       bus info: pci@0000:03:00.0
       logical name: wlan0
       version: 00
       serial: 00:21:6a:37:27:b0
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
       configuration: broadcast=yes driver=iwlwifi driverversion=4.4.0-34-generic firmware=8.83.5.1 build 33692 ip=192.168.1.70 latency=0 link=yes multicast=yes wireless=IEEE 802.11abgn
       resources: irq:31 memory:f4300000-f4301fff
keith@T500:~$

keith@T500:~$ lspci -vnn | grep -iA2 net
00:19.0 Ethernet controller [0200]: Intel Corporation 82567LM Gigabit Network Connection [8086:10f5] (rev 03)
   Subsystem: Lenovo 82567LM Gigabit Network Connection [17aa:20ee]
   Flags: bus master, fast devsel, latency 0, IRQ 28
   Memory at fc000000 (32-bit, non-prefetchable) [size=128K]
--
03:00.0 Network controller [0280]: Intel Corporation Ultimate N WiFi Link 5300 [8086:4236]
   Subsystem: Intel Corporation Ultimate N WiFi Link 5300 [8086:1011]
   Physical Slot: 1-1
keith@T500:~$

Online Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 16921
  • Karma: 426
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Wireless woes after Ubuntu 16 upgrade
« Reply #3 on: August 27, 2016, 08:14:38 pm »
Try running
Code: [Select]
sudo gedit /etc/modprobe.d/iwlwifi.conf
and adding this new line at the bottom.
Code: [Select]
options iwlwifi bt_coex_active=0 swcrypto=1 11n_disable=8
SAVE the file and REBOOT.

Any problems, just remove the line, save, and reboot.
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

Offline Keith

  • Hero Member
  • *****
  • Posts: 714
  • Karma: 10
  • Gender: Male
  • Linux Novice
    • View Profile
    • Awards
Re: Wireless woes after Ubuntu 16 upgrade
« Reply #4 on: August 27, 2016, 09:40:50 pm »
That worked a treat, Mark.  I've had 40Mb/s wireless download speed for the last 5minutes, anyway, but I shall continue to monitor it.

Can you tell me what I have just done?

I notice that the second command indicates that the problem may be BT-related, and as the problem manifested itself only after upgrading to V16 is there an Ubuntu issue as well? 

Online Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 16921
  • Karma: 426
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Wireless woes after Ubuntu 16 upgrade
« Reply #5 on: August 27, 2016, 09:56:39 pm »
You've told the wireless driver (iwlwifi) to always load with certain parameters set

bt_coex_active=0
swcrypto=1
11n_disable=8

You can see what these parameters do by checking the "modinfo" for your driver
Code: [Select]
modinfo iwlwifi
« Last Edit: August 27, 2016, 10:04:39 pm by Mark Greaves (PCNetSpec) »
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

Offline Keith

  • Hero Member
  • *****
  • Posts: 714
  • Karma: 10
  • Gender: Male
  • Linux Novice
    • View Profile
    • Awards
Re: Wireless woes after Ubuntu 16 upgrade
« Reply #6 on: August 27, 2016, 10:00:59 pm »
That's helpful.
Many thanks, Mark, as usual.

Keith

Online Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 16921
  • Karma: 426
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Wireless woes after Ubuntu 16 upgrade
« Reply #7 on: August 27, 2016, 10:05:09 pm »
I notice that the second command indicates that the problem may be BT-related, and as the problem manifested itself only after upgrading to V16 is there an Ubuntu issue as well?

The BlueTooth coexist MAY be the problem, it may not , in fact probably not if it worked before unless there's been a driver/firmware regression in 16.04
Personally I think it likely it was one of the other two parameters that probably fixed the issue, but it can't huurt to leave all 3 parameters set unless they're causing you problems elsewere such as bluetooth.
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

Offline Keith

  • Hero Member
  • *****
  • Posts: 714
  • Karma: 10
  • Gender: Male
  • Linux Novice
    • View Profile
    • Awards
Re: Wireless woes after Ubuntu 16 upgrade [SOLVED]
« Reply #8 on: August 27, 2016, 10:12:59 pm »
Funny you should mention Bluetooth. 
The laptop always boots with Bluetooth enabled but it was only after switching Bluetooth off that I had these comms problems.  I now have two Bluetooth icons in the top menu bar (without me adding an extra one).  When I tried removing one of them I lost the whole bar (but I reloaded it). 

Offline Keith

  • Hero Member
  • *****
  • Posts: 714
  • Karma: 10
  • Gender: Male
  • Linux Novice
    • View Profile
    • Awards
Re: Wireless woes after Ubuntu 16 upgrade [SOLVED]
« Reply #9 on: August 28, 2016, 01:14:17 pm »
Ah!  I spoke too soon! 
My wireless connection was down again this morning, despite iwlist showing communication with the router.  I switched off Bluetooth, but without effect. 
I tried commenting out the line added to iwlwifi.conf but wireless still didn't work.

I modified the iwlwifi.conf  file so that the new line reads:
options   iwlwifi bt_coex_active=1   swcrypto=1   11n_disable=1
(I got the "11n_disable=1" idea from http://askubuntu.com/questions/119578/how-to-fix-slow-wireless-on-machines-with-intel-wireless-cards)

Wireless now works fine even with Bluetooth on (but for how long?).  iwlist scan seemed to indicate that I am now using only 5.2GHz (and I know Bluetooth frequency-hops on 2.4GHz) but using sudo iwlist scan shows a lot more ESSIDs including mine on 2.4GHz as well - so I have no idea what change I have actually made that has got things working. 

Anyway, I have wireless connectivity at present and shall report back on the long-term result.
« Last Edit: August 28, 2016, 04:19:55 pm by Keith »

Online Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 16921
  • Karma: 426
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Wireless woes after Ubuntu 16 upgrade
« Reply #10 on: August 28, 2016, 05:24:18 pm »
Great stuff, hope it works out  for ya :)
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

Offline Keith

  • Hero Member
  • *****
  • Posts: 714
  • Karma: 10
  • Gender: Male
  • Linux Novice
    • View Profile
    • Awards
Re: Wireless woes after Ubuntu 16 upgrade
« Reply #11 on: August 28, 2016, 05:38:28 pm »
Me too, Mark!
The instructions that you provided helped me to do better web searches, even if I didn't understand much of them.  But at least I found lots of things to try without breaking anything (unusual for me, I know). 

Keith

Offline Keith

  • Hero Member
  • *****
  • Posts: 714
  • Karma: 10
  • Gender: Male
  • Linux Novice
    • View Profile
    • Awards
Re: Wireless woes after Ubuntu 16 upgrade [SOLVED?]
« Reply #12 on: September 08, 2016, 06:04:36 pm »
Wireless comms failed again just now.  Once more, the wireless dongle came to the rescue but iwlist showed no networks.
I edited /etc/modprobe.d/iwlwifi.conf to the values Mark suggested in Reply #3 and, voila!, I am up and running again. 

Beats me.  Unless it's just coincidence. 
One thing: after modifying the file and trying to reboot, the PC would not close down - the Ubuntu five dots just kept cycling - and I had to hard boot. 

 I am leaning towards buying a new wireless card.  Any thoughts? 


Online Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 16921
  • Karma: 426
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Wireless woes after Ubuntu 16 upgrade [SOLVED?]
« Reply #13 on: September 08, 2016, 07:11:24 pm »
Thoughts on what .. whether to buy one, or which one to buy ?
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

Offline Keith

  • Hero Member
  • *****
  • Posts: 714
  • Karma: 10
  • Gender: Male
  • Linux Novice
    • View Profile
    • Awards
Re: Wireless woes after Ubuntu 16 upgrade [SOLVED?]
« Reply #14 on: September 08, 2016, 07:24:08 pm »
All your thoughts are always always worth reading, Mark! 

Whether to buy one, first of all.  Could card problems produce such symptoms?  An unfair question, perhaps. 

If you think the card could be contributing to my difficulties, then guidance on a suitable product would be welcome.  I have browsed the web and found a huge range of prices and although it's tempting to try a cheap one, experience tells me that might not be the best option. 

 


SimplePortal 2.3.3 © 2008-2010, SimplePortal