2

I installed this driver for my USB dongle using these commands;

sudo make
sudo make install
sudo modprobe -a rtl8812au

And every time I reboot, I have to modprobe them again and its generally an annoyance. Why is this happening and what can I do to fix this?

My dongle;

Bus 002 Device 003: ID 0846:9052 NetGear, Inc. A6100 AC600 DB Wireless Adapter [Realtek RTL8811AU]

Thank you

6
  • What happens if you just run sudo modprobe rtl8812au when you reboot without the three commands you are performing in your question? Oct 14 '16 at 20:15
  • You should not compile as root, just make. You need sudo for make install and modprobe.
    – Panther
    Oct 14 '16 at 20:20
  • @L.D.James I'm sorry, I didn't mean remake them, I just meant modprobe again.
    – UsernameVF
    Oct 14 '16 at 20:33
  • @bodhi.zazen I was just following the instructions provided in the github, I mean that isn't causing a problem.
    – UsernameVF
    Oct 14 '16 at 20:33
  • 1
    It won't affect the compiling and installing of the driver. It' just not necessary to be a super user to compile programs... only to perform an install for successful compiling. If you're working in your personal space you will be creating files and folders that your normal account won't have access over. This can affect your normal use of your personal space. Depending on the integrity of some of the applications you might try to compile (by running the make) it could also possible affect other system-wide files unexpectedly. Oct 14 '16 at 20:39
3

In recent Ubuntu versions, there is a dkms package to solve just this. From the terminal:

sudo apt-get update
sudo apt-get install rtl8812au-dkms

You should be all set.

1
  • There's an error in the dkms.conf that causes this to fail after every kernel update. Cheers, Al
    – heynnema
    Oct 15 '16 at 0:36
0

You don't have to reinstall/recompile the driver on every boot. You only have to make and install the module once. If it works (as you have suggested in your question) you can add it to your module configuration to automatically be loaded on boot.

Since it's already installed, just load it. This can be done automatically on startup.

Place the module name in the /etc/modules file. These are modules that are automatically loaded at boot time.

This should be one module per line. Arguments for the module is also accepted.

This is taken from the modules manpage.

This should be your /etc/modules file:

# any other modules here
rtl8812au

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.