Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

WORKING: AWUS036ACH (rtl8812au)/Debian 9 w/kernel 4.15.3

Need help with peripherals or devices?
Post Reply
Message
Author
scottf
Posts: 3
Joined: 2018-02-13 23:40

WORKING: AWUS036ACH (rtl8812au)/Debian 9 w/kernel 4.15.3

#1 Post by scottf »

Hopefully this may save someone else a lot of time in getting this to work.
This is a new i3-7100 machine running Debian 9 with the 4.15.3 kernel.
I have the Alfa AWUS036ACH USB 3.0 Wi-Fi Adapter. I could not get the packaged drivers on DVD-ROM to work.
I tried several different versions posted on github. Apparently part of the problem is the way that the "make" command is used in the dkms.conf file.
This is the one that worked: https://github.com/abperiasamy/rtl8812AU_8821AU_linux
These are the steps that I took:
dpkg --add-architecture i386
apt-get update
apt-get install libavcodec-extra
apt-get install firmware-linux-nonfree
apt-get install wireless-tools
apt-get install build-essential git
git clone https://github.com/abperiasamy/rtl8812A ... _linux.git
cd rtl8812AU_8821AU_linux
sudo make -f Makefile.dkms install
modprobe rtl8812au

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: WORKING: AWUS036ACH (rtl8812au)/Debian 9 w/kernel 4.15.3

#2 Post by stevepusser »

apt-get install libavcodec-extra
WTF????
MX Linux packager and developer

scottf
Posts: 3
Joined: 2018-02-13 23:40

Re: WORKING: AWUS036ACH (rtl8812au)/Debian 9 w/kernel 4.15.3

#3 Post by scottf »

You are correct, that does not make any sense. I removed that and everything still works. I watched a video from a guy that installed the rtl8812au on Debian Stretch Stable and that was included in his method. Of course his method did not work for me. Probably the only portion that was helpful was the 'build-essential git'.
I was writing down everything that I did, so when I posted the steps I should have removed that after I cut and pasted.
Like I said, I tried many of the github drivers and this was the only one that worked in my case.

User avatar
sunrat
Administrator
Administrator
Posts: 6382
Joined: 2006-08-29 09:12
Location: Melbourne, Australia
Has thanked: 115 times
Been thanked: 456 times

Re: WORKING: AWUS036ACH (rtl8812au)/Debian 9 w/kernel 4.15.3

#4 Post by sunrat »

libavcodec-extra is not going to cause any problems, it will just enable you to use some obscure rare AMR media.

You're lucky to have found a way to install driver modules for that Realtek chip. Some of them can be pesky (I have one that needs a similar Github driver).
Your post may help someone with the same chip in the future. 8)
“ computer users can be divided into 2 categories:
Those who have lost data
...and those who have not lost data YET ”
Remember to BACKUP!

User avatar
stevepusser
Posts: 12930
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 71 times

Re: WORKING: AWUS036ACH (rtl8812au)/Debian 9 w/kernel 4.15.3

#5 Post by stevepusser »

Yes, there's a lot of cargo cult advice on Youtube. Some of the funniest ones are for Kali Linux.

The pre-build installs can be simplified to module-assistant and git (and you don't need git if you just download the zip file from github. Then run as sysadmin:

Code: Select all

m-a prepare
MX Linux packager and developer

scottf
Posts: 3
Joined: 2018-02-13 23:40

Re: WORKING: AWUS036ACH (rtl8812au)/Debian 9 w/kernel 4.15.3

#6 Post by scottf »

Yes, copy that. I did actually realize that for myself post facto.
Thanks for the module-assistant heads up. Definitely something I will study.
I'm still fairly green on Linux, most especially Debian variant, which I am really just experimenting with so far.
I did actually succeed today in mapping a serial port through Wine for an obscure legacy Windows app that I use, so that's cool.

paxmark1
Posts: 54
Joined: 2008-10-23 05:19
Has thanked: 1 time

Re: WORKING: AWUS036ACH (rtl8812au)/Debian 9 w/kernel 4.15.3

#7 Post by paxmark1 »

It did not work for me.

I tried in a testing machine 4.15.0.3 i386 and in a stable (9) with backport Kernel~4.14.0-0.bpo.3-amd64 x86_6

Using https://github.com/zebulon2/rtl8812AU-driver-5.2.9 did work for me. I did not use the dpkg.
I did have to change the names of the folder to match dkms standards

Code: Select all

mv rtl8812AU-5.2.9 rtl8812au-5.2.9/
dkms add ...
dkms build ...
dkms install ...

This is a BrosTrend AC2100 model AC3 that exhuberantly said it was linux friendly. I do not recommend purchasing it.
peace out

tm_deblin
Posts: 3
Joined: 2018-08-12 00:39

Re: WORKING: AWUS036ACH (rtl8812au)/Debian 9 w/kernel 4.15.3

#8 Post by tm_deblin »

I'm using an Alfa AWUS036ACH and picked this for it's good reports and mention of Linux useability. That was a bit of a Stretch, but, after getting no info on debian_user and then searching and finding several 'fixes' I arrived at this thread. With the realtek-firmware in place I tried several driver compiles of several different versions of the rtl8812au driver, including the version that came on the disk. Most didn't work. I did have the 4.3.something working, but only on the first connection and after that either a reboot or sometimes just a USB disconnect/reconnect fixed the issue, but mostly not. There was also the often reported random disconnect from the network taking place. The logs were filled with stuff that showed these problems taking place but they were lost on me.

Anyway, using this 4.9.0-7-amd64 #1 SMP Debian 4.9.110-3+deb9u1 kernel and the v5.2.9 driver downloadable just up above this and so far it appears that those transient problems are gone. I can connect to both bands and after almost 12 hours connected there have been no connection drops. I can initiate a disconnection and then reconnect without the previously expected problems, so far. I'll make a stability report after a few days of use and hopefully it'll still be working nicely.

It's unusual, or maybe not, that realtek doesn't have this latest driver posted for download. it's actually more than a couple updates behind on their site. Just checked this again with a search and still nothing from realtek BUT I found yet another update to v5.2.20 for the 8812au. I'll wait to try that.

tm

tm_deblin
Posts: 3
Joined: 2018-08-12 00:39

Re: WORKING: AWUS036ACH (rtl8812au)/Debian 9 w/kernel 4.15.3

#9 Post by tm_deblin »

It's a few day later and it appears the 8812au v5.2.9 driver works just fine, and fast with this Alfa adapter. There are only two problems that I notice and I'm really not sure its the driver that's the issue. First, I can't get the nm-applet icon to show the wireless status unless the wired connection is switched off. Probably just a priority thing that I don't know how to access or change. Second is that the available wireless networks don't show up in the list when I'm connected on either band. If I disconnect from the current wireless network only then do the available networks show up in the list and it takes about 20-30 seconds for that to happen. Other than that, connections are good, fast and stable.

Not able to leave well enough alone, I'll install the later driver today, v5.2.10.something. I expect it should work at least a well as this one but I probably shouldn't have said that prematurely.

tm

tm_deblin
Posts: 3
Joined: 2018-08-12 00:39

Re: WORKING: AWUS036ACH (rtl8812au)/Debian 9 w/kernel 4.15.3

#10 Post by tm_deblin »

Quick update. Removed 8812au 5.2.9.? and installed 5.2.20.???? via github and zebulon2's updates several days ago. Still stable, still stays connected, disconnects and reconnects work normally. the nm-applet still doesn't show available networks while connected but only when the adapter in not connected. Not a big deal and not sure if it's an 8812au issue or NetworkManager. modinfo show a lot of options almost none of which I have any idea how to use. It would be nice to have some descriptions of these parameter and how to use them, especially what NOT to play with.

Posted for a bit of info. Not much traffic it seems. I'm probably the last one to find and use this driver.

tm

User avatar
Rat
Posts: 12
Joined: 2018-10-14 00:54
Location: Florida, US

Re: WORKING: AWUS036ACH (rtl8812au)/Debian 9 w/kernel 4.15.3

#11 Post by Rat »

scottf wrote:Hopefully this may save someone else a lot of time in getting this to work.
This is a new i3-7100 machine running Debian 9 with the 4.15.3 kernel.
I have the Alfa AWUS036ACH USB 3.0 Wi-Fi Adapter. I could not get the packaged drivers on DVD-ROM to work.
I tried several different versions posted on github. Apparently part of the problem is the way that the "make" command is used in the dkms.conf file.
This is the one that worked: https://github.com/abperiasamy/rtl8812AU_8821AU_linux
These are the steps that I took:
dpkg --add-architecture i386
apt-get update
apt-get install libavcodec-extra
apt-get install firmware-linux-nonfree
apt-get install wireless-tools
apt-get install build-essential git
git clone https://github.com/abperiasamy/rtl8812A ... _linux.git
cd rtl8812AU_8821AU_linux
sudo make -f Makefile.dkms install
modprobe rtl8812au
BIG THANKS! Your install guide works perfectly for my NET-DYN AC1200 USB Wi-Fi Adapter, not even a restart required.

MarkDees
Posts: 19
Joined: 2016-09-13 02:50

Re: WORKING: AWUS036ACH (rtl8812au)/Debian 9 w/kernel 4.15.3

#12 Post by MarkDees »

I tried the info in this thread without success on Kernel 4.19. Instead this worked and am posting here for this to be of use to others. It should work for newer kernels also.



https://github.com/gordboy/rtl8812au-5.9.3.2

Steps:

git clone https://github.com/gordboy/rtl8812au-5.9.3.2

(as root, or sudo) copy source folder contents to /usr/src/rtl8812au-5.9.3.2

$ sudo dkms add -m rtl8812au -v 5.9.3.2
$ sudo dkms build -m rtl8812au -v 5.9.3.2
$ sudo dkms install -m rtl8812au -v 5.9.3.2

As others have noted, people using NetworkManager need to add this stanza to /etc/NetworkManager/NetworkManager.conf

[device]
wifi.scan-rand-mac-address=no

Post Reply