Update broke wifi module yet again rtl8192eu-dkms

Recent update from 4-th May, that contained python updates, broke my wifi module. I think it is because the module uses python code.
This wifi module caused a lot of trouble in the past Update broke network module again

dkms status
nvidia/530.41.03, 6.3.1-arch1-1, x86_64: installed
rtl8192eu/5.6.4: added

I tried reinstalling it. When I tried to uninstall it gave the message

sudo dkms uninstall rtl8192eu/5.6.4
Module rtl8192eu 5.6.4 is not installed for kernel 6.3.1-arch1-1 (x86_64). Skipping...

Since it says it is not installed, then tried to install it:

yay -S rtl8192eu-dkms
...
Running post-transaction hooks...
(1/3) Arming ConditionNeedsUpdate...
(2/3) Install DKMS modules
==> dkms install --no-depmod rtl8192eu/5.6.4 -k 6.3.1-arch1-1
Error! Bad return status for module build on kernel: 6.3.1-arch1-1 (x86_64)
Consult /var/lib/dkms/rtl8192eu/5.6.4/build/make.log for more information.
==> WARNING: `dkms install --no-depmod rtl8192eu/5.6.4 -k 6.3.1-arch1-1' exited 10
(3/3) Checking which packages need to be rebuilt

The part from the Log the contained Error messages:

DKMS make.log for rtl8192eu-5.6.4 for kernel 6.3.1-arch1-1 (x86_64)
...
make[2]: *** [scripts/Makefile.build:252: /var/lib/dkms/rtl8192eu/5.6.4/build/os_dep/linux/ioctl_cfg80211.o] Error 1
make[1]: *** [Makefile:2025: /var/lib/dkms/rtl8192eu/5.6.4/build] Error 2
make: *** [Makefile:2287: modules] Error 2

Is there any hope for fixing this without rolling back the update?

When you ran the the package and it asks to rebuild packages did you say A for all. Maybe just try it and see if you get the same errors. Otherwise i would try reinstalling the linux kernel and headers.

sudo pacman -S linux linux-headers
1 Like

I updated keyrings, but didn’t know that headers needed updating too. So after running the code

sudo pacman -S linux linux-headers

it gives this

...
Running post-transaction hooks...
(1/6) Arming ConditionNeedsUpdate...
(2/6) Updating module dependencies...
(3/6) Install DKMS modules
==> dkms install --no-depmod rtl8192eu/5.6.4 -k 6.3.1-arch1-1
Error! Bad return status for module build on kernel: 6.3.1-arch1-1 (x86_64)
Consult /var/lib/dkms/rtl8192eu/5.6.4/build/make.log for more information.
==> WARNING: `dkms install --no-depmod rtl8192eu/5.6.4 -k 6.3.1-arch1-1' exited 10

Logs:

...
make[2]: *** [scripts/Makefile.build:252: /var/lib/dkms/rtl8192eu/5.6.4/build/os_dep/linux/ioctl_cfg80211.o] Error 1
make[1]: *** [Makefile:2025: /var/lib/dkms/rtl8192eu/5.6.4/build] Error 2
make: *** [Makefile:2287: modules] Error 2

Basically nothing new, unfortunately.

rtl8192eu was the driver of my former wifi interface, I keep it as a backup. I just checked it and it’s working fine.
Package : 8192eu-dkms-git
Kernel : 6.3.1-arch1-1

1 Like

I think there is some other issue going on. Not sure if the OP is using systemd-boot or grub? Might be some issue with dkms? Maybe if on systemd-boot they need to regenerate and reinstall kernels?

sudo reinstall-kernels

1 Like

Maybe, unless the update process did not fully complete (broke), and this could be the reason of the problem.
Did you confirm the update finished successfully with no errors? If not, inspect pacman.log and check.

Do you have any other kernel in your system? If so, check status for that, and in any case, better reboot to the good kernel, if there is one.

Nevertheless, since dkms status shows the module as added, it means it is not built, or installed (IIUC RTFMan dkms).
Since it is not installed, although added, it needs to be built and then installed, or just install, which does both.
Did you try sudo dkms install rtl8192eu/5.6.4 ?

Next, yay/alpm runs a simplified command (with --no-depmod), for speed. This argument prevents some dependency check, which might provide more info output, or fix the procedure.

I have no experience with dkms and kernel modules building, so take my comments/suggestions with doubt. Read the manual yourself and/or wait for an experienced user to give some light.


Off topic: These dkms issues, while waiting for @dalto to find some time to check them, bring @jonathon in my memory, as he was an expert on those, piece of cake… :no_mouth: :slightly_frowning_face:

2 Likes

I use grub. reinstall kernels command is not recognized by the system at all.

8192eu-dkms-git worked until it didn’t. This was the first wifi module on my system and I managed to install it myself. It worked for half year and then stopped. Then dalto suggested another module and it worked, but now it failed too. :frowning:

Did:

Building module:
Cleaning build area...
'make' all KVER=6.3.1-arch1-1....................(bad exit status: 2)
Error! Bad return status for module build on kernel: 6.3.1-arch1-1 (x86_64)
Consult /var/lib/dkms/rtl8192eu/5.6.4/build/make.log for more information.

I will try the git version, maybe it started working again…

EDIT:

git clone https://github.com/xse/rtl8192eu-dkms-git.git
cd rtl8192eu-dkms-git
makepkg -si

...
Building module:
Cleaning build area...
'make' all KVER=6.3.1-arch1-1................(bad exit status: 2)
Error! Bad return status for module build on kernel: 6.3.1-arch1-1 (x86_64)
Consult /var/lib/dkms/rtl8192eu/4.4.1/build/make.log for more information.
error: command failed to execute correctly

git version can not be installed too. In the past, I installed it using the code above, now this code simply does not work… I’m at a complete loss what to do…

I have a dongle running under Eos with the same chipset. I have always taken this Driver and had no problems. Not even when it was overwritten by DKMS because I had downloaded it in full. But that was only under Fedora so.
There is an install script available.

Anyway the driver in the kernel is not usable like so many others for Realtek.

I hope it helps.

1 Like

Try rtl8192eu-git package, looks like they officially support 6.3 kernel :

2 Likes

git clone https://github.com/Mange/rtl8192eu-linux-driver.git
fatal: destination path ‘rtl8192eu-linux-driver’ already exists and is not an empty directory.
cd rtl8192eu-linux-driver
[… rtl8192eu-linux-driver]$ makepkg -si
==> ERROR: PKGBUILD does not exist.

What am I doing wrong here? I used the same commands (with the link altered and the folder altered) before and it worked. Here it does not work.

:point_up_2:

1 Like

Yes, but that’s because this is the second time today I did this, so the folder was already there. First time it went smooth(without that ‘fatal’ error), but the makepkg -si returned the same error ERROR: PKGBUILD does not exist.

So, I found out that the error was in directly using makepkg -si.
Instead there are several other steps need to be taken.
However, I have trouble understand the 4-th step.

  1. Add the driver to DKMS. This will copy the source to a system directory so that it can used to rebuild the module on kernel upgrades.

sudo dkms add .

what exactly should be written here?
sudo dkms add rtl8192eu but what module version?

I tried this sudo dkms add 8192eu -v 5.6.4 but didn’t work

Perhaps something like this :

sudo dkms add 8192eu/5.6.4

According to the man page :

add [module/module-version | /path/to/source-tree | /path/to/tarball.tar]

1 Like

This didn’t work, and many other versions didn’t work.

Please, help me. I’m banging my head at the wall for several days already.

Exactly what version is the driver from https://github.com/Mange/rtl8192eu-linux-driver ? there is no explicit info. Is it 4.4.1 ?

$ dkms status
nvidia/530.41.03, 6.3.1-arch2-1, x86_64: installed
rtl8192eu/4.4.1: added

Since it is added, there is no need in adding it to kernel?

then I run dkms autoinstall with the same erorrs as before. There was one other error that i missed In one of the logs I found out that bc was not installed. So i installed it but this did not solve the problems.

This last update effed up everything. Commands that worked before no longer working, can not install driver that I have already installed succesfully in the past. This new driver also won’t install. What to do?

rtl8192eu-linux-driver]$ sudo dkms add rtl8192eu -v 4.4.1
Error! DKMS tree already contains: rtl8192eu-4.4.1
You cannot add the same module/version combo more than once.

rtl8192eu-linux-driver]$ sudo dkms autoinstall
Deprecated feature: REMAKE_INITRD (/var/lib/dkms/rtl8192eu/4.4.1/source/dkms.conf)
Deprecated feature: REMAKE_INITRD (/etc/dkms/framework.conf)
Sign command: /usr/lib/modules/6.3.1-arch2-1/build/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub
Deprecated feature: REMAKE_INITRD (/var/lib/dkms/rtl8192eu/4.4.1/source/dkms.conf)

Building module:
Cleaning build area...
'make' all KVER=6.3.1-arch2-1................(bad exit status: 2)
Error! Bad return status for module build on kernel: 6.3.1-arch2-1 (x86_64)
Consult /var/lib/dkms/rtl8192eu/4.4.1/build/make.log for more information.
dkms autoinstall on 6.3.1-arch2-1/x86_64 succeeded for nvidia
dkms autoinstall on 6.3.1-arch2-1/x86_64 failed for rtl8192eu(10)

I really do not understand this, how is possible, the problem is not that modules do not work, the problem is the modules just won’t install, at all.

I would start over by uninstalling what you have installed. Make sure you don’t have any package on the system.

git clone https://github.com/Mange/rtl8192eu-linux-driver

cd rtl8192eu-linux-driver

sudo makepkg -si

Work only if you clone an AUR URL, not an original one, according to the install help, it should be :

git clone https://github.com/Mange/rtl8192eu-linux-driver

cd rtl8192eu-linux-driver

sudo dkms add .

sudo dkms install rtl8192eu/1.0

Well that could very well be as I am no expert on package builds. :wink: I just thought maybe the OP should step back and try again from the beginning as they may be missing something in the thick of it.

Checked that there aren’t any dkms modules for wifi.

$ dkms status
nvidia/530.41.03, 6.3.1-arch2-1, x86_64: installed

removed the existing git folder as described here https://stackoverflow.com/questions/50361138/destination-path-already-exists-and-is-not-an-empty-directory

Cloned it:

$ git clone https://github.com/Mange/rtl8192eu-linux-driver.git
Cloning into 'rtl8192eu-linux-driver'...
remote: Enumerating objects: 3601, done.
remote: Counting objects: 100% (683/683), done.
remote: Compressing objects: 100% (171/171), done.
remote: Total 3601 (delta 528), reused 520 (delta 512), pack-reused 2918
Receiving objects: 100% (3601/3601), 7.07 MiB | 622.00 KiB/s, done.
Resolving deltas: 100% (2426/2426), done.
cd rtl8192eu-linux-driver
$ sudo makepkg -si
==> ERROR: Running makepkg as root is not allowed as it can cause permanent,
catastrophic damage to your system.

The last error is expected, it is not surprising.

What happens without sudo?