* [Qemu-devel] updated -sdl-modifiers patch @ 2004-10-08 20:03 Johannes Martin 2004-11-09 7:28 ` Paul Jakma 0 siblings, 1 reply; 5+ messages in thread From: Johannes Martin @ 2004-10-08 20:03 UTC (permalink / raw) To: qemu-devel [-- Attachment #1: Type: TEXT/PLAIN, Size: 656 bytes --] Hi, I've updated my sdl-modifiers patch to work with qemu cvs. Some of my changes have been incorporated into qemu cvs (sticky control key), so they are no longer part of my patch. When you use the -sdl-modifiers command line switch of qemu after applying my patch, qemu will take care of handling CAPS and NUM lock for the OS in a way that's consistent with the host OS behaviour of modifier keys. So host and guest won't disagree on whether caps lock is up or down any more. In some cases this could lead to a crash (happened to me in OS/2). The old version of this patch is on dad-answers already and should be updated (SDL_keyboard_fix). Johannes [-- Attachment #2: Type: APPLICATION/octet-stream, Size: 2507 bytes --] ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] updated -sdl-modifiers patch 2004-10-08 20:03 [Qemu-devel] updated -sdl-modifiers patch Johannes Martin @ 2004-11-09 7:28 ` Paul Jakma 2004-11-09 7:51 ` Paul Jakma 0 siblings, 1 reply; 5+ messages in thread From: Paul Jakma @ 2004-11-09 7:28 UTC (permalink / raw) To: qemu-devel On Fri, 8 Oct 2004, Johannes Martin wrote: > Hi, > > I've updated my sdl-modifiers patch to work with qemu cvs. Some of > my changes have been incorporated into qemu cvs (sticky control > key), so they are no longer part of my patch. > > When you use the -sdl-modifiers command line switch of qemu after > applying my patch, qemu will take care of handling CAPS and NUM > lock for the OS in a way that's consistent with the host OS > behaviour of modifier keys. So host and guest won't disagree on > whether caps lock is up or down any more. In some cases this could > lead to a crash (happened to me in OS/2). This seems to work for me. Or at least, no immediate problems. I have XKB ctrl:swapcaps option set on my host, and the guest OS often would get a stuck caps-lock (caps-lock in guest, ctrl in host). With 0.6.0 I could usually clear it with enough pressing of ctrl/shift/caps-lock (see below), but I could not seem to clear it with CVS from earlier this week + this patch + IDE patches, meaning i would have to hold 'Caps Lock' (unstick, ctrl in host, caps-lock in guest) to get lower case. I've tried to break it with this patch, grabbing and ungrabbing SDL, exiting it with sticky key (ie caps-lock LED indicated) on, setting it off outside of the qemu window and then entering it again, etc.. and I havnt yet gotten it confused. So looks hopeful. Another note: The guest OS doesnt seem to get the translated (ie swapped caps/ctrl) codes, it thinks caps-lock is still caps-lock and ctrl ctrl - with one difference, the "stickyness" *is* reversed: ie when i press 'Caps Lock' /marked/ key, in the host it is a non-sticky ctrl, in the guest it behaves as a non-sticky (I need to keep it held down, ie its a bit like a shift key) caps-lock, similarly if i press the key marked 'control', i get a sticky caps-lock on the host (and caps-lock LED goes on) and the guest OS sees a sticky ctrl key. I dont know if it would be possible to be able to take XKB ctrl:swapcaps into account, it would be /really/ nice if we could. > Johannes regards, -- Paul Jakma paul@clubi.ie paul@jakma.org Key ID: 64A2FF6A Fortune: "Why are we importing all these highbrow plays like `Amadeus'? I could have told you Mozart was a jerk for nothing." -- Ian Shoales ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] updated -sdl-modifiers patch 2004-11-09 7:28 ` Paul Jakma @ 2004-11-09 7:51 ` Paul Jakma 2004-11-10 1:25 ` Paul Jakma 0 siblings, 1 reply; 5+ messages in thread From: Paul Jakma @ 2004-11-09 7:51 UTC (permalink / raw) To: qemu-devel On Tue, 9 Nov 2004, Paul Jakma wrote: > This seems to work for me. Spoke too soon. I just got it to 'stick' wrong. Ie caps-lock held, though caps-lock was off. The old "press shift, then press control" trick worked though. regards, -- Paul Jakma paul@clubi.ie paul@jakma.org Key ID: 64A2FF6A Fortune: Many are cold, but few are frozen. ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] updated -sdl-modifiers patch 2004-11-09 7:51 ` Paul Jakma @ 2004-11-10 1:25 ` Paul Jakma 2004-11-10 20:23 ` Paul Jakma 0 siblings, 1 reply; 5+ messages in thread From: Paul Jakma @ 2004-11-10 1:25 UTC (permalink / raw) To: qemu-devel On Tue, 9 Nov 2004, Paul Jakma wrote: > Spoke too soon. I just got it to 'stick' wrong. Ie caps-lock held, > though caps-lock was off. The old "press shift, then press control" > trick worked though. Disregard: I forgot that the patch adds a command line argument, without which it is not enabled. Will report again once I've used it with the cl arg a while. > regards, > -- Paul Jakma paul@clubi.ie paul@jakma.org Key ID: 64A2FF6A Fortune: It isn't easy being the parent of a six-year-old. However, it's a pretty small price to pay for having somebody around the house who understands computers. ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [Qemu-devel] updated -sdl-modifiers patch 2004-11-10 1:25 ` Paul Jakma @ 2004-11-10 20:23 ` Paul Jakma 0 siblings, 0 replies; 5+ messages in thread From: Paul Jakma @ 2004-11-10 20:23 UTC (permalink / raw) To: qemu-devel On Wed, 10 Nov 2004, Paul Jakma wrote: > On Tue, 9 Nov 2004, Paul Jakma wrote: > >> Spoke too soon. I just got it to 'stick' wrong. Ie caps-lock held, though >> caps-lock was off. The old "press shift, then press control" trick worked >> though. > > Disregard: I forgot that the patch adds a command line argument, without > which it is not enabled. > > Will report again once I've used it with the cl arg a while. With -sdl-mod I've not had an occurance of stuck keys all day long, running 2 instances of Solaris on (2) Qemus. Now if I could get a fix for XKB ctrl:swapcaps going wrong, then Qemu would be nearly perfect. ;) regards, -- Paul Jakma paul@clubi.ie paul@jakma.org Key ID: 64A2FF6A Fortune: Is a person who blows up banks an econoclast? ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2004-11-10 20:34 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2004-10-08 20:03 [Qemu-devel] updated -sdl-modifiers patch Johannes Martin 2004-11-09 7:28 ` Paul Jakma 2004-11-09 7:51 ` Paul Jakma 2004-11-10 1:25 ` Paul Jakma 2004-11-10 20:23 ` Paul Jakma
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).