Linux Mint Wifi Issue

Questions about Wi-Fi and other network devices, file sharing, firewalls, connection sharing etc
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Turk_Movement

Linux Mint Wifi Issue

Post by Turk_Movement »

So I'm new to Linux, decided to install Linux Mint onto my spare HP Laptop to learn.
From the get go I've installed all the stuff Linux Mint has recommended by default yet it does not give me a Wifi option to connect to my wifi.
My ethernet cable works fine so I'm using that in the meantime to search through the net.
Any idea why Linux does not recognize my wifi or display the wifi as an option?
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 3 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
JeremyB
Level 21
Level 21
Posts: 13851
Joined: Fri Feb 21, 2014 8:17 am

Re: Linux Mint Wifi Issue

Post by JeremyB »

In terminal

Code: Select all

inxi -Fxxz
Post results
Turk_Movement

Re: Linux Mint Wifi Issue

Post by Turk_Movement »

Code: Select all

System:    Host: linux-muhammed Kernel: 4.19.0-11-amd64 x86_64 bits: 64 compiler: gcc v: 8.3.0 Desktop: Cinnamon 4.6.7 
           wm: muffin dm: LightDM Distro: LMDE 4 Debbie base: Debian 10.2 buster 
Machine:   Type: Laptop System: HP product: HP 245 G6 Notebook PC v: N/A serial: <filter> Chassis: type: 10 serial: <filter> 
           Mobo: HP model: 8324 v: 22.26 serial: <filter> UEFI: AMI v: F.26 date: 07/23/2018 
Battery:   ID-1: BAT0 charge: 24.9 Wh condition: 31.2/31.2 Wh (100%) volts: 11.5/10.9 model: HP Primary serial: <filter> 
           status: Discharging 
CPU:       Topology: Dual Core model: AMD E2-9000e RADEON R2 4 COMPUTE CORES 2C+2G bits: 64 type: MCP arch: Excavator 
           L2 cache: 1024 KiB 
           flags: lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm bogomips: 5988 
           Speed: 1095 MHz min/max: 1100/1500 MHz Core speeds (MHz): 1: 1103 2: 1101 
Graphics:  Device-1: Advanced Micro Devices [AMD/ATI] Stoney [Radeon R2/R3/R4/R5 Graphics] vendor: Hewlett-Packard 
           driver: amdgpu v: kernel bus ID: 00:01.0 chip ID: 1002:98e4 
           Display: x11 server: X.Org 1.20.4 driver: amdgpu,ati unloaded: fbdev,modesetting,vesa resolution: 1366x768~60Hz 
           OpenGL: renderer: AMD STONEY (DRM 3.27.0 4.19.0-11-amd64 LLVM 7.0.1) v: 4.5 Mesa 18.3.6 direct render: Yes 
Audio:     Device-1: Advanced Micro Devices [AMD/ATI] vendor: Hewlett-Packard driver: snd_hda_intel v: kernel bus ID: 00:01.1 
           chip ID: 1002:15b3 
           Device-2: Advanced Micro Devices [AMD] Family 15h Audio vendor: Hewlett-Packard driver: snd_hda_intel v: kernel 
           bus ID: 00:09.2 chip ID: 1022:157a 
           Sound Server: ALSA v: k4.19.0-11-amd64 
Network:   Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: Hewlett-Packard driver: r8169 v: kernel 
           port: e000 bus ID: 02:00.0 chip ID: 10ec:8168 
           IF: eno1 state: up speed: 1000 Mbps duplex: full mac: <filter> 
           Device-2: Realtek RTL8723DE 802.11b/g/n PCIe Adapter vendor: Hewlett-Packard driver: N/A port: d000 bus ID: 03:00.0 
           chip ID: 10ec:d723 
Drives:    Local Storage: total: 223.58 GiB used: 11.87 GiB (5.3%) 
           ID-1: /dev/sda vendor: Western Digital model: WDS240G2G0A-00JH30 size: 223.58 GiB speed: 6.0 Gb/s serial: <filter> 
Partition: ID-1: / size: 211.27 GiB used: 11.87 GiB (5.6%) fs: ext4 dev: /dev/sda3 
           ID-2: swap-1 size: 7.64 GiB used: 0 KiB (0.0%) fs: swap dev: /dev/sda2 
Sensors:   System Temperatures: cpu: 38.5 C mobo: N/A gpu: amdgpu temp: 38 C 
           Fan Speeds (RPM): N/A 
Info:      Processes: 176 Uptime: 56m Memory: 7.32 GiB used: 1.09 GiB (14.8%) Init: systemd v: 241 runlevel: 5 Compilers: 
           gcc: 8.3.0 alt: 8 Shell: bash v: 5.0.3 running in: gnome-terminal inxi: 3.0.32 
I've copied other solutions of people with the same problem so I might have made my issue worse because none of them worked out lol
sleeper12
Level 21
Level 21
Posts: 14557
Joined: Thu May 25, 2017 3:22 pm

Re: Linux Mint Wifi Issue

Post by sleeper12 »

You need the wifi driver, try #7 here:
https://easylinuxtipsproject.blogspot.c ... k.html#ID7
Turk_Movement

Re: Linux Mint Wifi Issue

Post by Turk_Movement »

muhammed@linux-muhammed:~/rtw88$ sudo make install
make -C /lib/modules/4.19.0-11-amd64/build M=/home/muhammed/rtw88 modules
make[1]: Entering directory '/usr/src/linux-headers-4.19.0-11-amd64'
Building modules, stage 2.
MODPOST 10 modules
make[1]: Leaving directory '/usr/src/linux-headers-4.19.0-11-amd64'
Making backups
tar: /lib/modules/4.19.0-11-amd64/kernel/drivers/net/wireless/realtek/rtw88: Cannot stat: No such file or directory
tar: Exiting with failure status due to previous errors
make: *** [Makefile:83: install] Error 2


I get an error here which I'm guessing is the reason why the whole thing doesnt work
sleeper12
Level 21
Level 21
Posts: 14557
Joined: Thu May 25, 2017 3:22 pm

Re: Linux Mint Wifi Issue

Post by sleeper12 »

Ok, it might have something to do with the LMDE kernel. Perhaps JeremyB will know how best to proceed.

Meanwhile, can we see:

Code: Select all

 rfkill list && mokutil --sb-state 
Turk_Movement

Re: Linux Mint Wifi Issue

Post by Turk_Movement »

muhammed@linux-muhammed:~$ rfkill list && mokutil --sb-state
0: hci0: Bluetooth
Soft blocked: no
Hard blocked: no
SecureBoot disabled



Thanks
sleeper12
Level 21
Level 21
Posts: 14557
Joined: Thu May 25, 2017 3:22 pm

Re: Linux Mint Wifi Issue

Post by sleeper12 »

Ok, those are good, so wait for JeremyB or someone who knows more about LMDE than I do.
User avatar
mikaelrask
Level 5
Level 5
Posts: 801
Joined: Wed Mar 13, 2019 7:38 am
Location: Sweden
Contact:

Re: Linux Mint Wifi Issue

Post by mikaelrask »

hey Turk_Movement i'm no expert but does anything happens if you just run the command make from the directory your in before you run the sudo make install?
CPU AMD Ryzen 9 7900
Graphic Card: AMD ATI Radeon RX 7900 XT/7900 XTX/7900M
Ram 32 GB ddr 5
Kernel: 6.5.0-14 generic
LM Cinnamon 21.3 edge
Turk_Movement

Re: Linux Mint Wifi Issue

Post by Turk_Movement »

Hi, yes it does, this is exactly what it does...

Code: Select all

muhammed@linux-muhammed:~/rtw88$  make
make -C /lib/modules/4.19.0-11-amd64/build M=/home/muhammed/rtw88 modules
make[1]: Entering directory '/usr/src/linux-headers-4.19.0-11-amd64'
  CC [M]  /home/muhammed/rtw88/main.o
  CC [M]  /home/muhammed/rtw88/mac80211.o
  CC [M]  /home/muhammed/rtw88/util.o
  CC [M]  /home/muhammed/rtw88/debug.o
  CC [M]  /home/muhammed/rtw88/tx.o
  CC [M]  /home/muhammed/rtw88/rx.o
  CC [M]  /home/muhammed/rtw88/mac.o
  CC [M]  /home/muhammed/rtw88/phy.o
  CC [M]  /home/muhammed/rtw88/coex.o
  CC [M]  /home/muhammed/rtw88/efuse.o
  CC [M]  /home/muhammed/rtw88/fw.o
  CC [M]  /home/muhammed/rtw88/ps.o
  CC [M]  /home/muhammed/rtw88/sec.o
  CC [M]  /home/muhammed/rtw88/wow.o
  CC [M]  /home/muhammed/rtw88/bf.o
  CC [M]  /home/muhammed/rtw88/regd.o
  LD [M]  /home/muhammed/rtw88/rtw_core.o
  CC [M]  /home/muhammed/rtw88/rtw8822b.o
  CC [M]  /home/muhammed/rtw88/rtw8822b_table.o
  LD [M]  /home/muhammed/rtw88/rtw_8822b.o
  CC [M]  /home/muhammed/rtw88/rtw8822be.o
  LD [M]  /home/muhammed/rtw88/rtw_8822be.o
  CC [M]  /home/muhammed/rtw88/rtw8822c.o
  CC [M]  /home/muhammed/rtw88/rtw8822c_table.o
  LD [M]  /home/muhammed/rtw88/rtw_8822c.o
  CC [M]  /home/muhammed/rtw88/rtw8822ce.o
  LD [M]  /home/muhammed/rtw88/rtw_8822ce.o
  CC [M]  /home/muhammed/rtw88/rtw8723d.o
  CC [M]  /home/muhammed/rtw88/rtw8723d_table.o
  LD [M]  /home/muhammed/rtw88/rtw_8723d.o
  CC [M]  /home/muhammed/rtw88/rtw8723de.o
  LD [M]  /home/muhammed/rtw88/rtw_8723de.o
  CC [M]  /home/muhammed/rtw88/rtw8821c.o
  CC [M]  /home/muhammed/rtw88/rtw8821c_table.o
  LD [M]  /home/muhammed/rtw88/rtw_8821c.o
  CC [M]  /home/muhammed/rtw88/rtw8821ce.o
  LD [M]  /home/muhammed/rtw88/rtw_8821ce.o
  CC [M]  /home/muhammed/rtw88/pci.o
  LD [M]  /home/muhammed/rtw88/rtw_pci.o
  Building modules, stage 2.
  MODPOST 10 modules
  CC      /home/muhammed/rtw88/rtw_8723d.mod.o
  LD [M]  /home/muhammed/rtw88/rtw_8723d.ko
  CC      /home/muhammed/rtw88/rtw_8723de.mod.o
  LD [M]  /home/muhammed/rtw88/rtw_8723de.ko
  CC      /home/muhammed/rtw88/rtw_8821c.mod.o
  LD [M]  /home/muhammed/rtw88/rtw_8821c.ko
  CC      /home/muhammed/rtw88/rtw_8821ce.mod.o
  LD [M]  /home/muhammed/rtw88/rtw_8821ce.ko
  CC      /home/muhammed/rtw88/rtw_8822b.mod.o
  LD [M]  /home/muhammed/rtw88/rtw_8822b.ko
  CC      /home/muhammed/rtw88/rtw_8822be.mod.o
  LD [M]  /home/muhammed/rtw88/rtw_8822be.ko
  CC      /home/muhammed/rtw88/rtw_8822c.mod.o
  LD [M]  /home/muhammed/rtw88/rtw_8822c.ko
  CC      /home/muhammed/rtw88/rtw_8822ce.mod.o
  LD [M]  /home/muhammed/rtw88/rtw_8822ce.ko
  CC      /home/muhammed/rtw88/rtw_core.mod.o
  LD [M]  /home/muhammed/rtw88/rtw_core.ko
  CC      /home/muhammed/rtw88/rtw_pci.mod.o
  LD [M]  /home/muhammed/rtw88/rtw_pci.ko
make[1]: Leaving directory '/usr/src/linux-headers-4.19.0-11-amd64'
Turk_Movement

Re: Linux Mint Wifi Issue

Post by Turk_Movement »

Appreciate all the help btw guys, so far this community seems really active and really helpful. Hope to gain more knowledge on Linux so that I can open up pathways and help others too.
sleeper12
Level 21
Level 21
Posts: 14557
Joined: Thu May 25, 2017 3:22 pm

Re: Linux Mint Wifi Issue

Post by sleeper12 »

So does it work now if you do:

Code: Select all

 sudo make install 

Code: Select all

 rm -v -R --interactive=never ~/rtw88 
Reboot
Turk_Movement

Re: Linux Mint Wifi Issue

Post by Turk_Movement »

Nope doesnt work unfortunately
sleeper12
Level 21
Level 21
Posts: 14557
Joined: Thu May 25, 2017 3:22 pm

Re: Linux Mint Wifi Issue

Post by sleeper12 »

Odd, the make command seems to have worked, so not sure why the others don't.
Turk_Movement

Re: Linux Mint Wifi Issue

Post by Turk_Movement »

Could it be the reason that the laptop never really shuts down or restarts? It goes into a forever black screen while it's still powered up, I have to manually press power off and on to get it working.
JeremyB
Level 21
Level 21
Posts: 13851
Joined: Fri Feb 21, 2014 8:17 am

Re: Linux Mint Wifi Issue

Post by JeremyB »

Try

Code: Select all

sudo apt-get install git dkms
git clone https://github.com/smlinux/rtl8723de.git -b current
dkms add ./rtl8723de
dkms install rtl8723de/5.1.1.8_21285.20171026_COEX20170111-1414
depmod -a
Reboot
Turk_Movement

Re: Linux Mint Wifi Issue

Post by Turk_Movement »

muhammed@linux-muhammed:~$ sudo apt-get install git dkms
[sudo] password for muhammed:
Reading package lists... Done
Building dependency tree
Reading state information... Done
dkms is already the newest version (2.6.1-4).
git is already the newest version (1:2.20.1-2+deb10u3).
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
muhammed@linux-muhammed:~$ git clone https://github.com/smlinux/rtl8723de.git -b current
fatal: destination path 'rtl8723de' already exists and is not an empty directory.
muhammed@linux-muhammed:~$ sudo dkms add ./rtl8723de
Error! DKMS tree already contains: rtl8723de-5.1.1.8_21285.20171026_COEX20170111-1414
You cannot add the same module/version combo more than once.
muhammed@linux-muhammed:~$ sudo dkms install rtl8723de/5.1.1.8_21285.20171026_COEX20170111-1414

Kernel preparation unnecessary for this kernel. Skipping...

Building module:
cleaning build area...
'make' all KVER=4.19.0-11-amd64....(bad exit status: 2)
Error! Bad return status for module build on kernel: 4.19.0-11-amd64 (x86_64)
Consult /var/lib/dkms/rtl8723de/5.1.1.8_21285.20171026_COEX20170111-1414/build/make.log for more information.
muhammed@linux-muhammed:~$ depmod -a
depmod: ERROR: openat(/lib/modules/4.19.0-11-amd64, modules.dep.2949.128408.1602311951, 301, 644): Permission denied
depmod: ERROR: openat(/lib/modules/4.19.0-11-amd64, modules.dep.bin.2949.128408.1602311951, 301, 644): Permission denied
depmod: ERROR: openat(/lib/modules/4.19.0-11-amd64, modules.alias.2949.128408.1602311951, 301, 644): Permission denied
depmod: ERROR: openat(/lib/modules/4.19.0-11-amd64, modules.alias.bin.2949.128408.1602311951, 301, 644): Permission denied
depmod: ERROR: openat(/lib/modules/4.19.0-11-amd64, modules.softdep.2949.128408.1602311951, 301, 644): Permission denied
depmod: ERROR: openat(/lib/modules/4.19.0-11-amd64, modules.symbols.2949.128408.1602311951, 301, 644): Permission denied
depmod: ERROR: openat(/lib/modules/4.19.0-11-amd64, modules.symbols.bin.2949.128408.1602311951, 301, 644): Permission denied
depmod: ERROR: openat(/lib/modules/4.19.0-11-amd64, modules.builtin.bin.2949.128408.1602311951, 301, 644): Permission denied
depmod: ERROR: openat(/lib/modules/4.19.0-11-amd64, modules.devname.2949.128408.1602311951, 301, 644): Permission denied


Sorry for all the text but I'm getting multiple errors so its best if I show the whole process.
At this point I feel like trying out another Linux Distro and seeing if Wifi works there, not sure why its acting up, could be the laptop itself.
JeremyB
Level 21
Level 21
Posts: 13851
Joined: Fri Feb 21, 2014 8:17 am

Re: Linux Mint Wifi Issue

Post by JeremyB »

Lets see the errors on the build

Code: Select all

cat /var/lib/dkms/rtl8723de/5.1.1.8_21285.20171026_COEX20170111-1414/build/make.log
Turk_Movement

Re: Linux Mint Wifi Issue

Post by Turk_Movement »

muhammed@linux-muhammed:~$ cat /var/lib/dkms/rtl8723de/5.1.1.8_21285.20171026_COEX20170111-1414/build/make.log
DKMS make.log for rtl8723de-5.1.1.8_21285.20171026_COEX20170111-1414 for kernel 4.19.0-11-amd64 (x86_64)
Sat 10 Oct 2020 07:47:00 PM AEDT
make ARCH=x86_64 CROSS_COMPILE= -C /lib/modules/4.19.0-11-amd64/build M=/var/lib/dkms/rtl8723de/5.1.1.8_21285.20171026_COEX20170111-1414/build modules
make[1]: Entering directory '/usr/src/linux-headers-4.19.0-11-amd64'
CC [M] /var/lib/dkms/rtl8723de/5.1.1.8_21285.20171026_COEX20170111-1414/build/core/rtw_cmd.o
In file included from /var/lib/dkms/rtl8723de/5.1.1.8_21285.20171026_COEX20170111-1414/build/include/osdep_service.h:42,
from /var/lib/dkms/rtl8723de/5.1.1.8_21285.20171026_COEX20170111-1414/build/include/drv_types.h:32,
from /var/lib/dkms/rtl8723de/5.1.1.8_21285.20171026_COEX20170111-1414/build/core/rtw_cmd.c:22:
/var/lib/dkms/rtl8723de/5.1.1.8_21285.20171026_COEX20170111-1414/build/include/osdep_service_linux.h: In function ‘_init_timer’:
/var/lib/dkms/rtl8723de/5.1.1.8_21285.20171026_COEX20170111-1414/build/include/osdep_service_linux.h:287:8: error: ‘_timer’ {aka ‘struct timer_list’} has no member named ‘data’
ptimer->data = (unsigned long)cntx;
^~
/var/lib/dkms/rtl8723de/5.1.1.8_21285.20171026_COEX20170111-1414/build/include/osdep_service_linux.h:288:2: error: implicit declaration of function ‘init_timer’; did you mean ‘_init_timer’? [-Werror=implicit-function-declaration]
init_timer(ptimer);
^~~~~~~~~~
_init_timer
In file included from /var/lib/dkms/rtl8723de/5.1.1.8_21285.20171026_COEX20170111-1414/build/include/drv_types.h:35,
from /var/lib/dkms/rtl8723de/5.1.1.8_21285.20171026_COEX20170111-1414/build/core/rtw_cmd.c:22:
/var/lib/dkms/rtl8723de/5.1.1.8_21285.20171026_COEX20170111-1414/build/include/wifi.h: At top level:
/var/lib/dkms/rtl8723de/5.1.1.8_21285.20171026_COEX20170111-1414/build/include/wifi.h:1006: warning: "IEEE80211_MAX_AMPDU_BUF" redefined
#define IEEE80211_MAX_AMPDU_BUF 0x40

In file included from /var/lib/dkms/rtl8723de/5.1.1.8_21285.20171026_COEX20170111-1414/build/include/osdep_service_linux.h:86,
from /var/lib/dkms/rtl8723de/5.1.1.8_21285.20171026_COEX20170111-1414/build/include/osdep_service.h:42,
from /var/lib/dkms/rtl8723de/5.1.1.8_21285.20171026_COEX20170111-1414/build/include/drv_types.h:32,
from /var/lib/dkms/rtl8723de/5.1.1.8_21285.20171026_COEX20170111-1414/build/core/rtw_cmd.c:22:
/usr/src/linux-headers-4.19.0-11-common/include/linux/ieee80211.h:1451: note: this is the location of the previous definition
#define IEEE80211_MAX_AMPDU_BUF 0x100

cc1: some warnings being treated as errors
make[4]: *** [/usr/src/linux-headers-4.19.0-11-common/scripts/Makefile.build:309: /var/lib/dkms/rtl8723de/5.1.1.8_21285.20171026_COEX20170111-1414/build/core/rtw_cmd.o] Error 1
make[3]: *** [/usr/src/linux-headers-4.19.0-11-common/Makefile:1545: _module_/var/lib/dkms/rtl8723de/5.1.1.8_21285.20171026_COEX20170111-1414/build] Error 2
make[2]: *** [Makefile:146: sub-make] Error 2
make[1]: *** [Makefile:8: all] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.19.0-11-amd64'
make: *** [Makefile:1884: modules] Error 2
JeremyB
Level 21
Level 21
Posts: 13851
Joined: Fri Feb 21, 2014 8:17 am

Re: Linux Mint Wifi Issue

Post by JeremyB »

Code: Select all

dkms uninstall rtl8723de/5.1.1.8_21285.20171026_COEX20170111-1414
dkms remove rtl8723de/5.1.1.8_21285.20171026_COEX20170111-1414 --all
sudo rm -r /usr/src/rtl8723de-5.1.1.8_21285.20171026_COEX20170111-1414
cd rtl8723de
git pull
See if it updates anything, some of those errors were from older code
Locked

Return to “Networking”