Hello I need help on Wifi, it always not connect between. Sometimes it works fine. Sometimes need long time

I set the power safe from 3 to 2, but not help. Then I have downloaded the Kernel Driver from Kernel.org. But I don get it to run.
There always is that message:
Fehler traten auf beim Bearbeiten von:
rtl88x2ce-dkms
E: Sub-process /usr/bin/dpkg returned an error code (1)

Sometimes the Internet works directly and without any problems. Sometimes it constantly breaks down when establishing the connection and it takes long time until there is finally a connection to the router. Sometimes it just breaks off in between and it takes many connection attempts until it works again.

I am new in Linux, so please help me step by step.

Welcome! :smile:

What's the output of sudo lshw -C network?

Sounds a little driver related - and RTL loves to have multiple variants of their chips; I have an 8723du in one of my machines, kernel driver was pulling a 8723de or something wild - would work for a min, then disconnect.

Also what's the HW ID of the chip? It'll be a XXXX:XXXX format; you can post the whole thing, or just the wireless adapter with:
lspci or lsusb

That will help identify which card you have and possibly get a good driver working :grin: No worries though, had to do the same for one of my RTL chips!

1 Like

Also, if you are using a Notebook Computer, have you disabled Powersave on Wifi?

the output sudo lshw -C network is:
*-network
Beschreibung: Kabellose Verbindung
Produkt: RTL8822CE 802.11ac PCIe Wireless Network Adapter
Hersteller: Realtek Semiconductor Co., Ltd.
Physische ID: 0
Bus-Informationen: pci@0000:01:00.0
Logischer Name: wlo1
Version: 00
Seriennummer: 20:4e:f6:f1:9c:71
Breite: 64 bits
Takt: 33MHz
Fähigkeiten: pm msi pciexpress bus_master cap_list ethernet physical wireless
Konfiguration: broadcast=yes driver=rtw_8822ce driverversion=5.15.0-91-generic firmware=N/A ip=192.168.178.38 latency=0 link=yes multicast=yes wireless=IEEE 802.11
Ressourcen: irq:75 ioport:2000(Größe=256) memory:d0700000-d070ffff

and the second output of lspci is:
00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Root Complex
00:00.2 IOMMU: Advanced Micro Devices, Inc. [AMD] Renoir IOMMU
00:01.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge
00:01.3 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe GPP Bridge
00:02.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge
00:02.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe GPP Bridge
00:02.3 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe GPP Bridge
00:08.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge
00:08.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir Internal PCIe GPP Bridge to Bus
00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 51)
00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 51)
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 0
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 1
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 2
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 3
00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 4
00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 5
00:18.6 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 6
00:18.7 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir Device 24: Function 7
01:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8822CE 802.11ac PCIe Wireless Network Adapter
02:00.0 Unassigned class [ff00]: Realtek Semiconductor Co., Ltd. RTS522A PCI Express Card Reader (rev 01)
03:00.0 Non-Volatile memory controller: Sandisk Corp Device 5006
04:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Renoir (rev c3)
04:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Device 1637
04:00.2 Encryption controller: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 10h-1fh) Platform Security Processor
04:00.3 USB controller: Advanced Micro Devices, Inc. [AMD] Renoir USB 3.1
04:00.4 USB controller: Advanced Micro Devices, Inc. [AMD] Renoir USB 3.1
04:00.5 Multimedia controller: Advanced Micro Devices, Inc. [AMD] Raven/Raven2/FireFlight/Renoir Audio Processor (rev 01)
04:00.6 Audio device: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 10h-1fh) HD Audio Controller
04:00.7 Signal processing controller: Advanced Micro Devices, Inc. [AMD] Raven/Raven2/Renoir Sensor Fusion Hub

yes I think I have disabled it. I have set Powersave from 3 to 2. But no change by that.

1 Like

I see that now in your O.P. sorry for missing it...

What this error likely means is that the Network Driver is not compiled for the kernel in use.
Usually, the kernel is too new for that copy of the driver.

What you can try first without downgrading the kernel is:
Connect using a stable connection - either Ethernet, Mobile phone hotspot tethered with the USB cable or using your "working for the moment" current Wifi if you have to...
Run:

sudo apt install -y rtl8821ce-dkms

2 Likes

then there comes this text:
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen.... Fertig
Die folgenden Pakete wurden automatisch installiert und werden nicht mehr benötigt:
fonts-liberation2 fonts-opensymbol libabw-0.1-1 libboost-date-time1.71.0
libboost-locale1.71.0 libcdr-0.1-1 libclucene-contribs1v5 libclucene-core1v5
libe-book-0.1-1 libeot0 libepubgen-0.1-1 libetonyek-0.1-1
libexttextcat-2.0-0 libexttextcat-data libfreehand-0.1-1 liblangtag-common
liblangtag1 libmhash2 libmspub-0.1-1 libmythes-1.2-0 libodfgen-0.1-1
libpagemaker-0.0-0 libraptor2-0 librasqal3 librdf0 libreoffice-style-colibre
libreoffice-style-elementary librevenge-0.0-0 libuno-cppu3
libuno-cppuhelpergcc3-3 libuno-purpenvhelpergcc3-3 libuno-sal3
libuno-salhelpergcc3-3 libvisio-0.1-1 libwpd-0.10-10 libwpg-0.3-3 libyajl2
lp-solve uno-libs-private ure
Verwenden Sie »sudo apt autoremove«, um sie zu entfernen.
Die folgenden NEUEN Pakete werden installiert:
rtl8821ce-dkms
0 aktualisiert, 1 neu installiert, 0 zu entfernen und 3 nicht aktualisiert.
1 nicht vollständig installiert oder entfernt.
Es mĂĽssen 2.196 kB an Archiven heruntergeladen werden.
Nach dieser Operation werden 25,2 MB Plattenplatz zusätzlich benutzt.
Holen:1 Index of /ubuntu focal-updates/universe amd64 rtl8821ce-dkms all 5.5.2.1-0ubuntu4~20.04.5 [2.196 kB]
Es wurden 2.196 kB in 2 s geholt (1.323 kB/s).
Vormals nicht ausgewähltes Paket rtl8821ce-dkms wird gewählt.
(Lese Datenbank ... 279772 Dateien und Verzeichnisse sind derzeit installiert.)
Vorbereitung zum Entpacken von .../rtl8821ce-dkms_5.5.2.1-0ubuntu4~20.04.5_all.d
eb ...
Entpacken von rtl8821ce-dkms (5.5.2.1-0ubuntu4~20.04.5) ...
rtl88x2ce-dkms (35403) wird eingerichtet ...
Removing old rtl88x2ce-35403 DKMS files...


Deleting module version: 35403
completely from the DKMS tree.

Done.
Loading new rtl88x2ce-35403 DKMS files...
Building for 5.15.0-91-generic
Building for architecture x86_64
Building initial module for 5.15.0-91-generic
Error! Bad return status for module build on kernel: 5.15.0-91-generic (x86_64)
Consult /var/lib/dkms/rtl88x2ce/35403/build/make.log for more information.
dpkg: Fehler beim Bearbeiten des Paketes rtl88x2ce-dkms (--configure):
»installiertes rtl88x2ce-dkms-Skript des Paketes post-installation«-Unterprozes
s gab den Fehlerwert 10 zurĂĽck
rtl8821ce-dkms (5.5.2.1-0ubuntu4~20.04.5) wird eingerichtet ...
Loading new rtl8821ce-5.5.2.1 DKMS files...
Building for 5.15.0-91-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)
W: Operation wurde unterbrochen, bevor sie beendet werden konnte.

result:
Error! Bad return status for module build on kernel
there is also error code (1)
and the operation was interrupted before it has finished.

Please run

sudo apt --fix-broken install

sudo add-apt-repository ppa:tuxinvader/lts-mainline

sudo apt update && sudo apt install linux-generic-6.03

Reboot
Then launch terminal and run:

sudo apt install -y rtl8821ce-dkms

~$ sudo apt --fix-broken install

Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen.... Fertig
Die folgenden Pakete wurden automatisch installiert und werden nicht mehr benötigt:
fonts-liberation2 fonts-opensymbol libabw-0.1-1 libboost-date-time1.71.0
libboost-locale1.71.0 libcdr-0.1-1 libclucene-contribs1v5 libclucene-core1v5
libe-book-0.1-1 libeot0 libepubgen-0.1-1 libetonyek-0.1-1
libexttextcat-2.0-0 libexttextcat-data libfreehand-0.1-1 liblangtag-common
liblangtag1 libmhash2 libmspub-0.1-1 libmythes-1.2-0 libodfgen-0.1-1
libpagemaker-0.0-0 libraptor2-0 librasqal3 librdf0 libreoffice-style-colibre
libreoffice-style-elementary librevenge-0.0-0 libuno-cppu3
libuno-cppuhelpergcc3-3 libuno-purpenvhelpergcc3-3 libuno-sal3
libuno-salhelpergcc3-3 libvisio-0.1-1 libwpd-0.10-10 libwpg-0.3-3 libyajl2
lp-solve uno-libs-private ure
Verwenden Sie »sudo apt autoremove«, um sie zu entfernen.
0 aktualisiert, 0 neu installiert, 0 zu entfernen und 3 nicht aktualisiert.
1 nicht vollständig installiert oder entfernt.
Nach dieser Operation werden 0 B Plattenplatz zusätzlich benutzt.
rtl88x2ce-dkms (35403) wird eingerichtet ...
Removing old rtl88x2ce-35403 DKMS files...


Deleting module version: 35403
completely from the DKMS tree.

Done.
Loading new rtl88x2ce-35403 DKMS files...
Building for 5.15.0-91-generic
Building for architecture x86_64
Building initial module for 5.15.0-91-generic
Error! Bad return status for module build on kernel: 5.15.0-91-generic (x86_64)
Consult /var/lib/dkms/rtl88x2ce/35403/build/make.log for more information.
dpkg: Fehler beim Bearbeiten des Paketes rtl88x2ce-dkms (--configure):
»installiertes rtl88x2ce-dkms-Skript des Paketes post-installation«-Unterprozes
s gab den Fehlerwert 10 zurĂĽck
Fehler traten auf beim Bearbeiten von:
rtl88x2ce-dkms
E: Sub-process /usr/bin/dpkg returned an error code (1)

Ok, I have run that, but there was also error code (1) and it also said error code 10

It shows you as trying to install on the 5.15.0-91 kernel.
These steps:

Should have you installing on the 6.3 kernel.

the first had no error, the second not know, but I think it is of programs only.
I think it has installed. I can not post it here, because of too much links.

Did you reboot into the 6.3 kernel?

Reboot into the 6.3 kernel? I have done a reboot now.
Should there have been anything different? I didn't see any change while booting.

what is the output of

uname -r

5.15.0-91-generic

I actually was trying to head to bed an hour ago (It is now after 3am here)...
I must log out but I will be on later or hopefully another member will be in thread to help soon.

ok, no problem. thank you for now

It is now like that:
Everytime while Boot there is an Error about that 6.3 kernel and the Boot stops. I have to choose the 5.15.0-91 in that Bootmenu to run the Laptop. Then it loads but show me Error on the left upper side. But Computer starts. How to do now? The 6.3 not work. I always have to choose now how to Boot because error. There are options to Boot it for 3 different Kernel drivers. Only the 5.15.0-91 works. I write it next time when I Boot in here.

Can you please state the Manufacturer make and model of your computer?

Sorry, I not saw that you wrote. I not get message about.
I now removed the Kernel 6.3 with:
sudo -s

dpkg -l | grep linux-image
sudo apt-get purge kernel_name

Now when I Boot, the Laptop Boot normal with the 5.15.0-91-generic
without stopping at Boot.

dmidecode | grep -A3 '^System Information'
Manufacturer: HP
Product Name: HP ENVY x360 Convertible 15-ee0xxx
Version: Type1ProductConfigId