Linux Lite Forums

Hardware - Support => Network => Topic started by: Colin23erk on June 18, 2014, 03:20:56 PM

Title: Wifi USB Adapter stops working intermittently
Post by: Colin23erk on June 18, 2014, 03:20:56 PM
My internal Wifi   failed to see my Router soon after I started with Linux  so I installed a USB dongle I had

The dongle works OK for a while and then I loose my Internet but not the wifi  connection . If I disconnect/connect wifi it works ok for a while . There does not appear to be a pattern to when it fails.

It is a Realtek RTL8188CUS 802.11n using  WLAN Adaptor driver : rtl8192cu which is also installed in WinXP

I am hoping someone can give me a solution that I can understand preferably using GUI as other than trying to sort the problems I have had I have no need to learn CLI . I just want to do everyday tasks on my computer.

I have searched the Internet and there could be an issue with the Linux Drivers rtl 8192cu for the Realtek Adapter . Unfortunately for me the solutions mostly involve using  Command Line . I have tried some but get confused when they are not recognized.
With the many flavors of Linux I am not sure if they all should work in  Lite 2 . Also having  only a very limited knowledge of CLI its difficult to know if the commands given require me to be in the correct command structure before they will work .
 Also the outputs are in such an abbreviated  form that needs converted to normal language to know what they mean !!!!

Colin
Title: Re: Wifi USB Adapter stops working intermittently
Post by: Jerry on June 18, 2014, 05:38:00 PM
Your Forum profile says you use 1.0.8. Can you please confirm for us what version of Linux Lite you are using? Also, just for the record there won't be a GUI way to install this wifi adapter, if it is not playing ball, the command line is the way to get it going properly.
Title: Re: Wifi USB Adapter stops working intermittently
Post by: AndyOpie150 on June 18, 2014, 05:45:45 PM
Could you open up the terminal and type in:
Code: [Select]
lsusb
lspci -nn | grep Network
lsmod
These are three different commands. Hit the enter key after typing in each line.
Then post the output by copying then pasting here.
Put the word code before the output, wrapped in [ ], then at the end put the same thing but with a / between the [ and c.
This is called code wrappers.
Title: Re: Wifi USB Adapter stops working intermittently
Post by: Colin23erk on June 19, 2014, 04:39:46 AM
Thanks
I have updated my Profile to Lite2 and run the commands -I hope this helps

Thanks for the instructions . I hope I understood them and got it right . An example would have helped me understand


Code: [Select]
cath@cath-Advent-4211:~$ lsusb
Bus 001 Device 003: ID 0bda:0158 Realtek Semiconductor Corp. USB 2.0 multicard reader
Bus 001 Device 002: ID 0bda:8176 Realtek Semiconductor Corp. RTL8188CUS 802.11n WLAN Adapter
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 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
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
cath@cath-Advent-4211:~$ lspci -nn | grep Network
02:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. RTL8187SE Wireless LAN Controller [10ec:8199] (rev 22)
cath@cath-Advent-4211:~$ lsmod
Module                  Size  Used by
ctr                    12905  1
ccm                    17496  1
arc4                   12536  2
rtl8192cu              66675  0
rtl_usb                18072  1 rtl8192cu
rtlwifi                52835  2 rtl_usb,rtl8192cu
rtl8192c_common        47340  1 rtl8192cu
msi_wmi                13130  0
mac80211              545990  3 rtl_usb,rtlwifi,rtl8192cu
sparse_keymap          13708  1 msi_wmi
gpio_ich               13229  0
cfg80211              409394  2 mac80211,rtlwifi
dm_multipath           22402  0
snd_hda_codec_realtek    51029  1
scsi_dh                14458  1 dm_multipath
snd_hda_intel          42730  3
r8187se               155125  0
joydev                 17101  0
coretemp               13195  0
snd_hda_codec         164067  2 snd_hda_codec_realtek,snd_hda_intel
serio_raw              13230  0
snd_hwdep              13272  1 snd_hda_codec
lpc_ich                16864  0
eeprom_93cx6           13168  1 r8187se
snd_pcm                85501  2 snd_hda_codec,snd_hda_intel
snd_page_alloc         14230  2 snd_pcm,snd_hda_intel
snd_seq_midi           13132  0
snd_seq_midi_event     14475  1 snd_seq_midi
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
soundcore              12600  1 snd
bnep                   18895  2
rfcomm                 53664  4
mac_hid                13037  0
bluetooth             342263  10 bnep,rfcomm
parport_pc             31981  0
ppdev                  17391  0
lp                     13299  0
parport                40836  3 lp,ppdev,parport_pc
binfmt_misc            13140  1
dm_mirror              21756  0
dm_region_hash         20121  1 dm_mirror
dm_log                 18072  2 dm_region_hash,dm_mirror
ums_realtek            17733  0
usb_storage            48417  1 ums_realtek
i915                  705396  3
psmouse                91033  0
r8169                  61562  0
mii                    13654  1 r8169
i2c_algo_bit           13197  1 i915
drm_kms_helper         46907  1 i915
wmi                    18673  1 msi_wmi
drm                   243792  4 i915,drm_kms_helper
video                  18903  1 i915
cath@cath-Advent-4211:~$
Title: Re: Wifi USB Adapter stops working intermittently
Post by: AndyOpie150 on June 19, 2014, 10:03:40 AM
Question.
Have you already typed in a terminal:
Code: [Select]
sudo su
apt-get update && apt-get dist-upgrade
?
If not, plug computer into the back of the router and do this first. After it's done reboot and see if it will connect properly.

EDIT: You did good!
Could you post the Manufacturer, model number, and year of computer?
Title: Re: Wifi USB Adapter stops working intermittently
Post by: Colin23erk on June 19, 2014, 10:37:06 AM
Hi Thanks for that
I assume you meant me to connect using an Ethernet cable  so I could connect to the Internet to download the update .
Am I correct in thinking that the commands are the same as using the upgrade from the Menu .
If so I had done it again yesterday .

Just to say that the WiFi Dongle does connect through the Wifi Router and I can use the internet OK for a while . Then later when I try to go to a different page I get a message saying I am unable to connect .
Network Manager still says I am connected to my WiFi . If I disconnect and reconnect using Network Manager everything works normally immediately until it fails yet again .

I have a different computer that uses the same Router . It has no problems using the Router as did this one before I needed to use the dongle .

Colin
Title: Re: Wifi USB Adapter stops working intermittently
Post by: AndyOpie150 on June 19, 2014, 11:01:06 AM
Let me do a little bit more research.
I think I might have found a solution/path to a solution.
I'm like a blood hound following a scent.
Please post manufacturer, model number, and year of computer.
Title: Re: Wifi USB Adapter stops working intermittently
Post by: AndyOpie150 on June 19, 2014, 11:46:36 AM
The doggle is a TP-LINK 150bps wireless N usb adapter, right?
Model number TL-WN72?N. Could you fill in the question mark please.

EDIT: Just to be on the safe side, could you type in a terminal;
Code: [Select]
sudo su
apt-get install firmware-realtek
Title: Re: Wifi USB Adapter stops working intermittently
Post by: Colin23erk on June 19, 2014, 05:17:09 PM
The  Netbook which I had the problem first is an Advent 4211 bought August  2008 is in pieces to repair a broken hinge

This is the output from my Samsung NC110 Netbook which experienced a failure with the USB WiFi dongle this session . The dongle consists of  usb connector with a 1/4 inch of black plastic has no name on it . All that is written on it is 802.11n

Code: [Select]
colin@colin-NC110:~$ sudo su
[sudo] password for colin:
root@colin-NC110:/home/colin# apt-get install firmware-realtek
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package firmware-realtek
root@colin-NC110:/home/colin#

Hope it helps
Title: Re: Wifi USB Adapter stops working intermittently
Post by: AndyOpie150 on June 19, 2014, 10:11:23 PM
I'm back. Got to dig some more.

EDIT: Might have to compile the module from the driver found here: http://www.realtek.com/downloads/downloadsView.aspx?Langid=1&PNid=21&PFid=48&Level=5&Conn=4&ProdID=274&DownTypeID=3&GetDown=false&Downloads=true#2292 (http://www.realtek.com/downloads/downloadsView.aspx?Langid=1&PNid=21&PFid=48&Level=5&Conn=4&ProdID=274&DownTypeID=3&GetDown=false&Downloads=true#2292)

Will read up on it more so I can walk you thru it if absolutely necessary (really don't think it is though). Will look for more alternatives.
I'm really starting to think by the output of the lsmod command that a firmware update is needed. Will look into this as well.

Title: Re: Wifi USB Adapter stops working intermittently
Post by: AndyOpie150 on June 20, 2014, 12:29:04 AM
Try this for the doggle;
Code: [Select]
sudo apt-get install linux-backports-modules-cw-3.6-precise-generic
Then reboot.

Post the output of this for the internal wireless;
Code: [Select]
lspci -nnk | grep -i net
sudo lshw -C network

Should be able to get one or both to work.
Title: Re: Wifi USB Adapter stops working intermittently
Post by: Colin23erk on June 20, 2014, 09:23:37 AM
2 lots of output from Advent 4211

Code: [Select]
cath@cath-Advent-4211:~$ sudo apt-get install linux-backports-modules-cw-3.6-precise-generi
[sudo] password for cath:
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package linux-backports-modules-cw-3.6-precise-generi
E: Couldn't find any package by regex 'linux-backports-modules-cw-3.6-precise-generi'
cath@cath-Advent-4211:~$ lspci -nnk | grep -i net
01:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8101E/RTL8102E PCI Express Fast Ethernet controller [10ec:8136] (rev 02)
02:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. RTL8187SE Wireless LAN Controller [10ec:8199] (rev 22)
cath@cath-Advent-4211:~$

Code: [Select]
cath@cath-Advent-4211:~$ lspci -nnk | grep -i net
01:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8101E/RTL8102E PCI Express Fast Ethernet controller [10ec:8136] (rev 02)
02:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. RTL8187SE Wireless LAN Controller [10ec:8199] (rev 22)
cath@cath-Advent-4211:~$ sudo lshw -C network
[sudo] password for cath:
  *-network               
       description: Ethernet interface
       product: RTL8101E/RTL8102E PCI Express Fast Ethernet controller
       vendor: Realtek Semiconductor Co., Ltd.
       physical id: 0
       bus info: pci@0000:01:00.0
       logical name: eth0
       version: 02
       serial: 00:1d:92:59:6a:5f
       size: 10Mbit/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=half latency=0 link=no multicast=yes port=MII speed=10Mbit/s
       resources: irq:42 ioport:c000(size=256) memory:ffd10000-ffd10fff memory:ffd00000-ffd0ffff memory:dfd00000-dfd0ffff
  *-network
       description: Wireless interface
       product: RTL8187SE Wireless LAN Controller
       vendor: Realtek Semiconductor Co., Ltd.
       physical id: 0
       bus info: pci@0000:02:00.0
       logical name: wlan0
       version: 22
       serial: 00:1d:92:c6:26:75
       width: 32 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
       configuration: broadcast=yes driver=r8180 latency=0 multicast=yes wireless=802.11b/g
       resources: irq:17 ioport:b000(size=256) memory:dfc00000-dfc03fff
  *-network
       description: Wireless interface
       physical id: 1
       bus info: usb@1:1
       logical name: wlan1
       serial: 00:0b:81:84:1e:8b
       capabilities: ethernet physical wireless
       configuration: broadcast=yes driver=rtl8192cu driverversion=3.13.0-24-generic firmware=N/A ip=192.168.1.65 link=yes multicast=yes wireless=IEEE 802.11bgn
cath@cath-Advent-4211:~$ lsmod

Colin
Title: Re: Wifi USB Adapter stops working intermittently
Post by: AndyOpie150 on June 20, 2014, 10:55:57 AM
Ahh! Now where getting somewhere. Let me find the command to kill the internal wireless, but still allow the USB adapter. They are probably conflicting which is causing you problem. Might be the same for your other computer.

Could you post those commands for your other comtputer as well?
Title: Re: Wifi USB Adapter stops working intermittently
Post by: Colin23erk on June 20, 2014, 11:16:25 AM
No need to kill the internal WiFi "Its already dead Jim" LOL.
Here is output from Samsung

Code: [Select]
colin@colin-NC110:~$ sudo apt-get install linux-backports-modules-cw-3.6-precise-generic
[sudo] password for colin:
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package linux-backports-modules-cw-3.6-precise-generic
E: Couldn't find any package by regex 'linux-backports-modules-cw-3.6-precise-generic'
colin@colin-NC110:~$ lspci -nnk | grep -i net
05:00.0 Network controller [0280]: Intel Corporation Centrino Wireless-N 130 [8086:0896] (rev 34)
09:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8101E/RTL8102E PCI Express Fast Ethernet controller [10ec:8136] (rev 05)
colin@colin-NC110:~$ sudo lshw -C network
  *-network               
       description: Wireless interface
       product: Centrino Wireless-N 130
       vendor: Intel Corporation
       physical id: 0
       bus info: pci@0000:05:00.0
       logical name: wlan0
       version: 34
       serial: dc:a9:71:50:22:f1
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list ethernet physical wireless
       configuration: broadcast=yes driver=iwlwifi driverversion=3.13.0-24-generic firmware=18.168.6.1 ip=192.168.1.66 latency=0 link=yes multicast=yes wireless=IEEE 802.11bgn
       resources: irq:47 memory:f0100000-f0101fff
  *-network
       description: Ethernet interface
       product: RTL8101E/RTL8102E PCI Express Fast Ethernet controller
       vendor: Realtek Semiconductor Co., Ltd.
       physical id: 0
       bus info: pci@0000:09:00.0
       logical name: eth0
       version: 05
       serial: e8:11:32:d4:9a:76
       size: 10Mbit/s
       capacity: 100Mbit/s
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress msix vpd bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd autonegotiation
       configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=half firmware=rtl_nic/rtl8105e-1.fw latency=0 link=no multicast=yes port=MII speed=10Mbit/s
       resources: irq:44 ioport:2000(size=256) memory:f050c000-f050cfff memory:f0508000-f050bfff
  *-network
       description: Wireless interface
       physical id: 2
       bus info: usb@1:3
       logical name: wlan1
       serial: 00:0b:81:84:1e:8b
       capabilities: ethernet physical wireless
       configuration: broadcast=yes driver=rtl8192cu driverversion=3.13.0-24-generic firmware=N/A ip=192.168.1.65 link=yes multicast=yes wireless=IEEE 802.11bgn
colin@colin-NC110:~$


Colin
Title: Re: Wifi USB Adapter stops working intermittently
Post by: AndyOpie150 on June 20, 2014, 03:23:43 PM
Give me one more output. Type in this:
Code: [Select]
iwconfig
 

Post for both computers, but don't type in a number in the [ ]'s, just post two different outputs.

EDIT: Look at the last posted output for the Samsung. It shows the PCI device has been asigned and IP address. It is functioning. I think we should be able to get it working with out to much trouble.
Post the output of the last command of the two;
Code: [Select]
sudo apt-get update && sudo apt-get install rfkill
rfkill list
Title: Re: Wifi USB Adapter stops working intermittently
Post by: Colin23erk on June 20, 2014, 05:08:07 PM
Only got Samsung at the moment

Code: [Select]
colin@colin-NC110:~$ iwconfig
wlan0     IEEE 802.11bgn  ESSID:"TNCAP06C388" 
          Mode:Managed  Frequency:2.437 GHz  Access Point: 9C:97:26:06:C3:88   
          Bit Rate=135 Mb/s   Tx-Power=15 dBm   
          Retry  long limit:7   RTS thr:off   Fragment thr:off
          Power Management:off
          Link Quality=67/70  Signal level=-43 dBm 
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:29   Missed beacon:0

lo        no wireless extensions.

eth0      no wireless extensions.

wlan1     IEEE 802.11bgn  ESSID:"TNCAP06C388" 
          Mode:Managed  Frequency:2.437 GHz  Access Point: 9C:97:26:06:C3:88   
          Bit Rate=135 Mb/s   Tx-Power=20 dBm   
          Retry  long limit:7   RTS thr=2347 B   Fragment thr:off
          Power Management:off
          Link Quality=62/70  Signal level=-48 dBm 
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:2   Missed beacon:0

Title: Re: Wifi USB Adapter stops working intermittently
Post by: AndyOpie150 on June 21, 2014, 03:17:38 AM
Pull out the doggle and post the same "iwconfig" output.
What happened to the "rfkill list" comand output? This will show if your wireless pci card is being blocked. If it shows an output then there is a button or key, or setting in the bios, that will turn it on. Seeings how it's a Samsung this is highly probable.

Edit: Press the FN + F9 keys to turn on wireless.
Title: Re: Wifi USB Adapter stops working intermittently
Post by: Colin23erk on June 21, 2014, 04:47:56 AM
Output after remoing Dongle and a restart

Code: [Select]
colin@colin-NC110:~$ iwconfig
wlan0     IEEE 802.11bgn  ESSID:"TNCAP06C388" 
          Mode:Managed  Frequency:2.437 GHz  Access Point: 9C:97:26:06:C3:88   
          Bit Rate=135 Mb/s   Tx-Power=15 dBm   
          Retry  long limit:7   RTS thr:off   Fragment thr:off
          Power Management:off
          Link Quality=70/70  Signal level=-40 dBm 
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:88   Missed beacon:0

lo        no wireless extensions.

eth0      no wireless extensions.

colin@colin-NC110:~$



Colin
Title: Re: Wifi USB Adapter stops working intermittently
Post by: Colin23erk on June 21, 2014, 05:33:32 AM
Yes it has the FN+F9 and an LED for Wireless
I had noticed that the LED comes on at startup and stays on whatever I do with the FN+F9 keys

This is the output when I try iwconfig ----FN+F9----iwconfig ----FN+F9---

iwconfig ----FN+F9 ---iwconfig

Code: [Select]
colin@colin-NC110:~$ iwconfig
wlan0     IEEE 802.11bgn  ESSID:"TNCAP06C388" 
          Mode:Managed  Frequency:2.437 GHz  Access Point: 9C:97:26:06:C3:88   
          Bit Rate=1 Mb/s   Tx-Power=15 dBm   
          Retry  long limit:7   RTS thr:off   Fragment thr:off
          Power Management:off
          Link Quality=69/70  Signal level=-41 dBm 
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:262   Missed beacon:0

lo        no wireless extensions.

eth0      no wireless extensions.

FN+F9

colin@colin-NC110:~$ iwconfig
wlan0     IEEE 802.11bgn  ESSID:"TNCAP06C388" 
          Mode:Managed  Frequency:2.437 GHz  Access Point: 9C:97:26:06:C3:88   
          Bit Rate=135 Mb/s   Tx-Power=15 dBm   
          Retry  long limit:7   RTS thr:off   Fragment thr:off
          Power Management:off
          Link Quality=69/70  Signal level=-41 dBm 
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:263   Missed beacon:0

lo        no wireless extensions.

eth0      no wireless extensions.

FN+F9
 
colin@colin-NC110:~$ iwconfig
wlan0     IEEE 802.11bgn  ESSID:"TNCAP06C388" 
          Mode:Managed  Frequency:2.437 GHz  Access Point: 9C:97:26:06:C3:88   
          Bit Rate=135 Mb/s   Tx-Power=15 dBm   
          Retry  long limit:7   RTS thr:off   Fragment thr:off
          Power Management:off
          Link Quality=69/70  Signal level=-41 dBm 
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:263   Missed beacon:0

lo        no wireless extensions.

eth0      no wireless extensions.


FN+F9
 
colin@colin-NC110:~$ iwconfig
wlan0     IEEE 802.11bgn  ESSID:"TNCAP06C388" 
          Mode:Managed  Frequency:2.437 GHz  Access Point: 9C:97:26:06:C3:88   
          Bit Rate=135 Mb/s   Tx-Power=15 dBm   
          Retry  long limit:7   RTS thr:off   Fragment thr:off
          Power Management:off
          Link Quality=68/70  Signal level=-42 dBm 
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:263   Missed beacon:0

lo        no wireless extensions.

eth0      no wireless extensions.

colin@colin-NC110:~$
Title: Re: Wifi USB Adapter stops working intermittently
Post by: AndyOpie150 on June 21, 2014, 06:30:52 AM
If after you press the
FN + F9 keys and the LED for wireless stays on, then all you need to do now is connect/configure your wireless.
In the task bar you should have a Network icon. Right click to make sure you have a checkmark next to "enable networking" and "enable wireless". If yes, then left click the same icon and select your network. Type in network password when the pop up window appears.

If not, let me know what you see/don't see and type in;
Code: [Select]
sudo rfkill unblock all
Title: Re: Wifi USB Adapter stops working intermittently
Post by: Colin23erk on June 21, 2014, 08:39:13 AM
Both are ticked

Code: [Select]
colin@colin-NC110:~$ sudo rfkill unblock all
[sudo] password for colin:
sudo: rfkill: command not found
colin@colin-NC110:~$


Installed rfkill

Code: [Select]
colin@colin-NC110:~$ rfkill list
0: hci0: Bluetooth
Soft blocked: no
Hard blocked: no
1: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
2: samsung-wlan: Wireless LAN
Soft blocked: no
Hard blocked: no
3: samsung-bluetooth: Bluetooth
Soft blocked: no
Hard blocked: no
colin@colin-NC110:~$


Tried Command again

Code: [Select]


colin@colin-NC110:~$  sudo rfkill unblock all
[sudo] password for colin:
colin@colin-NC110:~$



Title: Re: Wifi USB Adapter stops working intermittently
Post by: AndyOpie150 on June 21, 2014, 09:32:43 AM
As you can see, you have nothing blocking your pci wireless card from working.
You should now only have to left click on the network icon and select your network.
If your network is not displayed, does it show others? If so, you will need to configure your network manually.
Let me know what is going on/what you see. Please don't leave out anything, let me know exactly what you see.


PS: You shouldn't need to run rfkill commands anymore.

EDIT: Almost forgot. Turn router off and unplug from power. Then turn computer off. Wait 5 minutes.
Power up router and let it fully reboot, then turn on computer. See if it will now show you network in the network manager.
Title: Re: Wifi USB Adapter stops working intermittently
Post by: Colin23erk on June 21, 2014, 09:58:04 AM
 Hi Andy

I am not sure what your line of thought is . WiFi works OK

The original problem was that the USB WiFi adapter can connect to the internet normally via the router but after a while the internet  is lost but the connection to the Router is still there  . 

The problem does not happen with the internal WiFi connection
Title: Re: Wifi USB Adapter stops working intermittently
Post by: AndyOpie150 on June 21, 2014, 10:41:09 AM
OK. I just thought you wanted the Wireless to work. The internal is fully capable of WPA2 security. Why would you want to use the USB doggle if the internal will give the same results?

Anyway. If you want to use the USB doggle then you need to kill the internal.
Type in;
Code: [Select]
rfkill block wifi0

or

Code: [Select]
ifdown wifi0


What's the story on the other computer? Do you still need to eventually get the wireless working on it? Unless you gave it away. Then I guess there would be no need.
Title: Re: Wifi USB Adapter stops working intermittently
Post by: Colin23erk on June 21, 2014, 01:23:39 PM
Sorry

The problem happened when my Advent PC's Internal WiFi stopped connecting to my router so I used the USB WiFi adapter and although it connected successfully via the Router the Internet kept dropping out .

To see if it was a problem with the Adapter I tried it in the Samsung PC and found it was exactly the same .

At the moment the Advent is not serviceable so I have been using the Samsung to try and find a solution that will work in both PCs
 
Title: Re: Wifi USB Adapter stops working intermittently
Post by: AndyOpie150 on June 21, 2014, 05:23:55 PM
Did it work?
Title: Re: Wifi USB Adapter stops working intermittently
Post by: Colin23erk on June 22, 2014, 04:06:17 AM
Code: [Select]
colin@colin-NC110:~$ rfkill block wifi0
Bogus block argument 'wifi0'.
colin@colin-NC110:~$ ifdown wifi0
ifdown: failed to open lockfile /run/network/.ifstate.lock: Permission denied

As it failed I tried

Code: [Select]
colin@colin-NC110:~$ sudo ifdown wifi0
[sudo] password for colin:
ifdown: interface wifi0 not configured
colin@colin-NC110:~$

The Advent gets used when my friend comes so I would like it to be able to connect to You Tube
Title: Re: Wifi USB Adapter stops working intermittently
Post by: N4RPS on June 22, 2014, 05:16:21 AM
Hello!

Am I just being ignorant, or should wifi0 be wl0 or wlan0 instead?

73 DE N4RPS
Rob
Title: Re: Wifi USB Adapter stops working intermittently
Post by: AndyOpie150 on June 22, 2014, 08:25:41 AM
LOL. No it should be wlan0.
Thanks for catching my brain dead mistake.

Colin23erk: Replace wifi0 with wlan0 in the code. Sorry for the mistake.

EDIT: Looking at the outputs to the Advent; the code should be the same for it to. Don't know why I was thinking it was wifi0 (I help out at to many linux forum sites).
Title: Re: Wifi USB Adapter stops working intermittently
Post by: Colin23erk on June 22, 2014, 01:34:09 PM
Hi This is the output
Code: [Select]


colin@colin-NC110:~$ rfkill block wlan0
Bogus block argument 'wlan0'.

colin@colin-NC110:~$ ifdown wlan0
ifdown: failed to open lockfile /run/network/.ifstate.lock: Permission denied

colin@colin-NC110:~$
Title: Re: Wifi USB Adapter stops working intermittently
Post by: AndyOpie150 on June 22, 2014, 06:19:38 PM
Try:
Code: [Select]
sudo su
ifdown wlan0
Title: Re: Wifi USB Adapter stops working intermittently
Post by: Colin23erk on June 23, 2014, 03:55:41 AM
Code: [Select]
colin@colin-NC110:~$ sudo su
[sudo] password for colin:
root@colin-NC110:/home/colin# ifdown wlan0
ifdown: interface wlan0 not configured
root@colin-NC110:/home/colin#
Title: Re: Wifi USB Adapter stops working intermittently
Post by: Colin23erk on June 23, 2014, 08:19:47 AM
the preious output error-ed with (  interface wlan0 not configured) so I tried rfkill list wlan  to see how the WLANs were listed but I am confused with the output as it does not use (  wlan0  etc  )
Code: [Select]
colin@colin-NC110:~$ rfkill list wlan
1: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
2: samsung-wlan: Wireless LAN
Soft blocked: no
Hard blocked: no
4: phy1: Wireless LAN
Soft blocked: no
Hard blocked: no
colin@colin-NC110:~$
Item 4 is the dongle - If I unplug /plug it in the item number and the phy number steps up one

Does this shed any light why the command fails or am I looking for the wrong items
Title: Re: Wifi USB Adapter stops working intermittently
Post by: AndyOpie150 on June 23, 2014, 10:50:39 AM
I think we need to concentrate on the other machine instead of the Samsung with the already great WiFi connection.
Try the commands on the Advent, as thats the one you need to get the WiFi working on.
Title: Re: Wifi USB Adapter stops working intermittently
Post by: Colin23erk on June 23, 2014, 03:46:23 PM
OK I was hoping to sort out the problem while the Advent is away and possibly help someone else in the future .
 I have noticed a difference with the adapter between Linux (adapter light stays on ) and Win7  ( light flashes)

Thanks for all the effort you put in trying to solve it .

Bye Colin
Title: Re: Wifi USB Adapter stops working intermittently
Post by: AndyOpie150 on June 23, 2014, 06:42:46 PM
Sorry about that. Didn't see the last output clearly. Not enough sleep last night due to installing Linux Lite on another computer, but only had phones throttled 3G signal 25KB/s to update-took forever).
If you want you could try:
The kill command, switching wlan0 with phy0.

Again sorry for not seeing the last output clearly.
Title: Re: Wifi USB Adapter stops working intermittently
Post by: N4RPS on June 24, 2014, 03:34:36 AM
Hello!

Found this helpfile in rfkill:

rob@N4RPS-D630-L:~$ rfkill --help
Usage:   rfkill [options] command
Options:
   --version   show version (0.5-1ubuntu1 (Ubuntu))
Commands:
   help
   event
   list [IDENTIFIER]
   block IDENTIFIER
   unblock IDENTIFIER
where IDENTIFIER is the index no. of an rfkill switch or one of:
   <idx> all wifi wlan bluetooth uwb ultrawideband wimax wwan gps fm nfc

Apparently, 'wlan0' is not supported. Given what the help file says, I must stand corrected about wifi as a legal parameter for this command. Additionally, I'd run this rfkill command BEFORE inserting the USB adapter, so you don't kill IT, TOO.

As for the 'ifdown' command, try 'sudo' in front of it. Whenever you see 'Permission denied', it's probably because it's a 'super user only ' command...

73 DE N4RPS
Rob


73


Title: Re: Wifi USB Adapter stops working intermittently
Post by: Colin23erk on June 24, 2014, 05:02:19 AM
Hi
Loosing Hope with solving this --each step forward just presents a new problem to solve !

I have found out what the identifier is for rfkill its the devices number as shown with ( rfkill list )
Code: [Select]
root@colin-NC110:/home/colin# rfkill list
0: hci0: Bluetooth
Soft blocked: no
Hard blocked: no
1: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
2: samsung-wlan: Wireless LAN
Soft blocked: no
Hard blocked: no
3: samsung-bluetooth: Bluetooth
Soft blocked: no
Hard blocked: no
4: phy1: Wireless LAN
Soft blocked: yes
Hard blocked: no
root@colin-NC110:/home/colin# rfkill unblock 1
root@colin-NC110:/home/colin# rfkill unblock 4
root@colin-NC110:/home/colin#

I blocked 1 before I connected the dongle  to find I still had no WiF

The next problem is that both phy1 and phy0 are both blocked

In the output above item 1 that is shown as not blocked is also blocked for use as well as Item 4 which is shown as soft blocked

I could not unblock 1  (rfkill unblock 1) directly

I only got WiFi back when unblocking 4 (rfkill unblock 4) which unlocked 1 and 4

Where do I go now ??????

Colin






Title: Re: Wifi USB Adapter stops working intermittently
Post by: AndyOpie150 on June 24, 2014, 08:22:20 AM
Time to do some more research on my part. Will post if I find out anything. It's got to be something simple that I'm missing.