public inbox for cygwin-xfree@sourceware.org
help / color / mirror / Atom feed
* [chris@areti.co.uk: Re: Keyboard auto-repeat defaults when using 'xwin -query <host>']
@ 2003-12-31 15:10 Chris Green
  2003-12-31 21:58 ` Keyboard auto-repeat defaults when using 'xwin -query <host>' Alexander Gottwald
  0 siblings, 1 reply; 7+ messages in thread
From: Chris Green @ 2003-12-31 15:10 UTC (permalink / raw)
  To: cygwin-xfree

Did my reply below get lost in the Christmas rush somewhere?

I still have this autorepeat proplem though using an explicit xset
command in my startup is OK as a workaround.

----- Forwarded message from Chris Green <chris@areti.co.uk> -----

Date: Sat, 27 Dec 2003 14:03:33 +0000
From: Chris Green <chris@areti.co.uk>
To: cygwin-xfree@cygwin.com
Subject: Re: Keyboard auto-repeat defaults when using 'xwin -query <host>'
References: <20031226231321.GA18654@areti.co.uk> <3FECC71A.1090102@msu.edu>

On Fri, Dec 26, 2003 at 06:41:14PM -0500, Harold L Hunt II wrote:
> Chris,
> 
> Chris Green wrote:
> >The problem is that when I connect using cygwin/xfree the auto-repeat
> >is set to silly values, if I do an 'xset -q' I get:-
> >
> >auto repeat:  on    key click persent:   0    LED mask:  0000000000
> >auto repeat delay:  100    repeat rate:  10
> >....
> >
> >That auto repeat delay is much too short.
> 
Thanks for the response and for treating me gently, I'm just feeling
my way in cygwin/X although I have been using Unix/Linux for many
years (since the early 1980s in fact).


> When running locally, I get:
> 
> Keyboard Control:
>   auto repeat:  on    key click percent:  0    LED mask:  00000000
>   auto repeat delay:  500    repeat rate:  31
>   auto repeating keys:  00ffffffdffffbbf
>                         fadfffffffdffdff
>                         ffffffffffffffff
>                         ffffffffffffffff
>   bell percent:  50    bell pitch:  400    bell duration:  100
> 
Just about exactly what I get except for the auto repeat delay values
which I reported above.


> When logged into a remote machine via -query I get exactly the same 
> values.  I do not have an XF86Config file, and I am not passing any of 
> the following command-line parameters to XWin.exe:
> 
> ======================================================================
> The X Keyboard Extension adds the following arguments:
> -kb                    disable the X Keyboard Extension
> +kb                    enable the X Keyboard Extension
> [+-]accessx [ timeout [ timeout_mask [ feedback [ options_mask] ] ] ]
>                        enable/disable accessx key sequences
> -ar1                   set XKB autorepeat delay
> -ar2                   set XKB autorepeat interval
> 
> [...]
> 
> -xf86config
> 	Specify a configuration file.
> ======================================================================
> 
I'm running using a copy of startxwin.bat with the XWIn start line set
to "start XWin -query server".  I have no XF86Config either.


> My /tmp/XWin.log file has the following:
> 
> ======================================================================
> (--) Setting autorepeat to delay=500, rate=31
> (--) winConfigKeyboard - Layout: "00000409" (00000409)
> (EE) No primary keyboard configured
> (==) Using compiletime defaults for keyboard
> Rules = "xfree86" Model = "pc101" Layout = "us" Variant = "(null)" 
> Options = "(null)"
> ======================================================================
> 
> Could you please confirm that you are not passing any additional args to 
> XWin.exe, then send in your XWin.log files from both a local session and 
> from a session when you use -query to connect to a remote machine?  That 
> should help us to investigate the problem.
> 
The remote XWin.log file is:-

    ddxProcessArgument - Initializing default screens
    winInitializeDefaultScreens - w 1600 h 1200
    winInitializeDefaultScreens - Returning
    OsVendorInit - Creating bogus screen 0
    (EE) Unable to locate/open config file
    InitOutput - Error reading config file
    winDetectSupportedEngines - Windows NT/2000/XP
    winDetectSupportedEngines - DirectDraw installed
    winDetectSupportedEngines - Allowing PrimaryDD
    winDetectSupportedEngines - DirectDraw4 installed
    winDetectSupportedEngines - Returning, supported engines 0000001f
    InitOutput - g_iNumScreens: 1 iMaxConsecutiveScreen: 1
    winSetEngine - Using Shadow DirectDraw NonLocking
    winAdjustVideoModeShadowDDNL - Using Windows display depth of 16 bits per pixel
    winCreateBoundingWindowWindowed - User w: 1600 h: 1200
    winCreateBoundingWindowWindowed - Current w: 1600 h: 1200
    winAdjustForAutoHide - Original WorkArea: 33 0 1200 1600
    winAdjustForAutoHide - Adjusted WorkArea: 33 0 1200 1600
    winCreateBoundingWindowWindowed - WindowClient w 1594 h 1137 r 1594 l 0 b 1137 t 0
    winCreateBoundingWindowWindowed -  Returning
    winCreatePrimarySurfaceShadowDDNL - Creating primary surface
    winCreatePrimarySurfaceShadowDDNL - Created primary surface
    winCreatePrimarySurfaceShadowDDNL - Attached clipper to primary surface
    winAllocateFBShadowDDNL - lPitch: 3188
    winAllocateFBShadowDDNL - Created shadow pitch: 3188
    winAllocateFBShadowDDNL - Created shadow stride: 1594
    winFinishScreenInitFB - Masks: 0000f800 000007e0 0000001f
    winInitVisualsShadowDDNL - Masks 0000f800 000007e0 0000001f BPRGB 6 d 16 bpp 16
    winCreateDefColormap - Deferring to fbCreateDefColormap ()
    winFinishScreenInitFB - returning
    winScreenInit - returning
    InitOutput - Returning.
    MIT-SHM extension disabled due to lack of kernel support
    XFree86-Bigfont extension local-client optimization disabled due to lack of shared memory support in the kernel
    (--) Setting autorepeat to delay=500, rate=31
    (--) winConfigKeyboard - Layout: "00000809" (00000809) 
    (--) Using preset keyboard for "English (United Kingdom)" (809), type "4"
    (EE) No primary keyboard configured
    (==) Using compiletime defaults for keyboard
    Rules = "xfree86" Model = "pc105" Layout = "gb" Variant = "(null)" Options = "(null)"
    winPointerWarpCursor - Discarding first warp: 797 568
    winBlockHandler - Releasing pmServerStarted
    winBlockHandler - pthread_mutex_unlock () returned


The local XWin.log file is identical apart from the following extra line:-

    _XSERVTransmkdir: Owner of /tmp/.X11-unix should be set to root

(a local X session has the same problems as a remote one)

I will see what logging (if any) that my commercial XWin-32 does and if
there's anything useful I'll report that too.

-- 
Chris Green (chris@areti.co.uk)

----- End forwarded message -----

Note that my commercial XWin-32 doesn't seem to log anything
useful/relevant to this problem.

-- 
Chris Green (chris@areti.co.uk)


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

* Re: Keyboard auto-repeat defaults when using 'xwin -query <host>'
  2003-12-31 15:10 [chris@areti.co.uk: Re: Keyboard auto-repeat defaults when using 'xwin -query <host>'] Chris Green
@ 2003-12-31 21:58 ` Alexander Gottwald
  0 siblings, 0 replies; 7+ messages in thread
From: Alexander Gottwald @ 2003-12-31 21:58 UTC (permalink / raw)
  To: cygwin-xfree, chris.green

Chris Green wrote:

> I still have this autorepeat proplem though using an explicit xset
> command in my startup is OK as a workaround.

>     (--) Setting autorepeat to delay=500, rate=31
>     (--) winConfigKeyboard - Layout: "00000809" (00000809)
>     (--) Using preset keyboard for "English (United Kingdom)" (809), type "4"

You see, the server sets the autorepeat to useful values. I'm quite sure
there is another program in the startup scripts which sets the autorepeat
settings to the strange value.

Maybe this is not xset but the the windowmanager (kde, gnome) itself. Please
check the settings of the windowmanager if there is a strange autorepeat
setting.

bye
    ago

NP: grauzone.03-12-28
-- 
 Alexander.Gottwald@informatik.tu-chemnitz.de
 http://www.gotti.org           ICQ: 126018723


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

* Re: Keyboard auto-repeat defaults when using 'xwin -query <host>'
  2003-12-27 17:33 ` Alexander Gottwald
@ 2003-12-27 18:23   ` Chris Green
  0 siblings, 0 replies; 7+ messages in thread
From: Chris Green @ 2003-12-27 18:23 UTC (permalink / raw)
  To: cygwin-xfree

On Sat, Dec 27, 2003 at 02:31:58PM +0100, Alexander Gottwald wrote:
> Chris Green wrote:
> 
> > auto repeat delay:  100    repeat rate:  10
> > ....
> >
> > That auto repeat delay is much too short.
> 
> XWin tries to set the repeat rate to something similar to the windows
> repeat rate. This is noted in the configfile.
> 
> Maybe the session scripts of the linux host set the repeat rate to a bogus
> value.
> 
But the problem only occurs when I connect to the remote system using
cygwin's xwin, when I use my commercial X-Win32 X server I get the
default keyboard set-up that I expect.


> You can verify this by starting xwin without the query paramter and run
> "DISPLAY=:0.0 xset -q" from windows. This should print the default setting.
> 
No. locally I appear to get the same problem too.

-- 
Chris Green (chris@areti.co.uk)


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

* Re: Keyboard auto-repeat defaults when using 'xwin -query <host>'
  2003-12-27  6:52 Chris Green
  2003-12-27 11:59 ` Harold L Hunt II
@ 2003-12-27 17:33 ` Alexander Gottwald
  2003-12-27 18:23   ` Chris Green
  1 sibling, 1 reply; 7+ messages in thread
From: Alexander Gottwald @ 2003-12-27 17:33 UTC (permalink / raw)
  To: cygwin-xfree, chris.green

Chris Green wrote:

> I have a odd problem with the keyboard auto-repeat setup.
>
> I have two verions of cygwin/xfree installed on two different win2k
> computers and the problem is the same on both.  One has the latest
> cygwin/xfree (just downloaded) and the other has a version from a
> few months ago.
>
> I have searched through the mailing list archive and see that a
> similar problem has been reported before but it isn't exactly the same
> and I don't see how to fix the problem anyway.
>
> I am connecting from both these win2k systems uisng 'xwin -query
> <server>' to a linux Slackware 9.1 system on my local (home) network.
> I have also got another X server available to me, X-Win32 but I'd
> prefer to use cygwin as it's free and otherwise I keep having to pay
> for upgrades to X-Win32.
>
> The problem is that when I connect using cygwin/xfree the auto-repeat
> is set to silly values, if I do an 'xset -q' I get:-
>
> auto repeat:  on    key click persent:   0    LED mask:  0000000000
> auto repeat delay:  100    repeat rate:  10
> ....
>
> That auto repeat delay is much too short.

XWin tries to set the repeat rate to something similar to the windows
repeat rate. This is noted in the configfile.

Maybe the session scripts of the linux host set the repeat rate to a bogus
value.

You can verify this by starting xwin without the query paramter and run
"DISPLAY=:0.0 xset -q" from windows. This should print the default setting.

bye
    ago

NP: grauzone.03-12-14
-- 
 Alexander.Gottwald@informatik.tu-chemnitz.de
 http://www.gotti.org           ICQ: 126018723


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

* Re: Keyboard auto-repeat defaults when using 'xwin -query <host>'
  2003-12-27 11:59 ` Harold L Hunt II
@ 2003-12-27 17:16   ` Chris Green
  0 siblings, 0 replies; 7+ messages in thread
From: Chris Green @ 2003-12-27 17:16 UTC (permalink / raw)
  To: cygwin-xfree

On Fri, Dec 26, 2003 at 06:41:14PM -0500, Harold L Hunt II wrote:
> Chris,
> 
> Chris Green wrote:
> >The problem is that when I connect using cygwin/xfree the auto-repeat
> >is set to silly values, if I do an 'xset -q' I get:-
> >
> >auto repeat:  on    key click persent:   0    LED mask:  0000000000
> >auto repeat delay:  100    repeat rate:  10
> >....
> >
> >That auto repeat delay is much too short.
> 
Thanks for the response and for treating me gently, I'm just feeling
my way in cygwin/X although I have been using Unix/Linux for many
years (since the early 1980s in fact).


> When running locally, I get:
> 
> Keyboard Control:
>   auto repeat:  on    key click percent:  0    LED mask:  00000000
>   auto repeat delay:  500    repeat rate:  31
>   auto repeating keys:  00ffffffdffffbbf
>                         fadfffffffdffdff
>                         ffffffffffffffff
>                         ffffffffffffffff
>   bell percent:  50    bell pitch:  400    bell duration:  100
> 
Just about exactly what I get except for the auto repeat delay values
which I reported above.


> When logged into a remote machine via -query I get exactly the same 
> values.  I do not have an XF86Config file, and I am not passing any of 
> the following command-line parameters to XWin.exe:
> 
> ======================================================================
> The X Keyboard Extension adds the following arguments:
> -kb                    disable the X Keyboard Extension
> +kb                    enable the X Keyboard Extension
> [+-]accessx [ timeout [ timeout_mask [ feedback [ options_mask] ] ] ]
>                        enable/disable accessx key sequences
> -ar1                   set XKB autorepeat delay
> -ar2                   set XKB autorepeat interval
> 
> [...]
> 
> -xf86config
> 	Specify a configuration file.
> ======================================================================
> 
I'm running using a copy of startxwin.bat with the XWIn start line set
to "start XWin -query server".  I have no XF86Config either.


> My /tmp/XWin.log file has the following:
> 
> ======================================================================
> (--) Setting autorepeat to delay=500, rate=31
> (--) winConfigKeyboard - Layout: "00000409" (00000409)
> (EE) No primary keyboard configured
> (==) Using compiletime defaults for keyboard
> Rules = "xfree86" Model = "pc101" Layout = "us" Variant = "(null)" 
> Options = "(null)"
> ======================================================================
> 
> Could you please confirm that you are not passing any additional args to 
> XWin.exe, then send in your XWin.log files from both a local session and 
> from a session when you use -query to connect to a remote machine?  That 
> should help us to investigate the problem.
> 
The remote XWin.log file is:-

    ddxProcessArgument - Initializing default screens
    winInitializeDefaultScreens - w 1600 h 1200
    winInitializeDefaultScreens - Returning
    OsVendorInit - Creating bogus screen 0
    (EE) Unable to locate/open config file
    InitOutput - Error reading config file
    winDetectSupportedEngines - Windows NT/2000/XP
    winDetectSupportedEngines - DirectDraw installed
    winDetectSupportedEngines - Allowing PrimaryDD
    winDetectSupportedEngines - DirectDraw4 installed
    winDetectSupportedEngines - Returning, supported engines 0000001f
    InitOutput - g_iNumScreens: 1 iMaxConsecutiveScreen: 1
    winSetEngine - Using Shadow DirectDraw NonLocking
    winAdjustVideoModeShadowDDNL - Using Windows display depth of 16 bits per pixel
    winCreateBoundingWindowWindowed - User w: 1600 h: 1200
    winCreateBoundingWindowWindowed - Current w: 1600 h: 1200
    winAdjustForAutoHide - Original WorkArea: 33 0 1200 1600
    winAdjustForAutoHide - Adjusted WorkArea: 33 0 1200 1600
    winCreateBoundingWindowWindowed - WindowClient w 1594 h 1137 r 1594 l 0 b 1137 t 0
    winCreateBoundingWindowWindowed -  Returning
    winCreatePrimarySurfaceShadowDDNL - Creating primary surface
    winCreatePrimarySurfaceShadowDDNL - Created primary surface
    winCreatePrimarySurfaceShadowDDNL - Attached clipper to primary surface
    winAllocateFBShadowDDNL - lPitch: 3188
    winAllocateFBShadowDDNL - Created shadow pitch: 3188
    winAllocateFBShadowDDNL - Created shadow stride: 1594
    winFinishScreenInitFB - Masks: 0000f800 000007e0 0000001f
    winInitVisualsShadowDDNL - Masks 0000f800 000007e0 0000001f BPRGB 6 d 16 bpp 16
    winCreateDefColormap - Deferring to fbCreateDefColormap ()
    winFinishScreenInitFB - returning
    winScreenInit - returning
    InitOutput - Returning.
    MIT-SHM extension disabled due to lack of kernel support
    XFree86-Bigfont extension local-client optimization disabled due to lack of shared memory support in the kernel
    (--) Setting autorepeat to delay=500, rate=31
    (--) winConfigKeyboard - Layout: "00000809" (00000809) 
    (--) Using preset keyboard for "English (United Kingdom)" (809), type "4"
    (EE) No primary keyboard configured
    (==) Using compiletime defaults for keyboard
    Rules = "xfree86" Model = "pc105" Layout = "gb" Variant = "(null)" Options = "(null)"
    winPointerWarpCursor - Discarding first warp: 797 568
    winBlockHandler - Releasing pmServerStarted
    winBlockHandler - pthread_mutex_unlock () returned


The local XWin.log file is identical apart from the following extra line:-

    _XSERVTransmkdir: Owner of /tmp/.X11-unix should be set to root

(a local X session has the same problems as a remote one)

I will see what logging (if any) that my commercial XWin-32 does and if
there's anything useful I'll report that too.

-- 
Chris Green (chris@areti.co.uk)


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

* Re: Keyboard auto-repeat defaults when using 'xwin -query <host>'
  2003-12-27  6:52 Chris Green
@ 2003-12-27 11:59 ` Harold L Hunt II
  2003-12-27 17:16   ` Chris Green
  2003-12-27 17:33 ` Alexander Gottwald
  1 sibling, 1 reply; 7+ messages in thread
From: Harold L Hunt II @ 2003-12-27 11:59 UTC (permalink / raw)
  To: cygwin-xfree

Chris,

Chris Green wrote:
> The problem is that when I connect using cygwin/xfree the auto-repeat
> is set to silly values, if I do an 'xset -q' I get:-
> 
> auto repeat:  on    key click persent:   0    LED mask:  0000000000
> auto repeat delay:  100    repeat rate:  10
> ....
> 
> That auto repeat delay is much too short.

When running locally, I get:

Keyboard Control:
   auto repeat:  on    key click percent:  0    LED mask:  00000000
   auto repeat delay:  500    repeat rate:  31
   auto repeating keys:  00ffffffdffffbbf
                         fadfffffffdffdff
                         ffffffffffffffff
                         ffffffffffffffff
   bell percent:  50    bell pitch:  400    bell duration:  100

When logged into a remote machine via -query I get exactly the same 
values.  I do not have an XF86Config file, and I am not passing any of 
the following command-line parameters to XWin.exe:

======================================================================
The X Keyboard Extension adds the following arguments:
-kb                    disable the X Keyboard Extension
+kb                    enable the X Keyboard Extension
[+-]accessx [ timeout [ timeout_mask [ feedback [ options_mask] ] ] ]
                        enable/disable accessx key sequences
-ar1                   set XKB autorepeat delay
-ar2                   set XKB autorepeat interval

[...]

-xf86config
	Specify a configuration file.
======================================================================

My /tmp/XWin.log file has the following:

======================================================================
(--) Setting autorepeat to delay=500, rate=31
(--) winConfigKeyboard - Layout: "00000409" (00000409)
(EE) No primary keyboard configured
(==) Using compiletime defaults for keyboard
Rules = "xfree86" Model = "pc101" Layout = "us" Variant = "(null)" 
Options = "(null)"
======================================================================

Could you please confirm that you are not passing any additional args to 
XWin.exe, then send in your XWin.log files from both a local session and 
from a session when you use -query to connect to a remote machine?  That 
should help us to investigate the problem.

Harold


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

* Keyboard auto-repeat defaults when using 'xwin -query <host>'
@ 2003-12-27  6:52 Chris Green
  2003-12-27 11:59 ` Harold L Hunt II
  2003-12-27 17:33 ` Alexander Gottwald
  0 siblings, 2 replies; 7+ messages in thread
From: Chris Green @ 2003-12-27  6:52 UTC (permalink / raw)
  To: cygwin-xfree

I have a odd problem with the keyboard auto-repeat setup.

I have two verions of cygwin/xfree installed on two different win2k
computers and the problem is the same on both.  One has the latest
cygwin/xfree (just downloaded) and the other has a version from a
few months ago.

I have searched through the mailing list archive and see that a
similar problem has been reported before but it isn't exactly the same
and I don't see how to fix the problem anyway.

I am connecting from both these win2k systems uisng 'xwin -query
<server>' to a linux Slackware 9.1 system on my local (home) network.
I have also got another X server available to me, X-Win32 but I'd
prefer to use cygwin as it's free and otherwise I keep having to pay
for upgrades to X-Win32.

The problem is that when I connect using cygwin/xfree the auto-repeat
is set to silly values, if I do an 'xset -q' I get:-

auto repeat:  on    key click persent:   0    LED mask:  0000000000
auto repeat delay:  100    repeat rate:  10
....

That auto repeat delay is much too short.



On the other hand when I connect using X-Win32 I get:-

auto repeat:  on    key click persent:   0    LED mask:  0000000000
....

with no 'auto repeat delay' value at all, i.e. X-Win32 doesn't seem to
have attempted to set the auto repeat delay or repeat rate at all and
thus I'm left with the existing keyboard settings which are fine.


It would appear that cygwin/xfree *is* setting the auto repeat delay
and speed whereas X-Win32 isn't.  If it is setting these where are the
default values?  If it isn't then what is going on?

I know I can fix it by using 'xset' but this seems a bit of a bodge,
I'd rather do it properly.

-- 
Chris Green (chris@areti.co.uk)


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

end of thread, other threads:[~2003-12-31 16:03 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-12-31 15:10 [chris@areti.co.uk: Re: Keyboard auto-repeat defaults when using 'xwin -query <host>'] Chris Green
2003-12-31 21:58 ` Keyboard auto-repeat defaults when using 'xwin -query <host>' Alexander Gottwald
  -- strict thread matches above, loose matches on Subject: below --
2003-12-27  6:52 Chris Green
2003-12-27 11:59 ` Harold L Hunt II
2003-12-27 17:16   ` Chris Green
2003-12-27 17:33 ` Alexander Gottwald
2003-12-27 18:23   ` Chris Green

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 read-only IMAP folder(s) and NNTP newsgroup(s).