Docker desktop prevents correct sleep of the system when using the video-linux driver.
Description
I'm using Manjaro 24.0.3 x86_64, Kernel linux69, docker desktop 4.32.0. when I put the system to sleep, the system can't wake up. I fixed the issue by removing the open-source video-linux driver and installing the proprietary driver (video-hybrid-intel-nvidia-prime).
my video card: GP107M [GeForce GTX 1050 Mobile] (nVidia) CoffeeLake-H GT2 [UHD Graphics 630] (intel)
I have since installed and used podman desktop, and there is no issue regarding waking up from sleep.
Reproduce
suspend the OS while docker-desktop is running with the video driver being video-linux. with the same hardware as I put in the description.
Expected behavior
the OS would not wake up from sleep/suspension, and the screen would remain black.
docker version
Docker version 26.1.4
docker info
none
Diagnostics ID
none
Additional Info
No response
Same problem. Manjaro 24.0.3, Kernel linux 6.6, Docker-Desktop 4.31.0 Engine v26.1.4
Same problem: Kubuntu 24.10 (KDE 6) Kernel 6.11 Docker Desktop 4.34.0 (4.34.3 also has the same issue)
This didn't happen in 24.04, I upgraded last week and then the issue started. Before sleep/resume worked fine.
Going to sleep shows a black screen with an unresponsive mouse, and takes maybe 30 seconds to go to sleep.
Resuming shows the same black screen with the unresponsive mouse.
Logs show this relevant line systemd-sleep[9423]: Failed to freeze unit 'user.slice': Connection timed out which points to https://github.com/systemd/systemd/issues/33269 and the many linked issues there in other projects.
Same issue: Ubuntu 24.10, also have this problem on latest arch with latest 6.11 kernel
Lenovo Yoga 7 arb 14 Ryzen 6800u
I m facing similar issue with docker-desktop where it causes a black screen on wake up from sleep. Im using EndeavousOS with latest kernel 6.11.5.
Thinkpad T14 Gen 5 AMD
Same issue: Ubuntu 24.10, also have this problem on latest arch with latest 6.11 kernel
Lenovo Yoga 7 arb 14 Ryzen 6800u
Fixed it by completely uninstalling docker-desktop, and installed docker without docker desktop
Same on Fedora 41 with 6.11 kernel. Consistent, and isolated to Docker Desktop running. Guess it's finally time to switch to podman.
I found this: https://bbs.archlinux.org/viewtopic.php?id=299284 Using Hooks to shutdown and resume docker.desktop.