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 775771 - No way of sending Ctrl-Alt-Del to login to Windows VM
No way of sending Ctrl-Alt-Del to login to Windows VM
Status: RESOLVED FIXED
Product: gnome-boxes
Classification: Applications
Component: general
3.22.x
Other Linux
: Normal normal
: --
Assigned To: GNOME Boxes maintainer(s)
GNOME Boxes maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2016-12-07 20:42 UTC by winter
Modified: 2017-04-12 16:27 UTC
See Also:
GNOME target: ---
GNOME version: 3.21/3.22


Attachments
Add the possibility to send sequence via popup (1.75 KB, patch)
2017-04-07 07:37 UTC, Sören Grunewald
committed Details | Review

Description winter 2016-12-07 20:42:42 UTC
On Fedora 25 I created a new Windows VM and after the install I was dropped to a login screen that told me to press Ctrl Alt Del to login, as Windows usually does.

However I have no method of inputting CAD as far as I can tell. Pressing CAD will send the restart signal to Gnome/Fedora; this happens in windowed mode AND fullscreen mode. The keyboard macro menu only has Ctrl-Alt-BACKSPACE, which is *not* the same thing that Windows interprets as Ctrl Alt Delete.

We either need to get CAD added to the keyboard macro menu, a keycombo that Boxes can interpret as CAD, or (maybe most ideal) a method of editing the keyboard macro menu so you can send your own custom keycombos.

Alternately, if there is an existing method of sending Ctrl Alt Del to the guest I'd be happy to hear, and we'd probably want the documentation updated.

Thanks!
Comment 1 winter 2016-12-07 20:43:58 UTC
This bug exists:

https://bugzilla.gnome.org/show_bug.cgi?id=676220

And there was activity asking for Ctrl-Alt-F1, which *was* added to the macro version, but for some reason Ctrl-Alt-Backspace was added instead of CAD and I'm not entirely sure why.
Comment 2 Zeeshan Ali 2016-12-08 13:56:34 UTC
(In reply to winter from comment #1)
> This bug exists:
> 
> https://bugzilla.gnome.org/show_bug.cgi?id=676220

That's quite old and we hadn't even thought of kbd combo menu at that time.

> And there was activity asking for Ctrl-Alt-F1, which *was* added to the
> macro version, but for some reason Ctrl-Alt-Backspace was added instead of
> CAD and I'm not entirely sure why.

I don't quite remember the rationale for not adding CAD so we can think about this.
Comment 3 Sören Grunewald 2017-04-07 07:37:08 UTC
Created attachment 349429 [details] [review]
Add the possibility to send sequence via popup
Comment 4 Felipe Borges 2017-04-11 16:08:42 UTC
What if we would conditionally show the keyboard entries based on the guest OS?

I don't see much reasoning to present Ctrl + Alt + Fx/Backspace keys for a Windows box, and Ctrl + Alt + Del entry for any other OS.

Opinions?
Comment 5 Christophe Fergeau 2017-04-11 16:29:31 UTC
I'm fairly sure that on X11, ctrl+alt+del could be passed to the VM without issues.
The right fix will be to implement https://patchwork.freedesktop.org/patch/148508/ once this lands in wayland.
In the mean time, a menu entry is most likely good enough :)
Comment 6 Sören Grunewald 2017-04-12 07:51:24 UTC
@Filipe: In principle you are right, but do you see a way to implement this with an acceptable effort? Also Ctrl + Alt + Backspace is also quite obsolete. At least on Fedora this key-combination does not work for several versions now (by default). I think it would be nice if we could make the presented key-combinations configurable in general. So users can decide which combinations are available.

@Christophe: In fact, this is indeed an wayland related issue, so I agree on fixing this on wayland side would be the best solution.
Comment 7 Felipe Borges 2017-04-12 12:42:32 UTC
Review of attachment 349429 [details] [review]:

sure. Thanks for your patch.
Comment 8 Zeeshan Ali 2017-04-12 16:27:21 UTC
(In reply to Sören Grunewald from comment #6)
> @Filipe: In principle you are right, but do you see a way to implement this
> with an acceptable effort? Also Ctrl + Alt + Backspace is also quite
> obsolete. At least on Fedora this key-combination does not work for several
> versions now (by default).

We (libosinfo actually) treat every OS version as it's own OS so no worries on changes between different version of OS supporting different combos.

>I think it would be nice if we could make the
> presented key-combinations configurable in general. So users can decide
> which combinations are available.

If something can be made to work automatically (through code), we shouldn't throw decisions and work on users.