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

0 Members and 1 Guest are viewing this topic.

Online Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 17320
  • Karma: 439
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Wireless woes after Ubuntu 16 upgrade [SOLVED?]
« Reply #15 on: September 08, 2016, 07:48:10 pm »
Are we talking internal card or USB ?

if internal which socket type ?

If USB .. is this a portable PC .. I mean will a "nano" type adapter be better ?
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: 754
  • Karma: 11
  • Gender: Male
  • Linux Novice
    • View Profile
    • Awards
Re: Wireless woes after Ubuntu 16 upgrade [SOLVED?]
« Reply #16 on: September 08, 2016, 09:38:41 pm »
I'm referring to the internal card - the permanent, installed device - the info is in my post # 2 and the PC is a Lenovo Thinkpad T500.

I haven't had the card out yet, although I've found some web videos about how to do it.  As for which socket type; the best I can do is get it out and photograph it, which I might have to do anyway to find out how many antenna connectors there are; apparently there are two types of card - with two or three connectors. 



Offline Keith

  • Hero Member
  • *****
  • Posts: 754
  • Karma: 11
  • Gender: Male
  • Linux Novice
    • View Profile
    • Awards
Re: Wireless woes after Ubuntu 16 upgrade [SOLVED?]
« Reply #17 on: September 09, 2016, 04:35:40 pm »
I've just extracted the card and attach a photo.  I think the socket type is "Mini PCI Express" and Amazon have many sellers at not-too-expensive prices.
Upon re-assembling the PC I had to reset iwlwifi.conf to the previous set of options to get the wireless working again. 
« Last Edit: September 13, 2016, 11:51:13 pm by Mark Greaves (PCNetSpec) »

Online Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 17320
  • Karma: 439
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Wireless woes after Ubuntu 16 upgrade [SOLVED?]
« Reply #18 on: September 10, 2016, 05:28:39 pm »
Does your PC have built in 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: 754
  • Karma: 11
  • Gender: Male
  • Linux Novice
    • View Profile
    • Awards
Re: Wireless woes after Ubuntu 16 upgrade [SOLVED?]
« Reply #19 on: September 11, 2016, 11:01:28 am »
Yes it does, Mark.  And, curiously, it has two Bluetooth icons in the top bar (classic view).  One icon has two slider-buttons: Bluetooth on/off, and Visible on/off - and a link to Bluetooth settings.  The other has a long menu of useful operations. 


Online Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 17320
  • Karma: 439
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Wireless woes after Ubuntu 16 upgrade [SOLVED?]
« Reply #20 on: September 11, 2016, 07:14:22 pm »
The problem seems to be finding a non intel card that has the three MIMO aerial connectors.

Intel do a different model (possibly the same chip though), and there's one by broadcom .. but I'm not sure if bluetooth is on a separate card or not
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: 754
  • Karma: 11
  • Gender: Male
  • Linux Novice
    • View Profile
    • Awards
Re: Wireless woes after Ubuntu 16 upgrade [SOLVED?]
« Reply #21 on: September 11, 2016, 07:22:57 pm »
In searching for a replacement card I discovered two eBay suppliers who offered Intel cards (usually second-hand, I think) with identical identifying numbers but one stated that it was suitable for the T500 and the other stated explicitly that theirs wasn't.  So if I do get a "new" card then I shall to be careful. 

I shall try to check if Bluetooth is on a separate card. 

Offline Keith

  • Hero Member
  • *****
  • Posts: 754
  • Karma: 11
  • Gender: Male
  • Linux Novice
    • View Profile
    • Awards
Re: Wireless woes after Ubuntu 16 upgrade [SOLVED?]
« Reply #22 on: September 11, 2016, 08:08:21 pm »
http://www.thinkpads.com/forum/viewtopic.php?t=113502 indicates that "Most Bluetooth 3.0-4.0 nowadays have it built into the WiFi card." but my Bluetooth appears to be 2.0.4

The maintenance manual is here:    https://download.lenovo.com/pccbbs/mobiles_pdf/43y6630.pdf
The Bluetooth daughter card (BDC-2.1) is located under the screen bezel and pages 114-119 show screen bezel and Bluetooth daughter card removal. 

Not sure where to go from here.  It would be nice to pin down the source of the problem definitively before doing anything drastic.  I'm not entirely convinced that the BT or Intel Wireless cards are suspect as there is another symptom: after closing the lid for a cup of tea, re-opening the lid sometimes shows no wireless connectivity, although iwlist scan does indicate comms with the router but Firefox & Thunderbird are not connected.   
« Last Edit: September 11, 2016, 10:45:51 pm by Keith »

Online Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 17320
  • Karma: 439
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Wireless woes after Ubuntu 16 upgrade
« Reply #23 on: September 12, 2016, 05:57:56 pm »
"Suspend" in 16.04 (and distros based on it) is currently known to cause wireless issues upon resume on some hardware .. the workaround (until it's fixed upstream) appears to be to use "Hibernate" instead of "Suspend"

But "Hibernate" needs to be enabled first.o you want to test this

Do you want to test this ?

If so, open a terminal and run:
Code: [Select]
sudo pm-hibernate
give it a few seconds and hopefully your PC will go into hibernate

When you resume, all apps that were running should still be open .. and hopefully the wireless will also be active.

Was this the case ? .. if so, we can enable hibernate system-wide.
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: 754
  • Karma: 11
  • Gender: Male
  • Linux Novice
    • View Profile
    • Awards
Re: Wireless woes after Ubuntu 16 upgrade
« Reply #24 on: September 12, 2016, 09:57:46 pm »
Yep, that seemed to work OK. 

Online Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 17320
  • Karma: 439
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Wireless woes after Ubuntu 16 upgrade
« Reply #25 on: September 13, 2016, 02:39:29 pm »
Okay then let's enable hibernate and set it as the default action when you close the lid

Open a terminal and run:
Code: [Select]
sudo gedit /etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla
when a BLANK file opens, make it read:-
Code: [Select]
[Re-enable hibernate by default in upower]
Identity=unix-user:*
Action=org.freedesktop.upower.hibernate
ResultActive=yes

[Re-enable hibernate by default in logind]
Identity=unix-user:*
Action=org.freedesktop.login1.hibernate;org.freedesktop.login1.handle-hibernate-key;org.freedesktop.login1;org.freedesktop.login1.hibernate-multiple-sessions;org.freedesktop.login1.hibernate-ignore-inhibit
ResultActive=yes
SAVE the file and exit gedit.

REBOOT.

Once rebooted, the power manager should have the option to select "Hibernate" instead of "Suspend" .. I'm not on an Ubuntu machine so can't really step you through it (they use a different power manager than Peppermint) so you're going to have to try figure that out on your own, but if you get stuck I'll see what I can come up with.
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: 754
  • Karma: 11
  • Gender: Male
  • Linux Novice
    • View Profile
    • Awards
Re: Wireless woes after Ubuntu 16 upgrade
« Reply #26 on: September 13, 2016, 06:34:33 pm »
When exiting gedit, the terminal showed a number of errors (file attached).

When checking the Settings/Power manager, only the option for "When power is critically low" has the Hibernate option.  The "When lid is closed" choice has only "Suspend" or "Do nothing" as options. 

When opening the lid after closing it, the screen remains blank although the disc light does flash occasionally.

« Last Edit: September 13, 2016, 11:44:34 pm by Mark Greaves (PCNetSpec) »

Online Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 17320
  • Karma: 439
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Wireless woes after Ubuntu 16 upgrade
« Reply #27 on: September 13, 2016, 11:49:23 pm »
Keith, can you please NOT keep adding stuff as attachments unless specifically asked to do so by site admin.

For text files .. just include the text in the posting main body.
For anything else (including images) .. please host them elsewhere and post a link.

There is not unlimited space on the server hosting this forum ;)

I've deleted all your attachments from this topic .. the gedit "errors" were only warnings and nothing to worry about.
« Last Edit: September 13, 2016, 11:52:06 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: 754
  • Karma: 11
  • Gender: Male
  • Linux Novice
    • View Profile
    • Awards
Re: Wireless woes after Ubuntu 16 upgrade
« Reply #28 on: September 14, 2016, 09:08:28 am »
My apologies, Mark - I didn't realise.  May I suggest that your words are added to the "Attachments and other options" part of the page shown when writing a post.  That would help inform all users. 

Back to the problem.   
The Hibernate option is indeed now in the menu but I'm not sure yet if it has fixed the wireless problem - I shall need to cycle it many times to check. 
One minor irritation is that as it takes time to save all the data for hibernation I have to leave the lid open or it goes into suspend mode (it took me while to cotton on to that!).  There is also a useful warning in https://help.ubuntu.com/stable/ubuntu-help/power-hibernate.html:
"Always save your work before hibernating
You should save all of your work before hibernating the computer, just in case something goes wrong and your open applications and documents cannot be recovered when you switch on the computer again."

as I discovered. 

The power options for when closing the lid have only "Do nothing" or "Suspend" but I found here http://ubuntuhandbook.org/index.php/2014/04/enable-hibernate-ubuntu-14-04/ the following way of arranging for hibernation upon lid-close:
Code: [Select]
sudo gedit /etc/systemd/logind.conf
Change the line #HandleLidSwitch=suspend to read HandleLidSwitch=hibernate, save the file and reboot.  Remember to delete the "#" character. 

I need to cycle it many times before confirming that hibernating solves my wireless problem, but initial observations are not encouraging.
I found in [url=https://help.ubuntu.com/stable/ubuntu-help/power-suspendfail.html]https://help.ubuntu.com/stable/ubuntu-help/power-suspendfail.html[/url]:
If you suspend or hibernate your computer and then resume it again, you may find that your internet connection, mouse, or some other device doesn't work properly. This could be because the device's driver doesn't properly support suspend or hibernate. This is a problem with the driver and not the device itself.
So perhaps I am barking up the wrong tree and the device (wireless or Bluetooth chip) is not compatible with Ubuntu 16. 
The guaranteed work-around is (when wireless fails) to edit the options line in /etc/modprobe.d/iwlwifi.conf file (doesn't seem to matter what the change is) and wireless connectivity returns. 

I shall report back after more tests.
« Last Edit: September 14, 2016, 09:10:08 am by Keith »

Online Mark Greaves (PCNetSpec)

  • Administrator
  • Hero Member
  • *****
  • Posts: 17320
  • Karma: 439
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
    • Awards
Re: Wireless woes after Ubuntu 16 upgrade
« Reply #29 on: September 14, 2016, 03:43:46 pm »
If wireless worked after the initial test of pm-hibernate I can see no reason it wouldn't do it when pm-hibernate is triggered automagically.

I'll await your test results ;)

I can't (easily) add anything to the "Attachments" section .. the only option would be to disable it entirely, not something we want to do unless it becomes necessary .. so we just ask ;)

[EDIT]

Quote
The guaranteed work-around is (when wireless fails) to edit the options line in /etc/modprobe.d/iwlwifi.conf file (doesn't seem to matter what the change is) and wireless connectivity returns.

Can you explain that please .. why not just leave the edit in place then ?
« Last Edit: September 14, 2016, 03:45:27 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

 


SimplePortal 2.3.3 © 2008-2010, SimplePortal