Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

qemu not grabbing control keys

1,208 views
Skip to first unread message

Ólafur Jens Sigurðsson

unread,
May 1, 2014, 5:30:02 AM5/1/14
to
Hi, if I try to run images with kvm I cant switch to virtual consoles
with ctrl-alt-(1/2/3) no matter what key combination I use (default is
ctrl-alt, starting kvm with -alt-grab makes it ctrl-alt-shift, starting
with -ctrl-grab makes it right ctrl button).

Grabbing and ungrabbing the mouse with the control keys works though so
qemu sees the keys.

My system is an icelandic keyboard with qemu version 2.0.0+dfsg-2 from
unstable.

Any ideas if this is a bug or some misconfiguration of my part?

TIA Oli


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: https://lists.debian.org/2014050109...@workman.lan

Tom H

unread,
May 1, 2014, 7:20:01 AM5/1/14
to
On Thu, May 1, 2014 at 5:23 AM, Ólafur Jens Sigurðsson <ojs...@gmail.com> wrote:
>
> Hi, if I try to run images with kvm I cant switch to virtual consoles
> with ctrl-alt-(1/2/3) no matter what key combination I use (default is
> ctrl-alt, starting kvm with -alt-grab makes it ctrl-alt-shift, starting
> with -ctrl-grab makes it right ctrl button).
>
> Grabbing and ungrabbing the mouse with the control keys works though so
> qemu sees the keys.
>
> My system is an icelandic keyboard with qemu version 2.0.0+dfsg-2 from
> unstable.

There may be a less keyboard-intensive way but it's the only way that I know:

"ctrl-alt-2" to go to the qemu "console"

"sendkey alt-fN" where "N" is the number of the tty

"ctrl-alt-1" to return to the VM console on ttyN


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: https://lists.debian.org/CAOdoSxnBjMQS0boFB4GnoW...@mail.gmail.com

Ólafur Jens Sigurðsson

unread,
May 1, 2014, 2:00:02 PM5/1/14
to
On Thu, May 01, 2014 at 07:13:16AM -0400, Tom H wrote:
> On Thu, May 1, 2014 at 5:23 AM, �lafur Jens Sigur�sson <ojs...@gmail.com> wrote:
> There may be a less keyboard-intensive way but it's the only way that I know:
>
> "ctrl-alt-2" to go to the qemu "console"
>
> "sendkey alt-fN" where "N" is the number of the tty
>
> "ctrl-alt-1" to return to the VM console on ttyN
>

Ahh, thats exactly what I can't do, qemu doesnt respond to ctrl-alt-2,
when I said that I couldn't get to the virtual console I mean the qemu
console.

Cheers, Oli


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: https://lists.debian.org/2014050117...@workman.lan

Tom H

unread,
May 1, 2014, 2:20:01 PM5/1/14
to
On Thu, May 1, 2014 at 1:58 PM, Ólafur Jens Sigurðsson <ojs...@gmail.com> wrote:
> On Thu, May 01, 2014 at 07:13:16AM -0400, Tom H wrote:
>> On Thu, May 1, 2014 at 5:23 AM, Ólafur Jens Sigurðsson <ojs...@gmail.com> wrote:
>>
>> There may be a less keyboard-intensive way but it's the only way that I know:
>>
>> "ctrl-alt-2" to go to the qemu "console"
>>
>> "sendkey alt-fN" where "N" is the number of the tty
>>
>> "ctrl-alt-1" to return to the VM console on ttyN
>
> Ahh, thats exactly what I can't do, qemu doesnt respond to ctrl-alt-2,
> when I said that I couldn't get to the virtual console I mean the qemu
> console.

Sorry, misunderstood...

Are you modifying the "mouse grab" keyboard shortcut?

If you add "-ctrl-grab" to your qemu command, can you use
"right-ctrl-" rather than "ctrl-alt-" in the above commands?


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: https://lists.debian.org/CAOdoSxmyp7f1BXjp1xOcOvR9...@mail.gmail.com

Ólafur Jens Sigurðsson

unread,
May 1, 2014, 3:10:03 PM5/1/14
to
> Sorry, misunderstood...

No worries, wasnt clear enough in my original message.

>
> Are you modifying the "mouse grab" keyboard shortcut?
>
> If you add "-ctrl-grab" to your qemu command, can you use
> "right-ctrl-" rather than "ctrl-alt-" in the above commands?
>

I tried that, didnt work. Neither does -alt-grab work. But in all cases
grabbing and ungrabbing the mouse works. So normally the ctrl-alt grabs
ungrabs the mouse but ctrl-alt-2 does not give me the qemu console, with
the -alt-grab option then ctrl-alt-shift grabs/ungrabs the mouse but
ctrl-alt-shift-2 does not give me the qemu console, with -ctrl-grab the
right ctrl grabs/ungrabs the mouse but ctrl-2 does not give me the qemu
console.

Cheers, Oli


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: https://lists.debian.org/2014050119...@workman.lan

Ólafur Jens Sigurðsson

unread,
May 1, 2014, 8:00:02 PM5/1/14
to
Well, it is working now since I did a dist-upgrade today.

Must have been some issue with the version before.

So all is good now :-)

Cheers, Oli


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: https://lists.debian.org/2014050123...@workman.lan

Tom H

unread,
May 2, 2014, 3:30:02 AM5/2/14
to
On Thu, May 1, 2014 at 3:04 PM, Ólafur Jens Sigurðsson <ojs...@gmail.com> wrote:
>
> I tried that, didnt work. Neither does -alt-grab work. But in all cases
> grabbing and ungrabbing the mouse works. So normally the ctrl-alt grabs
> ungrabs the mouse but ctrl-alt-2 does not give me the qemu console, with
> the -alt-grab option then ctrl-alt-shift grabs/ungrabs the mouse but
> ctrl-alt-shift-2 does not give me the qemu console, with -ctrl-grab the
> right ctrl grabs/ungrabs the mouse but ctrl-2 does not give me the qemu
> console.

I was hoping that you were using a shortcut that a colleague had
modified (as has happened to me "I wanted the mouse grab shortcut to
be like VirtualBox)...


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: https://lists.debian.org/CAOdoSwGBCscuVht58EaB5980...@mail.gmail.com
0 new messages