You are not logged in.

#1 2017-06-18 17:29:29

manouchk
Member
Registered: 2008-07-29
Posts: 306

Difficulties to configure my wireless adapter

Hi,

I'm having difficulty to make the RTL8188CUS 802.11n WLAN Adapter 0bda:8176

The adapter identification is:

#lsusb -s 002:003
Bus 002 Device 003: ID 0bda:8176 Realtek Semiconductor Corp. RTL8188CUS 802.11n WLAN Adapter

So far, I did install 8192cu-dkms (v4.0.2_9000-12).

I also blaklisted modules by copying content of file /etc/modprobe.d/blacklist-8192cu-dkms.conf created by 8192cu-dkms in /etc/modprobe.d/blacklist.conf:

# more /etc/modprobe.d/blacklist.conf 

#blacklist rtl8192cu
#install rtl8192cu /bin/false
blacklist rtlwifi
blacklist rtl8192c_common
blacklist rtl8192cu
blacklist rtl8xxxu

modules 8192cu seems to be running:

lsmod |grep 8192
8192cu                536576  0
usbcore               208896  8 rndis_host,usbnet,usbhid,ehci_hcd,cdc_acm,cdc_ether,8192cu,ehci_pci

The command "ip link" seems to recognize the wifi adapter

# ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: enp0s29u1u1: <BROADCAST,MULTICAST> mtu 1500 qdisc mq state DOWN mode DEFAULT group default qlen 1000
    link/ether 00:b3:13:02:c9:47 brd ff:ff:ff:ff:ff:ff

but wifi-radar does not recognize any wifi device:

[root@localhost manu]# wifi-radar
2017-06-18 14:24:18,784: get_network_device: No WiFi device found, please set this in the preferences.
2017-06-18 14:24:18,786: get_network_device: No WiFi device found, please set this in the preferences.
          Interface doesn't support scanning.

: error fetching interface information: Device not found
Error creating proxy: The connection is closed (g-io-error-quark, 18)
Error creating proxy: The connection is closed (g-io-error-quark, 18)
Error creating proxy: The connection is closed (g-io-error-quark, 18)

I don't know what to do now. Any help/suggestion is more than welcome.

Last edited by manouchk (2017-06-18 18:45:14)

Offline

#2 2017-06-18 19:22:41

manouchk
Member
Registered: 2008-07-29
Posts: 306

Re: Difficulties to configure my wireless adapter

I also added a file in order to Disable power management for the wifi chipset, idea that I found in https://sites.google.com/site/easylinux … -0bda:8178- and https://github.com/pvaret/rtl8192cu-fix … ement.conf:

# more /etc/modprobe.d/8192cu-disable-power-management.conf
# Disable power management in the 8192cu driver. This works around a bug in
# some hardware where the device never wakes back up.
# Credit goes to Saqib Razaq (https://github.com/s-razaq) for the fix.

# rtw_power_mgnt=0 disables power saving
# rtw_enusbss=0 disables USB autosuspend
options 8192cu rtw_power_mgnt=0 rtw_enusbss=0

Still not a chance.

Last edited by manouchk (2017-06-18 19:23:50)

Offline

#3 2017-06-18 20:17:04

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,425

Re: Difficulties to configure my wireless adapter

There's no evidence that your card has been registered with the system in any way (enpxx cards are your ethernet ports). Are you sure this is the right driver for this card? What's the output of

lsusb -v
dmesg | grep -E 'usb|r819'

And please don't bump your posts and add additional information to the OP if there hasn't been a response in between.

Last edited by V1del (2017-06-18 20:22:23)

Offline

#4 2017-06-18 21:54:44

manouchk
Member
Registered: 2008-07-29
Posts: 306

Re: Difficulties to configure my wireless adapter

OK

I've choosen the driver based on the idVendor and idProduct given by lsusb. I don't know if this is sufficient in order to determine the driver.

The WLAN adapter has two synchronizes green leds blinking slow (about one time per second).

$ lsusb -v  -s 002:003

Bus 002 Device 003: ID 0bda:8176 Realtek Semiconductor Corp. RTL8188CUS 802.11n WLAN Adapter
Couldn't open device, some information will be missing
Device Descriptor:
  bLength                18
  bDescriptorType         1
  bcdUSB               2.00
  bDeviceClass            0 
  bDeviceSubClass         0 
  bDeviceProtocol         0 
  bMaxPacketSize0        64
  idVendor           0x0bda Realtek Semiconductor Corp.
  idProduct          0x8176 RTL8188CUS 802.11n WLAN Adapter
  bcdDevice            2.00
  iManufacturer           1 
  iProduct                2 
  iSerial                 3 
  bNumConfigurations      1
  Configuration Descriptor:
    bLength                 9
    bDescriptorType         2
    wTotalLength           46
    bNumInterfaces          1
    bConfigurationValue     1
    iConfiguration          0 
    bmAttributes         0x80
      (Bus Powered)
    MaxPower              500mA
    Interface Descriptor:
      bLength                 9
      bDescriptorType         4
      bInterfaceNumber        0
      bAlternateSetting       0
      bNumEndpoints           4
      bInterfaceClass       255 Vendor Specific Class
      bInterfaceSubClass    255 Vendor Specific Subclass
      bInterfaceProtocol    255 Vendor Specific Protocol
      iInterface              0 
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x81  EP 1 IN
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x02  EP 2 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x03  EP 3 OUT
        bmAttributes            2
          Transfer Type            Bulk
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0200  1x 512 bytes
        bInterval               0
      Endpoint Descriptor:
        bLength                 7
        bDescriptorType         5
        bEndpointAddress     0x84  EP 4 IN
        bmAttributes            3
          Transfer Type            Interrupt
          Synch Type               None
          Usage Type               Data
        wMaxPacketSize     0x0040  1x 64 bytes
        bInterval               1

Last edited by manouchk (2017-06-19 01:14:03)

Offline

#5 2017-06-19 12:09:29

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,868

Re: Difficulties to configure my wireless adapter

You did try to get things to work with the in-kernel rtl8192cu or rtl8xxx modules before using the aur package?


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#6 2017-06-21 00:24:47

manouchk
Member
Registered: 2008-07-29
Posts: 306

Re: Difficulties to configure my wireless adapter

I tried. Wifi-radar does not even recognise any wifi device. I don't what special things I could do because, I only found orientations for using the other driver.

Offline

#7 2017-06-21 02:45:21

jmmec
Member
Registered: 2016-12-23
Posts: 7

Re: Difficulties to configure my wireless adapter

Maybe give the following a try:

I have an Edimax WiFi dongle that I use only on my Raspberry Pi.  It has the RTL8188CUS like yours does, so I plugged it into my ArchLinux laptop to see if I could get it to work.  Check out my steps below.

My WiFi dongle:

Bus 002 Device 004: ID 7392:7811 Edimax Technology Co., Ltd EW-7811Un 802.11n Wireless Adapter [Realtek RTL8188CUS]

1. Use the newer rtl8xxxu driver, so blacklist the older stuff (and also include the 8192cu-dkms driver you pulled in, which I don't have):

[root][/etc/modprobe.d]# ls
blacklist.conf

[root][/etc/modprobe.d]# cat blacklist.conf 
blacklist rtl8192cu
blacklist rtl8192c_common
blacklist rtlwifi

2. Plug in your dongle:

# lsmod | grep rtl
rtl8xxxu              118784  0
mac80211              696320  2 iwldvm,rtl8xxxu

3. Check the output of dmesg:

[root][/etc/modprobe.d]# dmesg
... etc crap from earlier tries ....
[ 1123.201132] usb 2-2: new high-speed USB device number 4 using xhci_hcd
[ 1123.881345] usb 2-2: Vendor: Realtek
[ 1123.881352] usb 2-2: Product: 802.11n WLAN Adapter
[ 1123.881357] usb 2-2: rtl8192cu_parse_efuse: dumping efuse (0x80 bytes):
[ 1123.881361] usb 2-2: 00: 29 81 00 74 cd 00 00 00
[ 1123.881364] usb 2-2: 08: ff 00 92 73 11 78 03 41
[ 1123.881368] usb 2-2: 10: 32 00 85 62 9e ad 74 da
[ 1123.881371] usb 2-2: 18: 38 59 f7 ad 0a 03 52 65
[ 1123.881375] usb 2-2: 20: 61 6c 74 65 6b 00 16 03
[ 1123.881378] usb 2-2: 28: 38 30 32 2e 31 31 6e 20
[ 1123.881381] usb 2-2: 30: 57 4c 41 4e 20 41 64 61
[ 1123.881385] usb 2-2: 38: 70 74 65 72 00 00 00 00
[ 1123.881388] usb 2-2: 40: 00 00 00 00 00 00 00 00
[ 1123.881391] usb 2-2: 48: 00 00 00 00 00 00 00 00
[ 1123.881394] usb 2-2: 50: 00 00 00 00 00 00 00 00
[ 1123.881398] usb 2-2: 58: 06 00 2a 2a 2a 00 00 00
[ 1123.881401] usb 2-2: 60: 2c 2c 2c 00 00 00 00 00
[ 1123.881404] usb 2-2: 68: 00 00 00 00 11 11 33 00
[ 1123.881408] usb 2-2: 70: 00 00 00 00 00 00 00 00
[ 1123.881411] usb 2-2: 78: 10 00 00 00 36 00 00 00
[ 1123.881418] usb 2-2: RTL8188CU rev A (TSMC) 1T1R, TX queues 2, WiFi=1, BT=0, GPS=0, HI PA=0
[ 1123.881422] usb 2-2: RTL8188CU MAC: 74:da:38:59:f7:ad
[ 1123.881427] usb 2-2: rtl8xxxu: Loading firmware rtlwifi/rtl8192cufw_TMSC.bin
[ 1123.881514] usb 2-2: Firmware revision 80.0 (signature 0x88c1)
[ 1124.839743] usbcore: registered new interface driver rtl8xxxu
[ 1124.844773] rtl8xxxu 2-2:1.0 wlp25s0u2: renamed from wlan0
[ 1124.939877] IPv6: ADDRCONF(NETDEV_UP): wlp25s0u2: link is not ready
[ 1824.036285] IPv6: ADDRCONF(NETDEV_UP): wlp25s0u2: link is not ready

4. Confirm that your device is showing up in "ip link" (i.e. mine is named "wlp25s0u2" as shown above & below):

# ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eno1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN mode DEFAULT group default qlen 1000
    link/ether 2c:27:d7:a9:fc:5e brd ff:ff:ff:ff:ff:ff
3: wlo1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DORMANT group default qlen 1000
    link/ether 8c:a9:82:8e:6d:4c brd ff:ff:ff:ff:ff:ff
10: wlp25s0u2: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN mode DEFAULT group default qlen 1000
    link/ether 74:da:38:59:f7:ad brd ff:ff:ff:ff:ff:ff

5. I use netctl-auto / netctl, so I just created a dummy wireless profile that I named 'test' - if you use Network Manager (or software other than netctl to manage your wireless connection) then I think netctl will conflict with it.  So if you have problems at this step, then you'll need to connect differently than I did below.

[root][/etc/netctl]# cat test
Description='Test'
Interface=wlp25s0u2
Connection=wireless

Security=wpa
IP=dhcp

ESSID='XXXXessidXXXX'
Key='XXXXpasswordXXXX'

6. Sometimes the netctl tool doesn't seem very sane to me, so I did this to start the profile:

[root][/etc/netctl]# ip link set dev wlp25s0u2 down

[root][/etc/netctl]# netctl start test

7. The link was then brought UP, and an IP address assigned by my wireless router:

[root][/etc/netctl]# ip addr
.. etc ..
10: wlp25s0u2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether 74:da:38:59:f7:ad brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.105/24 brd 192.168.1.255 scope global wlp25s0u2
       valid_lft forever preferred_lft forever
    inet6 fe80::eed3:67db:9ec2:801e/64 scope link 
       valid_lft forever preferred_lft forever

[root][/etc/modprobe.d]# dmesg
... etc ...
[ 1825.505833] wlp25s0u2: authenticate with 00:1a:dd:01:01:e1
[ 1825.550451] wlp25s0u2: send auth to 00:1a:dd:01:01:e1 (try 1/3)
[ 1825.552198] wlp25s0u2: authenticated
[ 1825.555086] wlp25s0u2: associate with 00:1a:dd:01:01:e1 (try 1/3)
[ 1825.558536] wlp25s0u2: RX AssocResp from 00:1a:dd:01:01:e1 (capab=0x431 status=0 aid=7)
[ 1825.563772] usb 2-2: rtl8xxxu_bss_info_changed: HT supported
[ 1825.569546] wlp25s0u2: associated
[ 1825.569663] IPv6: ADDRCONF(NETDEV_CHANGE): wlp25s0u2: link becomes ready

8. I then took down my usual wireless interface (wlo1) to make sure that the new interface worked:

[root][/etc/netctl]# ip link set dev wlo1 down

[root][/etc/netctl]# ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eno1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN mode DEFAULT group default qlen 1000
    link/ether 2c:27:d7:a9:fc:5e brd ff:ff:ff:ff:ff:ff
3: wlo1: <BROADCAST,MULTICAST> mtu 1500 qdisc mq state DOWN mode DORMANT group default qlen 1000
    link/ether 8c:a9:82:8e:6d:4c brd ff:ff:ff:ff:ff:ff
10: wlp25s0u2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DORMANT group default qlen 1000
    link/ether 74:da:38:59:f7:ad brd ff:ff:ff:ff:ff:ff

[root][/etc/netctl]# ip route
default via 192.168.1.1 dev wlp25s0u2 src 192.168.1.105 metric 310 
192.168.1.0/24 dev wlp25s0u2 proto kernel scope link src 192.168.1.105 metric 310 

[root][/etc/netctl]# ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
64 bytes from 8.8.8.8: icmp_seq=1 ttl=52 time=185 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=52 time=81.0 ms

My EdiMax wifi dongle has a BLUE light that stays permanently ON when used as above (no flashing with traffic), but it otherwise works with the steps above.  I've been using the 8192cu driver on my Raspberry PI (using ArchLinxuARM), which does allow the blue light to flash with traffic, but maybe I'll switch to the newer rtl8xxxu on that too.

Hope this works for you.

Last edited by jmmec (2017-06-21 02:55:12)

Offline

#8 2017-06-22 01:20:06

manouchk
Member
Registered: 2008-07-29
Posts: 306

Re: Difficulties to configure my wireless adapter

It finally worked! Thank you very much!!

I think that the main difference may be that rtl8xxxu is not blacklisted.

The blacklisting file installed by 8192cu-dkms and that I was using is:

# more blacklist-8192cu-dkms.conf
blacklist rtlwifi
blacklist rtl8192c_common
blacklist rtl8192cu
blacklist rtl8xxxu

with netctl, it worked! Oh yeah!!

Offline

#9 2017-06-28 21:41:52

manouchk
Member
Registered: 2008-07-29
Posts: 306

Re: Difficulties to configure my wireless adapter

I just miss one more thing in order to be 100% function. Wifi does not work properly after waking up from system sleep state S3. I have to manually  run a "netctl restart". I

Offline

Board footer

Powered by FluxBB