Mad Xsun uses German keyboard layout for US/UNIX keyboard...

Mad Xsun uses German keyboard layout for US/UNIX keyboard...

Post by Roland Main » Mon, 05 Jan 2004 08:50:34



Hi!

----

Solaris 2.8/SPARC with a US/UNIX keyboard, Xsun uses a german keyboard
layout (for example, 'y' and 'z' swapped) _after_ user login (_before_
login, e.g. at dtlogin screen and console (correctly) uses US/UNIX
keyboard layout).
I've ran Richard L. Hamilton's nice keyboard debugging tool (see
http://groups.google.com/groups?selm=vsuaheef8bmm9b%40corp.supernews....)
and got the following output:
-- snip --
% cc xxx.c
"xxx.c", line 127: warning: implicit function declaration: ioctl
"xxx.c", line 157: warning: implicit function declaration: close

translation mode: TR_UNTRANS_EVENT
keyboard type: KB_SUN4 4
keyboard layout: 34
compatibility mode: on
key table file: US_UNIX5.kt
-- snip --

Then I modified "keyboard.map" logged out, restarted dtlogin and
logged-in - no change.

Then I modified "keyboard.map" the hard way, replacing any "*German*"
entries like this:
-- snip --
% gdiff -u keytable.map.original keytable.map
--- keytable.map.original       Mon Nov 24 02:04:45 2003

 4      2       FranceBelg4.kt
 4      3       Canada4.kt
 4      4       Denmark4.kt
-4      5       Germany4.kt
+4      5       US_UNIX5.kt
 4      6       Italy4.kt
 4      7       Netherland4.kt

 4      34      US_UNIX5.kt
 4      35      France5.kt
 4      36      Denmark5.kt
-4      37      Germany5.kt
+4      37      US_UNIX5.kt
 4      38      Italy5.kt
 4      39      Netherland5.kt

 4      81      US_UNIX5_Hobo.kt        # UNIX layout for Hobo keyboard
 4      82      France5_Hobo.kt
 4      83      Denmark5_Hobo.kt
-4      84      Germany5_Hobo.kt
+4      84      US_UNIX5.kt
 4      85      Italy5_Hobo.kt
 4      86      Netherland5_Hobo.kt

 101    34      J3100_x86.kt
 101    35      France_x86.kt
 101    36      Denmark_x86.kt
-101    37      Germany_x86.kt
+101    37      US_UNIX5.kt
 101    38      Italy_x86.kt
 101    39      Netherland_x86.kt

 6      6       Denmark6.kt
 6      7       Finnish6.kt
 6      8       France6.kt
-6      9       Germany6.kt
+6      9       US_UNIX5.kt
 6      14      Italy6.kt
 6      15      Japan6.kt
 6      16      Korea6.kt
-- snip --
... but no change - 'y' and 'z' are still swapped and now keys like "#"
generate beeps instead of any chars (neither wrong nor the correct
ones).

I've been trying to get rid of the problem for several weekends without
success... HEEEEELLLPP...

----

Bye,
Roland

--
  __ .  . __

  \__\/\/__/  MPEG specialist, C&&JAVA&&Sun&&Unix programmer
  /O /==\ O\  TEL +49 2426 901568 FAX +49 2426 901569
 (;O/ \/ \O;)

 
 
 

Mad Xsun uses German keyboard layout for US/UNIX keyboard...

Post by Alan Coopersmit » Mon, 05 Jan 2004 10:17:05



|Solaris 2.8/SPARC with a US/UNIX keyboard, Xsun uses a german keyboard
|layout (for example, 'y' and 'z' swapped) _after_ user login (_before_
|login, e.g. at dtlogin screen and console (correctly) uses US/UNIX
|keyboard layout).

You wouldn't happen to have a $HOME/.keytable or anything in any
dotfiles running xmodmap would you?  Normally, Xsun only checks for
keyboard layout & keytables at startup time.

--
________________________________________________________________________


  Working for, but definitely not speaking for, Sun Microsystems, Inc.

 
 
 

Mad Xsun uses German keyboard layout for US/UNIX keyboard...

Post by Roland Main » Mon, 05 Jan 2004 10:58:04



> |Solaris 2.8/SPARC with a US/UNIX keyboard, Xsun uses a german keyboard
> |layout (for example, 'y' and 'z' swapped) _after_ user login (_before_
> |login, e.g. at dtlogin screen and console (correctly) uses US/UNIX
> |keyboard layout).

> You wouldn't happen to have a $HOME/.keytable or anything in any
> dotfiles running xmodmap would you?

AFAIK no:
-- snip --
% ls -1ad .* | while read i ; do [ -f "$i" ] && cat "$i" ; done | egrep
-v "history" | fgrep xmod
% ls -l .key*
.key*: No such file or directory
% ls -lad .x*
drwxr-x---   6 gisburn  staff        512 Aug 12  2001 .xmame
% ls -lad .X*
-rw-------   1 gisburn  gisburn      529 Jan  4 01:02 .Xauthority
-rw-r-----   1 gisburn  imi          947 Jan  7  2002 .Xdefaults
-rw-r-----   1 gisburn  staff       1098 Sep  4  2003 .XSM-test001
-rw-r-----   1 gisburn  staff       9398 Jan  4 00:01 .XSM-work001
-rw-r-----   1 gisburn  staff       2348 Jan  2 11:54 .XSM-mobile001
-rw-r-----   1 gisburn  staff       2348 Jan  2 09:15 .XSM-mobile002
-- snip --

~/.Xdefaults contains:
-- snip --
consed*background: blue
# dtpad*standAlone: true
dtpad*statusLine: true
#
# enable tear-offs for dtfile
# due the fact that "dtfile*tearOffModel: tear_off_enabled" doesn't work
# well with popups we enable them in a per-menu manner:
Dtfile*fileMenu.tearOffModel:      tear_off_enabled
Dtfile*actionMenu.tearOffModel:    tear_off_enabled
Dtfile*viewMenu.tearOffModel:      tear_off_enabled
Dtfile*helpMenu.tearOffModel:      tear_off_enabled
Dtfile*fileMenuTrash.tearOffModel: tear_off_enabled
Dtfile*helpMenuTrash.tearOffModel: tear_off_enabled
# ensure that all session parameters will be saved...
Dtsession*queryServerSettings: true
# enable action logging
*executionHostLogging: true
# allow xterm/dtterm to be controlled via xvkbd
Xterm*allowSendEvents: true
Dtterm*allowSendEvents: true
#
Sdtimage*tearOffModel: tear_off_enabled
Sdtperfmeter*collectWhenIconized: true
# Fix for Nedit 5.2 visual selection bug
nedit*visualID: Default
# EOF.
-- snip --

Even expliclity enabling/disabling (+kb/-kb) the XKEYBOARD extension
doesn't change the mind of Xsun... still on *... ;-(

Quote:> Normally, Xsun only checks for
> keyboard layout & keytables at startup time.

Is there anything in the Solaris installation procedure (Solaris2.8
06/03) which may save the keyboard type present at installation time for
later usage (original keyboard was a german one, later I replaced it
with the US/UNIX one) ?

----

Bye,
Roland

--
  __ .  . __

  \__\/\/__/  MPEG specialist, C&&JAVA&&Sun&&Unix programmer
  /O /==\ O\  TEL +49 2426 901568 FAX +49 2426 901569
 (;O/ \/ \O;)

 
 
 

Mad Xsun uses German keyboard layout for US/UNIX keyboard...

Post by Thomas Tornblo » Mon, 05 Jan 2004 17:54:39




> > |Solaris 2.8/SPARC with a US/UNIX keyboard, Xsun uses a german keyboard
> > |layout (for example, 'y' and 'z' swapped) _after_ user login (_before_
> > |login, e.g. at dtlogin screen and console (correctly) uses US/UNIX
> > |keyboard layout).
...

> Is there anything in the Solaris installation procedure (Solaris2.8
> 06/03) which may save the keyboard type present at installation time for
> later usage (original keyboard was a german one, later I replaced it
> with the US/UNIX one) ?

No, there is no record saved of the keyboard type.

Try loggin in as another user and see if the problem persists.

You can also as a test try a non-graphical session, as that will use
another set of translation tables (/usr/share/lib/keytables).

I say this is most likely something in the users environment messing
up the keyboard.

You will, AFAIK, use the same tables both at the dtlogin screen and
after login, unless the user has a personal .keytable or mucks with
xmodmap.

Quote:

> ----

> Bye,
> Roland

Cheers,
Thomas
 
 
 

Mad Xsun uses German keyboard layout for US/UNIX keyboard...

Post by Roland Main » Mon, 12 Jan 2004 05:46:00




> > > |Solaris 2.8/SPARC with a US/UNIX keyboard, Xsun uses a german keyboard
> > > |layout (for example, 'y' and 'z' swapped) _after_ user login (_before_
> > > |login, e.g. at dtlogin screen and console (correctly) uses US/UNIX
> > > |keyboard layout).
> ...

> > Is there anything in the Solaris installation procedure (Solaris2.8
> > 06/03) which may save the keyboard type present at installation time for
> > later usage (original keyboard was a german one, later I replaced it
> > with the US/UNIX one) ?

> No, there is no record saved of the keyboard type.

> Try loggin in as another user and see if the problem persists.

> You can also as a test try a non-graphical session, as that will use
> another set of translation tables (/usr/share/lib/keytables).

> I say this is most likely something in the users environment messing
> up the keyboard.

> You will, AFAIK, use the same tables both at the dtlogin screen and
> after login, unless the user has a personal .keytable or mucks with
> xmodmap.

After some debugging I figured-out that there is a third method to
override the default keyboard layout.
I had the following stuff in my "${HOME}/sessions/home/dt.settings":
-- snip --
Dtsession*KeySyms:    
65480,65480,65385,0,0,268828535,268828539,0,0,0,65481,65481,65382,0,0,268828537,268828540,0,0,0,65470,0,0,0,0,
65471,0,0,0,0,65479,0,0,0,0,65472,0,0,0,0,268828432,0,0,0,0,65473,0,0,0,0,268828433,0,0,0,0,65474,0,0,0,0,65406,0,0,0,0,65475,0,0,0,0,0,0,0,0,0,65476,0,0,0,0,65477,0,0,0,0,65478,0,0,0,0,65513,0,0,0,0,
65362,0,0,0,0,65490,65490,65299,65387,0,65491,65491,65377,268828512,0,65492,65492,65300,0,0,65361,0,0,0,0,
65482,65482,268828528,0,0,65483,65483,65381,0,0,65364,0,0,0,0,65363,0,0,0,0,65307,0,0,0,0,49,33,0,0,0,50,34,178,0,0,51,167,179,0,0,52,36,0,0,0,53,37,0,0,0,54,38,0,0,0,55,47,123,0,0,56,40,91,0,0,57,41,93,0,0,48,61,125,0,0,223,63,92,0,0,268828419,268828416,0,0,0,94,176,0,0,0,65288,0,0,0,0,65379,0,0,0,0,268828536,268828538,0,0,0,65494,65494,65455,0,0,65495,65495,65450,0,0,268828534,268828541,0,0,0,
65484,65484,268828529,0,0,65535,65535,65452,0,0,65485,65485,268828530,0,0,65360,0,0,0,0,
65289,0,0,0,0,113,81,64,0,0,87,0,0,0,0,101,69,164,0,0,82,0,0,0,0,84,0,0,0,0,90,0,0,0,0,85,0,0,0,0,73,0,0,0,0,79,0,0,0,0,80,0,0,0,0,220,0,0,0,0,43,42,126,0,0,65535,0,0,0,0,65312,0,0,0,0,65496,65496,65463,
65360,0,65362,65497,65464,0,0,65498,65498,65465,65365,0,65493,65493,65453,0,0,65486,65486,268828531,0,0,65487,65487,268828532,0,0,65367,0,0,0,0,0,0,0,0,0,65507,0,0,0,0,65,0,0,0,0,83,0,0,0,0,68,0,0,0,0,70,0,0,0,0,71,0,0,0,0,72,0,0,0,0,74,0,0,0,0,75,0,0,0,0,76,0,0,0,0,214,0,0,0,0,
196,0,0,0,0,35,39,96,0,0,65293,0,0,0,0,65421,0,0,0,0,65361,65499,65460,0,0,65500,65500,65461,0,0,65363,65501,65462,0,0,65438,65438,65456,0,0,65488,65488,65384,0,0,65365,0,0,0,0,65489,65489,268828533,0,0,65407,0,0,0,0,65505,0,0,0,0,89,0,0,0,0,88,0,0,0,0,67,0,0,0,0,86,0,0,0,0,
66,0,0,0,0,78,0,0,0,0,109,77,181,0,0,44,59,0,0,0,46,58,0,0,0,45,95,0,0,0,65506,0,0,0,0,0,0,0,0,0,65502,
65502,65457,65367,0,65364,65503,65458,0,0,65504,65504,65459,65
366,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,65386,0,0,0,0,65509,0,0,0,0,65511,0,0,0,0,32,0,0,0,0,65512,0,0,0,0,65366,0,0,0,0,60,62,124,0,0
-- snip --

Removing that line cured the problem...

----

Bye,
Roland

P.S:: Any idea which application has set that line ?

--
  __ .  . __

  \__\/\/__/  MPEG specialist, C&&JAVA&&Sun&&Unix programmer
  /O /==\ O\  TEL +49 2426 901568 FAX +49 2426 901569
 (;O/ \/ \O;)

 
 
 

Mad Xsun uses German keyboard layout for US/UNIX keyboard...

Post by Alan Coopersmit » Mon, 12 Jan 2004 15:10:13



|After some debugging I figured-out that there is a third method to
|override the default keyboard layout.
|I had the following stuff in my "${HOME}/sessions/home/dt.settings":
|-- snip --
|Dtsession*KeySyms:    
[...]
|Removing that line cured the problem...
|P.S:: Any idea which application has set that line ?

Apparently dtsession will write that out when saving your session
settings if the "queryServerSettings" resource is true.  I never knew it
did that.

--
________________________________________________________________________


  Working for, but definitely not speaking for, Sun Microsystems, Inc.

 
 
 

1. Ultra5 uses German keyboard layout for US keyboard after dtlogin...

Hi!

----

Ultra5 running Solaris 2.8 with Recommended&Security patch cluster from
July 2003 applied.
The machine uses the correct, US/English keyboard layout in console mode
and in the dtlogin screen (old keyboard was a german one... but that was
assassinated with little help from Pepsi, Inc.) ... but when the user
loggs in he has a german keyboard layout (a horror if someone uses the

anyone have an idea what may cause this problem (there is no file like
~/.key* in ${HOME}) ?

----

Bye,
Roland

--
  __ .  . __

  \__\/\/__/  MPEG specialist, C&&JAVA&&Sun&&Unix programmer
  /O /==\ O\  TEL +49 2426 901568 FAX +49 2426 901569
 (;O/ \/ \O;)

2. Problem with Kde 3.0.8

3. keyboard layout german

4. Unix Certification

5. German Keyboard layout

6. Short hostnames

7. How to get German keyboard layout?

8. FTP Problem

9. German Keyboard Layout iBook

10. NetBSD/vax: German keyboard layout

11. Problem with "swiss german" keyboard layout

12. How to find the keyboard type and keyboard layout?

13. Happy Hacking keyboard + USB KVM == strange keyboard layout