Skip to content

You should enable power saving (auto suspend) for virutal machine! #413

@ChipZhang

Description

@ChipZhang

I am running LinuxMint in KVM virtual machine. I have the need to put VM in sleep/suspend mode if no activity.
It works pretty fine for KDE desktop in the VM. However, in Cinnamon/MATE desktop, it never auto suspends. If I click the suspend button in the UI, or run systemctl suspend manually, it actually works.

After spending one whole day to debug this problem, I noticed this code:

if (manager->priv->is_virtual_machine) {
g_debug ("ignoring state transition to %s as virtual machine",
idle_mode_to_string (mode));
return;
}

You just force disable auto suspend for all VMs. This is very stupid, as sometimes someone may really need auto suspend. It is the end user rather than you developers that is responsible to decide how to save the power.

You should at least provide an option to enable this feature for VMs. Or you should note the user about this point in the settings UI. Adding some weird "feature" without notifying the end user is really bad! It wasted everyone's time!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions