All of lore.kernel.org
 help / color / mirror / Atom feed
From: "SourceForge.net" <noreply@sourceforge.net>
To: noreply@sourceforge.net
Subject: [ kvm-Bugs-2803653 ] kvm-86: winxp guest caps-lock broken
Date: Tue, 09 Jun 2009 16:57:01 +0000	[thread overview]
Message-ID: <E1ME4dB-0007u5-NE@665xhf1.ch3.sourceforge.com> (raw)

Bugs item #2803653, was opened at 2009-06-09 09:57
Message generated for change (Tracker Item Submitted) made by vinyvat
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=893831&aid=2803653&group_id=180599

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Geoffrey Brimhall (vinyvat)
Assigned to: Nobody/Anonymous (nobody)
Summary: kvm-86: winxp guest caps-lock broken

Initial Comment:
* cpu model: Core i7 920
   * kvm version: kvm 86
   * host kernel version: 2.6.29.4 debian lenny
   * host kernel arch: x86_64
   * guest: winxp 32bit sp3
   * qemu command line: qemu-system-x86_64 -boot c -hda ./winxp.qcow2 -cdrom winxp-sp3.iso -smp 2 -m 1024 -vga std -net nic,model=virtio,vlan=0,macaddr=00:15:60:51:09:BD -net tap,vlan=0,ifname=tap0,script=/etc/kvm/kvm-ifup -soundhw es1370 -localtime -k en-us -name XXXX -usb

with both kvm-86 downloaded and built, and debian's experimental kvm-85 package, caps-lock key with winxp guest is broken.

Debian has a bug ( # 441068 )with a suggested patch fix. When I manually apply just the following snippet from the patch to either debian's kvm-86 or the downloaded kvm-86 source tarball and rebuild the binary, it fixes the bug:

RCS file: /sources/qemu/qemu/sdl.c,v
retrieving revision 1.42
diff -u -r1.42 sdl.c
--- sdl.c	21 Jun 2007 21:08:02 -0000	1.42
+++ sdl.c	28 Aug 2007 04:09:19 -0000
@@ -201,9 +201,9 @@
         break;
     case 0x45: /* num lock */
     case 0x3a: /* caps lock */
-        /* SDL does not send the key up event, so we generate it */
-        kbd_put_keycode(keycode);
-        kbd_put_keycode(keycode | 0x80);
+    	if (ev->type == SDL_KEYUP)
+		kbd_put_keycode(keycode | 0x80);
+	else kbd_put_keycode(keycode);	
         return;
     }
 

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=893831&aid=2803653&group_id=180599

                 reply	other threads:[~2009-06-09 16:56 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E1ME4dB-0007u5-NE@665xhf1.ch3.sourceforge.com \
    --to=noreply@sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.