[Solved] Realtek [10ec:c852] wireless network card not recognized with kernel 6.1

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
JuanchoNuts
Posts: 3
Joined: 2023-09-06 22:16
Has thanked: 1 time

[Solved] Realtek [10ec:c852] wireless network card not recognized with kernel 6.1

#1 Post by JuanchoNuts »

Hi. This is my hardware:

Brand: Hewlett Packard x360 Envy Laptop (Alder Lake Architecture)
CPU: 13th Gen Intel(R) Core(TM) i7-1355U
Mem: 15GiB

A little background: Everything was working fine before I performed a regular update (apt update, apt upgrade).
Then, in my efforts to fix the issue, I updated from Buster to Bookworm and did a kernel update as well.

Now I have a dilema:

When I boot with kernel 6.1 my WiFi card is not recognized:

Output of: lspci -nnv

Code: Select all

03:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. Device [10ec:c852] (rev 01)
	DeviceName: WLAN
	Subsystem: Hewlett-Packard Company Device [103c:88e5]
	Flags: fast devsel, IRQ 255, IOMMU group 17
	I/O ports at 3000 [disabled] [size=256]
Output of: inxi -Fxz

Code: Select all

Network:
  Device-1: Realtek vendor: Hewlett-Packard driver: N/A port: 3000
    bus-ID: 03:00.0
  Device-2: Realtek RTL8153 Gigabit Ethernet Adapter type: USB driver: r8152
    bus-ID: 3-1.1:4
  IF: enx00e04c680819 state: up speed: 1000 Mbps duplex: full mac: <filter>

If I boot with kernel 6.4 the WiFi issue is gone, BUT the system hangs eventually. I must reboot, nothing else works.

Output, while booting with Kernel 6.4, of
inxi -Fxz

Code: Select all

Network:
  Device-1: Realtek vendor: Hewlett-Packard driver: rtw89_8852ce v: kernel
    port: 3000 bus-ID: 03:00.0
  IF: wlo1 state: up mac: <filter>
  Device-2: Realtek RTL8153 Gigabit Ethernet Adapter type: USB driver: r8152
    bus-ID: 3-1.1:4
  IF: enx00e04c680819 state: up speed: 1000 Mbps duplex: full mac: <filter>
I guess I can fix the WiFi issue and use Kernel 6.1 or fix the Hanging issue and use Kernel 6.4.
More than anything I want to contribute with the detection of issues regarding Debian, which I love.
Thanks.
Last edited by JuanchoNuts on 2023-09-08 15:44, edited 1 time in total.

Aki
Global Moderator
Global Moderator
Posts: 3199
Joined: 2014-07-20 18:12
Location: Europe
Has thanked: 88 times
Been thanked: 426 times

Re: [Hardware] Kernel 6.4 freezes my HP Envy 13th Gen Laptop

#2 Post by Aki »

Hello,

Welcome to the forum. :-)

Your logs from previous message show that your Realtek Semiconductor Co., Ltd. Device [10ec:c852] wireless network card:
  • with kernel 6.1: is not driven by a kernel module (driver)
  • with kernel 6.4: is is driven by the rtw89_8852ce kernel module
For kernel 6.1, you may search for source code of the kernel module and compile it and "out of the tree module".

For the system hang with kernel 6.4, you may acquire system logs after the system is hung to determine what is the involved operating system component. You may install ssh on your computer and try to access it remotely from another computer when it hangs. If it is not accessible during the hang, you can use the so called "REISUB" sequence to force flushing disk buffers, file system umounting and reboot.

It could be useful to acquire the full output of the inxi command, for example:

Code: Select all

inxi -Fxxxz
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀

JuanchoNuts
Posts: 3
Joined: 2023-09-06 22:16
Has thanked: 1 time

Re: [Hardware] Kernel 6.4 freezes my HP Envy 13th Gen Laptop

#3 Post by JuanchoNuts »

Thanks for the welcoming! Appreciate it very much.

I am currently looking for the driver, as suggested.

Found the GitHub repo for this driver and it compiled like a charm. WiFi is working now! Thanks!!!

Repo: https://github.com/lwfinger/rtw89/tree/main


I'm not sure if I should start a new thread in regards to the hanging issue (@kernel 6,4).
For curiosity's sake I wouldn't mind digging a bit. Although I understand that's not entirely up to me.

In any case, below the requested output:

Code: Select all

jack@jacksHP:~$ inxi -Fxxxz
System:
  Kernel: 6.1.0-11-amd64 arch: x86_64 bits: 64 compiler: gcc v: 12.2.0
    Desktop: KDE Plasma v: 5.27.5 tk: Qt v: 5.15.8 wm: kwin_x11 vt: 7 dm: SDDM
    Distro: Debian GNU/Linux 12 (bookworm)
Machine:
  Type: Convertible System: HP product: HP Envy x360 2-in-1 Laptop 14-es0xxx
    v: Type1ProductConfigId serial: <superuser required> Chassis: type: 31
    serial: <superuser required>
  Mobo: HP model: 8BF7 v: 82.18 serial: <superuser required> UEFI: Insyde
    v: F.04 date: 03/09/2023
Battery:
  ID-1: BAT0 charge: 44.7 Wh (100.0%) condition: 44.7/43.5 Wh (102.7%)
    volts: 13.0 min: 11.6 model: 313-CD-3C-A PC03043XL type: Li-poly
    serial: <filter> status: full cycles: 11
  Device-1: hid-0018:04F3:41BF.0001-battery model: ELAN2514:00 04F3:41BF
    serial: N/A charge: N/A status: N/A
CPU:
  Info: 10-core (2-mt/8-st) model: 13th Gen Intel Core i7-1355U bits: 64
    type: MST AMCP smt: enabled arch: Raptor Lake rev: 3 cache: L1: 928 KiB
    L2: 6.5 MiB L3: 12 MiB
  Speed (MHz): avg: 1802 high: 2600 min/max: 400/5000:3700 cores: 1: 2600
    2: 703 3: 1003 4: 2600 5: 838 6: 466 7: 2600 8: 2600 9: 2600 10: 2600
    11: 421 12: 2600 bogomips: 62668
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
  Device-1: Intel Raptor Lake-P [Iris Xe Graphics] vendor: Hewlett-Packard
    driver: i915 v: kernel arch: Gen-13 ports: active: HDMI-A-1,eDP-1
    empty: DP-1 bus-ID: 00:02.0 chip-ID: 8086:a7a1 class-ID: 0300
  Device-2: Luxvisions Innotech HP True Vision 5MP Camera type: USB
    driver: uvcvideo bus-ID: 3-9:5 chip-ID: 30c9:006a class-ID: fe01
    serial: <filter>
  Display: x11 server: X.Org v: 1.21.1.7 with: Xwayland v: 22.1.9
    compositor: kwin_x11 driver: X: loaded: modesetting unloaded: fbdev,vesa
    dri: iris gpu: i915 display-ID: :0 screens: 1
  Screen-1: 0 s-res: 3286x1080 s-dpi: 96 s-size: 869x285mm (34.21x11.22")
    s-diag: 915mm (36.01")
  Monitor-1: HDMI-A-1 mapped: HDMI-1 pos: primary,right
    model: LG (GoldStar) HD res: 1366x768 hz: 60 dpi: 85
    size: 410x230mm (16.14x9.06") diag: 470mm (18.5") modes: max: 1366x768
    min: 720x400
  Monitor-2: eDP-1 pos: left model: ChiMei InnoLux 0x1454 res: 1920x1080
    hz: 60 dpi: 158 size: 309x173mm (12.17x6.81") diag: 354mm (13.9")
    modes: 1920x1080
  API: OpenGL v: 4.6 Mesa 22.3.6 renderer: Mesa Intel Graphics (RPL-P)
    direct-render: Yes
Audio:
  Device-1: Intel vendor: Hewlett-Packard driver: sof-audio-pci-intel-tgl
    bus-ID: 00:1f.3 chip-ID: 8086:51ca class-ID: 0401
  API: ALSA v: k6.1.0-11-amd64 status: kernel-api
  Server-1: PipeWire v: 0.3.65 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active
  Server-2: PulseAudio v: 16.1 status: off (using pipewire-pulse)
Network:
  Device-1: Realtek vendor: Hewlett-Packard driver: rtw89_8852ce v: N/A pcie:
    speed: 5 GT/s lanes: 1 port: 3000 bus-ID: 03:00.0 chip-ID: 10ec:c852
    class-ID: 0280
  IF: wlo1 state: up mac: <filter>
  Device-2: Realtek RTL8153 Gigabit Ethernet Adapter type: USB driver: r8152
    bus-ID: 3-1.1:4 chip-ID: 0bda:8153 class-ID: 0000 serial: <filter>
  IF: enx00e04c680819 state: up speed: 1000 Mbps duplex: full mac: <filter>
Bluetooth:
  Device-1: Realtek Bluetooth Radio type: USB driver: btusb v: 0.8
    bus-ID: 3-10:7 chip-ID: 0bda:c85c class-ID: e001 serial: <filter>
  Report: hciconfig ID: hci0 rfk-id: 0 state: down
    bt-service: enabled,running rfk-block: hardware: no software: yes
    address: <filter>
Drives:
  Local Storage: total: 953.87 GiB used: 30.81 GiB (3.2%)
  ID-1: /dev/nvme0n1 vendor: Samsung model: MZVL41T0HBLB-00BH1
    size: 953.87 GiB speed: 63.2 Gb/s lanes: 4 type: SSD serial: <filter>
    rev: HPS3NHAV temp: 30.9 C scheme: GPT
Partition:
  ID-1: / size: 22.75 GiB used: 8.32 GiB (36.6%) fs: ext4 dev: /dev/nvme0n1p5
  ID-2: /boot/efi size: 256 MiB used: 76.9 MiB (30.0%) fs: vfat
    dev: /dev/nvme0n1p1
  ID-3: /home size: 702.3 GiB used: 20.65 GiB (2.9%) fs: ext4
    dev: /dev/nvme0n1p9
  ID-4: /tmp size: 1.8 GiB used: 7.6 MiB (0.4%) fs: ext4 dev: /dev/nvme0n1p8
  ID-5: /var size: 9.07 GiB used: 1.75 GiB (19.3%) fs: ext4
    dev: /dev/nvme0n1p6
Swap:
  ID-1: swap-1 type: partition size: 977 MiB used: 0 KiB (0.0%) priority: -2
    dev: /dev/nvme0n1p7
Sensors:
  System Temperatures: cpu: 42.0 C mobo: N/A
  Fan Speeds (RPM): N/A
Info:
  Processes: 259 Uptime: 38m wakeups: 3 Memory: 15.34 GiB
  used: 4.26 GiB (27.7%) Init: systemd v: 252 target: graphical (5)
  default: graphical Compilers: gcc: 12.2.0 alt: 10/12 Packages: pm: dpkg
  pkgs: 1857 Shell: Bash v: 5.2.15 running-in: terminator inxi: 3.3.26

Last edited by JuanchoNuts on 2023-09-08 01:37, edited 1 time in total.

Aki
Global Moderator
Global Moderator
Posts: 3199
Joined: 2014-07-20 18:12
Location: Europe
Has thanked: 88 times
Been thanked: 426 times

Re: [Hardware] Kernel 6.4 freezes my HP Envy 13th Gen Laptop

#4 Post by Aki »

Hello,
JuanchoNuts wrote: 2023-09-08 00:38 Found the GitHub repo for this driver and it compiled like a charm. WiFi is working now! Thanks!!!
Repo: https://github.com/lwfinger/rtw89/tree/main
I'm happy you sorted it out :-)
JuanchoNuts wrote: 2023-09-08 00:38 I'm not sure if I should start a new thread in regards to the hanging issue (@kernel 6,4).
it might be better. You can update the subject of the current thread from:
  • "Kernel 6.4 freezes my HP Envy 13th Gen Laptop"
to:
  • "[Solved] Realtek [10ec:c852] wireless network card not recognized with kernel 6.1"
then, open a new thread for the kernel 6.4 issue.
JuanchoNuts wrote: 2023-09-08 00:38 For curiosity's sake I wouldn't mind digging a bit. Although I understand that's not entirely up to me.
Yes, of course. You can also practice with Debian Stable (kernel 6.1) and then try debugging the 6.4 issue.

Happy Debian !
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀

User avatar
stevepusser
Posts: 12932
Joined: 2009-10-06 05:53
Has thanked: 41 times
Been thanked: 72 times

Re: [Hardware] Kernel 6.4 freezes my HP Envy 13th Gen Laptop

#5 Post by stevepusser »

Perhaps you could see if you also get the same hanging issue with a Bookworm version of the Liquorix 6.4 kernel:

https://liquorix.net/
MX Linux packager and developer

JuanchoNuts
Posts: 3
Joined: 2023-09-06 22:16
Has thanked: 1 time

Re: [Hardware] Kernel 6.4 freezes my HP Envy 13th Gen Laptop

#6 Post by JuanchoNuts »

stevepusser wrote: 2023-09-08 04:48 Perhaps you could see if you also get the same hanging issue with a Bookworm version of the Liquorix 6.4 kernel:

https://liquorix.net/
I'll definitely give it a try!

Post Reply