Skip to contentSkip to conversation

AltGr keystrokes

Qemu-devel Gaetano Sferra 4 participants 8 messages Jul 26, 2006 – Aug 1, 2006

lore
Share & tools
lore
#0 lore raw

Hello,
I'm using Qemu 0.8.2 on Microsoft Windows XP and the AltGr key doesn't seem to work at all using windib (using directx support it works but the keyboard mappig isn't correct, even forcing a keymap via -k option). I tried to press AltGr+<everything> but no output is produced. This is a real matter because it's impossible to print out (in a easy way) character as: @,#,[ and ],{ and } and €. There are workarounds?

Thank you,
--
Gaedevel

_________________________________________________________________
Personalizza MSN Messenger con sfondi e fotografie! http://spaces.msn.com/morespaces.aspx

#1 lore raw

So nobody have ideas on how to solve the keyboard problem?
I'm looking and seeking into the user's forum, there are similar questions but there aren't replies...

Quoted 46 lines

From: "Gaetano Sferra" <[email protected]>
Reply-To: [email protected]
To: [email protected]
Subject: [Qemu-devel] AltGr keystrokes
Date: Wed, 26 Jul 2006 13:24:57 +0200
MIME-Version: 1.0
X-Originating-IP: [217.59.38.133]
X-Originating-Email: [[email protected]]
X-Sender: [email protected]
Received: from lists.gnu.org ([199.232.76.165]) by bay0-pamc1-f6.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.2444); Wed, 26 Jul 2006 04:25:51 -0700
Received: from localhost ([127.0.0.1] helo=lists.gnu.org)by lists.gnu.org with esmtp (Exim 4.43)id 1G5hWQ-00042U-WBfor [email protected]; Wed, 26 Jul 2006 07:25:51 -0400
Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43)id 1G5hVk-00041v-5Lfor [email protected]; Wed, 26 Jul 2006 07:25:08 -0400
Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43)id 1G5hVh-00040t-Bufor [email protected]; Wed, 26 Jul 2006 07:25:07 -0400
Received: from [199.232.76.173] (helo=monty-python.gnu.org)by lists.gnu.org with esmtp (Exim 4.43) id 1G5hVh-00040j-47for [email protected]; Wed, 26 Jul 2006 07:25:05 -0400
Received: from [65.54.246.236] (helo=bay0-omc3-s36.bay0.hotmail.com)by monty-python.gnu.org with esmtp (Exim 4.52) id 1G5hXD-0000FV-GLfor [email protected]; Wed, 26 Jul 2006 07:26:39 -0400
Received: from hotmail.com ([65.54.186.70]) by bay0-omc3-s36.bay0.hotmail.comwith Microsoft SMTPSVC(6.0.3790.1830); Wed, 26 Jul 2006 04:25:01 -0700
Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC;Wed, 26 Jul 2006 04:25:01 -0700
Received: from 69.45.64.21 by by16fd.bay16.hotmail.msn.com with HTTP;Wed, 26 Jul 2006 11:24:57 GMT
X-Message-Info: LsUYwwHHNt3660MmjhEvYg2f34OAemlK+3Wz9fWrJ/U=
X-OriginalArrivalTime: 26 Jul 2006 11:25:01.0062 (UTC)FILETIME=[22261A60:01C6B0A6]
X-BeenThere: [email protected]
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: qemu-devel.nongnu.org
List-Unsubscribe: <http://lists.nongnu.org/mailman/listinfo/qemu-devel>,<mailto:[email protected]?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/qemu-devel>
List-Post: <mailto:[email protected]>
List-Help: <mailto:[email protected]?subject=help>
List-Subscribe: <http://lists.nongnu.org/mailman/listinfo/qemu-devel>,<mailto:[email protected]?subject=subscribe>
Errors-To: [email protected]
Return-Path: [email protected]

Hello,
I'm using Qemu 0.8.2 on Microsoft Windows XP and the AltGr key doesn't seem to work at all using windib (using directx support it works but the keyboard mappig isn't correct, even forcing a keymap via -k option). I tried to press AltGr+<everything> but no output is produced. This is a real matter because it's impossible to print out (in a easy way) character as:
@,#,[ and ],{ and } and €.
There are workarounds?

Thank you,
--
Gaedevel

_________________________________________________________________
Personalizza MSN Messenger con sfondi e fotografie! http://spaces.msn.com/morespaces.aspx

Quoted 4 lines

_______________________________________________
Qemu-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/qemu-devel

_________________________________________________________________
Personalizza MSN Messenger con sfondi e fotografie! http://spaces.msn.com/morespaces.aspx

#2 lore raw
Quoted 3 lines · Gaetano Sferra

So nobody have ideas on how to solve the keyboard problem? I'm looking and seeking into the user's forum, there are similar questions but there aren't replies...

Hi,

I am having sort of similar problems with the keymapping. Rather than coming up with an answer, I like to add my own remarks, maybe they are related:

First, I want to make it clear I don't have knowledge of the keyboard mapping process in VNC client/server communication. If I write nonsense here, please correct me...

When I run qemu-0.8.2 with the VNC server enabled and then connecting to my QEMU's VNC server on a PC with a dutch keyboard layout, there is no way I can get the keyboard to function 100% correct.

Normally, when I use a vnc client to connect to any "normal" VNC server like the one from RealVNC, it does not matter if I run the vncclient with a dutch or a US keyboard, the keypresses are correctly translated.

But with the QEMU's built-in VNC server (as opposed to the now-gone RFB patch from Johannes Schindelin which worked fine for me) some keys work, some don't give any output at all, and others print incorrect characters. This is when I add "-k nl". Things get a little better when I also "loadkeys nl.map" on the QEMU guest but still the result is not at all 100% OK.

Without the "-k" option (thus reverting to the default en-us) I get other combinations of keys that work/print incorrect chars/don't output at all, still not 100% correct.

Are other people with international keyboards having these issues as well? What is the difference with the old RFB patch that the currently built-in VNC server handles differently?

Eric

Signature · 1 line
Eric Hameleers
#3 lore raw

Hi,

Quoted 2 lines · Eric Hameleers

What is the difference with the old RFB patch that the currently built-in VNC server handles differently?

The old RFB patch uses the infrastructure of LibVNCServer, which has been tried and tested.

Unfortunately, Anthony decided to fix the issue he had not by submitting a patch to LibVNCServer, but by completely rewriting the functionality. So, the old RFB patch and the built-in VNC server share only the goal.

Ciao,
Dscho

#4 lore raw
Quoted 12 lines · Johannes Schindelin

Hi,

Quoted 2 lines · Eric Hameleers

What is the difference with the old RFB patch that the currently built-in VNC server handles differently?

The old RFB patch uses the infrastructure of LibVNCServer, which has been tried and tested.

Quoted 7 lines

Unfortunately, Anthony decided to fix the issue he had not by submitting a patch to LibVNCServer, but by completely rewriting the functionality. So, the old RFB patch and the built-in VNC server share only the goal.

Ciao,
Dscho

Hi Johannes

Yes I know, and although the libvncserver based patch was cumbersome over high-latency connections it was still useful (and I was able to access the monitor). With Anthony's re-implementation I get great improvements regarding the screen refresh, but I have lost access to the monitor (so I have to use a separate telnet connection now) and most importantly, I cannot use my keyboard reliably which makes this implementation effectively useless to me.
I guess I will have to look into the keymaps myself, but on first quick inspection I did not find anything out of order in the "nl" keymap.

Eric

Signature · 5 lines
Eric Hameleers
RedHat Certified Engineer #808003505607683
Linux Knowledge Center, IBM Global Services
Email:  [email protected]
Jabber: [email protected]
#5 lore raw
In reply to Eric Hameleers
Quoted 3 lines · Eric Hameleers

When I run qemu-0.8.2 with the VNC server enabled and then connecting to my QEMU's VNC server on a PC with a dutch keyboard layout, there is no way I can get the keyboard to function 100% correct.

Which keys aren't working for you? If you could possibly annotate vnc.c:do_key_event() to print out sym and keycode that would be even more helpful.

Regards,

Anthony Liguori

Quoted 20 lines

Normally, when I use a vnc client to connect to any "normal" VNC server like the one from RealVNC, it does not matter if I run the vncclient with a dutch or a US keyboard, the keypresses are correctly translated.

But with the QEMU's built-in VNC server (as opposed to the now-gone RFB patch from Johannes Schindelin which worked fine for me) some keys work, some don't give any output at all, and others print incorrect characters. This is when I add "-k nl". Things get a little better when I also "loadkeys nl.map" on the QEMU guest but still the result is not at all 100% OK.

Without the "-k" option (thus reverting to the default en-us) I get other combinations of keys that work/print incorrect chars/don't output at all, still not 100% correct.

Are other people with international keyboards having these issues as well? What is the difference with the old RFB patch that the currently built-in VNC server handles differently?

Eric

#6 lore raw
In reply to Eric Hameleers
Quoted 3 lines · Eric Hameleers

Are other people with international keyboards having these issues as well? What is the difference with the old RFB patch that the currently built-in VNC server handles differently?

The old VNC patch uses LibVNCServer which is a derivative of the old Xvnc codebase. Details of why libvncserver didn't meet my goals have been addressed in previous threads but suffice to say, I felt that starting from scratch was necessary.

The VNC protocol does a rather poor job in defining what keycodes correspond to what key events. It roughly says to follow the X keysyms but warns that many clients do weird things and does not actually document all of those things.

Additionally, there's also translation to QEMU's keycodes. Fortunately, these things are easy to fix once we know what codes are being sent by the client. Unfortunately, I don't have an nl keyboard lying around so I need some help figuring that out :-)

Regards,

Anthony Liguori

Quoted 1 line

Eric

#7 lore raw

Wait!
This doesn't reply to my question, I never talked about VNC servers or clients.
If you want replies about a similar but quite different matter, post a new topic, don't "takeover" the mine.

Thank you,
--
Gaetano Sferra

_________________________________________________________________
Personalizza MSN Messenger con sfondi e fotografie! http://spaces.msn.com/morespaces.aspx