Black Screen with a Cursor After Waking up

After waking up from sleep, I just see a black screen with a cursor.
Cursor is not moving or I cannot use the keyboard at all.
All I can do is restarting the pc.

I use manjaro with kde plasma.
It started after the 5.15.xx kernel updates.
I currently run 5.15.55-1 kernel.

My system info:

Operating System: Manjaro Linux
KDE Plasma Version: 5.24.6
KDE Frameworks Version: 5.96.0
Qt Version: 5.15.5
Kernel Version: 5.15.55-1-MANJARO (64-bit)
Graphics Platform: X11
Processors: 12 × AMD Ryzen 5 PRO 5650U with Radeon Graphics
Memory: 14.5 GiB of RAM
Graphics Processor: AMD RENOIR

The output of journalctl -S "2022-07-20 09:00:00" -p4

Jul 20 09:49:17  kernel:   #2  #3  #4  #5  #6  #7  #8  #9 #10 #11
Jul 20 09:49:17  kernel: pci 0000:00:00.2: can't derive routing for PCI INT A
Jul 20 09:49:17  kernel: pci 0000:00:00.2: PCI INT A: not connected
Jul 20 09:49:17  kernel: nvme nvme0: missing or invalid SUBNQN field.
Jul 20 09:49:17  kernel: amdgpu 0000:05:00.0: amdgpu: PSP runtime database doesn't exist
Jul 20 09:49:17  kernel: amdgpu: SRAT table not found
Jul 20 09:49:17  kernel: clocksource: timekeeping watchdog on CPU4: Marking clocksource 'tsc' as unstable because the skew is too large:
Jul 20 09:49:17  kernel: clocksource:                       'hpet' wd_nsec: 507339270 wd_now: 229fc80 wd_last: 1bb24d1 mask: ffffffff
Jul 20 09:49:17  kernel: clocksource:                       'tsc' cs_nsec: 506477174 cs_now: bbcd4228e cs_last: b776856b0 mask: ffffffffffffffff
Jul 20 09:49:17  kernel: clocksource:                       'tsc' is current clocksource.
Jul 20 09:49:17  kernel: TSC found unstable after boot, most likely due to broken BIOS. Use 'tsc=unstable'.
Jul 20 09:49:17  kernel: clocksource: Checking clocksource tsc synchronization from CPU 10 to CPUs 0,2-3,8,11.
Jul 20 09:49:17  kernel: acpi_call: loading out-of-tree module taints kernel.
Jul 20 09:49:17  systemd-journald[357]: File /var/log/journal/d05673afb70840fd90ddf44122e56304/system.journal corrupted or uncleanly shut down, renaming >
Jul 20 09:49:17  kernel: acpi PNP0C14:01: duplicate WMI GUID 05901221-D566-11D1-B2F0-00A0C9062910 (first instance was on PNP0C14:00)
Jul 20 09:49:17  kernel: acpi PNP0C14:02: duplicate WMI GUID 05901221-D566-11D1-B2F0-00A0C9062910 (first instance was on PNP0C14:00)
Jul 20 09:49:17  kernel: acpi PNP0C14:03: duplicate WMI GUID 05901221-D566-11D1-B2F0-00A0C9062910 (first instance was on PNP0C14:00)
Jul 20 09:49:17  kernel: acpi PNP0C14:04: duplicate WMI GUID 05901221-D566-11D1-B2F0-00A0C9062910 (first instance was on PNP0C14:00)
Jul 20 09:49:17  kernel: acpi PNP0C14:05: duplicate WMI GUID 05901221-D566-11D1-B2F0-00A0C9062910 (first instance was on PNP0C14:00)
Jul 20 09:49:17  kernel: acpi PNP0C14:06: duplicate WMI GUID 05901221-D566-11D1-B2F0-00A0C9062910 (first instance was on PNP0C14:00)
Jul 20 09:49:17  kernel: acpi PNP0C14:07: duplicate WMI GUID 05901221-D566-11D1-B2F0-00A0C9062910 (first instance was on PNP0C14:00)
Jul 20 09:49:17  kernel: r8169 0000:02:00.0: can't disable ASPM; OS doesn't have ASPM control
Jul 20 09:49:18  kernel: mt7921e 0000:03:00.0: can't disable ASPM; OS doesn't have ASPM control
Jul 20 09:49:18  systemd[1]: nordvpnd.socket: TCP_NODELAY failed: Operation not supported
Jul 20 09:49:20  kernel: kauditd_printk_skb: 42 callbacks suppressed
Jul 20 09:49:20  systemd[1041]: xdg-user-dirs-update.service: Failed with result 'exit-code'.
Jul 20 09:49:20  systemd[1041]: Failed to start Update XDG user dir configuration.
Jul 20 09:49:20  sddm-greeter[1050]: QFont::fromString: Invalid description '(empty)'
Jul 20 09:49:20  sddm-greeter[1050]: QObject: Cannot create children for a parent that is in a different thread.
                                               (Parent is QGuiApplication(0x7ffee2d45fc0), parent's thread is QThread(0x55f71b56a660), current thread is QThread(0x>
Jul 20 09:49:20  sddm-greeter[1050]: QObject: Cannot create children for a parent that is in a different thread.
                                               (Parent is QGuiApplication(0x7ffee2d45fc0), parent's thread is QThread(0x55f71b56a660), current thread is QThread(0x>
Jul 20 09:49:20  sddm-greeter[1050]: QObject: Cannot create children for a parent that is in a different thread.
                                               (Parent is QGuiApplication(0x7ffee2d45fc0), parent's thread is QThread(0x55f71b56a660), current thread is QThread(0x>
Jul 20 09:49:20  sddm-greeter[1050]: QObject::installEventFilter(): Cannot filter events for objects in a different thread.
Jul 20 09:49:21  upowerd[1086]: energy_full (56.910000) is greater than energy_full_design (54.740000)
Jul 20 09:49:21  sddm-greeter[1050]: file:///usr/share/sddm/themes/breath/components/VirtualKeyboard.qml:11:1: Type InputPanel unavailable
Jul 20 09:49:21  sddm-greeter[1050]: qrc:/QtQuick/VirtualKeyboard/content/InputPanel.qml:127:5: Type Keyboard unavailable
Jul 20 09:49:21  sddm-greeter[1050]: qrc:/QtQuick/VirtualKeyboard/content/components/Keyboard.qml:38:1: module "QtQuick.VirtualKeyboard.Plugins" is not i>
Jul 20 09:49:21  sddm-greeter[1050]: file:///usr/share/sddm/themes/breath/Main.qml:465:13: Unable to assign [undefined] to QUrl
Jul 20 09:49:21  sddm-greeter[1050]: QDBusConnection: name 'org.freedesktop.UDisks2' had owner '' but we thought it was ':1.22'
Jul 20 09:49:21  sddm-greeter[1050]: file:///usr/share/sddm/themes/breath/Main.qml:465:13: Unable to assign [undefined] to QUrl
Jul 20 09:49:21  sddm-greeter[1050]: file:///usr/share/sddm/themes/breath/Main.qml:465:13: Unable to assign [undefined] to QUrl
Jul 20 09:49:21  sddm-greeter[1050]: file:///usr/share/sddm/themes/breath/Main.qml:465:13: Unable to assign [undefined] to QUrl
Jul 20 09:49:21  sddm-greeter[1050]: file:///usr/share/sddm/themes/breath/Main.qml:465:13: Unable to assign [undefined] to QUrl
Jul 20 09:49:21  sddm-greeter[1050]: file:///usr/share/sddm/themes/breath/Main.qml:465:13: Unable to assign [undefined] to QUrl
Jul 20 09:49:21  sddm-greeter[1050]: file:///usr/share/sddm/themes/breath/Main.qml:465:13: Unable to assign [undefined] to QUrl
Jul 20 09:49:24  kernel: Bluetooth: hci0: urb 00000000685bb6b9 submission failed (108)
Jul 20 09:49:24  kernel: Bluetooth: hci0: Failed to send wmt func ctrl (-108)
Jul 20 09:49:27  kernel: kauditd_printk_skb: 11 callbacks suppressed
Jul 20 09:49:28  systemd-xdg-autostart-generator[1182]: /home/xxx/.config/autostart/variety.desktop:11: Unknown key name 'Actions' in section 'Desktop >
Jul 20 09:49:28  systemd-journald[357]: File /var/log/journal/d05673afb70840fd90ddf44122e56304/user-1000.journal corrupted or uncleanly shut down, renami>
Jul 20 09:49:28  ksplashqml[1202]: file:///usr/share/plasma/look-and-feel/org.manjaro.breath-dark.desktop/contents/splash/Splash.qml:49: ReferenceError: >
Jul 20 09:49:28  ksplashqml[1202]: file:///usr/share/plasma/look-and-feel/org.manjaro.breath-dark.desktop/contents/splash/Splash.qml:82:29: Unable to ass>
Jul 20 09:49:29  systemd-xdg-autostart-generator[1232]: /home/xxx/.config/autostart/variety.desktop:11: Unknown key name 'Actions' in section 'Desktop >
Jul 20 09:49:29  klauncher[1239]: Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
Jul 20 09:49:29  kcminit_startup[1243]: QDBusConnection: error: could not send signal to service "" path "//home/xxx/.kde4/share/config/kdeglobals" int>
Jul 20 09:49:30  kwin_x11[1254]: Warning: Setting a new default format with a different version or profile after the global shared context is created may>
Jul 20 09:49:30  kwin_x11[1254]: kwin_xkbcommon: XKB: inet:323:58: unrecognized keysym "XF86EmojiPicker"
Jul 20 09:49:30  kwin_x11[1254]: kwin_xkbcommon: XKB: inet:324:58: unrecognized keysym "XF86Dictate"
Jul 20 09:49:30  kded5[1251]: org.kde.libkbolt: Failed to connect to Bolt manager DBus interface:
Jul 20 09:49:30  ksmserver[1313]: Qt: Session management error: networkIdsList argument is NULL
Jul 20 09:49:30  kded5[1251]: QDBusConnection: name 'org.kde.kglobalaccel' had owner '' but we thought it was ':1.11'
Jul 20 09:49:30  plasma_session[1233]: kf.service.services: The desktop file "/home/xxx/.config/autostart/variety.desktop" references the action "Next">
Jul 20 09:49:30  plasma_session[1233]: kf.service.services: The desktop file "/home/xxx/.config/autostart/variety.desktop" references the action "Previ>
Jul 20 09:49:30  plasma_session[1233]: kf.service.services: The desktop file "/home/xxx/.config/autostart/variety.desktop" references the action "Pause>
Jul 20 09:49:30  plasma_session[1233]: kf.service.services: The desktop file "/home/xxx/.config/autostart/variety.desktop" references the action "Histo>
Jul 20 09:49:30  plasma_session[1233]: kf.service.services: The desktop file "/home/xxx/.config/autostart/variety.desktop" references the action "Prefe>
Jul 20 09:49:30  kwin_x11[1254]: kwin_core: XCB error: 10 (BadAccess), sequence: 833, resource id: 1708, major code: 142 (Composite), minor code: 2 (Redi>
Jul 20 09:49:30  kded5[1251]: kscreen.kded: PowerDevil SuspendSession action not available!
Jul 20 09:49:31  pulseaudio[1349]: stat('/etc/pulse/default.pa.d'): No such file or directory
Jul 20 09:49:31  org_kde_powerdevil[1328]: org.kde.powerdevil: Handle button events action could not check for screen configuration
Jul 20 09:49:31  gnome-keyring-daemon[1596]: discover_other_daemon: 1
Jul 20 09:49:31  plasmashell[1323]: qml: PlasmaExtras.ScrollArea is deprecated. Use PlasmaComponents3.ScrollView instead.
Jul 20 09:49:31  plasmashell[1323]: qt.gui.icc: fromIccProfile: failed minimal tag size sanity
Jul 20 09:49:31  kwin_x11[1254]: kwin_core: XCB error: 152 (BadDamage), sequence: 1519, resource id: 20971564, major code: 143 (DAMAGE), minor code: 3 (S>
Jul 20 09:49:31  kwin_x11[1254]: kwin_core: XCB error: 152 (BadDamage), sequence: 1527, resource id: 20971564, major code: 143 (DAMAGE), minor code: 2 (D>
Jul 20 09:49:31  kwin_x11[1254]: kwin_core: XCB error: 3 (BadWindow), sequence: 1528, resource id: 4194337, major code: 129 (SHAPE), minor code: 6 (Input)
Jul 20 09:49:31  kwin_x11[1254]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 1529, resource id: 4194337, major code: 2 (ChangeWindowA>
Jul 20 09:49:31  kwin_x11[1254]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 1534, resource id: 4194357, major code: 18 (ChangeProper>
Jul 20 09:49:31  plasmashell[1323]: file:///usr/share/plasma/plasmoids/org.kde.plasma.digitalclock/contents/ui/DigitalClock.qml:530:9: QML Label: Binding>
Jul 20 09:49:31  plasmashell[1323]: file:///usr/share/plasma/plasmoids/org.kde.plasma.digitalclock/contents/ui/DigitalClock.qml:495:13: QML Label: Bindin>
Jul 20 09:49:31  plasmashell[1323]: qml: PlasmaExtras.ScrollArea is deprecated. Use PlasmaComponents3.ScrollView instead.
Jul 20 09:49:31  plasmashell[1323]: file:///usr/share/plasma/plasmoids/org.kde.plasma.panelspacer/contents/ui/main.qml:39:5: Unable to assign [undefined]>
Jul 20 09:49:31  plasmashell[1323]: file:///usr/share/plasma/plasmoids/org.kde.plasma.systemmonitor/contents/ui/main.qml:43:5: QML MouseArea: Cannot anch>
Jul 20 09:49:31  plasmashell[1323]: file:///usr/share/plasma/plasmoids/org.kde.plasma.systemmonitor/contents/ui/main.qml:43:5: QML MouseArea: Cannot anch>
Jul 20 09:49:31  plasmashell[1323]: file:///usr/share/ksysguard/sensorfaces/org.kde.ksysguard.piechart/contents/ui/CompactRepresentation.qml:22:1: QML Co>
Jul 20 09:49:31  plasmashell[1323]: file:///usr/share/ksysguard/sensorfaces/org.kde.ksysguard.piechart/contents/ui/CompactRepresentation.qml:22:1: QML Co>
Jul 20 09:49:31  plasmashell[1323]: qml: PlasmaExtras.ScrollArea is deprecated. Use PlasmaComponents3.ScrollView instead.
Jul 20 09:49:31  plasmashell[1323]: qml: PlasmaExtras.ScrollArea is deprecated. Use PlasmaComponents3.ScrollView instead.
Jul 20 09:49:31  plasmashell[1323]: qml: PlasmaExtras.ScrollArea is deprecated. Use PlasmaComponents3.ScrollView instead.
Jul 20 09:49:31  plasmashell[1323]: qml: PlasmaExtras.ScrollArea is deprecated. Use PlasmaComponents3.ScrollView instead.
Jul 20 09:49:31  plasmashell[1323]: qml: PlasmaExtras.ScrollArea is deprecated. Use PlasmaComponents3.ScrollView instead.
Jul 20 09:49:31  plasmashell[1323]: file:///usr/share/plasma/plasmoids/org.kde.panel/contents/ui/main.qml:18:1: QML DropArea (parent or ancestor of QQuic>
Jul 20 09:49:32  plasmashell[1323]: Cyclic dependency detected between "file:///usr/share/plasma/plasmoids/org.kde.plasma.notifications/contents/ui/globa>
Jul 20 09:49:32  plasmashell[1323]: file:///usr/share/plasma/plasmoids/org.kde.plasma.private.systemtray/contents/ui/ExpandedRepresentation.qml:165:9: QM>
Jul 20 09:49:32  plasmashell[1323]: file:///usr/share/ksysguard/sensorfaces/org.kde.ksysguard.piechart/contents/ui/FullRepresentation.qml:21:1: QML FullR>
Jul 20 09:49:32  plasmashell[1323]: QFont::setPointSizeF: Point size <= 0 (0.000000), must be greater than 0
Jul 20 09:49:33  plasmashell[1323]: Qt Quick Layouts: Detected recursive rearrange. Aborting after two iterations.
Jul 20 09:49:33  plasmashell[1323]: Qt Quick Layouts: Detected recursive rearrange. Aborting after two iterations.
Jul 20 09:49:33  plasmashell[1323]: file:///usr/share/ksysguard/sensorfaces/org.kde.ksysguard.piechart/contents/ui/FullRepresentation.qml:21:1: QML FullR>
Jul 20 09:49:34  kernel: kauditd_printk_skb: 29 callbacks suppressed
Jul 20 09:49:35  plasmashell[1323]: Qt Quick Layouts: Detected recursive rearrange. Aborting after two iterations.
Jul 20 09:49:35  plasmashell[1323]: Qt Quick Layouts: Detected recursive rearrange. Aborting after two iterations.
Jul 20 09:49:37  kstart5[1690]: Omitting both --window and --windowclass arguments is not recommended
Jul 20 09:49:37  kwin_x11[1254]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 3017, resource id: 4194313, major code: 18 (ChangeProper>
Jul 20 09:49:37  kwin_x11[1254]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 3022, resource id: 4194314, major code: 18 (ChangeProper>
Jul 20 09:49:37  kwin_x11[1254]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 3026, resource id: 4194315, major code: 18 (ChangeProper>
Jul 20 09:49:43  kwin_x11[1254]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 3982, resource id: 67108870, major code: 18 (ChangePrope>
Jul 20 09:49:47  plasmashell[1323]: file:///usr/share/plasma/plasmoids/org.kde.plasma.simplemenu/contents/ui/MenuRepresentation.qml:625: TypeError: Canno>
Jul 20 09:49:47  plasmashell[1323]: file:///usr/share/plasma/plasmoids/org.kde.plasma.simplemenu/contents/ui/MenuRepresentation.qml:625: TypeError: Canno>
Jul 20 09:49:47  plasmashell[1323]: file:///usr/share/plasma/plasmoids/org.kde.plasma.simplemenu/contents/ui/MenuRepresentation.qml:625: TypeError: Canno>
Jul 20 09:49:47  plasmashell[1323]: file:///usr/share/plasma/plasmoids/org.kde.plasma.simplemenu/contents/ui/MenuRepresentation.qml:625: TypeError: Canno>
Jul 20 09:49:47  plasmashell[1323]: file:///usr/share/plasma/plasmoids/org.kde.plasma.simplemenu/contents/ui/MenuRepresentation.qml:625: TypeError: Canno>
Jul 20 09:49:47  plasmashell[1323]: file:///usr/share/plasma/plasmoids/org.kde.plasma.simplemenu/contents/ui/MenuRepresentation.qml:625: TypeError: Canno>
Jul 20 09:49:47  plasmashell[1323]: file:///usr/share/plasma/plasmoids/org.kde.plasma.simplemenu/contents/ui/MenuRepresentation.qml:625: TypeError: Canno>
Jul 20 09:49:47  plasmashell[1323]: file:///usr/share/plasma/plasmoids/org.kde.plasma.simplemenu/contents/ui/MenuRepresentation.qml:625: TypeError: Canno>
Jul 20 09:49:47  plasmashell[1323]: file:///usr/share/plasma/plasmoids/org.kde.plasma.simplemenu/contents/ui/MenuRepresentation.qml:625: TypeError: Canno>
Jul 20 09:49:47  plasmashell[1323]: file:///usr/share/plasma/plasmoids/org.kde.plasma.simplemenu/contents/ui/MenuRepresentation.qml:625: TypeError: Canno>
Jul 20 09:49:47  plasmashell[1323]: file:///usr/share/plasma/plasmoids/org.kde.plasma.simplemenu/contents/ui/MenuRepresentation.qml:625: TypeError: Canno>
Jul 20 09:49:47  plasmashell[1323]: file:///usr/share/plasma/plasmoids/org.kde.plasma.simplemenu/contents/ui/MenuRepresentation.qml:711: TypeError: Canno>
Jul 20 09:49:47  plasmashell[1323]: file:///usr/share/plasma/plasmoids/org.kde.plasma.simplemenu/contents/ui/MenuRepresentation.qml:702:24: QML Highlight>
Jul 20 09:49:47  plasmashell[1323]: file:///usr/share/plasma/plasmoids/org.kde.plasma.simplemenu/contents/ui/MenuRepresentation.qml:702:24: QML Highlight>
Jul 20 09:49:47  plasmashell[1323]: file:///usr/share/plasma/plasmoids/org.kde.plasma.simplemenu/contents/ui/MenuRepresentation.qml:702:24: QML Highlight>
Jul 20 09:49:56  plasmashell[1323]: qt.gui.icc: fromIccProfile: failed minimal tag size sanity
Jul 20 09:49:59  kwin_x11[1254]: qt.qpa.xcb: QXcbConnection: XCB error: 3 (BadWindow), sequence: 5381, resource id: 4194330, major code: 18 (ChangeProper>
Jul 20 09:50:01  kscreenlocker_greet[2025]: Qt: Session management error: networkIdsList argument is NULL
Jul 20 09:50:01  kscreenlocker_greet[2025]: libpng warning: iCCP: known incorrect sRGB profile
Jul 20 09:50:01  kscreenlocker_greet[2025]: qt.virtualkeyboard.hunspell: Hunspell dictionary is missing for "en_US" . Search paths ("/usr/share/qt/qtvirt>
Jul 20 09:50:01  kscreenlocker_greet[2025]: file:///usr/share/plasma/look-and-feel/org.kde.breeze.desktop/contents/components/UserList.qml:42:9: Unable t>
Jul 20 09:50:04  kded5[1251]: org.kde.plasma.nm.kded: Unhandled active connection state change:  3

This problem is solved by upgrading my kernel to 5.18.
Linked with this issue: https://forum.manjaro.org/t/crashing-bsod-manjaro-x86-ryzen-5-3600-amd-rx6500xt-8gb-ram