[Solved] RTL8821CE driver

Linux Kernel, Network, and Services configuration.
Message
Author
WanderingOak
Posts: 22
Joined: 2012-01-06 22:55
Has thanked: 1 time

[Solved] RTL8821CE driver

#1 Post by WanderingOak »

I have a new installation of Debian 11 on a HP 17 laptop, that I am unable to connect to my home wireless network, LSPCI shows my wifi controller as: Network controller: Realtek Semiconductor Co., Ltd. RTL8821CE 802.11ac PCIe Wireless Network Adapter . I installed the software from an image that included non-free sources. The Software package manager says that I already have Binary firmware for Realtek wired/wifi/BT adapters installed. ip link show returns the following:

Code: Select all

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eno1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000
    link/ether e4:e7:49:93:00:99 brd ff:ff:ff:ff:ff:ff
    altname enp2s0 
I used to have Linux Lite on this laptop, and was eventually able to get the wifi working, so I know that it is possible with this laptop.

Any assistance that the board can provide would be useful.
Last edited by WanderingOak on 2023-02-24 21:58, edited 1 time in total.
Bookworm HP 17

User avatar
FreewheelinFrank
Global Moderator
Global Moderator
Posts: 2257
Joined: 2010-06-07 16:59
Has thanked: 43 times
Been thanked: 238 times

Re: RTL8821CE driver

#2 Post by FreewheelinFrank »

If you search the forum, you will find many references to this device. The solution used to be to manually install the driver, because it wasn't in the kernel.

However, the driver may be in the newest kernel from backports now, so try that first:

viewtopic.php?p=749748#p749748

https://backports.debian.org/Instructions/

WanderingOak
Posts: 22
Joined: 2012-01-06 22:55
Has thanked: 1 time

Re: RTL8821CE driver

#3 Post by WanderingOak »

Installing the newest kernel from backports did the trick.
Bookworm HP 17

WanderingOak
Posts: 22
Joined: 2012-01-06 22:55
Has thanked: 1 time

Re: RTL8821CE driver

#4 Post by WanderingOak »

So, that worked for about a year. Starting in January, I started having connectivity issues. At first, updating the system software seemed to correct the problem. However, that is no longer the case. Whenever it tries to connect, the error message: Wireless Interface (wlp3s0) The wifi network could not be found. Right now, I'm not sure if this is a software problem, or if the wifi card on my laptop is toast.
Bookworm HP 17

User avatar
FreewheelinFrank
Global Moderator
Global Moderator
Posts: 2257
Joined: 2010-06-07 16:59
Has thanked: 43 times
Been thanked: 238 times

Re: RTL8821CE driver

#5 Post by FreewheelinFrank »

You could post the output of

Code: Select all

# journalctl -e
immediately after failing to connect.

WanderingOak
Posts: 22
Joined: 2012-01-06 22:55
Has thanked: 1 time

Re: RTL8821CE driver

#6 Post by WanderingOak »

I tried to attach a .txt file with the output, but I was told that it was an incompatible file type. I tried to paste it into the message, but I was told that the maximum allowed number of characters is 60,000. There is 1000 lines of text in the file. What am I looking for?
Bookworm HP 17

Aki
Global Moderator
Global Moderator
Posts: 3690
Joined: 2014-07-20 18:12
Location: Europe
Has thanked: 100 times
Been thanked: 484 times

Re: RTL8821CE driver

#7 Post by Aki »

Compress it with zip or gzip and attach the compressed file to the message of the forum.
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀

User avatar
FreewheelinFrank
Global Moderator
Global Moderator
Posts: 2257
Joined: 2010-06-07 16:59
Has thanked: 43 times
Been thanked: 238 times

Re: RTL8821CE driver

#8 Post by FreewheelinFrank »

WanderingOak wrote: 2023-02-22 21:17 I tried to attach a .txt file with the output, but I was told that it was an incompatible file type. I tried to paste it into the message, but I was told that the maximum allowed number of characters is 60,000. There is 1000 lines of text in the file. What am I looking for?
You are looking for lines around the time that you tried to connect, with some mention of the network.

You could try

Code: Select all

# journalctl -f
That will show you live output and you can post what appears after you try to connect. About 50 lines for disconnect/connect for me, so should be OK.

WanderingOak
Posts: 22
Joined: 2012-01-06 22:55
Has thanked: 1 time

Re: RTL8821CE driver

#9 Post by WanderingOak »

I wasn't able to find any mention of my wireless network. I will attach a .gz file,
Attachments
joirnalctl.txt.gz
(7.17 KiB) Downloaded 63 times
Bookworm HP 17

User avatar
FreewheelinFrank
Global Moderator
Global Moderator
Posts: 2257
Joined: 2010-06-07 16:59
Has thanked: 43 times
Been thanked: 238 times

Re: RTL8821CE driver

#10 Post by FreewheelinFrank »

Repeated instances of these messages:

Code: Select all

Feb 22 15:04:13 debian /usr/libexec/gdm-x-session[1439]: plasma-nm: Unhandled active connection state change:  1
Feb 22 15:04:13 debian /usr/libexec/gdm-x-session[1439]: plasma-nm: virtual NMVariantMapMap SecretAgent::GetSecrets(const NMVariantMapMap&, const QDBusObjectPath&, const QString&, const QStringList&, uint)
Feb 22 15:04:13 debian /usr/libexec/gdm-x-session[1439]: plasma-nm: Path: "/org/freedesktop/NetworkManager/Settings/2"
Feb 22 15:04:13 debian /usr/libexec/gdm-x-session[1439]: plasma-nm: Setting name: "802-11-wireless-security"
Feb 22 15:04:13 debian /usr/libexec/gdm-x-session[1439]: plasma-nm: Hints: ()
Feb 22 15:04:13 debian /usr/libexec/gdm-x-session[1439]: plasma-nm: Flags: 9
Feb 22 15:04:19 debian /usr/libexec/gdm-x-session[1453]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 1708, resource id: 56671239, major code: 15 (QueryTree), minor code: 0
Feb 22 15:04:19 debian /usr/libexec/gdm-x-session[1453]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 1733, resource id: 56671241, major code: 20 (GetProperty), minor code: 0
Feb 22 15:04:19 debian /usr/libexec/gdm-x-session[1453]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 1734, resource id: 56671241, major code: 15 (QueryTree), minor code: 0
Feb 22 15:04:39 debian /usr/libexec/gdm-x-session[1761]: "No such interface “org.freedesktop.DBus.Properties” on object at path /org/freedesktop/NetworkManager/ActiveConnection/1596"
Feb 22 15:04:39 debian /usr/libexec/gdm-x-session[1763]: "No such interface “org.freedesktop.DBus.Properties” on object at path /org/freedesktop/NetworkManager/ActiveConnection/1596"
Feb 22 15:04:39 debian /usr/libexec/gdm-x-session[1746]: "No such interface “org.freedesktop.DBus.Properties” on object at path /org/freedesktop/NetworkManager/ActiveConnection/1596"
Feb 22 15:04:39 debian /usr/libexec/gdm-x-session[1439]: "No such interface “org.freedesktop.DBus.Properties” on object at path /org/freedesktop/NetworkManager/ActiveConnection/1596"
Feb 22 15:04:39 debian /usr/libexec/gdm-x-session[1757]: "No such interface “org.freedesktop.DBus.Properties” on object at path /org/freedesktop/NetworkManager/ActiveConnection/1596"
Feb 22 15:04:39 debian /usr/libexec/gdm-x-session[1528]: "No such interface “org.freedesktop.DBus.Properties” on object at path /org/freedesktop/NetworkManager/ActiveConnection/1596"
Feb 22 15:04:39 debian /usr/libexec/gdm-x-session[1534]: "No such interface “org.freedesktop.DBus.Properties” on object at path /org/freedesktop/NetworkManager/ActiveConnection/1596"
Feb 22 15:04:50 debian /usr/libexec/gdm-x-session[1453]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 2905, resource id: 56671269, major code: 15 (QueryTree), minor code: 0
Feb 22 15:04:50 debian /usr/libexec/gdm-x-session[1453]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 2930, resource id: 56671271, major code: 20 (GetProperty), minor code: 0
Feb 22 15:04:50 debian /usr/libexec/gdm-x-session[1453]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 2931, resource id: 56671271, major code: 15 (QueryTree), minor code: 0
"GetSecrets" and "wireless security" suggest a problem with the wifi password. Check if KDE wallet is working:

viewtopic.php?p=734066#p734066

It might be an idea to see if wifi driver is loading correctly. What is the output of

Code: Select all

$ lspci | grep -i wireless
Substitute Device ID in following command for more information:

Code: Select all

$ lspci -vv -s 0x:00.0
and

Code: Select all

# dmesg | grep wifi
?

WanderingOak
Posts: 22
Joined: 2012-01-06 22:55
Has thanked: 1 time

Re: RTL8821CE driver

#11 Post by WanderingOak »

journalctl -f resulted in the following:
Feb 24 14:39:28 debian /usr/libexec/gdm-x-session[1439]: "No such interface “org.freedesktop.DBus.Properties” on object at path /org/freedesktop/NetworkManager/ActiveConnection/4870"
Feb 24 14:39:28 debian /usr/libexec/gdm-x-session[1746]: "No such interface “org.freedesktop.DBus.Properties” on object at path /org/freedesktop/NetworkManager/ActiveConnection/4870"
Feb 24 14:39:28 debian /usr/libexec/gdm-x-session[1534]: "No such interface “org.freedesktop.DBus.Properties” on object at path /org/freedesktop/NetworkManager/ActiveConnection/4870"
Feb 24 14:39:28 debian /usr/libexec/gdm-x-session[1757]: "No such interface “org.freedesktop.DBus.Properties” on object at path /org/freedesktop/NetworkManager/ActiveConnection/4870"
Feb 24 14:39:28 debian /usr/libexec/gdm-x-session[1763]: "No such interface “org.freedesktop.DBus.Properties” on object at path /org/freedesktop/NetworkManager/ActiveConnection/4870"
Feb 24 14:39:28 debian /usr/libexec/gdm-x-session[1528]: "No such interface “org.freedesktop.DBus.Properties” on object at path /org/freedesktop/NetworkManager/ActiveConnection/4870"
Feb 24 14:39:28 debian /usr/libexec/gdm-x-session[1761]: "No such interface “org.freedesktop.DBus.Properties” on object at path /org/freedesktop/NetworkManager/ActiveConnection/4870"
Feb 24 14:39:28 debian /usr/libexec/gdm-x-session[1519]: file:///usr/lib/x86_64-linux-gnu/qt5/qml/org/kde/plasma/extras/ExpandableListItem.qml:314: TypeError: Cannot read property 'width' of null
Feb 24 14:39:32 debian /usr/libexec/gdm-x-session[1519]: file:///usr/lib/x86_64-linux-gnu/qt5/qml/org/kde/plasma/extras/ExpandableListItem.qml:314: TypeError: Cannot read property 'width' of null
Feb 24 14:39:33 debian /usr/libexec/gdm-x-session[1439]: plasma-nm: Unhandled active connection state change: 1
Feb 24 14:39:33 debian /usr/libexec/gdm-x-session[1439]: plasma-nm: virtual NMVariantMapMap SecretAgent::GetSecrets(const NMVariantMapMap&, const QDBusObjectPath&, const QString&, const QStringList&, uint)
Feb 24 14:39:33 debian /usr/libexec/gdm-x-session[1439]: plasma-nm: Path: "/org/freedesktop/NetworkManager/Settings/1"
Feb 24 14:39:33 debian /usr/libexec/gdm-x-session[1439]: plasma-nm: Setting name: "802-11-wireless-security"
Feb 24 14:39:33 debian /usr/libexec/gdm-x-session[1439]: plasma-nm: Hints: ()
Feb 24 14:39:33 debian /usr/libexec/gdm-x-session[1439]: plasma-nm: Flags: 9
Bookworm HP 17

WanderingOak
Posts: 22
Joined: 2012-01-06 22:55
Has thanked: 1 time

Re: RTL8821CE driver

#12 Post by WanderingOak »

lspci | grep -i wireless :
03:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8821CE 802.11ac PCIe Wireless Network Adapter
Bookworm HP 17

WanderingOak
Posts: 22
Joined: 2012-01-06 22:55
Has thanked: 1 time

Re: RTL8821CE driver

#13 Post by WanderingOak »

I tried to post the results of lspci -vv -s 03:00.0 , only to have the forum respond with the error message: You may only use fonts up to size 200.
Last edited by WanderingOak on 2023-02-24 20:09, edited 1 time in total.
Bookworm HP 17

WanderingOak
Posts: 22
Joined: 2012-01-06 22:55
Has thanked: 1 time

Re: RTL8821CE driver

#14 Post by WanderingOak »

d msg | grep wifi did not return any results.
Bookworm HP 17

User avatar
FreewheelinFrank
Global Moderator
Global Moderator
Posts: 2257
Joined: 2010-06-07 16:59
Has thanked: 43 times
Been thanked: 238 times

Re: RTL8821CE driver

#15 Post by FreewheelinFrank »

WanderingOak wrote: 2023-02-24 20:04 I tried to post the results of lspci -vv -s 03:00.0 , only to have the forum respond with the error message: You may only use fonts up to size 200.
Just the kernel driver/modules will do.

User avatar
FreewheelinFrank
Global Moderator
Global Moderator
Posts: 2257
Joined: 2010-06-07 16:59
Has thanked: 43 times
Been thanked: 238 times

Re: RTL8821CE driver

#16 Post by FreewheelinFrank »

Do you have package firmware-realtek installed? You might need that.

WanderingOak
Posts: 22
Joined: 2012-01-06 22:55
Has thanked: 1 time

Re: RTL8821CE driver

#17 Post by WanderingOak »

Kernel driver in use: rtw_8821ce
Kernel modules: rtw88_8821ce
Bookworm HP 17

WanderingOak
Posts: 22
Joined: 2012-01-06 22:55
Has thanked: 1 time

Re: RTL8821CE driver

#18 Post by WanderingOak »

firmware-realtek is installed
Bookworm HP 17

User avatar
FreewheelinFrank
Global Moderator
Global Moderator
Posts: 2257
Joined: 2010-06-07 16:59
Has thanked: 43 times
Been thanked: 238 times

Re: RTL8821CE driver

#19 Post by FreewheelinFrank »

I would check KDE Wallet as per link in post #10 then. It may not be providing the password correctly.

WanderingOak
Posts: 22
Joined: 2012-01-06 22:55
Has thanked: 1 time

Re: RTL8821CE driver

#20 Post by WanderingOak »

I was able to fix it by removing the configuration files of kwallet: ~./config/kwallettrc and the map ~./local/share/kwalletd, and rebooting.
Bookworm HP 17

Post Reply