jzlcrux
Posts: 5
Joined: Thu Feb 16, 2017 5:16 pm

problem with extra wifi dongle

Wed Mar 08, 2017 7:13 pm

Currently I am working with a robot project, it requires me to use a more powerful wifi dongle. So I got one, installed the driver, and the wifi dongle is not powered on when I boot it, I have to detatch it and plug it in again, then pi can reconize it, how can I solve this?
And also how can I disable the onboard wifi ---- wlan0, and just use wlan1 (my wifi dongle)?

I am using rapsberry pi 3, and the wifi dongle is RTL 8191SU
Last edited by jzlcrux on Wed Mar 08, 2017 7:37 pm, edited 1 time in total.

ktb
Posts: 1447
Joined: Fri Dec 26, 2014 7:53 pm

Re: problem with extra wifi dongle

Wed Mar 08, 2017 7:23 pm

Please provide us with more information. Which WiFi dongle? Which chipset does it have? It probably doesn't matter, but which Pi model are you using? Be specific, it will help us to help you.

Run:

Code: Select all

lsusb
and show us the output.

You might want to try something hacky like the following in /etc/rc.local:

Code: Select all

# load 8812au wifi driver module
modprobe -r 8812au
sleep 2
modprobe 8812au rtw_power_mgnt=0 rtw_enusbss=0 rtw_hwpwrp_detect=0 rtw_ips_mode=0
exit 0
Note: That is for a WiFi dongle I have. I'm guessing you have a different one which may require a different driver.

DirkS
Posts: 10497
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: problem with extra wifi dongle

Wed Mar 08, 2017 7:32 pm

You can disable the onboard wifi by adding a line to /boot/config.txt:

Code: Select all

dtoverlay=pi3-disable-wifi

jzlcrux
Posts: 5
Joined: Thu Feb 16, 2017 5:16 pm

Re: problem with extra wifi dongle

Wed Mar 08, 2017 7:42 pm

ktb wrote:Please provide us with more information. Which WiFi dongle? Which chipset does it have? It probably doesn't matter, but which Pi model are you using? Be specific, it will help us to help you.

Run:

Code: Select all

lsusb
and show us the output.

You might want to try something hacky like the following in /etc/rc.local:

Code: Select all

# load 8812au wifi driver module
modprobe -r 8812au
sleep 2
modprobe 8812au rtw_power_mgnt=0 rtw_enusbss=0 rtw_hwpwrp_detect=0 rtw_ips_mode=0
exit 0
Note: That is for a WiFi dongle I have. I'm guessing you have a different one which may require a different driver.
I am using Raspberry pi 3, and the wifi dongle is RTL 8191SU.
I use lsusb commands after booting, it reconize the wifi dongle, but there is no wlan1 at the wifi panel.

DirkS
Posts: 10497
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: problem with extra wifi dongle

Wed Mar 08, 2017 7:51 pm

What drivers did you install? If they are from the manufacturer they're probably not compatible with the Pi.
What exactly is the output of lsusb?

ktb
Posts: 1447
Joined: Fri Dec 26, 2014 7:53 pm

Re: problem with extra wifi dongle

Wed Mar 08, 2017 8:01 pm

Yea, +2 to what DirkS said^. Please show us the output, don't just tell us.

Please provide the output of the following commands as well.

Code: Select all

apt-cache policy firmware-realtek

Code: Select all

lsmod
Based on some quick searches, getting your dongle working might not be easy for a beginner. I'm not sure. It sounds like r8712u should be the correct module.
https://wiki.debian.org/rtl819x#Debian_8_.22Jessie.22
r8712u (supported devices)

Supports USB devices based on the RTL8188SU, RTL8191SU and RTL8192SU chips.
Debian 8 "Jessie"

This release supports Realtek RTL8188CE, RTL8188CUS, RTL8188DE, RTL8188EE, RTL8188ETV, RTL8188EU, RTL8188SU, RTL8191SE, RTL8191SU, RTL8192CE, RTL8192CU, RTL8192DE, RTL8192E, RTL8192EE, RTL8192SE, RTL8192SU, RTL8192U, RTL8723AE, RTL8723AU, RTL8723BE, RTL8812AE and RTL8821AE-based devices.
https://wireless.wiki.kernel.org/en/use ... rs/rtl819x
https://github.com/chunkeey/rtl8192su
Last edited by ktb on Wed Mar 08, 2017 8:12 pm, edited 2 times in total.

jzlcrux
Posts: 5
Joined: Thu Feb 16, 2017 5:16 pm

Re: problem with extra wifi dongle

Wed Mar 08, 2017 8:08 pm

DirkS wrote:What drivers did you install? If they are from the manufacturer they're probably not compatible with the Pi.
What exactly is the output of lsusb?
the chipset is RTL 8191SU
Attachments
s.JPG
s.JPG (54.56 KiB) Viewed 2006 times

ktb
Posts: 1447
Joined: Fri Dec 26, 2014 7:53 pm

Re: problem with extra wifi dongle

Wed Mar 08, 2017 8:26 pm

Thank you.

That looks pretty good to me.

Can we see the output of dmesg too?

I suggest trying something like I suggested earlier.

How about you run the following commands and post the output?

Code: Select all

ifconfig -a
sudo modprobe -r r8712u
sudo modprobe r8712u
ifconfig -a
dmesg
Does the dongle have an activity/status light on it? Does it show any activity after running those commands?

EDIT: added sudo, sorry.

jzlcrux
Posts: 5
Joined: Thu Feb 16, 2017 5:16 pm

Re: problem with extra wifi dongle

Wed Mar 08, 2017 8:58 pm

ktb wrote:Thank you.

That looks pretty good to me.

Can we see the output of dmesg too?

I suggest trying something like I suggested earlier.

How about you run the following commands and post the output?

Code: Select all

ifconfig -a
sudo modprobe -r r8712u
sudo modprobe r8712u
ifconfig -a
dmesg
Does the dongle have an activity/status light on it? Does it show any activity after running those commands?

EDIT: added sudo, sorry.
thank you for your suggestion, however, the code is not working. and the dmesg commands has a loads of output, I only screenshot the last part of the output.
The status light is not on during the entire process. And the wifi dongle seems completely dead after pi is rebooted, i have to unplug it manually and plug it in again to activate it, then it works perfectly fine. So I assume that you want me to run the code when wifi dongle is dead?
Attachments
55555.GIF
55555.GIF (58.31 KiB) Viewed 1891 times
1234.GIF
1234.GIF (43.33 KiB) Viewed 1891 times

ktb
Posts: 1447
Joined: Fri Dec 26, 2014 7:53 pm

Re: problem with extra wifi dongle

Wed Mar 08, 2017 9:08 pm

It doesn't look like you entered the exact commands I provided. You got the name of the module wrong and you added an extra hyphen character for some reason.

Try again?

Code: Select all

ifconfig -a
sudo modprobe -r r8712u
sudo modprobe r8712u
ifconfig -a
dmesg
The reason I'm having you do this is that at least for one of my dongles when used with the Pi3B, I have to wait until the system has finished booting, remove the module and then load it again to get it to work.

Note: power management should be disabled by default when using the r8712u module.

MrEngman
Posts: 4110
Joined: Fri Feb 03, 2012 2:17 pm
Location: Southampton, UK

Re: problem with extra wifi dongle

Wed Mar 08, 2017 9:15 pm

Interesting line about 6 from the end of the dmesg output. Are you trying to use udev to set the wifi name?

If you don't want to use the inbuilt broadcom wifi I would suggest disabling it. Create a file /etc/modprobe.d/brcmfmac.conf and add the single line blacklist brcmfmac, reboot and then see what happens.



MrEngman
Simplicity is a prerequisite for reliability. Edsger W. Dijkstra

Please post ALL technical questions on the forum. Please Do Not send private messages.

davef
Posts: 64
Joined: Wed Feb 20, 2013 8:39 pm
Location: Christchurch, NZ

Re: problem with extra wifi dongle

Wed Mar 08, 2017 9:40 pm

Show us what you have in /lib/firmware/ and /lib/firmware/realtek

davef
Posts: 64
Joined: Wed Feb 20, 2013 8:39 pm
Location: Christchurch, NZ

Re: problem with extra wifi dongle

Wed Mar 08, 2017 10:35 pm

r8712u is the same driver that I was using for the ASUS N10.

http://www.linuxquestions.org/questions ... 175596869/

was the solution that I was given. It was easier to buy another WiFi dongle :(

Return to “Troubleshooting”