Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hello, I am completely new to Linux. I recenlty installed openSUSE Leap 42.3 in a dual-boot configuration with Windows 10.
I was able to update most of the drivers (video, audio, etc.), but I can't get my USB Wifi Adapter to work.
I'm using ANEWKODI USB 600Mbps Dual Band Wifi Adapater. I've been browsing around some forums and have gotten this far:
I ran the following command, then unplugged the USB adapter and plugged back in:
Code:
linux:~ # sudo journalctl -f
-- Logs begin at Mon 2017-09-04 11:06:21 PDT. --
Sep 23 20:09:19 linux kernel: usb 1-9: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Sep 23 20:09:19 linux kernel: usb 1-9: Product: 802.11ac WLAN Adapter
Sep 23 20:09:19 linux kernel: usb 1-9: Manufacturer: Realtek
Sep 23 20:09:19 linux kernel: usb 1-9: SerialNumber: 00e04c000001
Sep 23 20:09:19 linux mtp-probe[4202]: checking bus 1, device 6: "/sys/devices/pci0000:00/0000:00:14.0/usb1/1-9"
Sep 23 20:09:19 linux mtp-probe[4202]: bus: 1, device: 6 was not an MTP device
Sep 23 20:10:03 linux sudo[4198]: pam_unix(sudo:session): session closed for user root
Sep 23 20:10:12 linux sudo[4217]: root : TTY=pts/0 ; PWD=/root ; USER=root ; COMMAND=/usr/bin/journalctl -f
Sep 23 20:10:12 linux sudo[4217]: pam_unix(sudo:session): session opened for user root by Metronome(uid=0)
Sep 23 20:10:12 linux sudo[4217]: pam_systemd(sudo:session): Cannot create session: Already running in a session
Sep 23 20:10:27 linux kernel: usb 1-9: USB disconnect, device number 6
Sep 23 20:10:32 linux kernel: usb 1-9: new high-speed USB device number 7 using xhci_hcd
Sep 23 20:10:32 linux mtp-probe[4222]: checking bus 1, device 7: "/sys/devices/pci0000:00/0000:00:14.0/usb1/1-9"
Sep 23 20:10:32 linux mtp-probe[4222]: bus: 1, device: 7 was not an MTP device
Sep 23 20:10:32 linux kernel: usb 1-9: New USB device found, idVendor=0bda, idProduct=a811
Sep 23 20:10:32 linux kernel: usb 1-9: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Sep 23 20:10:32 linux kernel: usb 1-9: Product: 802.11ac WLAN Adapter
Sep 23 20:10:32 linux kernel: usb 1-9: Manufacturer: Realtek
Sep 23 20:10:32 linux kernel: usb 1-9: SerialNumber: 00e04c000001
I also ran the following commands after to check how the system recognizes the adapter:
I don't recall seeing any error after running make install. I don't know if running it again has any effect if it's already installed, but I just tried this:
Code:
linux:/home/Metronome/Downloads/rtl8811au-master # make -j 8
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.4.79-19-default/build M=/home/Metronome/Downloads/rtl8811au-master modules
make[1]: Entering directory '/usr/src/linux-4.4.79-19-obj/x86_64/default'
Building modules, stage 2.
MODPOST 1 modules
make[1]: Leaving directory '/usr/src/linux-4.4.79-19-obj/x86_64/default'
linux:/home/Metronome/Downloads/rtl8811au-master # make install
install -p -m 644 8821au.ko /lib/modules/4.4.79-19-default/kernel/drivers/net/wireless/
/sbin/depmod -a 4.4.79-19-default
I'm unfamiliar with modprobe. What should I be looking for?
In an effort to assist, I built the 8821au module (via source from github page you linked to), and checked it against the chipset details reported by the journal log
Code:
idVendor=0bda, idProduct=a811
Here's the complete list of chipsets it supports...
So I tried colorpurple21859 solution and it successfully loaded 8821au, but the device is still listed as unknown under hwinfo and no entry exists for ifconfig.
I tried ferrari's solution running echo '0bda...' and the entire system crashed. Perhaps I have the wrong driver after all? I guess I'll have to do more digging to find the right one.
And it just occurred to me to ask - how will I know for certain when the firmware is updated? Cause I'm assuming I'll still have to configure the network connection, so there has to be another way to confirm the firmware is up to date. Will the wireless adapter show up under lspci?
I tried ferrari's solution running echo '0bda...' and the entire system crashed. Perhaps I have the wrong driver after all? I guess I'll have to do more digging to find the right one.
Yes, the fact that the chipset was not explicitly listed in the modinfo output is not a good sign. You may need to contact the vendor about this.
Quote:
And it just occurred to me to ask - how will I know for certain when the firmware is updated? Cause I'm assuming I'll still have to configure the network connection, so there has to be another way to confirm the firmware is up to date.
The firmware is built-in to the vendor-supplied Realtek driver.
So I followed your instructions. The make install command worked (which I assume means the driver was installed). dmesg |grep firmware doesn't return anything, but I did get this:
and I got this when unplugging the USB and plugging back in:
Code:
-- Logs begin at Mon 2017-09-04 11:06:21 PDT. --
Sep 26 20:23:01 linux dbus[1088]: [system] Successfully activated service 'org.freedesktop.PackageKit'
Sep 26 20:23:01 linux systemd[1]: Started PackageKit Daemon.
Sep 26 20:23:13 linux su[3015]: (to root) Metronome on pts/0
Sep 26 20:23:13 linux su[3015]: pam_unix(su:session): session opened for user root by Metronome(uid=1000)
Sep 26 20:23:13 linux su[3015]: pam_systemd(su:session): Cannot create session: Already running in a session
Sep 26 20:23:22 linux PackageKit[2965]: daemon quit
Sep 26 20:23:22 linux packagekitd[2965]: (packagekitd:2965): GLib-CRITICAL **: Source ID 15 was not found when attempting to remove it
Sep 26 20:23:42 linux kernel: fuse init (API version 7.23)
Sep 26 20:23:42 linux systemd[1]: Mounting FUSE Control File System...
Sep 26 20:23:42 linux systemd[1]: Mounted FUSE Control File System.
Sep 26 20:25:33 linux kernel: usb 1-9: USB disconnect, device number 4
Sep 26 20:25:33 linux kernel: RTL871X: rtw_ndev_uninit(wlan0)
Sep 26 20:25:33 linux systemd[1]: Starting Load/Save RF Kill Switch Status...
Sep 26 20:25:33 linux systemd[1]: Started Load/Save RF Kill Switch Status.
Sep 26 20:25:37 linux kernel: usb 1-9: new high-speed USB device number 6 using xhci_hcd
Sep 26 20:25:37 linux kernel: usb 1-9: New USB device found, idVendor=0bda, idProduct=a811
Sep 26 20:25:37 linux kernel: usb 1-9: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Sep 26 20:25:37 linux kernel: usb 1-9: Product: 802.11ac WLAN Adapter
Sep 26 20:25:37 linux kernel: usb 1-9: Manufacturer: Realtek
Sep 26 20:25:37 linux kernel: usb 1-9: SerialNumber: 00e04c000001
Sep 26 20:25:37 linux mtp-probe[3237]: checking bus 1, device 6: "/sys/devices/pci0000:00/0000:00:14.0/usb1/1-9"
Sep 26 20:25:37 linux mtp-probe[3237]: bus: 1, device: 6 was not an MTP device
Sep 26 20:25:37 linux kernel: RTL871X: rtw_ndev_init(wlan0)
So that's new. Still only getting eth0 and lo when running ifconfig (no wlan0).
Good news! After some searching I found (and tried) this:
Code:
linux:/home/Metronome # depmod -a
linux:/home/Metronome # lsmod |grep rtl
rtl8812au 1454080 0
cfg80211 614400 1 rtl8812au
usbcore 270336 6 snd_usb_audio,snd_usbmidi_lib,usbhid,xhci_hcd,xhci_pci,rtl8812au
linux:/home/Metronome # iwconfig
lo no wireless extensions.
wlan0 unassociated Nickname:"<WIFI@REALTEK>"
Mode:Managed Frequency=2.412 GHz Access Point: Not-Associated
Sensitivity:0/0
Retry:off RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
Link Quality:0 Signal level:0 Noise level:0
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
eth0 no wireless extensions.
Now I'm able to bring up my wlan0 in YaST and scan my network. Our wifi SSID (as well as others) show up so the USB adapter must be working. Still haven't figured out how to connect it, but I think I'm most of the way now. Will follow up once I actually have a usable wifi connection.
I did it! So after I got the drivers installed, I accidentally entered the wrong password for our wifi and took some time figuring that out. Once I did, I got connected to the wifi and got it to retrieve an IP address, but it still wouldn't connect to the internet.
After some searching I learned that I had to force my network config to route through wlan0. I did this with the following commands:
(192.168.9.1 is our router and my default gateway)
Thank you so much everyone (esp ferrari) for your help and patience. Here's a quick recap of what I had to do to get this working (as best I can remember):
Code:
su
git clone https://github.com/scrivy/rtl8812AU_8821AU_linux.git
cd rtl8812AU_8821AU_linux
make
sudo make install
modprobe rtl8821au
depmod -a
ifconfig eth0 down
route add default gw 192.168.0.1 wlan0
Couple of notes:
- I had to install packages for several commands throughout (make, depmod, git, and I think modprobe). To do this, just type "cnf" and the command you need (such as "cnf git") and your terminal will give you instructions on how to install the package
- You have to have a wired internet connection for some of this to work - namely downloading your drivers. If you don't have one, I assume you'll have to download to a different computer and transfer via USB
- after depmod -a I used YaST to connect my wlan0 interface to our wifi. To do this:
---open YaST
---select Network Settings
---select your wlan0 interface, then Edit
---Set to DHCP, then Next
---Set to Managed, select "Scan Network", select your wifi network from the dropdown, and set your password (mine used WPA-PSK encryption), select Next
Once you've done all this, go back to terminal and proceed with the ifconfig command (see above)
Hope this helps the next person with this problem. Thanks again everyone!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.