suspend on idle should be disabled when running inside a VM

Bug #870024 reported by Jamie Strandboge
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gnome-settings-daemon (Ubuntu)
New
Wishlist
Unassigned

Bug Description

Suspend on idle does not work with our preferred virtualization technology of libvirt/qemu-kvm. The machine suspends, but there is no way to make it resume. I don't know if qemu-kvm and the VM bios supports it or if it is simply a bug in libvirt, but suspending in a VM by default is pointless as it only gets in the way of people's work. If I walk away from my computer, the host should suspend if I choose for it to do so, not the VM. Suspending/resuming the host with running VMs has worked fine for years so there should be no problem with this.

Revision history for this message
Sebastien Bacher (seb128) wrote :

Suspend on idle is disabled by default, it seems you opened several bugs about the same issue ;-)

Though do you want suspend on idle to be hidden from the ui on vms? Is there any way to detect we run in a vm instance?

Changed in gnome-settings-daemon (Ubuntu):
importance: Undecided → Wishlist
Revision history for this message
Jamie Strandboge (jdstrand) wrote :

There are ways to detect this in a VM, yes. It is my understanding that Windows looks at the video card driver. lspci should give enough info for this. Eg with the 'vmvga' and 'cirrus' kvm drivers (there are others that can be added):
$ lspci | grep VGA
00:02.0 VGA compatible controller: VMware SVGA II Adapter

$ lspci | grep VGA
00:02.0 VGA compatible controller: Cirrus Logic GD 5446

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.