Author Topic: USB2 TP-Link TL-WN275N/ Realtek Wifi dropping  (Read 2291 times)

Offline acer

  • Member
  • ***
  • Posts: 243
  • Karma: 40
    • View Profile
  • Peppermint version(s): Peppermint 9R x86/ 10 x64
USB2 TP-Link TL-WN275N/ Realtek Wifi dropping
« on: March 13, 2016, 01:52:38 am »
Ok, had some time to upgrade my test Windows 10 laptop (HP-G60 120-EM) to Peppermint 5 this weekend. (prefer 5 over 6)
I seem to have a dropping WiFi connection on my USB2 b/g/n Realtek RTL8188CUS (TP-Link TL-WN275N) wifi adaptor.
Have tried changing the wifi channel on the router to no avail (currently on channel 6, less noise/ traffic)
The onboard wifi (Atheros AR5007 b/g) has given up for now and so have I (faster connection using the USB wifi)

Can anyone help with this issue as I'm sick of disconnecting and re-connecting the wifi already.  :(
(just done it again whilst typing) >:(

Everything went flawlessly on my Acer Aspire One  ;) Hope someone can help..


Offline acer

  • Member
  • ***
  • Posts: 243
  • Karma: 40
    • View Profile
  • Peppermint version(s): Peppermint 9R x86/ 10 x64
Re: USB2 TP-Link TL-WN275N/ Realtek Wifi dropping
« Reply #1 on: March 13, 2016, 01:55:49 am »
rfkill list:

Code: [Select]
0: phy1: Wireless LAN
Soft blocked: no
Hard blocked: no
1: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26452
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: USB2 TP-Link TL-WN275N/ Realtek Wifi dropping
« Reply #2 on: March 13, 2016, 05:55:04 am »
Can you post the output from:
Code: [Select]
sudo lshw -C networkand
Code: [Select]
lsusb
and did you do anything to "install" any drivers .. or did it just (kinda) work out of the box ?



Links for POSSIBLE future reference, depending on the output above:

https://forums.linuxmint.com/viewtopic.php?f=53&t=94495
and
https://github.com/pvaret/rtl8192cu-fixes
« Last Edit: March 13, 2016, 06:08:15 am by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline acer

  • Member
  • ***
  • Posts: 243
  • Karma: 40
    • View Profile
  • Peppermint version(s): Peppermint 9R x86/ 10 x64
Re: USB2 TP-Link TL-WN275N/ Realtek Wifi dropping
« Reply #3 on: March 13, 2016, 06:20:32 am »
Thanks PCNetSpec,
Out of the box so to speak..then a complete system update

sudo lshw -C network:
Code: [Select]
      description: Ethernet interface
       product: RTL8101/2/6E PCI Express Fast/Gigabit Ethernet controller
       vendor: Realtek Semiconductor Co., Ltd.
       physical id: 0
       bus info: pci@0000:02:00.0
       logical name: eth0
       version: 02
       serial: [removed for security]
       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:43 ioport:3000(size=256) memory:d3010000-d3010fff memory:d3000000-d300ffff memory:d3020000-d303ffff
  *-network
       description: Wireless interface
       product: AR242x / AR542x Wireless Network Adapter (PCI-Express)
       vendor: Qualcomm Atheros
       physical id: 0
       bus info: pci@0000:03:00.0
       logical name: wlan0
       version: 01
       serial: [removed for security]
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress msix bus_master cap_list ethernet physical wireless
       configuration: broadcast=yes driver=ath5k driverversion=3.13.0-79-generic firmware=N/A latency=0 link=no multicast=yes wireless=IEEE 802.11bg
       resources: irq:17 memory:d5100000-d510ffff
  *-network
       description: Wireless interface
       physical id: 2
       bus info: usb@2:5
       logical name: wlan1
       serial: [removed for security]
       capabilities: ethernet physical wireless
       configuration: broadcast=yes driver=rtl8192cu driverversion=3.13.0-79-generic firmware=N/A ip=xxx.xxx.x.xx link=yes multicast=yes wireless=IEEE 802.11bgn

lsusb:

Code: [Select]
Bus 002 Device 003: ID 0bda:8176 Realtek Semiconductor Corp. RTL8188CUS 802.11n WLAN 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 002: ID 046d:c526 Logitech, Inc. Nano Receiver
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 001 Device 003: ID 04f2:b091 Chicony Electronics Co., Ltd Webcam
Bus 001 Device 002: ID 0bda:0158 Realtek Semiconductor Corp. USB 2.0 multicard reader
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

« Last Edit: March 13, 2016, 07:28:01 am by acer »

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26452
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: USB2 TP-Link TL-WN275N/ Realtek Wifi dropping
« Reply #4 on: March 13, 2016, 09:44:39 am »
DO NOT follow the instructions below on Peppermint 6 .. they are for Peppermint 5 ONLY .. if you're running Peppermint 6 change the first command to:
Code: [Select]
sudo apt-get install git linux-headers-generic-lts-utopic build-essential dkmsthe carry on from (and including) the second command.



For Peppermint 5

OK, probably best to connect via an ethernet cable whilst we do this, as you're going to be downloading/installing some stuff

Open a terminal and run these commands in sequence:
Code: [Select]
sudo apt-get install git linux-headers-generic build-essential dkmsthen:
Code: [Select]
mkdir ~/rtl8192cu-fixesthen:
Code: [Select]
cd ~/rtl8192cu-fixesthen:
Code: [Select]
git clone https://github.com/pvaret/rtl8192cu-fixes.gitthen:
Code: [Select]
sudo dkms add ./rtl8192cu-fixesthen:
Code: [Select]
sudo dkms install 8192cu/1.10then:
Code: [Select]
sudo depmod -athen:
Code: [Select]
sudo cp ./rtl8192cu-fixes/blacklist-native-rtl8192.conf /etc/modprobe.d/then:
Code: [Select]
sudo cp ./rtl8192cu-fixes/8192cu-disable-power-management.conf /etc/modprobe.d/now REBOOT

Once rebooted, test wireless.



To UNDO (for both Peppermint 5 and 6)

Code: [Select]
sudo rm -v /etc/modprobe.d/blacklist-native-rtl8192.confthen:
Code: [Select]
sudo dkms uninstall 8192cu/1.10then:
Code: [Select]
sudo dkms remove 8192cu/1.10 --allthen REBOOT
« Last Edit: March 13, 2016, 01:14:53 pm by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline acer

  • Member
  • ***
  • Posts: 243
  • Karma: 40
    • View Profile
  • Peppermint version(s): Peppermint 9R x86/ 10 x64
Re: USB2 TP-Link TL-WN275N/ Realtek Wifi dropping
« Reply #5 on: March 13, 2016, 12:49:47 pm »
Thanks for your indepth reply, unfortunately I don't have time spare until mid-week to try this out.
I'll let you know once done..

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26452
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: USB2 TP-Link TL-WN275N/ Realtek Wifi dropping
« Reply #6 on: March 13, 2016, 01:13:19 pm »
NP :)
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline acer

  • Member
  • ***
  • Posts: 243
  • Karma: 40
    • View Profile
  • Peppermint version(s): Peppermint 9R x86/ 10 x64
Re: USB2 TP-Link TL-WN275N/ Realtek Wifi dropping
« Reply #7 on: March 20, 2016, 12:04:16 pm »
OK, had a bit of time today to do a fresh installation of PM6.  ;)
Wifi network kept dropping again so, I followed the instructions above only to find that I had no wifi whatsoever.
I have now reverted back to it's original state with dropping wifi..

any other workarounds per chance?

(on a side note) rebooting causes the wifi to disappear when logged back in but, if I shut down the laptop, removed power supply and held the on/off switch for ten seconds, upon boot up, the wifi would be ready to use, albeit intermittently
« Last Edit: March 20, 2016, 12:18:56 pm by acer »

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 26452
  • Karma: 65531
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Re: USB2 TP-Link TL-WN275N/ Realtek Wifi dropping
« Reply #8 on: March 20, 2016, 03:19:54 pm »
see if this makes a difference
Code: [Select]
echo "options rtl8192cu swenc=1" | sudo tee /etc/modprobe.d/rtl8192cu.confthen REBOOT

Once rebooted, test wireless



to undo
Code: [Select]
sudo rm -v  /etc/modprobe.d/rtl8192cu.confthen reboot
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec