wifi not working

Questions about WIFI networks and devices
Forum rules
Before you post please read how to get help
hhead
Level 3
Level 3
Posts: 106
Joined: Thu Jan 12, 2012 7:01 am

wifi not working

Postby hhead » Thu Sep 11, 2014 4:26 pm

I installed mint 17 32bit today and the wifi worked fine. Tonight its stopped working, not only that I see no SSID's at all. Network card working fine. I had put the laptop in suspend but had done that several times since installation.

Code: Select all


sudo rfkill list

4: phy4: Wireless LAN
   Soft blocked: no
   Hard blocked: no



Code: Select all

sudo lshw -C network

*-network               
       description: Ethernet interface
       product: RTL8101E/RTL8102E PCI Express Fast Ethernet controller
       vendor: Realtek Semiconductor Co., Ltd.
       physical id: 0
       bus info: pci@0000:02:00.0
       logical name: eth0
       version: 02
       serial: 00:1e:33:fd:5f:82
       size: 100Mbit/s
       capacity: 100Mbit/s
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress msix vpd bus_master cap_list rom ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=full ip=192.168.1.74 latency=0 link=yes multicast=yes port=MII speed=100Mbit/s
       resources: irq:42 ioport:2000(size=256) memory:90410000-90410fff memory:90400000-9040ffff memory:90420000-9043ffff
  *-network DISABLED
       description: Wireless interface
       physical id: 2
       bus info: usb@2:6
       logical name: wlan0
       serial: 70:1a:04:3e:56:d3
       capabilities: ethernet physical wireless
       configuration: broadcast=yes driver=rtl8187 driverversion=3.13.0-24-generic firmware=N/A link=no multicast=yes wireless=IEEE 802.11bg


Code: Select all

sudo /usr/lib/linuxmint/mintWifi/mintWifi.py

* I. scanning WIFI PCI devices...
-------------------------
* II. querying ndiswrapper...
-------------------------
* III. querying iwconfig...
wlan0     IEEE 802.11bg  ESSID:off/any 
          Mode:Managed  Access Point: Not-Associated   Tx-Power=0 dBm   
          Retry  long limit:7   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:on
         
lo        no wireless extensions.

eth0      no wireless extensions.

-------------------------
* IV. querying ifconfig...
eth0      Link encap:Ethernet  HWaddr 00:1e:33:fd:5f:82 
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:6670 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6906 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:4714733 (4.7 MB)  TX bytes:1139765 (1.1 MB)

lo        Link encap:Local Loopback 
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:3407 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3407 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:343022 (343.0 KB)  TX bytes:343022 (343.0 KB)

-------------------------
* V. querying DHCP...
-------------------------
* VI. querying nslookup google.com...
;; connection timed out; no servers could be reached




any help would be greatfully accepted. Switching the power button for the wifi does not work by the way, but rebooting the machine does.

User avatar
kc1di
Level 10
Level 10
Posts: 3033
Joined: Mon Sep 08, 2008 8:44 pm
Location: Maine USA

Re: wifi not working

Postby kc1di » Thu Sep 11, 2014 4:40 pm

HI hhead,

Could you also post the outputs of

Code: Select all

lspci

and

Code: Select all

lsmod
John 3:16
Morse code an Early Digital Mode
Registered Linux User #462608
LinuxMint 18.2- Mate
Wireless Script: http://ubuntuforums.org/showthread.php?t=2082305&p=12350385#post12350385

hhead
Level 3
Level 3
Posts: 106
Joined: Thu Jan 12, 2012 7:01 am

Re: wifi not working

Postby hhead » Fri Sep 12, 2014 4:16 am

Sorry thought the post was long enough. Also is definitely just a problem after suspend will try hibernate. Works perfectly on boot, had no problem in mint 15 whatsoever.

Code: Select all

lspci
00:00.0 Host bridge: Intel Corporation Mobile 4 Series Chipset Memory Controller Hub (rev 07)
00:02.0 VGA compatible controller: Intel Corporation Mobile 4 Series Chipset Integrated Graphics Controller (rev 07)
00:02.1 Display controller: Intel Corporation Mobile 4 Series Chipset Integrated Graphics Controller (rev 07)
00:1a.0 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #4 (rev 03)
00:1a.1 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #5 (rev 03)
00:1a.7 USB controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #2 (rev 03)
00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio Controller (rev 03)
00:1c.0 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 1 (rev 03)
00:1c.4 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 5 (rev 03)
00:1d.0 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #1 (rev 03)
00:1d.1 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #2 (rev 03)
00:1d.2 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #3 (rev 03)
00:1d.3 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #6 (rev 03)
00:1d.7 USB controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #1 (rev 03)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev 93)
00:1f.0 ISA bridge: Intel Corporation ICH9M LPC Interface Controller (rev 03)
00:1f.2 SATA controller: Intel Corporation 82801IBM/IEM (ICH9M/ICH9M-E) 4 port SATA Controller [AHCI mode] (rev 03)
00:1f.3 SMBus: Intel Corporation 82801I (ICH9 Family) SMBus Controller (rev 03)
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101E/RTL8102E PCI Express Fast Ethernet controller (rev 02)



Code: Select all

lsmod
Module                  Size  Used by
ctr                    12905  1
ccm                    17496  1
rfcomm                 53664  0
bnep                   18895  2
bluetooth             342263  10 bnep,rfcomm
binfmt_misc            13140  1
arc4                   12536  2
rtl8187                60157  0
uvcvideo               71309  0
mac80211              545990  1 rtl8187
videobuf2_vmalloc      13048  1 uvcvideo
videobuf2_memops       13170  1 videobuf2_vmalloc
cfg80211              409394  2 mac80211,rtl8187
videobuf2_core         39258  1 uvcvideo
eeprom_93cx6           13168  1 rtl8187
videodev              108503  2 uvcvideo,videobuf2_core
snd_hda_codec_realtek    51029  1
snd_hda_intel          42730  3
coretemp               13195  0
snd_hda_codec         164067  2 snd_hda_codec_realtek,snd_hda_intel
joydev                 17101  0
snd_hwdep              13272  1 snd_hda_codec
snd_pcm                85501  2 snd_hda_codec,snd_hda_intel
dm_multipath           22402  0
scsi_dh                14458  1 dm_multipath
snd_page_alloc         14230  2 snd_pcm,snd_hda_intel
snd_seq_midi           13132  0
snd_seq_midi_event     14475  1 snd_seq_midi
serio_raw              13230  0
snd_rawmidi            25135  1 snd_seq_midi
snd_seq                55383  2 snd_seq_midi_event,snd_seq_midi
snd_seq_device         14137  3 snd_seq,snd_rawmidi,snd_seq_midi
snd_timer              28584  2 snd_pcm,snd_seq
snd                    60871  16 snd_hda_codec_realtek,snd_hwdep,snd_timer,snd_pcm,snd_seq,snd_rawmidi,snd_hda_codec,snd_hda_intel,snd_seq_device,snd_seq_midi
lpc_ich                16864  0
parport_pc             31981  0
soundcore              12600  1 snd
ppdev                  17391  0
lp                     13299  0
parport                40836  3 lp,ppdev,parport_pc
toshiba_acpi           18301  0
sparse_keymap          13708  1 toshiba_acpi
wmi                    18673  1 toshiba_acpi
mac_hid                13037  0
btrfs                 822702  0
xor                    26221  1 btrfs
raid6_pq               97455  1 btrfs
libcrc32c              12543  1 btrfs
dm_mirror              21756  0
dm_region_hash         20121  1 dm_mirror
dm_log                 18072  2 dm_region_hash,dm_mirror
hid_generic            12492  0
usbhid                 47035  0
hid                    87604  2 hid_generic,usbhid
psmouse                91033  0
ahci                   25579  3
i915                  705396  3
r8169                  61562  0
libahci                26754  1 ahci
i2c_algo_bit           13197  1 i915
video                  18903  1 i915
drm_kms_helper         46907  1 i915
drm                   243792  4 i915,drm_kms_helper
mii                    13654  1 r8169


User avatar
kc1di
Level 10
Level 10
Posts: 3033
Joined: Mon Sep 08, 2008 8:44 pm
Location: Maine USA

Re: wifi not working

Postby kc1di » Fri Sep 12, 2014 5:28 am

Hi Again,

Your lspci report does not show that you have a wireless card in your machine.
that means either the card is faulty or it is physically shut off by some manual switch. (could be loose connections)
Or it could be the machine in question does not have a wireless card installed.
Do you know the card your trying to use?
Is it a dongle of some sort?

If it is usb some of them will not work or work poorly with Linux.
Need more information to diagnose the problem.
John 3:16
Morse code an Early Digital Mode
Registered Linux User #462608
LinuxMint 18.2- Mate
Wireless Script: http://ubuntuforums.org/showthread.php?t=2082305&p=12350385#post12350385

User avatar
PatH57
Level 13
Level 13
Posts: 4583
Joined: Tue Mar 25, 2014 12:11 pm
Location: here and there

Re: wifi not working

Postby PatH57 » Fri Sep 12, 2014 5:44 am

Power Management:on


this is your first problem, these cards don't like power management and will probably hang at some stage after suspend or hibernate.
So reboot, check that the card can see the wifi and run this:

Code: Select all

sudo iwconfig wlan0 power off


check suspend and if it works coming out of it we will make it permanent.
People disagree with me. I just ignore them.
(Linus Torvalds, regarding the use of C++ for the Linux kernel.)

Please Add [Solved] to the topic-title of your first post when appropriate so others know they might find a solution here.

hhead
Level 3
Level 3
Posts: 106
Joined: Thu Jan 12, 2012 7:01 am

Re: wifi not working

Postby hhead » Fri Sep 12, 2014 7:37 am

Thanks for your replies. The card is built in and was fine under mint 15, a lot of people seem to be having this problem with ubuntu 14.04 which I believe mint 17 is derived from. I tried the solution on this page,

[url]
http://www.webupd8.org/2013/01/fix-wire ... k-not.html
[/url]

that is create a file called

Code: Select all

gksu gedit /etc/pm/config.d/unload_modules


with the following line where the module is the name of my card from running sudo lshw -C network

Code: Select all

SUSPEND_MODULES="$SUSPEND_MODULES my_module"


this allows me to see SSIDs but not connect the hourglass just keeps rotating.

I followed the link at the bottom of the page to

[url]
http://askubuntu.com/questions/452826/w ... untu-14-04
[/url]

this suggested the following command the first time the wifi was working after boot, then after suspend its apparently enabled but disconnected

Code: Select all

 nmcli nm
RUNNING         STATE           WIFI-HARDWARE   WIFI       WWAN-HARDWARE   WWAN     
running         connected       enabled         enabled    enabled         disabled 
nrh1@nrh1-Satellite-L350:~$ nmcli nm
RUNNING         STATE           WIFI-HARDWARE   WIFI       WWAN-HARDWARE   WWAN     
running         disconnected    enabled         enabled    enabled         enabled   



trying this

Code: Select all

sudo nmcli nm sleep false
[sudo] password for xxx;
Error in sleep: Already awake



and then this

Code: Select all

 sudo iwconfig wlan0 power off
Error for wireless request "Set Power Management" (8B2C) :
    SET failed on device wlan0 ; Operation not supported.



neither worked.

Any suggestions?

User avatar
PatH57
Level 13
Level 13
Posts: 4583
Joined: Tue Mar 25, 2014 12:11 pm
Location: here and there

Re: wifi not working

Postby PatH57 » Fri Sep 12, 2014 7:45 am

Code: Select all

iw wlan0 get power_save

Code: Select all

sudo iw wlan0 set power_save off

iw is a package, so you may have to install it first
People disagree with me. I just ignore them.
(Linus Torvalds, regarding the use of C++ for the Linux kernel.)

Please Add [Solved] to the topic-title of your first post when appropriate so others know they might find a solution here.

hhead
Level 3
Level 3
Posts: 106
Joined: Thu Jan 12, 2012 7:01 am

Re: wifi not working

Postby hhead » Fri Sep 12, 2014 8:23 am

The first command said "power save on" the second said "not supported".

User avatar
PatH57
Level 13
Level 13
Posts: 4583
Joined: Tue Mar 25, 2014 12:11 pm
Location: here and there

Re: wifi not working

Postby PatH57 » Fri Sep 12, 2014 9:27 am

just checked again your first post and the firmware does not seem to be loaded. (explains why we cannot disable the power feature)
let's see

Code: Select all

lsusb
People disagree with me. I just ignore them.
(Linus Torvalds, regarding the use of C++ for the Linux kernel.)

Please Add [Solved] to the topic-title of your first post when appropriate so others know they might find a solution here.

hhead
Level 3
Level 3
Posts: 106
Joined: Thu Jan 12, 2012 7:01 am

Re: wifi not working

Postby hhead » Fri Sep 12, 2014 9:50 am

One of those commands I ran you suggested has solved the problem, its now connecting fine after suspend but needs making permanent. Presumably it was this one...

Code: Select all


iw wlan0 get power_save


doesn't quite make sense, it didn't seem to work after the first suspend after running it.

hhead
Level 3
Level 3
Posts: 106
Joined: Thu Jan 12, 2012 7:01 am

Re: wifi not working

Postby hhead » Fri Sep 12, 2014 9:51 am

Code: Select all


lsusb
Bus 002 Device 003: ID 0bda:8197 Realtek Semiconductor Corp. RTL8187B Wireless Adapter
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 002: ID 045e:00cb Microsoft Corp. Basic Optical Mouse v2.0
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 002: ID 04f2:b070 Chicony Electronics Co., Ltd
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub



User avatar
PatH57
Level 13
Level 13
Posts: 4583
Joined: Tue Mar 25, 2014 12:11 pm
Location: here and there

Re: wifi not working

Postby PatH57 » Fri Sep 12, 2014 10:06 am

not sure what you have done previously with the mod and let's hope the driver is still present (or we will have to reenable it)

Code: Select all

sudo modprobe -r rtl8187
sudo modprobe -r mac80211
sudo modprobe rtl8187

if errors report back

Code: Select all

iwconfig
People disagree with me. I just ignore them.
(Linus Torvalds, regarding the use of C++ for the Linux kernel.)

Please Add [Solved] to the topic-title of your first post when appropriate so others know they might find a solution here.

hhead
Level 3
Level 3
Posts: 106
Joined: Thu Jan 12, 2012 7:01 am

Re: wifi not working

Postby hhead » Fri Sep 12, 2014 12:38 pm

Thanks again for your help, modprobes give nothing at all, and

Code: Select all

iwconfig
wlan0     IEEE 802.11bg  ESSID:off/any 
          Mode:Managed  Access Point: Not-Associated   Tx-Power=20 dBm   
          Retry  long limit:7   RTS thr:off   Fragment thr:off
          Power Management:off
         
lo        no wireless extensions.

eth0      no wireless extensions.




but its an inconsistent error the last couple of suspends have not caused the problem, desupended this time or whatever you call it and it doesn't work so no not solved. Doing this via eth0....

User avatar
PatH57
Level 13
Level 13
Posts: 4583
Joined: Tue Mar 25, 2014 12:11 pm
Location: here and there

Re: wifi not working

Postby PatH57 » Fri Sep 12, 2014 12:52 pm

ok,
let's do this

Code: Select all

wget -N -t 5 -T 10 http://dl.dropbox.com/u/57264241/wireless_script && \chmod +x wireless_script && \./wireless_script

It will download a script and create a file named wireless-info.txt or wireless-info.tar.gz in your home folder with wireless information so we can see the condition of your wireless and errors at the time. The MAC address, WPA key and WEP key are removed for your security. Paste contents of the wireless-info.txt or wireless-info.tar.gz file at http://pastebin.ubuntu.com or alternatively http://pastebin.com/ then post the link here in your question.
People disagree with me. I just ignore them.
(Linus Torvalds, regarding the use of C++ for the Linux kernel.)

Please Add [Solved] to the topic-title of your first post when appropriate so others know they might find a solution here.

hhead
Level 3
Level 3
Posts: 106
Joined: Thu Jan 12, 2012 7:01 am

Re: wifi not working

Postby hhead » Fri Sep 12, 2014 1:51 pm

Thanks for your time as per usual.

[url]
http://pastebin.ubuntu.com/8328770/
[/url]

User avatar
PatH57
Level 13
Level 13
Posts: 4583
Joined: Tue Mar 25, 2014 12:11 pm
Location: here and there

Re: wifi not working

Postby PatH57 » Fri Sep 12, 2014 2:09 pm

seems normal now.
When you catch it not working after suspend run this:

Code: Select all

iw dev wlan0 scan | less

Code: Select all

wpa_supplicant -B -i wlan0 -D rtl8187,wext -C /run/wpa_supplicant
People disagree with me. I just ignore them.
(Linus Torvalds, regarding the use of C++ for the Linux kernel.)

Please Add [Solved] to the topic-title of your first post when appropriate so others know they might find a solution here.

hhead
Level 3
Level 3
Posts: 106
Joined: Thu Jan 12, 2012 7:01 am

Re: wifi not working

Postby hhead » Fri Sep 12, 2014 3:09 pm

Thanks for your continued help. First reply didn't show anything in the terminal except "end".

The second produced the following response when run as sudo.

Code: Select all


uccessfully initialized wpa_supplicant
ioctl[SIOCSIWENCODEEXT]: Invalid argument
ioctl[SIOCSIWENCODEEXT]: Invalid argument
ctrl_iface exists and seems to be in use - cannot override it
Delete '/run/wpa_supplicant/wlan0' manually if it is not used anymore
Failed to initialize control interface '/run/wpa_supplicant'.
You may have another wpa_supplicant process already running or the file was
left by an unclean termination of wpa_supplicant in which case you will need
to manually remove this file before starting wpa_supplicant again.

User avatar
PatH57
Level 13
Level 13
Posts: 4583
Joined: Tue Mar 25, 2014 12:11 pm
Location: here and there

Re: wifi not working

Postby PatH57 » Fri Sep 12, 2014 3:29 pm

seems the supplicant process is not reinitialised properly after suspend.
I will have to do a bit more digging.
People disagree with me. I just ignore them.
(Linus Torvalds, regarding the use of C++ for the Linux kernel.)

Please Add [Solved] to the topic-title of your first post when appropriate so others know they might find a solution here.

hhead
Level 3
Level 3
Posts: 106
Joined: Thu Jan 12, 2012 7:01 am

Re: wifi not working

Postby hhead » Sat Sep 13, 2014 5:38 am

Thanks were do I post bug reports?

User avatar
PatH57
Level 13
Level 13
Posts: 4583
Joined: Tue Mar 25, 2014 12:11 pm
Location: here and there

Re: wifi not working

Postby PatH57 » Sat Sep 13, 2014 8:55 am

let's first try this, it's from one of the guys maintaining the driver for the RTL
http://forums.opensuse.org/showthread.php/474072-Realtek-Wireless-RTL8187B-is-unavailable-after-suspending-must-reboot-12-1
People disagree with me. I just ignore them.
(Linus Torvalds, regarding the use of C++ for the Linux kernel.)

Please Add [Solved] to the topic-title of your first post when appropriate so others know they might find a solution here.


Return to “Wireless”

Who is online

Users browsing this forum: No registered users and 3 guests