From: "Junko Ichino" Subject: Re: [RFC] keymap support for PVFB Date: Thu, 18 Jan 2007 21:17:46 +0900 Message-ID: <014901c73afa$a9651ec0$d9b2220a@VF05186P> References: <009d01c72a36$405dd400$d9b2220a@VF05186P><87r6u2my8s.fsf@pike.pond.sub.org><019401c7358a$28117460$d9b2220a@VF05186P><87d55lh2k2.fsf@pike.pond.sub.org><038101c739fd$b86f9ce0$d9b2220a@VF05186P><87hcuq3xgy.fsf@pike.pond.sub.org><03dd01c73a1b$5e043310$d9b2220a@VF05186P><874pqq3qer.fsf@pike.pond.sub.org><045901c73a2c$29708340$d9b2220a@VF05186P> <87y7o13hvw.fsf@pike.pond.sub.org> Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Markus Armbruster Cc: Xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Hi Markus, > 1. On the same machine and X display that you use to run the VNC > viewer: use xev to figure out key symbol and scan code. > > 2. Instrument the vncfb backend to display the key symbol received by > on_kbd_event() and the Linux input layer key code passed to the > frontend. > > 3. Instrument the frontend to display the key symbol received from the > backend and stuffed into the input layer (input_handler() in > xenkbd.c). > > 4. In the guest, with the X display on the PVFB: use xev to figure out > key symbol and scan code. I tested. The result is as follows. ("\" When inputting it. ) 1. 2. 3. 4. keycode/keysym keycode/scancode event->key.keycode keycode/keysym 133 / 0x5c 92(0x5c)/ 115 115 176 / 0x0 211 / 0x5c I thought that conversion was something necessary again. Then, I saw atkbd.c again. When I saw atkbd.c before, I thought that I used only atkbd_set2_keycode. However, not only atkbd_set2_keycode but atkbd_unxlate_table was used in practice. Then, I put the same conversion in vncfb.c. I was able to input "\". Thanks, - Junko Ichino