Hi On Tue, Jun 06, 2006 at 09:34:17PM +0200, Vincent Lefevre wrote: > On 2006-06-06 21:18:02 +0200, Ola Lundqvist wrote: > > With this in mind I'm not really sure if this is a vnc problem or > > a console/X problem. If you do similar things with for example just > > an xterm instead of the vnc client, do the same thing happen then? > > I've started a normal X server (with the fvwm2 window manager), and > from a remote machine, I did a ssh, then "xev -display :0.0". When I > type Ctrl-Meta-F2 to switch to the virtual terminal 2, xev outputs: > > ---------------------------------------------------------------------- > KeyPress event, serial 30, synthetic NO, window 0x2000001, > root 0x44, subw 0x2000002, time 85303, (47,45), root:(808,472), > state 0x0, keycode 37 (keysym 0xffe3, Control_L), same_screen YES, > XLookupString gives 0 bytes: > XmbLookupString gives 0 bytes: > XFilterEvent returns: False > > KeyPress event, serial 30, synthetic NO, window 0x2000001, > root 0x44, subw 0x2000002, time 85323, (47,45), root:(808,472), > state 0x4, keycode 115 (keysym 0xffe7, Meta_L), same_screen YES, > XLookupString gives 0 bytes: > XmbLookupString gives 0 bytes: > XFilterEvent returns: False > > VisibilityNotify event, serial 30, synthetic NO, window 0x2000001, > state VisibilityFullyObscured > ----------------------------------------------------------------------
What you can expect. > Then I can do various things in the virtual terminal (xev outputs > nothing, as expected). After a "chvt 7", xev outputs: > > ---------------------------------------------------------------------- > VisibilityNotify event, serial 30, synthetic NO, window 0x2000001, > state VisibilityUnobscured > > Expose event, serial 30, synthetic NO, window 0x2000001, > (0,0), width 178, height 10, count 3 > > Expose event, serial 30, synthetic NO, window 0x2000001, > (0,10), width 10, height 58, count 2 > > Expose event, serial 30, synthetic NO, window 0x2000001, > (68,10), width 110, height 58, count 1 > > Expose event, serial 30, synthetic NO, window 0x2000001, > (0,68), width 178, height 110, count 0 > > KeyRelease event, serial 30, synthetic NO, window 0x2000001, > root 0x44, subw 0x2000002, time 306663, (47,45), root:(808,472), > state 0xc, keycode 37 (keysym 0xffe3, Control_L), same_screen YES, > XLookupString gives 0 bytes: > > KeyRelease event, serial 30, synthetic NO, window 0x2000001, > root 0x44, subw 0x2000002, time 306663, (47,45), root:(808,472), > state 0x8, keycode 115 (keysym 0xffe7, Meta_L), same_screen YES, > XLookupString gives 0 bytes: > ---------------------------------------------------------------------- > > So, the KeyRelease events are sent *after* returning to the X server. > This seems to be the problem. Can you reproduce it if you do the same > things I did? I can most probably reproduce it now when I know what you are doing, however I do not currently have the time to dig deep into this problem, as I'm soon going to vacation. I do not realize is this a problem? Should it not behave like this? If you do the same, but with vncviewer instead (ssh still to get the events), what do you get then? Is it something else? This is what I expect from the system: * You press Ctrl-Meta-F2 * Ctrl-Meta is marked as set in X * Switch to console * Console check current key status and set it * You do things, which means that you probably need to lift your keys and thus everything should work as expected. * You switch back Ctrl-F7 * X check current key status and thus release Meta but keep Ctrl as you are pressing that currently. If the system behave in some other way it may be correct but quite likely not. It may be so that vnc actually take over all control of the keyboard from X and then it is up to vnc to do this kind of things. So my question is now: * Do this only happen with vnc in fullscreen? * If you do not set it to fullscreen do it happen then? * If you set it to non-fullscreen with window manager, do it happen then? * And the last test if you set it to full screen with window manager do it happen then? I checked the last one and could not reproduce your problem. Regards, // Ola > -- > Vincent Lefèvre <[EMAIL PROTECTED]> - Web: <http://www.vinc17.org/> > 100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/> > Work: CR INRIA - computer arithmetic / SPACES project at LORIA > -- --- Ola Lundqvist systemkonsult --- M Sc in IT Engineering ---- / [EMAIL PROTECTED] Annebergsslingan 37 \ | [EMAIL PROTECTED] 654 65 KARLSTAD | | http://www.opal.dhs.org Mobile: +46 (0)70-332 1551 | \ gpg/f.p.: 7090 A92B 18FE 7994 0C36 4FE4 18A1 B1CF 0FE5 3DD9 / --------------------------------------------------------------- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]