[Solved]Loosing WiFi Driver when Updating Kernel

Questions about hardware, drivers and peripherals
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Oskar1224
Level 5
Level 5
Posts: 693
Joined: Thu Mar 04, 2021 11:55 am
Location: Quebec, Canada

[Solved]Loosing WiFi Driver when Updating Kernel

Post by Oskar1224 »

Yesterday was the second time I lost my WiFi driver after installing updates, the first time I used my backup to restore my system back (LM Cinnamon 20.3). The USB WiFi driver is RTL8192EU and I install it thru the Synaptic Package mgr. Searching for solution I think the problem is related to "DKMS" and I'm asking for help how to implement / use dkms. I'm learning Linux and my knowledge is still limited so please when asking questions or thinks to do be explicit.

Since my desktop which has only Linux has now no Internet, I use my Windows laptop to write this email. Also I don't have or want a smartphone so if you want me to rune a code I will copy/paste the answer from my desktop to my laptop for you.

I could use my backup to restore Linux back to an earlier state where the Internet will be functioning but I haven't done it yet in case you want to see Linux as it is now (with no Internet)

Thank you
Last edited by Oskar1224 on Sun Dec 03, 2023 2:51 am, edited 1 time in total.
Nicolas
seasons
Level 4
Level 4
Posts: 254
Joined: Fri Nov 17, 2023 5:00 pm

Re: Loosing WiFi Driver when Updating Kernel

Post by seasons »

Oskar1224 wrote: Wed Nov 29, 2023 1:00 pmI install it thru the Synaptic Package mgr.
What package are you installing, and if it's not in the standard repo, where did you get it?
Oskar1224
Level 5
Level 5
Posts: 693
Joined: Thu Mar 04, 2021 11:55 am
Location: Quebec, Canada

Re: Loosing WiFi Driver when Updating Kernel

Post by Oskar1224 »

Searching in Synaptic Package Manager for RTL8192EU I get:

rtl8192eu-dkms, install version 5.6.4-focal9, latest version 5.6.4-focal9, description rtl8192eu driver in DKMS format

and thats what I installed
Nicolas
seasons
Level 4
Level 4
Posts: 254
Joined: Fri Nov 17, 2023 5:00 pm

Re: Loosing WiFi Driver when Updating Kernel

Post by seasons »

If the package has dkms in the name, then it almost certainly uses dkms. See what's going on with:

Code: Select all

sudo dkms status
Do you know if a new kernel was part of the updates that made you lose wifi?
Oskar1224
Level 5
Level 5
Posts: 693
Joined: Thu Mar 04, 2021 11:55 am
Location: Quebec, Canada

Re: Loosing WiFi Driver when Updating Kernel

Post by Oskar1224 »

seasons wrote: Wed Nov 29, 2023 4:15 pm If the package has dkms in the name, then it almost certainly uses dkms. See what's going on with:

Code: Select all

sudo dkms status
Do you know if a new kernel was part of the updates that made you lose wifi?
Yes the Kernel was part of the latest updates. Previously when this happened again I was told to remove the Kernel update which I did and the new updates were installed except the Kernel and my WiFI ws working.

I can't use the code you say since I'm writing this email from my Windows laptop. I want to leave Linux as is in case someone wants to see something in the system as its now. The only way to fix this is by restoring Linux to a previous state which is not a big deal for me however there may be things I can do without restore.

Obviously updating the Kernel is a good thing to do so I must find / fix the issue.

Many thanks
Nicolas
seasons
Level 4
Level 4
Posts: 254
Joined: Fri Nov 17, 2023 5:00 pm

Re: Loosing WiFi Driver when Updating Kernel

Post by seasons »

If you want to get wireless info to share with people:
https://ubuntuforums.org/showthread.php?t=370108
Oskar1224
Level 5
Level 5
Posts: 693
Joined: Thu Mar 04, 2021 11:55 am
Location: Quebec, Canada

Re: Loosing WiFi Driver when Updating Kernel

Post by Oskar1224 »

seasons wrote: Wed Nov 29, 2023 5:31 pm If you want to get wireless info to share with people:
https://ubuntuforums.org/showthread.php?t=370108
Thanks for the link but I have no need / interest to do any of the info provided on that link.
Nicolas
seasons
Level 4
Level 4
Posts: 254
Joined: Fri Nov 17, 2023 5:00 pm

Re: Loosing WiFi Driver when Updating Kernel

Post by seasons »

You completely lost me on what you are doing. "I want to leave Linux as is in case someone wants to see something in the system as its now."
But yet, when someone asks to see output/info, you don't give it. How is anyone supposed to help you?
User avatar
JerryF
Level 16
Level 16
Posts: 6511
Joined: Mon Jun 08, 2015 1:23 pm
Location: Rhode Island, USA

Re: Loosing WiFi Driver when Updating Kernel

Post by JerryF »

At least, provide information as you said you could do:
Also I don't have or want a smartphone so if you want me to rune a code I will copy/paste the answer from my desktop to my laptop for you.
Please open the System Reports app and click the System Information tab on the left. Your computer's information should come up in the right pane. Click the Copy button.

Then paste the results into a reply window where you have internet so we can see how Linux Mint views your hardware. No need to use code tags because System Information copy already inserts the tags when you paste.
Oskar1224
Level 5
Level 5
Posts: 693
Joined: Thu Mar 04, 2021 11:55 am
Location: Quebec, Canada

Re: Loosing WiFi Driver when Updating Kernel

Post by Oskar1224 »

Thanks JerryF for your time, attached is the info you want in LibreOffice Writer format
System Info Nov_29.odt
(25.16 KiB) Downloaded 31 times
Nicolas
Oskar1224
Level 5
Level 5
Posts: 693
Joined: Thu Mar 04, 2021 11:55 am
Location: Quebec, Canada

Re: Loosing WiFi Driver when Updating Kernel

Post by Oskar1224 »

seasons wrote: Wed Nov 29, 2023 6:05 pm You completely lost me on what you are doing. "I want to leave Linux as is in case someone wants to see something in the system as its now." But yet, when someone asks to see output/info, you don't give it. How is anyone supposed to help you?
Sorry mate as far as I know my LM problem can be resolved either by using the Terminal Commands or asking to post info from within my LM install as I did for JerryF. I don't have to download / install external links
Nicolas
JeremyB
Level 21
Level 21
Posts: 13651
Joined: Fri Feb 21, 2014 8:17 am

Re: Loosing WiFi Driver when Updating Kernel

Post by JeremyB »

Oskar1224 wrote: Wed Nov 29, 2023 5:52 pm
seasons wrote: Wed Nov 29, 2023 5:31 pm If you want to get wireless info to share with people:
https://ubuntuforums.org/showthread.php?t=370108
Thanks for the link but I have no need / interest to do any of the info provided on that link.
See the wireless script link in my signature and post results
Oskar1224
Level 5
Level 5
Posts: 693
Joined: Thu Mar 04, 2021 11:55 am
Location: Quebec, Canada

Re: Loosing WiFi Driver when Updating Kernel

Post by Oskar1224 »

[/quote]See the wireless script link in my signature and post results[/quote]

To try the script I will do my restore to have access to Internet in my LM desktop and post the results
Thanks
Nicolas
User avatar
JerryF
Level 16
Level 16
Posts: 6511
Joined: Mon Jun 08, 2015 1:23 pm
Location: Rhode Island, USA

Re: Loosing WiFi Driver when Updating Kernel

Post by JerryF »

Oskar1224 wrote: Wed Nov 29, 2023 8:00 pm Thanks JerryF for your time, attached is the info you want in LibreOffice Writer format

System Info Nov_29.odt
Posting your output for others to read more easily and quickly:

Code: Select all

System:    Kernel: 5.4.0-167-generic x86_64 bits: 64 compiler: gcc v: 9.4.0 
           Desktop: Cinnamon 5.2.7 wm: muffin dm: LightDM Distro: Linux Mint 20.3 Una 
           base: Ubuntu 20.04 focal 
Machine:   Type: Desktop System: Dell product: OptiPlex 3050 v: N/A serial: <filter> Chassis: 
           type: 3 serial: <filter> 
           Mobo: Dell model: 08NPPY v: A00 serial: <filter> UEFI [Legacy]: Dell v: 1.19.0 
           date: 12/02/2021 
CPU:       Topology: Quad Core model: Intel Core i5-6500 bits: 64 type: MCP arch: Skylake-S rev: 3 
           L2 cache: 6144 KiB 
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 25599 
           Speed: 800 MHz min/max: 800/3600 MHz Core speeds (MHz): 1: 800 2: 800 3: 800 4: 800 
Graphics:  Device-1: Intel HD Graphics 530 vendor: Dell driver: i915 v: kernel bus ID: 00:02.0 
           chip ID: 8086:1912 
           Display: x11 server: X.Org 1.20.13 driver: modesetting unloaded: fbdev,vesa 
           resolution: 1920x1080~60Hz 
           OpenGL: renderer: Mesa Intel HD Graphics 530 (SKL GT2) v: 4.6 Mesa 21.2.6 
           direct render: Yes 
Audio:     Device-1: Intel 200 Series PCH HD Audio vendor: Dell driver: snd_hda_intel v: kernel 
           bus ID: 00:1f.3 chip ID: 8086:a2f0 
           Sound Server: ALSA v: k5.4.0-167-generic 
Network:   Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: Dell 
           driver: r8169 v: kernel port: e000 bus ID: 02:00.0 chip ID: 10ec:8168 
           IF: enp2s0 state: down mac: <filter> 
           Device-2: Realtek RTL8192EU 802.11b/g/n WLAN Adapter type: USB driver: usb-network 
           bus ID: 1-8:4 chip ID: 0bda:818b 
Drives:    Local Storage: total: 462.05 GiB used: 53.75 GiB (11.6%) 
           ID-1: /dev/nvme0n1 vendor: Micron model: PC300 NVMe SK hynix 256GB size: 238.47 GiB 
           speed: 31.6 Gb/s lanes: 4 serial: <filter> 
           ID-2: /dev/sda vendor: Kingston model: SUV500240G size: 223.57 GiB speed: 6.0 Gb/s 
           serial: <filter> 
Partition: ID-1: / size: 233.18 GiB used: 53.75 GiB (23.1%) fs: ext4 dev: /dev/nvme0n1p5 
USB:       Hub: 1-0:1 info: Full speed (or root) Hub ports: 12 rev: 2.0 chip ID: 1d6b:0002 
           Device-1: 1-5:2 info: Wacom ET-0405A [Graphire2 (4x5)] type: Mouse driver: usbhid,wacom 
           rev: 1.1 chip ID: 056a:0011 
           Device-2: 1-6:3 
           info: Holtek wireless multimedia keyboard with trackball [Trust ADURA 17911] 
           type: Keyboard,Mouse driver: hid-generic,usbhid rev: 2.0 chip ID: 04d9:a01c 
           Device-3: 1-8:4 info: Realtek RTL8192EU 802.11b/g/n WLAN Adapter 
           type: <vendor specific> driver: N/A rev: 2.1 chip ID: 0bda:818b 
           Hub: 2-0:1 info: Full speed (or root) Hub ports: 6 rev: 3.0 chip ID: 1d6b:0003 
Sensors:   System Temperatures: cpu: 28.0 C mobo: N/A 
           Fan Speeds (RPM): N/A 
Repos:     No active apt repos in: /etc/apt/sources.list 
           Active apt repos in: /etc/apt/sources.list.d/brave-browser-release.list 
           1: deb [signed-by=/usr/share/keyrings/brave-browser-archive-keyring.gpg] https: //brave-browser-apt-release.s3.brave.com/ stable main
           Active apt repos in: /etc/apt/sources.list.d/kelebek333-kablosuz-focal.list 
           1: deb http: //ppa.launchpad.net/kelebek333/kablosuz/ubuntu focal main
           Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list 
           1: deb http: //packages.linuxmint.com una main upstream import backport #id:linuxmint_main
           2: deb http: //archive.ubuntu.com/ubuntu focal main restricted universe multiverse
           3: deb http: //archive.ubuntu.com/ubuntu focal-updates main restricted universe multiverse
           4: deb http: //archive.ubuntu.com/ubuntu focal-backports main restricted universe multiverse
           5: deb http: //security.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
           6: deb http: //archive.canonical.com/ubuntu/ focal partner
           Active apt repos in: /etc/apt/sources.list.d/shutter-ppa-focal.list 
           1: deb http: //ppa.launchpad.net/shutter/ppa/ubuntu focal main
Info:      Processes: 193 Uptime: 4h 57m Memory: 15.51 GiB used: 846.3 MiB (5.3%) Init: systemd 
           v: 245 runlevel: 5 Compilers: gcc: 9.4.0 alt: 9 Client: Unknown python3.8 client 
           inxi: 3.0.38 
Oskar1224
Level 5
Level 5
Posts: 693
Joined: Thu Mar 04, 2021 11:55 am
Location: Quebec, Canada

Re: Loosing WiFi Driver when Updating Kernel

Post by Oskar1224 »

Code: Select all

nf@nf-OptiPlex-3050:~$ wget -N -t 5 -T 10 https://github.com/UbuntuForums/wireless-info/raw/master/wireless-info && chmod +x wireless-info && ./wireless-info
Will not apply HSTS. The HSTS database must be a regular and non-world-writable file.
ERROR: could not open HSTS store at '/home/nf/.wget-hsts'. HSTS will be disabled.
--2023-11-29 20:57:14--  https://github.com/UbuntuForums/wireless-info/raw/master/wireless-info
Resolving github.com (github.com)... 140.82.113.4
Connecting to github.com (github.com)|140.82.113.4|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://raw.githubusercontent.com/UbuntuForums/wireless-info/master/wireless-info [following]
--2023-11-29 20:57:14--  https://raw.githubusercontent.com/UbuntuForums/wireless-info/master/wireless-info
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 185.199.109.133, 185.199.110.133, 185.199.111.133, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|185.199.109.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 17534 (17K) [text/plain]
Saving to: ‘wireless-info’

wireless-info                         100%[=======================================================================>]  17.12K  --.-KB/s    in 0.006s  

Last-modified header missing -- time-stamps turned off.
2023-11-29 20:57:14 (2.59 MB/s) - ‘wireless-info’ saved [17534/17534]

[sudo] password for nf:       
\
Results saved in "/home/nf/wireless-info.txt".

Results also archived in "/home/nf/wireless-info.tar.gz", as they exceed the 19.5 kB size limit for ".txt" attachments on the Ubuntu Forums.

nf@nf-OptiPlex-3050:~$ cat wireless-info.txt | nc termbin.com 9999
https://termbin.com/aa7f
nf@nf-OptiPlex-3050:~$ 
Sorry JerryF this is what I get but not sure if correct, the script is for RT3092 and mine is RTL8192EU so have no idea the relation. Let me know if you need any other info
Nicolas
User avatar
JerryF
Level 16
Level 16
Posts: 6511
Joined: Mon Jun 08, 2015 1:23 pm
Location: Rhode Island, USA

Re: Loosing WiFi Driver when Updating Kernel

Post by JerryF »

JeremyB is the person who asked for and can interpret that last output.
Oskar1224
Level 5
Level 5
Posts: 693
Joined: Thu Mar 04, 2021 11:55 am
Location: Quebec, Canada

Re: Loosing WiFi Driver when Updating Kernel

Post by Oskar1224 »

Apologies JerryF, got confused
Nicolas
Oskar1224
Level 5
Level 5
Posts: 693
Joined: Thu Mar 04, 2021 11:55 am
Location: Quebec, Canada

Re: Loosing WiFi Driver when Updating Kernel

Post by Oskar1224 »

Just for information, I was following a thread from the web which was installing another Realtek driver to use the wireless network Interface in Ubuntu and typing in my Terminal some of the commands on that thread I get the Terminal answers shown in brackets below:

sudo apt install git build-essentials dkms (unable to locate package build-essentials)
sudo install git build-essentials dkms (dkms is not a directory)

From the above I gather that although my Realtek driver is installed thru the Synaptics Package Manager, perhaps its not installed properly (not been part of a tree..?) and that is when I get a Kernel update, the new update removes the driver and I have no internet. Perhaps if you tell me how to properly install my RTL8192EU driver may fix the problem?
Thank you
Nicolas
JeremyB
Level 21
Level 21
Posts: 13651
Joined: Fri Feb 21, 2014 8:17 am

Re: Loosing WiFi Driver when Updating Kernel

Post by JeremyB »

Try this

Code: Select all

sudo apt install git dkms
git clone https://github.com/Mange/rtl8192eu-linux-driver.git
sudo dkms add ./rtl8192eu-linux-driver
sudo dkms install rtl8192eu/1.0
seasons
Level 4
Level 4
Posts: 254
Joined: Fri Nov 17, 2023 5:00 pm

Re: Loosing WiFi Driver when Updating Kernel

Post by seasons »

The package is called build-essential (no 's' on the end). You probably already have it installed.
Active apt repos in: /etc/apt/sources.list.d/kelebek333-kablosuz-focal.list
This is where you are getting the rtl8192eu-dkms package. You must not remember adding this to your sources.
Post Reply

Return to “Hardware Support”