id = 1410 title = "system_powerdown only works once" state = "opened" created_at = "2023-01-03T13:50:34.074Z" closed_at = "n/a" labels = ["ACPI", "target: i386"] url = "https://gitlab.com/qemu-project/qemu/-/issues/1410" host-os = "Debian" host-arch = "x86_64" qemu-version = "7.2.0" guest-os = "Windows 10 LTS" guest-arch = "x86_64" description = """When the guest is configured to sleep on power button events, something in the ACPI states are not restored coming out of resume. The first call to `system_powerdown` succeeds, but the second after waking the system is rejected in `acpi_pm1_evt_power_down()` since `ar->pm1.evt.en` is zero coming out of the resume path. There is probably something deeper (or perhaps in seabios?) since removing the test in that handler doesn't cause a second sleep either.""" reproduce = """![image](/uploads/60876bde4027c42699f2edf936bd874d/image.png) 1. Boot a guest configured to sleep when it receives a power button event 2. `system_powerdown` from the monitor to tell it to sleep 3. `info status` to verify that it is suspended 4. Wake the guest, either with `system_wakeup` or moving the mouse or something 5. `system_powerdown` has no effect""" additional = """This is using qemu-7.2.0 built from source with a Windows 10 guest and IGD GPU+audio passthrough."""