Bug 2180047

Summary: Virtual machines automatically suspend, but can't be resumed
Product: [Fedora] Fedora Reporter: Kamil Páral <kparal>
Component: gnome-settings-daemonAssignee: Felipe Borges <feborges>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 38CC: aday, awilliam, cegolf, feborges, fmuellner, gnome-sig, klember, mkasik, ofourdan, robatino, rstrode, tiagomatos, yaneti
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: AcceptedBlocker
Fixed In Version: gnome-settings-daemon-44.0-2.fc38 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-03-24 02:03:43 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2083912    

Description Kamil Páral 2023-03-20 15:46:09 UTC
Please see:
https://gitlab.gnome.org/GNOME/gnome-settings-daemon/-/issues/736

I imagine this could either be solved in GNOME or in libvirt.

Proposing for a blocker discussion. When you leave your VM unattended for a while and then can't work with it anymore, and all your unsaved work is gone, it's not a great experience.

Comment 1 Kamil Páral 2023-03-20 15:47:51 UTC
More people complained about this here:
https://discussion.fedoraproject.org/t/power-saving-options-automatic-supsend-is-on-please-change-to-off/79670

Comment 2 Adam Williamson 2023-03-20 23:47:40 UTC
Discussed at 2023-03-20 blocker review meeting: https://meetbot-raw.fedoraproject.org/fedora-blocker-review/2023-03-20/f38-blocker-review.2023-03-20-16.00.html . We agreed to accept this as a blocker as a violation of Beta criterion "The release must be able host virtual guest instances of the same release", on the basis that VMs which auto-suspend after 20 minutes and cannot be resumed are not really working.

Comment 3 Felipe Borges 2023-03-21 10:59:00 UTC
While https://gitlab.gnome.org/GNOME/gnome-settings-daemon/-/merge_requests/325 fixes the issue with auto-suspending by preventing auto-suspension in VM environments, there's still the issue with manual suspension.

If you manually click Suspend on your VM, you won't be able to resume from suspend.

That's something that gnome-boxes and virt-manager should fix by monitoring the suspend state in libvirt and calling resume (either automatically, clicking a button, or by detecting input events on the display widget). See virDomainSuspend() and virDomainResume().

Comment 4 Kamil Páral 2023-03-21 11:51:46 UTC
(In reply to Felipe Borges from comment #3)
> While
> https://gitlab.gnome.org/GNOME/gnome-settings-daemon/-/merge_requests/325
> fixes the issue with auto-suspending by preventing auto-suspension in VM
> environments, 

This is sufficient for resolving the blocker status.

> If you manually click Suspend on your VM, you won't be able to resume from
> suspend.
> 
> That's something that gnome-boxes and virt-manager should fix by monitoring

Do you want me to file a bug against those two projects?

Comment 5 Fedora Update System 2023-03-22 23:25:40 UTC
FEDORA-2023-26137c2392 has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2023-26137c2392

Comment 6 Fedora Update System 2023-03-23 02:56:38 UTC
FEDORA-2023-26137c2392 has been pushed to the Fedora 38 testing repository.

You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2023-26137c2392

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 7 Kamil Páral 2023-03-23 10:14:30 UTC
(In reply to Fedora Update System from comment #5)
> FEDORA-2023-26137c2392 has been submitted as an update to Fedora 38.
> https://bodhi.fedoraproject.org/updates/FEDORA-2023-26137c2392

Fixed.

Comment 8 Fedora Update System 2023-03-24 02:03:43 UTC
FEDORA-2023-26137c2392 has been pushed to the Fedora 38 stable repository.
If problem still persists, please make note of it in this bug report.