Author Topic: Wifi connection : how to blacklist rtl8180 ? [SOLVED]  (Read 2455 times)

Offline melodie

  • Hero Member
  • *****
  • Posts: 5942
  • XMMP=Jabber, free instant messaging protocol !
    • PCLinuxOS Fr
Wifi connection : how to blacklist rtl8180 ? [SOLVED]
« on: May 30, 2011, 05:36:59 AM »
Hi,

I now need to use wifi for my connection. The card is a pcmcia Netgear that use netma521 with ndiswrapper. It provides a 70% level link, whereas rtl8180 provides between 9% and 59% in the better case, and not very stable.

I configured the connection with netma521/ndiswrapper, but after reboot I get rtl8180 back. I blacklisted it in the file /etc/modprobe.d/blacklist : same ; I also blacklisted it in the file /etc/modprobe.d/blacklist-pclos at the next reboot, but the following reboot still has rtl8180 (and ndiswrapper not loaded).

Here are the outputs from console:

Code: [Select]
# lspci
.....
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8110SC/8169SC Gigabit Ethernet (rev 10)
.....
.....
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8180L 802.11b MAC (rev 20)
#

Code: [Select]
# lsmod | grep ndiswrapper
ndiswrapper           177255  0
usbcore               117639  8 ndiswrapper,snd_usb_audio,snd_usbmidi_lib,uhci_hcd,ohci_hcd,ehci_hcd,usbhid
Code: [Select]
# lsmod | grep pcmcia
pcmcia                 31690  0
pcmcia_rsrc             8880  1 yenta_socket
pcmcia_core            10281  3 pcmcia,yenta_socket,pcmcia_rsrc
Code: [Select]
# lsmod | grep yenta_socket
yenta_socket           19176  0
pcmcia_rsrc             8880  1 yenta_socket
pcmcia_core            10281  3 pcmcia,yenta_socket,pcmcia_rsrc

(I have to load manually ndiswrapper only, yenta and pcmcia are automatically loaded).

The kernel is 2.6.38.7-pclos1.bfs.

What would you suggest ?

Thanks,
Mélodie




« Last Edit: May 31, 2011, 05:05:44 AM by melodie »
melodie at swissjabber dot ch - IRC #pclinuxos-fr sur freenode

Offline wedgetail

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2426
  • Any Bugs in site?
Re: Wifi connection : how to blacklist rtl8180 ?
« Reply #1 on: May 30, 2011, 06:17:29 AM »
melodie

Show us your blakclist  :)
32 bit: KDE (older) & various KDE-mini, ASUSTek P5P41D Rev X.0x, BIOS AMI0207 07/21/2009, "Pentium(R) Dual-Core CPU E5300 @ 2.60GHz", nVidia GeForce 9600 GT, 2x1GB Seagate Technology 1000528AS HDD
TV CompuPro VideoMate Vista E700 (not working in Linux), Acer X243HD LCD Screen

Offline melodie

  • Hero Member
  • *****
  • Posts: 5942
  • XMMP=Jabber, free instant messaging protocol !
    • PCLinuxOS Fr
Re: Wifi connection : how to blacklist rtl8180 ?
« Reply #2 on: May 30, 2011, 12:28:16 PM »
melodie

Show us your blakclist  :)


Hi wedgetail, here it is:
Code: [Select]
$ cat /etc/modprobe.d/blacklist
blacklist ssb

blacklist rtl8180
blacklist pcspkr
blacklist w35und

Code: [Select]
$ cat /etc/modprobe.d/blacklist-pclos
# disable PC speaker by default
# pcspkr is the standard driver, while snd-pcsp is the ALSA driver
blacklist rtl8180
blacklist pcspkr
blacklist snd-pcsp
blacklist snd-hda-codec-atihdmi

Thanks,
Mélodie



melodie at swissjabber dot ch - IRC #pclinuxos-fr sur freenode

Offline Chomp

  • Full Member
  • ***
  • Posts: 173
Re: Wifi connection : how to blacklist rtl8180 ?
« Reply #3 on: May 30, 2011, 12:38:35 PM »
Have you tried blacklisting rtl8180l (with the L on the end)?

Offline melodie

  • Hero Member
  • *****
  • Posts: 5942
  • XMMP=Jabber, free instant messaging protocol !
    • PCLinuxOS Fr
Re: Wifi connection : how to blacklist rtl8180 ?
« Reply #4 on: May 30, 2011, 12:42:26 PM »
Have you tried blacklisting rtl8180l (with the L on the end)?

Hi Chomp,

I haven't, but none of this name is loaded either...
Code: [Select]
[root@localhost /]# lsmod | grep rtl8180l
[root@localhost /]#

Code: [Select]
[root@localhost /]# lsmod | grep rtl8180*
rtl8180                26637  0
mac80211              189429  1 rtl8180
eeprom_93cx6            1052  1 rtl8180
cfg80211              126819  2 rtl8180,mac80211
[root@localhost /]#

Thanks.



melodie at swissjabber dot ch - IRC #pclinuxos-fr sur freenode

Offline melodie

  • Hero Member
  • *****
  • Posts: 5942
  • XMMP=Jabber, free instant messaging protocol !
    • PCLinuxOS Fr
Re: Wifi connection : how to blacklist rtl8180 ?
« Reply #5 on: May 30, 2011, 01:43:09 PM »
Hi,

This is how I switch from rtl8180 (which is a very badly working connection) to netma521/ndiswrapper (which works in a very satisfying way):

Quote
[root@localhost /]# rmmod rtl8180
[root@localhost /]# modprobe ndiswrapper
[root@localhost /]# /etc/rc.d/init.d/network start
Démarrage de l'interface loopback :                             [  OK  ]
Configuration du domaine réglementaire du sans-fil              [  OK  ]
Activation de l'interface eth0 :  Sorry, there is already an instance of ifplugd for eth0 running.
                                                                [ÉCHEC ]
Activation de l'interface wlan1 :  Another wpa_supplicant instance is already running for device wlan1
Sorry, there is already an instance of ifplugd for wlan1 running.
                                                                [ÉCHEC ]
[root@localhost /]# /etc/rc.d/init.d/network start
Démarrage de l'interface loopback :                             [  OK  ]
Configuration du domaine réglementaire du sans-fil              [  OK  ]
Activation de l'interface eth0 :  Sorry, there is already an instance of ifplugd for eth0 running.
                                                                [ÉCHEC ]
Activation de l'interface wlan1 :  Another wpa_supplicant instance is already running for device wlan1
Sorry, there is already an instance of ifplugd for wlan1 running.
                                                                [ÉCHEC ]
[root@localhost /]# /etc/rc.d/init.d/network start
Démarrage de l'interface loopback :                             [  OK  ]
Configuration du domaine réglementaire du sans-fil              [  OK  ]
Activation de l'interface eth0 :  Sorry, there is already an instance of ifplugd for eth0 running.
                                                                [ÉCHEC ]
Activation de l'interface wlan1 :  Another wpa_supplicant instance is already running for device wlan1
Sorry, there is already an instance of ifplugd for wlan1 running.
                                                                [ÉCHEC ]
[root@localhost /]# /etc/rc.d/init.d/network start
Démarrage de l'interface loopback :                             [  OK  ]
Configuration du domaine réglementaire du sans-fil              [  OK  ]
Activation de l'interface eth0 :  Sorry, there is already an instance of ifplugd for eth0 running.
                                                                [ÉCHEC ]
Activation de l'interface wlan1 :  Another wpa_supplicant instance is already running for device wlan1
Sorry, there is already an instance of ifplugd for wlan1 running.
                                                                [ÉCHEC ]
[root@localhost /]# killall ifplugd
[root@localhost /]# /etc/rc.d/init.d/network start
Démarrage de l'interface loopback :                             [  OK  ]
Configuration du domaine réglementaire du sans-fil              [  OK  ]
Activation de l'interface eth0 :                                [  OK  ]
Activation de l'interface wlan1 :  Another wpa_supplicant instance is already running for device wlan1
                                                                [  OK  ]
[root@localhost /]#

Is there a possible fix to get this couple ndiswrapper/netma521 stable, please ?

Thanks,
Mélodie

melodie at swissjabber dot ch - IRC #pclinuxos-fr sur freenode

Offline AS

  • Hero Member
  • *****
  • Posts: 4111
  • Have a nice ... night!
Re: Wifi connection : how to blacklist rtl8180 ?
« Reply #6 on: May 30, 2011, 01:58:26 PM »
Hello Melodie,

did you check your /etc/modprobe.conf for lines related to rtl8180 references ?
Additionally, did you try to completely remove your network configuration, reboot and then install ndiswrapper upon new configuration ?
Have had a similar issue in the past, and if I remember correctly was solved as described above (remove conf, blacklist, install ndiswrapper).

AS

Offline melodie

  • Hero Member
  • *****
  • Posts: 5942
  • XMMP=Jabber, free instant messaging protocol !
    • PCLinuxOS Fr
Re: Wifi connection : how to blacklist rtl8180 ?
« Reply #7 on: May 30, 2011, 02:10:33 PM »
Hi AS,

This is my /etc/modprobe.conf at the moment:

Quote
# cat /etc/modprobe.conf
install scsi_hostadapter /sbin/modprobe ata_piix; /sbin/modprobe ahci; /bin/true
install usb-interface /sbin/modprobe ehci_hcd; /sbin/modprobe uhci_hcd; /sbin/modprobe ohci_hcd; /bin/true
options snd-ac97-codec power_save=1
alias eth0 r8169
alias wlan1 ndiswrapper
alias pci:v000010ECd00008180sv00001385sd00004700bc02sc00i00 ndiswrapper
options ipv6 disable=1

I can (re) install ndiswrapper, but if I remove configurations first I can't install anything. Would you suggest I try reverse side ? (I have tried removing all connections before re-configuring the whole thing, in steps 1 to 2... )


melodie at swissjabber dot ch - IRC #pclinuxos-fr sur freenode

Offline melodie

  • Hero Member
  • *****
  • Posts: 5942
  • XMMP=Jabber, free instant messaging protocol !
    • PCLinuxOS Fr
Re: Wifi connection : how to blacklist rtl8180 ?
« Reply #8 on: May 30, 2011, 02:12:20 PM »
I have theses packages installed:

ndiswrapper-netma521
NdisWrapper Netgear MA521 Support files

ndiswrapper
NdisWrapper binary loader utility

melodie at swissjabber dot ch - IRC #pclinuxos-fr sur freenode

Offline muungwana

  • Hero Member
  • *****
  • Posts: 6214
Re: Wifi connection : how to blacklist rtl8180 ?
« Reply #9 on: May 30, 2011, 02:16:39 PM »

if "rtl8180" keep loading even after you blacklist it then you can try to remove it from the system.

open the terminal and then type "locate rtl8180".

The above command will show you where it is located on the kernel tree. Go there and move it out( to your home folder for example)

log in as root and then run this command and then reboot and see if it will continue to show up and cause problems.

depmod -a

ps:
it is always better to use "restart" than "start" option when starting services.
.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..

Offline melodie

  • Hero Member
  • *****
  • Posts: 5942
  • XMMP=Jabber, free instant messaging protocol !
    • PCLinuxOS Fr
Re: Wifi connection : how to blacklist rtl8180 ?
« Reply #10 on: May 31, 2011, 01:44:58 AM »
if "rtl8180" keep loading even after you blacklist it then you can try to remove it from the system.

open the terminal and then type "locate rtl8180".

The above command will show you where it is located on the kernel tree. Go there and move it out( to your home folder for example)

Hi muungwana,

I have moved it to itself (*-back)

Quote
log in as root and then run this command and then reboot and see if it will continue to show up and cause problems.

depmod -a

and ran depmod -a. Checked "man depmod", looked after into modules.dep file and didn't find rtl8180 in it anymore. I rebooted and at last ! I get the connection done by ndiswrapper ! After a few minutes the link level is of 76% !

Quote
ps:
it is always better to use "restart" than "start" option when starting services.

Well, if the service is already started, the command will fail, and if the service is not started, it will work. ^^
(And if you restart but the service was not started yet, you will get a "fail" on the "stop" part of the command).

Well, the problem is partly SOLVED. I mean, your suggests did work. Else : next kernel I will install, I'll have to move the driver again ; And I still don't know WHY the blacklist files don't work. Is there something wrong in the syntax ? Has something changed ?

And last : why is the free driver not working as well as the non free driver ? I would point to it to the attention of the developer of the rtl8180 driver, but atm I don't quite know how to find a direction.

Thanks for all,
Mélodie

melodie at swissjabber dot ch - IRC #pclinuxos-fr sur freenode

Offline wedgetail

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2426
  • Any Bugs in site?
Re: Wifi connection : how to blacklist rtl8180 ? [PARTLY SOLVED]
« Reply #11 on: May 31, 2011, 03:26:52 AM »
melodie
Do I understand you have a pcmcia Netgear MA521, you use it for Windows XP etc and want to use it for Linux as well?
Linux uses RTL8180 and you get poor signal strength compared with netma521 running Windows?
Now you want to use Ndiswrapper and Netma521 driver for your Linux connection?

Ok if you are happy with what you have got so far, forget the following  ;D

I am however curious why you get the poor performance with the rtl8180
Can you show

Code: [Select]
lspci -vn     Edit: corrected this, as the following poster spotted my error  :-[

which gets rather long and I only want the section for  

Code: [Select]
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8180L 802.11b MAC (rev 20)
Also the following

Code: [Select]
[root@localhost ~]# modinfo rtl8180

Code: [Select]
[root@localhost ~]# cat /etc/modprobe.preload

w
« Last Edit: May 31, 2011, 04:07:11 AM by wedgetail »
32 bit: KDE (older) & various KDE-mini, ASUSTek P5P41D Rev X.0x, BIOS AMI0207 07/21/2009, "Pentium(R) Dual-Core CPU E5300 @ 2.60GHz", nVidia GeForce 9600 GT, 2x1GB Seagate Technology 1000528AS HDD
TV CompuPro VideoMate Vista E700 (not working in Linux), Acer X243HD LCD Screen

Offline djohnston

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6227
  • I don't do Windows
Re: Wifi connection : how to blacklist rtl8180 ? [PARTLY SOLVED]
« Reply #12 on: May 31, 2011, 03:37:37 AM »
Can you show

Code: [Select]
lspcia -v  

Do you mean lspcmcia -v or lspci -v ?

(I think you mean the second one.)

« Last Edit: May 31, 2011, 03:39:41 AM by djohnston »
Bare metal                           VBox
AMD Athlon 7750 Dual-Core    Single core
4GiB RAM                              1GiB RAM
nVidia GeForce FX 5200          64MB video
LXDE 32bit                            KDE 64bit

Registered Linux User #416378

Offline wedgetail

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2426
  • Any Bugs in site?
Re: Wifi connection : how to blacklist rtl8180 ? [PARTLY SOLVED]
« Reply #13 on: May 31, 2011, 03:53:10 AM »
djohnston
Thank you, much apreciated, I was dreaming away not really focussed. I have corrected the mistake, as you can see  :)
 
32 bit: KDE (older) & various KDE-mini, ASUSTek P5P41D Rev X.0x, BIOS AMI0207 07/21/2009, "Pentium(R) Dual-Core CPU E5300 @ 2.60GHz", nVidia GeForce 9600 GT, 2x1GB Seagate Technology 1000528AS HDD
TV CompuPro VideoMate Vista E700 (not working in Linux), Acer X243HD LCD Screen

Offline djohnston

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6227
  • I don't do Windows
Re: Wifi connection : how to blacklist rtl8180 ? [PARTLY SOLVED]
« Reply #14 on: May 31, 2011, 03:56:43 AM »
I was dreaming away not really focussed.

Happens to me, too. I've done worse. You're welcome.

Bare metal                           VBox
AMD Athlon 7750 Dual-Core    Single core
4GiB RAM                              1GiB RAM
nVidia GeForce FX 5200          64MB video
LXDE 32bit                            KDE 64bit

Registered Linux User #416378