After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 735329 - Provide 'pause' button when connected to display
Provide 'pause' button when connected to display
Status: RESOLVED FIXED
Product: gnome-boxes
Classification: Applications
Component: general
unspecified
Other Linux
: Normal normal
: 3.22
Assigned To: GNOME Boxes maintainer(s)
GNOME Boxes maintainer(s)
ui-design
Depends on:
Blocks:
 
 
Reported: 2014-08-24 14:43 UTC by Elad Alfassa
Modified: 2016-03-31 13:22 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Elad Alfassa 2014-08-24 14:43:43 UTC
I'm very confused when sometimes when I close boxes it suspends the VM to disk, and sometimes the VM keeps running in the background, hogging my CPU, draining my battery and making my laptop overheat.

It would be neat if I could just press a button to suspend the vm to disk (pause it) so I could then disconnect my laptop and go to a meeting without the VM draining my battery in the middle.
Comment 1 Zeeshan Ali 2014-08-24 14:49:42 UTC
(In reply to comment #0)
> I'm very confused when sometimes when I close boxes it suspends the VM to disk,
> and sometimes the VM keeps running in the background, hogging my CPU, draining
> my battery and making my laptop overheat.

If the VM keeps running still, its a bug (most likely in libvirt or qemu).

> It would be neat if I could just press a button to suspend the vm to disk
> (pause it) so I could then disconnect my laptop and go to a meeting without the
> VM draining my battery in the middle.

There is a 'pause' button in selection mode. :)
Comment 2 Elad Alfassa 2014-08-24 14:51:59 UTC
I disagree with your classification of this bug as invalid. What I'm asking for is a button to allow me to pause the vm while the VM window is still open, without going back to the main view. It'd be easier to use than selection mode which requires four clicks if you're in the vm screen (one click to come back to the main view, another click to switch to selection mode, another click to select, and another click to pause).
Comment 3 Zeeshan Ali 2014-08-24 15:20:28 UTC
(In reply to comment #2)
> I disagree with your classification of this bug as invalid. What I'm asking for
> is a button to allow me to pause the vm while the VM window is still open,
> without going back to the main view. It'd be easier to use than selection mode
> which requires four clicks if you're in the vm screen (one click to come back
> to the main view, another click to switch to selection mode, another click to
> select, and another click to pause).

Ah ok. You didn't specify the specifics in either the summary nor details so I though you just wanted a button that already exists. :)
Comment 4 Zeeshan Ali 2014-08-24 15:23:05 UTC
Its not just about adding a button btw, Boxes is currently not able to handle VM in background if it goes to sleep.
Comment 5 Zeeshan Ali 2014-10-18 15:23:07 UTC
(In reply to comment #4)
> Its not just about adding a button btw, Boxes is currently not able to handle
> VM in background if it goes to sleep.

I think I meant: "background" -> "foreground".
Comment 6 Zeeshan Ali 2014-10-18 15:25:18 UTC
Jimmac, watchya think?
Comment 7 Jakub Steiner 2014-11-04 15:39:12 UTC
Explicit suspend seems like a valid action. I'll look into it.
Comment 8 Jakub Steiner 2014-11-05 11:35:08 UTC
Turns out I already had it in the wires :) 

https://raw.githubusercontent.com/gnome-design-team/gnome-mockups/master/boxes/wires/properties-modal.png
Comment 9 Zeeshan Ali 2014-11-14 20:44:17 UTC
Elad, rejoice! You can do a lot more than just pause now right from display screen. :)

commit: ee52b72f577439ae254f825317f28f073f570a50

    display-toolbar: Minor indentation fix

commit: 5f5fb18ec065a5235cf1e4cd3ccbed1a72fc3f3a

    actions-popover: Switch to collection on deletion
    
    In the following patch, we'd show this popover in display mode too and it
    looks really weird if we keep showing the display of the machine that
    user just deleted. Better switch to collection view just before deleting
    (from view) it.

commit: 67194a05821bee554c5c8116fb9dcd853d07d107

    display-toolbar: props button -> box menu button
    
    Replace properties button by a menu button that presents the box actions
    using the new ActionsPopover.