Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

insert control-alt-delete #1585

Closed
wayzard opened this issue Jan 5, 2016 · 17 comments
Closed

insert control-alt-delete #1585

wayzard opened this issue Jan 5, 2016 · 17 comments
Labels
C: gui-virtualization eol-4.0 Closed since Qubes 4.0 has been EOL for over one year P: minor Priority: minor. The lowest priority, below "default." T: bug Type: bug report. A problem or defect resulting in unintended behavior in something that exists.

Comments

@wayzard
Copy link

wayzard commented Jan 5, 2016

HVM domUs are not responding to the accepted key combination (control-alt-home according to the docs) to receive a control-alt-delete signal while the HVM desktop's window has focus.

Qubes Tools for Windows was not installed. (In some scenarios, they cannot be installed on a system.)

In cases where a system requires control-alt-delete to enter a login screen, this renders a guest system unusable.
As a less important addition, similar considerations may also be needed for other "control-alt-" key combos (like control-alt-F1 on Linux domUs).

Qubes 3.1RC

@marmarek marmarek added T: bug Type: bug report. A problem or defect resulting in unintended behavior in something that exists. C: gui-virtualization P: minor Priority: minor. The lowest priority, below "default." labels Jan 5, 2016
@marmarek marmarek added this to the Release 3.1 milestone Jan 5, 2016
@wayzard
Copy link
Author

wayzard commented Jan 13, 2016

Not sure why this is "minor" priority. To emphasize, many Windows distros (including almost all Windows Server versions) are completely inaccessible after installation.

I tried the following as a workaround (while 6 was DomID of Windows). Not surprisingly, it failed, presumably because qemu is not on these systems:
#sudo virsh send-key 6 KEY_LEFTCTRL KEY_LEFTALT KEY_DELETE
error : this function is not supported by the connection driver: virDomainSendKey

If there are any other work arounds, it would be good to know in the meantime...
Is the expected hotkey implementation here supposed to be in the desktop environment, X configs or elsewhere?

@marmarek
Copy link
Member

Try ctrl+alt+ins

@wayzard
Copy link
Author

wayzard commented Jan 15, 2016

ctrl+alt+ins does not work.
Actually, various related hotkeys need to be disabled in each Desktop Environment: ctr+alt+ins in KDE; ctrl+alt+home in XFCE.
But no, ctrl+alt+ins also does not work.

WORKAROUND (not ideal):

  1. disable /etc/systemd/system/ctrl-alt-del.target (if it exists)
  2. disable any ctrl+alt+del hotkey in the DE
  3. type ctrl+alt+del for HVM window with focus

I am not sure where or how the ctrl+alt+home (or ctrl+alt+ins) implementation was supposed to be. In the DE or closer to raw console input or something else?
Either way, this may need an update: www.qubes-os.org/doc/windows-tools-3/

@marmarek
Copy link
Member

Maybe a better hotkey would be ctrl+alt+win+del (essentially the same as original, but with win)? Or maybe virtualbox approach: right ctrl + del (or "host key" + del)?

The current ctrl+alt+ins is implemented in windows tools, so indeed it will not work without them...

/cc @omeg @woju

@omeg
Copy link
Member

omeg commented Jan 15, 2016

ctrl-alt-home translation to CAD is performed by the gui agent in Windows Tools. If the tools are not installed in the HVM, keyboard input is not translated. Customization of the shortcut is planned if the time allows, but maybe a better solution would be to synthesize CAD from the gui daemon for cases where guest tools are not present? It's true that server editions require CAD to log in to even install guest tools. Still, special casing such stuff in the gui daemon seems like a bad idea...

@perkooo
Copy link

perkooo commented May 20, 2016

Hi,
I have the same problem when I join my active directory with Windows 7.
Stuck at CAD, I tried all keys combination (CTRL ALT HOME or INS does not work) and disabled also hotkey in Qubes.
The solution which worked for me :
When I am on Windows loggins (asking for CAD)

  • Set EN keyboard
  • Show visual keyboard
  • Click on the virtual keyboard the combination CTRL, ALT and DEL.

Not the best solution but for the moment...

@perkooo
Copy link

perkooo commented May 21, 2016

In order to add some informations to my last post :
I have a french keyboard (AZERTY, not QWERTY), this might be the problem why CTRL + ALT + HOME is not working.

Thanks for the amazing job you are all doing, this is one of the best OS that I tried :)

@SietsevanderMolen
Copy link

SietsevanderMolen commented Jun 3, 2016

I need to start my Windows HVM in debug mode, and then press CTRL + ALT + HOME in the debug screen (which only shows 'Starting Windows') to be able to login. I find it hard to believe it's a problem with the keyboard layout, but I'm on US Dvorak, in case it helps. Using the on screen keyboard does nothing for me.

@MegaTraveller
Copy link

Same Problem here, on a german WIn 7 Pro, after Domain Join it is impossible to login. I tried the tip from @wayzard but it does not work for me :( On-Screen-Keyboard is also no help.

@MegaTraveller
Copy link

@SietsevanderMolen Thanks for that Tip, that worked like a charm :)

@faircopy
Copy link

faircopy commented Nov 20, 2017

This is my use case:

  • Qubes 3.2
  • Windows Server 2016 standalone HVM

This is how I enabled passing Ctrl+Alt+Delete to the Windows HVM:
Qubes menu → System Tools → Keyboard → "Application Shortcuts" tab → Select the line "xflock4" - "Ctrl+Alt+Delete" → Click the "Remove" button

After removing the keyboard shortcut, Windows recognizes the Ctrl+Alt+Delete combination just like any other key press when the HVM's window is active.


@SietsevanderMolen's suggestion above did not work for me.

I tried:
Qubes menu → Qubes VM Manager → Stop Windows VM if running → Right click on Windows VM → VM Settings → On the "Basic" tab, tick the "Run in debug mode" checkbox → Click the "OK" button → Start Windows VM

No debug window appeared for me, and pressing Ctrl+Alt+Home with the Windows HVM window active resulted in the "Move window to previous workspace" action which is defined in the XFCE Window Manager settings.

@TFQOS
Copy link

TFQOS commented Sep 13, 2018

A trick is to press the Shift key 5 times to activate the Sticky Keys mode (https://en.wikipedia.org/wiki/Sticky_keys).

Thus to send the Ctrl-Alt-Suppr sequence to the VM:

  • Press the Shift key 5 times
  • Answer "Yes"
  • Press (and release) Ctrl
  • Press (and release) Alt
  • Press (and release) Delete

Worked on Qubes R4.0 and Windows Server 2016 as HVM.

@brendanhoar
Copy link

As it is now, under R4 current testing, with QWT installed, Windows 7 doesn't accept ctrl-alt-home as ctrl-alt-del. ctrl-alt-windows-del does not work either.

However, sometimes the delete key becomes permantly equivalent to ctrl-alt-delete, so any use of the delete key gives the windows security screen.

It's somewhat maddening and I haven't been able to figure out why.

On screen keyboard doesn't show any stuck keys.

Brendan

@bowtiediguana
Copy link

@andrewdavidwong I am affected by this issue when installing Windows Server 2019 on Qubes 4.0 using https://github.com/elliotkillick/qvm-create-windows-qube and the i3wm

@bowtiediguana
Copy link

Remote Desktop is not enabled by default in the answer file so I cannot log in on port 3389 with an rdesktop tool from another qube ether.

@bowtiediguana
Copy link

bowtiediguana commented Sep 10, 2021

sudo systemctl mask ctrl-alt del.target in dom0 worked

@andrewdavidwong andrewdavidwong added the eol-4.0 Closed since Qubes 4.0 has been EOL for over one year label Aug 5, 2023
@github-actions
Copy link

github-actions bot commented Aug 5, 2023

This issue is being closed because:

If anyone believes that this issue should be reopened and reassigned to an active milestone, please leave a brief comment.
(For example, if a bug still affects Qubes OS 4.1, then the comment "Affects 4.1" will suffice.)

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Aug 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: gui-virtualization eol-4.0 Closed since Qubes 4.0 has been EOL for over one year P: minor Priority: minor. The lowest priority, below "default." T: bug Type: bug report. A problem or defect resulting in unintended behavior in something that exists.
Projects
None yet
Development

No branches or pull requests