All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] "Press Ctrl-Alt to exit grab" is not working on Debian GNU/Linux 3.0 (woody)
@ 2004-11-08 23:29 Karel Gardas
  2004-11-08 23:40 ` Johannes Schindelin
  0 siblings, 1 reply; 9+ messages in thread
From: Karel Gardas @ 2004-11-08 23:29 UTC (permalink / raw)
  To: QEMU Development Mailing List


Hello,

I've already reported it, but perhaps it gets lost in the email traffic.
My issue is that recent sources (and todays too) does not work well with
"ungrabing" on Debian GNU/Linux 3.0. The SDL library is 1.2.4 on this
system and I'm compiling Qemu with GCC 3.4.2. When I press ctrl-alt
together nothing happen, when I try older way ctrl-shift nothing happen,
then only way how to get from grab is to switch to different console (on
the host) and killall qemu. The problem is that something like that worked
well in the time of 0.5.5 release (and post), since in this time I tried
installing Solaris9 into the qemu.

Any idea about how to workaround or fix this issue?

Thanks,

Karel
PS: This is on IBM ThinkPad if this does matter (i.e. a bit different
keyboard than standard pc 101), but when I try xkeycaps, it reports all
press on ctrl, alt, shift well even with pc101 config... you can see exact
keyboard layout by setting IBM/ThinkPad 560 in xkeycaps...
--
Karel Gardas                  kgardas@objectsecurity.com
ObjectSecurity Ltd.           http://www.objectsecurity.com

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [Qemu-devel] "Press Ctrl-Alt to exit grab" is not working on Debian GNU/Linux 3.0 (woody)
  2004-11-08 23:29 [Qemu-devel] "Press Ctrl-Alt to exit grab" is not working on Debian GNU/Linux 3.0 (woody) Karel Gardas
@ 2004-11-08 23:40 ` Johannes Schindelin
  2004-11-09 10:24   ` Karel Gardas
  0 siblings, 1 reply; 9+ messages in thread
From: Johannes Schindelin @ 2004-11-08 23:40 UTC (permalink / raw)
  To: QEMU Development Mailing List

Hi,

On Tue, 9 Nov 2004, Karel Gardas wrote:

> When I press ctrl-alt together nothing happen,

Sorry if this sounds dumb, but I also had that problem until I very
patiently pressed *and* released the keys one by one. In my case it's the
fault of XKB being over eager to do something I don't want it to do.

Hth,
Dscho

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [Qemu-devel] "Press Ctrl-Alt to exit grab" is not working on Debian GNU/Linux 3.0 (woody)
  2004-11-08 23:40 ` Johannes Schindelin
@ 2004-11-09 10:24   ` Karel Gardas
  2004-11-09 10:54     ` Karel Gardas
  2004-11-09 12:11     ` Johannes Schindelin
  0 siblings, 2 replies; 9+ messages in thread
From: Karel Gardas @ 2004-11-09 10:24 UTC (permalink / raw)
  To: QEMU Development Mailing List

On Tue, 9 Nov 2004, Johannes Schindelin wrote:

> Hi,
>
> On Tue, 9 Nov 2004, Karel Gardas wrote:
>
> > When I press ctrl-alt together nothing happen,
>
> Sorry if this sounds dumb, but I also had that problem until I very
> patiently pressed *and* released the keys one by one. In my case it's the
> fault of XKB being over eager to do something I don't want it to do.

Thanks for the hint, but unfortunatelly it is not working here. I have
tried to press and release both keys at once, then press ctrl, press alt,
release alt, release ctrl and press ctrl, press alt, release ctrl release
alt and ditto but with alt first and ctrl second and nothing help.

Do you have any other idea what might be broken?

Thanks,

Karel
--
Karel Gardas                  kgardas@objectsecurity.com
ObjectSecurity Ltd.           http://www.objectsecurity.com

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [Qemu-devel] "Press Ctrl-Alt to exit grab" is not working on Debian GNU/Linux 3.0 (woody)
  2004-11-09 10:24   ` Karel Gardas
@ 2004-11-09 10:54     ` Karel Gardas
  2004-11-09 13:16       ` Jim C. Brown
  2004-11-09 12:11     ` Johannes Schindelin
  1 sibling, 1 reply; 9+ messages in thread
From: Karel Gardas @ 2004-11-09 10:54 UTC (permalink / raw)
  To: QEMU Development Mailing List


Just for the record, when I try to invoke qemu directly in one X session
by using:

xinit /opt/qemu-x86-9/bin/qemu -hda solaris9.img -boot d -cdrom sol-9-u6-x86-v1.iso -fda DU.img -- :2

it seems when I click inside the window it refuses to grab at all, so I
can not navigate with mouse cursor, etc.

Cheers,
Karel

On Tue, 9 Nov 2004, Karel Gardas wrote:

> On Tue, 9 Nov 2004, Johannes Schindelin wrote:
>
> > Hi,
> >
> > On Tue, 9 Nov 2004, Karel Gardas wrote:
> >
> > > When I press ctrl-alt together nothing happen,
> >
> > Sorry if this sounds dumb, but I also had that problem until I very
> > patiently pressed *and* released the keys one by one. In my case it's the
> > fault of XKB being over eager to do something I don't want it to do.
>
> Thanks for the hint, but unfortunatelly it is not working here. I have
> tried to press and release both keys at once, then press ctrl, press alt,
> release alt, release ctrl and press ctrl, press alt, release ctrl release
> alt and ditto but with alt first and ctrl second and nothing help.
>
> Do you have any other idea what might be broken?
>
> Thanks,
>
> Karel
> --
> Karel Gardas                  kgardas@objectsecurity.com
> ObjectSecurity Ltd.           http://www.objectsecurity.com
>
>
>
> _______________________________________________
> Qemu-devel mailing list
> Qemu-devel@nongnu.org
> http://lists.nongnu.org/mailman/listinfo/qemu-devel
>

--
Karel Gardas                  kgardas@objectsecurity.com
ObjectSecurity Ltd.           http://www.objectsecurity.com

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [Qemu-devel] "Press Ctrl-Alt to exit grab" is not working on Debian GNU/Linux 3.0 (woody)
  2004-11-09 10:24   ` Karel Gardas
  2004-11-09 10:54     ` Karel Gardas
@ 2004-11-09 12:11     ` Johannes Schindelin
  2004-11-09 19:37       ` Karel Gardas
  1 sibling, 1 reply; 9+ messages in thread
From: Johannes Schindelin @ 2004-11-09 12:11 UTC (permalink / raw)
  To: QEMU Development Mailing List

Hi,

On Tue, 9 Nov 2004, Karel Gardas wrote:

> Do you have any other idea what might be broken?

I think the only way to find out is to put debug messages at the start of
sdl_process_key in sdl.c which show exactly which key was pressed (or
released).

Hth,
Dscho

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [Qemu-devel] "Press Ctrl-Alt to exit grab" is not working on Debian GNU/Linux 3.0 (woody)
  2004-11-09 10:54     ` Karel Gardas
@ 2004-11-09 13:16       ` Jim C. Brown
  2004-11-09 19:41         ` Karel Gardas
  0 siblings, 1 reply; 9+ messages in thread
From: Jim C. Brown @ 2004-11-09 13:16 UTC (permalink / raw)
  To: qemu-devel

On Tue, Nov 09, 2004 at 11:54:11AM +0100, Karel Gardas wrote:
> 
> Just for the record, when I try to invoke qemu directly in one X session
> by using:
> 
> xinit /opt/qemu-x86-9/bin/qemu -hda solaris9.img -boot d -cdrom sol-9-u6-x86-v1.iso -fda DU.img -- :2
> 
> it seems when I click inside the window it refuses to grab at all, so I
> can not navigate with mouse cursor, etc.
> 
> Cheers,
> Karel
> 

Does the problem (refusing to grab) go away if you use a window manager?

-- 
Infinite complexity begets infinite beauty.
Infinite precision begets infinite perfection.

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [Qemu-devel] "Press Ctrl-Alt to exit grab" is not working on Debian GNU/Linux 3.0 (woody)
  2004-11-09 12:11     ` Johannes Schindelin
@ 2004-11-09 19:37       ` Karel Gardas
  2004-11-09 20:01         ` [Qemu-devel] PATCH to qemu head for disabled sdl Marc E. Fiuczynski
  0 siblings, 1 reply; 9+ messages in thread
From: Karel Gardas @ 2004-11-09 19:37 UTC (permalink / raw)
  To: QEMU Development Mailing List

On Tue, 9 Nov 2004, Johannes Schindelin wrote:

> Hi,
>
> On Tue, 9 Nov 2004, Karel Gardas wrote:
>
> > Do you have any other idea what might be broken?
>
> I think the only way to find out is to put debug messages at the start of
> sdl_process_key in sdl.c which show exactly which key was pressed (or
> released).

Thanks for the idea, debug log looks like:

sdl_process_key
Left Ctrl
sdl_process_key
Left Alt
sdl_process_key
Left Ctrl
sdl_process_key
Left Alt
sdl_process_key
Left Ctrl
sdl_process_key
Left Alt
<etc>

so yes, SDL seems to get these keys ok. Anyway, thanks for your help, but
the issue seems to be somewhere between Qemu and my WM which is
WindowMaker (see next reply).

Thanks,
Karel
--
Karel Gardas                  kgardas@objectsecurity.com
ObjectSecurity Ltd.           http://www.objectsecurity.com

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [Qemu-devel] "Press Ctrl-Alt to exit grab" is not working on Debian GNU/Linux 3.0 (woody)
  2004-11-09 13:16       ` Jim C. Brown
@ 2004-11-09 19:41         ` Karel Gardas
  0 siblings, 0 replies; 9+ messages in thread
From: Karel Gardas @ 2004-11-09 19:41 UTC (permalink / raw)
  To: qemu-devel

On Tue, 9 Nov 2004, Jim C. Brown wrote:

> On Tue, Nov 09, 2004 at 11:54:11AM +0100, Karel Gardas wrote:
> >
> > Just for the record, when I try to invoke qemu directly in one X session
> > by using:
> >
> > xinit /opt/qemu-x86-9/bin/qemu -hda solaris9.img -boot d -cdrom sol-9-u6-x86-v1.iso -fda DU.img -- :2
> >
> > it seems when I click inside the window it refuses to grab at all, so I
> > can not navigate with mouse cursor, etc.
> >
> > Cheers,
> > Karel
> >
>
> Does the problem (refusing to grab) go away if you use a window manager?

Yes, it goes away! Thanks for the hint! Anyway, it was nice to test Qemu
with good old twm and surprisingly I even found that when I use it, Qemu
is ok and correctly grabs/ungrabs. So the problem seems to be somewhere
between Qemu and WindowMaker which I'm using. On the other hand, since I
was also using it in the 0.5.5 time, I'm sure Qemu supported it well that
time. On the other hand I can not guarantee that that time WindowMaker and
todays are still the same, since I'm using Debian stable and from time to
time I update/upgrade it to get all security fixes and I don't remember if
WindowMaker was/was not upgraded during this time period.

Anyway thanks for your help!

Karel
--
Karel Gardas                  kgardas@objectsecurity.com
ObjectSecurity Ltd.           http://www.objectsecurity.com

^ permalink raw reply	[flat|nested] 9+ messages in thread

* [Qemu-devel] PATCH to qemu head for disabled sdl
  2004-11-09 19:37       ` Karel Gardas
@ 2004-11-09 20:01         ` Marc E. Fiuczynski
  0 siblings, 0 replies; 9+ messages in thread
From: Marc E. Fiuczynski @ 2004-11-09 20:01 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 157 bytes --]

Hi,

The attached patch lets you compile qemu cvs HEAD with sdl disabled.  The
fix is trivial and I hope that it is of use to the qemu developers.

Marc





[-- Attachment #2: sdl-audio-off.patch --]
[-- Type: application/octet-stream, Size: 1147 bytes --]

Index: Makefile.target
===================================================================
RCS file: /cvsroot/qemu/qemu/Makefile.target,v
retrieving revision 1.44
diff -d -u -r1.44 Makefile.target
--- Makefile.target	7 Nov 2004 18:04:02 -0000	1.44
+++ Makefile.target	9 Nov 2004 19:55:48 -0000
@@ -278,7 +278,12 @@
 VL_OBJS+=block-cow.o block-qcow.o aes.o block-vmdk.o block-cloop.o
 
 SOUND_HW = sb16.o
-AUDIODRV = audio.o ossaudio.o sdlaudio.o wavaudio.o
+AUDIODRV = audio.o ossaudio.o wavaudio.o
+ifdef CONFIG_SDL
+AUDIODRV += sdlaudio.o
+audio.o: DEFINES := -DUSE_SDL_AUDIO $(DEFINES)
+endif
+
 
 ifeq ($(USE_ADLIB),1)
 SOUND_HW += fmopl.o adlib.o
Index: audio/audio.c
===================================================================
RCS file: /cvsroot/qemu/qemu/audio/audio.c,v
retrieving revision 1.1
diff -d -u -r1.1 audio.c
--- audio/audio.c	7 Nov 2004 18:04:02 -0000	1.1
+++ audio/audio.c	9 Nov 2004 19:55:48 -0000
@@ -28,7 +28,6 @@
 #define AUDIO_CAP "audio"
 #include "audio/audio.h"
 
-#define USE_SDL_AUDIO
 #define USE_WAV_AUDIO
 
 #if defined __linux__ || (defined _BSD && !defined __APPLE__)

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2004-11-09 20:10 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-11-08 23:29 [Qemu-devel] "Press Ctrl-Alt to exit grab" is not working on Debian GNU/Linux 3.0 (woody) Karel Gardas
2004-11-08 23:40 ` Johannes Schindelin
2004-11-09 10:24   ` Karel Gardas
2004-11-09 10:54     ` Karel Gardas
2004-11-09 13:16       ` Jim C. Brown
2004-11-09 19:41         ` Karel Gardas
2004-11-09 12:11     ` Johannes Schindelin
2004-11-09 19:37       ` Karel Gardas
2004-11-09 20:01         ` [Qemu-devel] PATCH to qemu head for disabled sdl Marc E. Fiuczynski

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.