Sleep issue on MSI laptop

I am experiencing different sleep behavior on my MSI laptop with an Intel processor and integrated graphics, depending on whether I use Wayland or X11. In Wayland, the screen goes black, but the backlight remains on (as does the keyboard backlight), and I can sometimes see a cursor or clock. The laptop becomes unresponsive. In X11, when I select sleep from the menu, the laptop freezes without the display turning off. This occurs regardless of whether I use the terminal. I’ve seen other posts, but they all seem to focus on Nvidia graphics cards. I update my system daily. This problem started 2 days ago; everything was working fine before then. Has anyone else encountered this issue?

Update (same day): Magically fixed, nothing done on my part not even updates.

Did you do an update or install before this started? If so, do you take snapshots that you can roll back to?

If not you can try running journalctl --since 00:00, where 00:00 is the time just before you slept the laptop, to see if there are any clues in the logs.

What is the exact graphics hardware? (post an inxi -G).

Graphics:
  Device-1: Intel Raptor Lake-P [Iris Xe Graphics] driver: i915 v: kernel
  Display: wayland server: X.org v: 1.21.1.15 with: Xwayland v: 24.1.4
    compositor: kwin_wayland driver: X: loaded: modesetting dri: iris gpu: i915
    resolution: 1920x1200~120Hz
  API: EGL v: 1.5 drivers: iris,swrast
    platforms: gbm,wayland,x11,surfaceless,device
  API: OpenGL v: 4.6 compat-v: 4.5 vendor: intel mesa v: 24.3.3-arch1.2
    renderer: Mesa Intel Iris Xe Graphics (RPL-P)
  API: Vulkan Message: No Vulkan data available.
  Info: Tools: api: clinfo, eglinfo, glxinfo, vulkaninfo
    de: kscreen-console,kscreen-doctor wl: wayland-info
    x11: xdpyinfo, xprop, xrandr

Try the xf86-video-intel driver, you can always uninstall if it doesn’t work. Reboot obviously.