Wake from sleep to black screen with frozen mouse

I’m using a fresh install with KDE on a Lenovo Carbon X1 Gen 9. The system reports s2idle is available. In the bios I also have the option to choose S3 sleep instead but i get the same result either way.

When i select sleep from the application launcher, the screen goes black but displays the mouse for maybe 30 seconds before the system appears to go to sleep. When i try to wake it, the screen turns on, i can see only the mouse again but it never fully wakes and i have to hard reset. The mouse is frozen on a black screen.

My googling has not yet led me to a solution so i am looking for suggestions. Most similar issues seem to be nvidia related which is not applicable here. Thanks!

❯ cat /sys/power/mem_sleep
[s2idle]

Edit - I am using BTRFS and grub for timeshift snapshots if that is relevant otherwise it’s a pretty standard install.

Hi and welcome to the forums. :wave:
If you unplug your mouse and plug it back in does it start working again?
How you tried a different kernel like the linux-lts?
If using KDE Wayland try Xorg for a test.
Should post your logs as others will be looking for them and the more info you post, the more help you will get.

Thanks for the suggestions!

  • I am using the built in touchpad and trackpoint so I cannot unplug them. Both are frozen.
  • I just installed the LTS kernel and tried that with the same result.
  • Under X11 when i try to suspend the system just locks. I can see the desktop and move the mouse but cannot click/interact with anything. When suspending from the terminal there was no output.

Any suggestions on logs to post? I was skimming journalctl -b nothing stood out to me but I don’t really know what I’m looking for and it was 2000 lines so I wasn’t sure if it’s appropriate to post.

You can use these few commands to get some of the info, for hardware info.

inxi -Fxxc0z

for log errors try this after a crash or freeze up right after it happens.

journalctl -p  err --since "1 hour ago"
2 Likes

I have this exact problem every time I install EndeavourOS on a laptop. It fixes itself after a week or so of using the machine.

It’s happened on 10+ thinkpads with AMD and Intel CPU’s and iGPU’s. It’s also happened on an AMD based System76 laptop.

I don’t have any NVIDIA machines so this isn’t an NVIDIA problem which seems to be the first thing people mention when it’s asked about.

It doesn’t happen with any other distro, just EOS.

I was using Kubuntu before this and did not have a similar issue either. I can hope it solves itself but here are some logs in the meantime…

❯ inxi -Fxxc0z
System:
  Kernel: 6.13.2-arch1-1 arch: x86_64 bits: 64 compiler: gcc v: 14.2.1
  Desktop: KDE Plasma v: 6.3.0 tk: Qt v: N/A wm: kwin_wayland dm: SDDM
    Distro: EndeavourOS base: Arch Linux
Machine:
  Type: Laptop System: LENOVO product: 20XW003KUS v: ThinkPad X1 Carbon Gen 9
    serial: <superuser required> Chassis: type: 10 serial: <superuser required>
  Mobo: LENOVO model: 20XW003KUS v: SDK0J40697 WIN
    serial: <superuser required> part-nu: LENOVO_MT_20XW_BU_Think_FM_ThinkPad
    X1 Carbon Gen 9 UEFI: LENOVO v: N32ET95W (1.71 ) date: 10/24/2024
Battery:
  ID-1: BAT0 charge: 21.2 Wh (37.2%) condition: 57.0/57.0 Wh (100.0%)
    volts: 14.8 min: 15.4 model: Sunwoda 5B10W13975 serial: <filter>
    status: discharging
CPU:
  Info: quad core model: 11th Gen Intel Core i7-1185G7 bits: 64 type: MT MCP
    arch: Tiger Lake rev: 1 cache: L1: 320 KiB L2: 5 MiB L3: 12 MiB
  Speed (MHz): avg: 400 min/max: 400/4800 cores: 1: 400 2: 400 3: 400 4: 400
    5: 400 6: 400 7: 400 8: 400 bogomips: 47923
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
  Device-1: Intel TigerLake-LP GT2 [Iris Xe Graphics] vendor: Lenovo
    driver: i915 v: kernel arch: Xe ports: active: eDP-1 empty: DP-1, DP-2,
    DP-3, DP-4, HDMI-A-1, HDMI-A-2, HDMI-A-3 bus-ID: 00:02.0
    chip-ID: 8086:9a49
  Device-2: Chicony Integrated Camera driver: uvcvideo type: USB rev: 2.0
    speed: 480 Mb/s lanes: 1 bus-ID: 3-4:3 chip-ID: 04f2:b6ea
  Display: wayland server: X.org v: 1.21.1.15 with: Xwayland v: 24.1.5
    compositor: kwin_wayland driver: X: loaded: modesetting
    alternate: fbdev,intel,vesa dri: iris gpu: i915 display-ID: 0
  Monitor-1: eDP-1 model: California Institute of eDP-1-0x1404
    res: 1920x1200 hz: 60 dpi: 161 diag: 356mm (14")
  API: EGL v: 1.5 platforms: device: 0 drv: iris device: 1 drv: swrast gbm:
    drv: iris surfaceless: drv: iris wayland: drv: iris x11: drv: iris
  API: OpenGL v: 4.6 compat-v: 4.5 vendor: intel mesa v: 24.3.4-arch1.1
    glx-v: 1.4 direct-render: yes renderer: Mesa Intel Iris Xe Graphics (TGL
    GT2) device-ID: 8086:9a49 display-ID: :1.0
  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
Audio:
  Device-1: Intel Tiger Lake-LP Smart Sound Audio vendor: Lenovo
    driver: sof-audio-pci-intel-tgl bus-ID: 00:1f.3 chip-ID: 8086:a0c8
  API: ALSA v: k6.13.2-arch1-1 status: kernel-api
  Server-1: PipeWire v: 1.2.7 status: active with: 1: pipewire-pulse
    status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin
    4: pw-jack type: plugin
Network:
  Device-1: Intel Wi-Fi 6 AX201 driver: iwlwifi v: kernel bus-ID: 00:14.3
    chip-ID: 8086:a0f0
  IF: wlan0 state: up mac: <filter>
Bluetooth:
  Device-1: Intel AX201 Bluetooth driver: btusb v: 0.8 type: USB rev: 2.0
    speed: 12 Mb/s lanes: 1 bus-ID: 3-10:4 chip-ID: 8087:0026
  Report: btmgmt ID: hci0 rfk-id: 1 state: down bt-service: disabled
    rfk-block: hardware: no software: no address: N/A
Drives:
  Local Storage: total: 1.82 TiB used: 9.96 GiB (0.5%)
  ID-1: /dev/nvme0n1 vendor: Western Digital model: WD BLACK SN850X 2000GB
    size: 1.82 TiB speed: 63.2 Gb/s lanes: 4 serial: <filter> temp: 27.9 C
Partition:
  ID-1: / size: 1.82 TiB used: 9.96 GiB (0.5%) fs: btrfs dev: /dev/nvme0n1p2
  ID-2: /boot/efi size: 1022 MiB used: 584 KiB (0.1%) fs: vfat
    dev: /dev/nvme0n1p1
  ID-3: /home size: 1.82 TiB used: 9.96 GiB (0.5%) fs: btrfs
    dev: /dev/nvme0n1p2
  ID-4: /var/log size: 1.82 TiB used: 9.96 GiB (0.5%) fs: btrfs
    dev: /dev/nvme0n1p2
Swap:
  ID-1: swap-1 type: file size: 512 MiB used: 0 KiB (0.0%) priority: -2
    file: /swap/swapfile
Sensors:
  System Temperatures: cpu: 35.0 C mobo: N/A
  Fan Speeds (rpm): N/A
Info:
  Memory: total: 16 GiB note: est. available: 15.33 GiB used: 2.5 GiB (16.3%)
  Processes: 280 Power: uptime: 1m wakeups: 0 Init: systemd v: 257
    default: graphical
  Packages: pm: pacman pkgs: 1053 Compilers: gcc: 14.2.1 Shell: Zsh v: 5.9
    running-in: konsole inxi: 3.3.37

❯ journalctl -p  err --since "1 hour ago"
Feb 16 19:55:41 ryan-x1 kernel: i801_smbus 0000:00:1f.4: SMBus is busy, can't use it!
Feb 16 19:55:41 ryan-x1 kernel: i801_smbus 0000:00:1f.4: SMBus is busy, can't use it!
Feb 16 19:55:41 ryan-x1 kernel: i801_smbus 0000:00:1f.4: SMBus is busy, can't use it!
Feb 16 19:55:41 ryan-x1 kernel: i801_smbus 0000:00:1f.4: SMBus is busy, can't use it!
Feb 16 19:55:41 ryan-x1 kernel: i801_smbus 0000:00:1f.4: SMBus is busy, can't use it!
Feb 16 19:55:41 ryan-x1 kernel: i801_smbus 0000:00:1f.4: SMBus is busy, can't use it!
Feb 16 19:55:41 ryan-x1 kernel: i801_smbus 0000:00:1f.4: SMBus is busy, can't use it!
Feb 16 19:55:42 ryan-x1 grub-btrfsd[663]: [!] inotifywait was not found, exiting. Is inotify-tools installed?
Feb 16 20:00:59 ryan-x1 systemd-sleep[2702]: Failed to freeze unit 'user.slice': Connection timed out
-- Boot 823f33d068de4722bab073b9dfd63392 --
Feb 16 20:03:24 ryan-x1 kernel: i801_smbus 0000:00:1f.4: SMBus is busy, can't use it!
Feb 16 20:03:24 ryan-x1 kernel: i801_smbus 0000:00:1f.4: SMBus is busy, can't use it!
Feb 16 20:03:24 ryan-x1 kernel: i801_smbus 0000:00:1f.4: SMBus is busy, can't use it!
Feb 16 20:03:24 ryan-x1 kernel: i801_smbus 0000:00:1f.4: SMBus is busy, can't use it!
Feb 16 20:03:24 ryan-x1 kernel: i801_smbus 0000:00:1f.4: SMBus is busy, can't use it!
Feb 16 20:03:24 ryan-x1 kernel: i801_smbus 0000:00:1f.4: SMBus is busy, can't use it!
Feb 16 20:03:24 ryan-x1 kernel: i801_smbus 0000:00:1f.4: SMBus is busy, can't use it!
Feb 16 20:03:25 ryan-x1 grub-btrfsd[635]: [!] inotifywait was not found, exiting. Is inotify-tools installed?

The only thing I see in your logs is that it’s looking for inotify-tools

I had installed BTRFS snaphots on grub using this guide. It does enable the service grub-btrfsd which apparently depends on inotify-tools but it isn’t installed as a dependency? Anyways, I installed it and the inotify-tools error is gone.

https://discovery.endeavouros.com/encrypted-installation/btrfs-with-timeshift-snapshots-on-the-grub-menu/2022/02/

I am now looking into this error

Feb 16 20:00:59 ryan-x1 systemd-sleep[2702]: Failed to freeze unit 'user.slice': Connection timed out

Edit: So I have tracked down the cause of the problem. I mount NFS network shares using autofs. When i disable that, sleep works fine. So something in that configuration is causing it to hang when sleeping. Time for some more searching, will post a solution if found.

1 Like

Instead of troubleshooting autofs I chose to mount the nfs shares using systemd instead as it seems to meet my needs and now sleep works as expected! Thanks all for the suggestions to get me to the solution.

1 Like

for me its also entirely random and sometimes stays away for like 10+ sleeps and other times it happens every time. i dont use NFS and im pretty sure i dont have any inotify errors in my logs

EDIT:
so im assuming it has SOMETHING to do with my cifs networkshares not being able to mount after sleep due to me being on WiFi.
Ich switched to wifi a couple of days ago but the issue definitely didnt occur at first after switching.

im mounting 2 cifs shares using these two adapters

29:00.0 Network controller: Intel Corporation Wi-Fi 6 AX200 (rev 1a)
        DeviceName: RTL8111E Giga LAN
        Subsystem: Intel Corporation Wi-Fi 6 AX200NGW
        Flags: bus master, fast devsel, latency 0, IRQ 34, IOMMU group 15
        Memory at fc600000 (64-bit, non-prefetchable) [size=16K]
        Capabilities: <access denied>
        Kernel driver in use: iwlwifi
        Kernel modules: iwlwifi

2a:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8125 2.5GbE Controller (rev 04)
        Subsystem: Micro-Star International Co., Ltd. [MSI] Device 7c94
        Flags: bus master, fast devsel, latency 0, IRQ 37, IOMMU group 15
        I/O ports at f000 [size=256]
        Memory at fc500000 (64-bit, non-prefetchable) [size=64K]
        Memory at fc510000 (64-bit, non-prefetchable) [size=16K]
        Capabilities: <access denied>
        Kernel driver in use: r8169
        Kernel modules: r8169


i’ve switched back to wired yesterday and after 5-6 suspend sessions ive not observed the issue.

What method are you using to mount the shares? Depending on the method there may be various timeout options you can use to help it along. I’m using wifi and after switching to mounting with systemd I haven’t had any issues.

I’m not expert so take my advice with a grain of salt but this is similar to how i mounted the NFS shares now.

https://wiki.archlinux.org/title/Samba#As_mount_entry

For others reference this is the link to the method I used for NFS mounting.

https://wiki.archlinux.org/title/NFS#Mount_using_/etc/fstab_with_systemd