<SOLVED> Realtek Wifi Install Help

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help
Post Reply
mpa215
Level 1
Level 1
Posts: 5
Joined: Mon Feb 19, 2018 9:54 pm

<SOLVED> Realtek Wifi Install Help

Post by mpa215 » Mon Feb 19, 2018 10:05 pm

Good evening!

I'm having trouble installing a USB wifi adapter. I'm running Mint 18.3 and kernel 4.13.0. Here is the (relevant) output of lspci -knn:

Code: Select all

03:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 15)
	Subsystem: ASUSTeK Computer Inc. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [1043:8677]
	Kernel driver in use: r8169
	Kernel modules: r8169
I've been following the troubleshooting guide from https://unix.stackexchange.com/questio ... -mint-18-2
When I "make", I receive the following output and error:

Code: Select all

mike@mike-Linux ~/wifi2/rtl8821ce $ make
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.13.0-32-generic/build M=/home/mike/wifi2/rtl8821ce  modules
make[1]: Entering directory '/usr/src/linux-headers-4.13.0-32-generic'
  CC [M]  /home/mike/wifi2/rtl8821ce/core/rtw_cmd.o
In file included from /home/mike/wifi2/rtl8821ce/include/osdep_service.h:48:0,
                 from /home/mike/wifi2/rtl8821ce/include/drv_types.h:32,
                 from /home/mike/wifi2/rtl8821ce/core/rtw_cmd.c:22:
/home/mike/wifi2/rtl8821ce/include/osdep_service_linux.h: In function ‘_init_timer’:
/home/mike/wifi2/rtl8821ce/include/osdep_service_linux.h:294:2: error: implicit declaration of function ‘timer_setup’ [-Werror=implicit-function-declaration]
  timer_setup(ptimer, pfunc, 0);
  ^
cc1: some warnings being treated as errors
scripts/Makefile.build:308: recipe for target '/home/mike/wifi2/rtl8821ce/core/rtw_cmd.o' failed
make[2]: *** [/home/mike/wifi2/rtl8821ce/core/rtw_cmd.o] Error 1
Makefile:1550: recipe for target '_module_/home/mike/wifi2/rtl8821ce' failed
make[1]: *** [_module_/home/mike/wifi2/rtl8821ce] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.13.0-32-generic'
Makefile:1903: recipe for target 'modules' failed
make: *** [modules] Error 2
Any idea what's going on? Thanks!
Last edited by mpa215 on Thu Feb 22, 2018 12:02 am, edited 1 time in total.

User avatar
kc1di
Level 12
Level 12
Posts: 4367
Joined: Mon Sep 08, 2008 8:44 pm
Location: Maine USA

Re: Realtek Wifi Install Help

Post by kc1di » Tue Feb 20, 2018 8:36 am

Hello mpa215 and Welcome to Linux Mint Forums,

All you've shown us is the Ethernet connection not your usb dongle
Please make sure the usb wifi stick is plugged in them execute this command in a terminal and post the output here:

Code: Select all

inxi -Fxz
(please place the output in code tags)
then we will go from there.
Easy tips : https://sites.google.com/site/easylinuxtipsproject/
Linux Mint Installation Guide: http://linuxmint-installation-guide.rea ... en/latest/
Registered Linux User #462608

mpa215
Level 1
Level 1
Posts: 5
Joined: Mon Feb 19, 2018 9:54 pm

Re: Realtek Wifi Install Help

Post by mpa215 » Tue Feb 20, 2018 9:07 am

Here is the output of inxi -Fxz:

Code: Select all

mike@mike-Linux ~ $ inxi -Fxz
System:    Host: mike-Linux Kernel: 4.13.0-32-generic x86_64 (64 bit gcc: 5.4.0)
           Desktop: Cinnamon 3.6.7 (Gtk 3.18.9-1ubuntu3.3) Distro: Linux Mint 18.3 Sylvia
Machine:   Mobo: ASUSTeK model: H110M-E/M.2 v: Rev X.0x Bios: American Megatrends v: 3402 date: 07/05/2017
CPU:       Dual core Intel Pentium G4400 (-MCP-) cache: 3072 KB
           flags: (lm nx sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx) bmips: 13248
           clock speeds: max: 3300 MHz 1: 3300 MHz 2: 3300 MHz
Graphics:  Card: NVIDIA Device 1c82 bus-ID: 01:00.0
           Display Server: X.Org 1.18.4 drivers: nvidia (unloaded: fbdev,vesa,nouveau)
           Resolution: 1360x768@60.02hz
           GLX Renderer: GeForce GTX 1050 Ti/PCIe/SSE2 GLX Version: 4.5.0 NVIDIA 384.111 Direct Rendering: Yes
Audio:     Card-1 NVIDIA Device 0fb9 driver: snd_hda_intel bus-ID: 01:00.1 Sound: ALSA v: k4.13.0-32-generic
           Card-2 Intel Sunrise Point-H HD Audio driver: snd_hda_intel bus-ID: 00:1f.3
Network:   Card: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
           driver: r8169 v: 2.3LK-NAPI port: d000 bus-ID: 03:00.0
           IF: enp3s0 state: down mac: <filter>
Drives:    HDD Total Size: 240.1GB (6.2% used) ID-1: /dev/sda model: SPCC_Solid_State size: 240.1GB
Partition: ID-1: / size: 11G used: 7.5G (79%) fs: ext4 dev: /dev/sda1
           ID-2: /home size: 209G used: 5.5G (3%) fs: ext4 dev: /dev/sda4
           ID-3: swap-1 size: 1.02GB used: 0.00GB (0%) fs: swap dev: /dev/sda2
RAID:      No RAID devices: /proc/mdstat, md_mod kernel module present
Sensors:   System Temperatures: cpu: 29.8C mobo: 27.8C gpu: 0.0:27C
           Fan Speeds (in rpm): cpu: 0
Info:      Processes: 171 Uptime: 3 min Memory: 571.8/15983.7MB Init: systemd runlevel: 5 Gcc sys: 5.4.0
           Client: Shell (bash 4.3.481) inxi: 2.2.35 

User avatar
kc1di
Level 12
Level 12
Posts: 4367
Joined: Mon Sep 08, 2008 8:44 pm
Location: Maine USA

Re: Realtek Wifi Install Help

Post by kc1di » Tue Feb 20, 2018 10:20 am

Did you have the wireless usb stick plugged in ? because it's not finding it .
Please plug it in and type this command:

Code: Select all

lsusb
post results.
What usb stick is it? if may not be compatible with Linux.
Easy tips : https://sites.google.com/site/easylinuxtipsproject/
Linux Mint Installation Guide: http://linuxmint-installation-guide.rea ... en/latest/
Registered Linux User #462608

mpa215
Level 1
Level 1
Posts: 5
Joined: Mon Feb 19, 2018 9:54 pm

Re: Realtek Wifi Install Help

Post by mpa215 » Tue Feb 20, 2018 10:30 pm

The usb drive is an "ourlink" drive. I believe it's device 5, shown below:

Code: Select all

mike@mike-Linux ~ $ lsusb
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 003: ID 046d:c52b Logitech, Inc. Unifying Receiver
Bus 001 Device 005: ID 0bda:a811 Realtek Semiconductor Corp. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

User avatar
kc1di
Level 12
Level 12
Posts: 4367
Joined: Mon Sep 08, 2008 8:44 pm
Location: Maine USA

Re: Realtek Wifi Install Help

Post by kc1di » Wed Feb 21, 2018 8:35 am

Ok the machine seems to see the realtek plugged into usb. Now we need to know exactly which chip is on that stick
try this command again and see if it picks it up now:

Code: Select all

inxi -Nn
and this command also:

Code: Select all

sudo lshw -C network
and

Code: Select all

rfkill list
post the results from all these.
again make sure the stick is plugged in.
it may be helpful if you know the name , brand of the stick also please tell us.
Easy tips : https://sites.google.com/site/easylinuxtipsproject/
Linux Mint Installation Guide: http://linuxmint-installation-guide.rea ... en/latest/
Registered Linux User #462608

JeremyB
Level 18
Level 18
Posts: 8379
Joined: Fri Feb 21, 2014 8:17 am

Re: Realtek Wifi Install Help

Post by JeremyB » Wed Feb 21, 2018 8:38 am

Please try

Code: Select all

sudo apt-get update && sudo apt-get install rtl8812au-dkms
Then reboot

mpa215
Level 1
Level 1
Posts: 5
Joined: Mon Feb 19, 2018 9:54 pm

Re: Realtek Wifi Install Help

Post by mpa215 » Wed Feb 21, 2018 9:07 am

kc1di: I'll update you with that info after work.

Jeremy: I ran your code, but it looks like I have a problem with my Linux headers. Here's the relevant section of the output:

Code: Select all

The following NEW packages will be installed:
  rtl8812au-dkms
0 upgraded, 1 newly installed, 0 to remove and 101 not upgraded.
Need to get 1,024 kB of archives.
After this operation, 7,778 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu xenial/universe amd64 rtl8812au-dkms all 4.3.8.12175.20140902+dfsg-0ubuntu2 [1,024 kB]
Fetched 1,024 kB in 0s (1,181 kB/s)       
Selecting previously unselected package rtl8812au-dkms.
(Reading database ... 265544 files and directories currently installed.)
Preparing to unpack .../rtl8812au-dkms_4.3.8.12175.20140902+dfsg-0ubuntu2_all.deb ...
Unpacking rtl8812au-dkms (4.3.8.12175.20140902+dfsg-0ubuntu2) ...
Setting up rtl8812au-dkms (4.3.8.12175.20140902+dfsg-0ubuntu2) ...
Loading new rtl8812au-4.3.8.12175.20140902+dfsg DKMS files...
First Installation: checking all kernels...
Building only for 4.13.0-32-generic
Building initial module for 4.13.0-32-generic
ERROR (dkms apport): kernel package linux-headers-4.13.0-32-generic is not supported
Error! Bad return status for module build on kernel: 4.13.0-32-generic (x86_64)
Consult /var/lib/dkms/rtl8812au/4.3.8.12175.20140902+dfsg/build/make.log for more information.

User avatar
kc1di
Level 12
Level 12
Posts: 4367
Joined: Mon Sep 08, 2008 8:44 pm
Location: Maine USA

Re: Realtek Wifi Install Help

Post by kc1di » Wed Feb 21, 2018 9:51 am

you may need to downgrade your kernel to 4.4 but wait for JeremyB's response.
and JeremyB a question how do you know that it's a 8812 chipset? Just curious since I would like to know how to determine this - Thanks.
Easy tips : https://sites.google.com/site/easylinuxtipsproject/
Linux Mint Installation Guide: http://linuxmint-installation-guide.rea ... en/latest/
Registered Linux User #462608

Charlie
Level 4
Level 4
Posts: 236
Joined: Sun Jul 09, 2017 10:09 am
Location: Eng-er-land

Re: Realtek Wifi Install Help

Post by Charlie » Wed Feb 21, 2018 10:56 am

kc1di wrote:
Wed Feb 21, 2018 9:51 am
you may need to downgrade your kernel to 4.4 but wait for JeremyB's response.
and JeremyB a question how do you know that it's a 8812 chipset? Just curious since I would like to know how to determine this - Thanks.
https://sites.google.com/site/easylinux ... /reserve-7

JeremyB
Level 18
Level 18
Posts: 8379
Joined: Fri Feb 21, 2014 8:17 am

Re: Realtek Wifi Install Help

Post by JeremyB » Wed Feb 21, 2018 11:50 am

Ubuntu must not have updated that package for 4.13

Code: Select all

sudo apt-get install dkms git
git clone https://github.com/gnab/rtl8812au.git
sudo dkms add ./rtl8812au
sudo dkms install 8812au/4.2.2
Reboot

kc1di it is just one of them that I remember

User avatar
kc1di
Level 12
Level 12
Posts: 4367
Joined: Mon Sep 08, 2008 8:44 pm
Location: Maine USA

Re: Realtek Wifi Install Help

Post by kc1di » Wed Feb 21, 2018 12:00 pm

JeremyB wrote:
Wed Feb 21, 2018 11:50 am


kc1di it is just one of them that I remember
Thanks :)
Easy tips : https://sites.google.com/site/easylinuxtipsproject/
Linux Mint Installation Guide: http://linuxmint-installation-guide.rea ... en/latest/
Registered Linux User #462608

mpa215
Level 1
Level 1
Posts: 5
Joined: Mon Feb 19, 2018 9:54 pm

Re: Realtek Wifi Install Help

Post by mpa215 » Wed Feb 21, 2018 11:58 pm

Jeremy and kc1di: I used Jeremy's method and I'm happy to say that I'm posting this using WIFI on my computer! Thank you so much for the help!

If anyone else stumbles upon this in the future, note that I also needed to pull and and plug back in my usb wifi adapter after restarting my computer. Not sure if it's necessary or if it would have eventually connected otherwise.

You guys are the best!

User avatar
kc1di
Level 12
Level 12
Posts: 4367
Joined: Mon Sep 08, 2008 8:44 pm
Location: Maine USA

Re: <SOLVED> Realtek Wifi Install Help

Post by kc1di » Thu Feb 22, 2018 7:19 am

Glad you got it working :)
Easy tips : https://sites.google.com/site/easylinuxtipsproject/
Linux Mint Installation Guide: http://linuxmint-installation-guide.rea ... en/latest/
Registered Linux User #462608

Post Reply

Return to “Newbie Questions”