Finnish KB on Fujitsu-Siemens Sparc

How to configure Finnish(scandinavian) KB layoutafter installing Solaris 10 to Fujitsu-Siemens ' PrimePower250 Sparc hw ?rgds,Rane
[166 byte] By [Rane] at [2007-11-25 22:52:21]
# 1
Hmm...
Rane at 2007-7-5 17:07:48 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 2

Is this an USB keyboard?

Looking at set_keyboard_layout source...

<a href="http://cvs.opensolaris.org/source/xref/usr/src/cmd/loadkeys/set_keyboard_ layout" target="_blank"> http://cvs.opensolaris.org/source/xref/usr/src/cmd/loadkeys/ set_keyboard_layout</a>

... I see "Finnish" layout support with layout code "7". But that source is

for current Solaris Express releases; "Finnish" is missing on Solaris 10 GA

+ current patches in file /usr/lib/set_keyboard_layout.

Anyway, you may want to try a

/usr/bin/loadkeys -s 7

jkeil at 2007-7-5 17:07:48 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 3

Bug 6339418 mentions that "Swedish layout" could be used as a

replacement, it appears "to be absolutely similar to Finnish layout".

<a href="http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=6339418" target="_blank"> http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=6 339418</a>

I'm not sure what that means. Set the dip switches on the keyboard to

layout 26 - hex 0x1a, binary 011010 ?

jkeil at 2007-7-5 17:07:48 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 4

Hi,

PS/2 Kb and PS/2 mouse connected to USB port

using USB to PS/2 Adapter.

-

Issuing that command

/usb/bin/loadkeys -s 7 and re-logging root

user scandinavian KB is loaded, but not for other, normal,

users ?. I've put that command to /etc/profile and

users' personal profile but it works only for root .

I've also tested different shells for normal users,

where to set that 'loadkeys -s 7' command to be

effect for all users ?

rgds,

Rane

Rane at 2007-7-5 17:07:48 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 5
For me too, 'Set the dip switches on the keyboard...',is strange, so who knows how to do that ?rgds,Rane
Rane at 2007-7-5 17:07:48 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 6

<table border="0" align="center" width="90%" cellpadding="3" cellspacing="1"><tr><td class="SmallText"><b>Rane wrote on Tue, 25 October 2005 14:40</b></td></tr><tr><td class="quote">

For me too, 'Set the dip switches on the keyboard...',

is strange, so who knows how to do that ?

</td></tr></table>

That'll probably only work with original Sun keyboard hardware.

The Sun keyboards are self-identifying, so that the OS knows which

keyboard layout must be use with the keyboard. They have a set of

dip switches to configure the keyboard's country layout code.

I believe Mac USB keyboards also implement the USB command to query

the keyboard layout.

With german layout Cherry and Logitech PC USB keyboards, there was

no known USB layout code. The same could be true for your USB->PS/2

keyboard adapter device.

jkeil at 2007-7-5 17:07:48 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 7

<table border="0" align="center" width="90%" cellpadding="3" cellspacing="1"><tr><td class="SmallText"><b>Rane wrote on Tue, 25 October 2005 14:34</b></td></tr><tr><td class="quote">

PS/2 Kb and PS/2 mouse connected to USB port

using USB to PS/2 Adapter.

</td></tr></table>

OK.

<table border="0" align="center" width="90%" cellpadding="3" cellspacing="1"><tr><td class="SmallText"><b>Quote:</b></td></tr><tr>& lt;td class="quote">

Issuing that command

/usb/bin/loadkeys -s 7 and re-logging root

user scandinavian KB is loaded, but not for other, normal,

users ?

</td></tr></table>

That is, for user "root" the workaround is OK?

<table border="0" align="center" width="90%" cellpadding="3" cellspacing="1"><tr><td class="SmallText"><b>Quote:</b></td></tr><tr>& lt;td class="quote">

I've put that command to /etc/profile and

users' personal profile but it works only for root .

I've also tested different shells for normal users,

where to set that 'loadkeys -s 7' command to be

effect for all users ?

</td></tr></table>

Solaris x86 has the problem with non-self-identifying keyboards, and

solves this by running "loadkeys -s LAYOUTCODE" early during boot.

On Solaris x86, there is a /etc/rcS.d/S33keymap.sh script that is run early

during boot, and it starts /usr/lib/set_keyboard_layout (see my previous

post with the cvs.opensolaris.org link), which sets the keyboards layout

code from an eeprom configuration setting.

I guess you could create your own /etc/rcS.d/S33keymap script

that runs 'loadkeys -s 7' during boot? Although Solaris 10 now uses

smf(5) to run services at boot time, the old legacy init scripts should

continue to work.

OTOH, I've just checked on a S10 sparc box, and there already is a

smf svc:/system/keymap:default service that runs the script

/lib/svc/method/keymap during boot.You can probably also solve the

problem by adding 'loadkeys -s 7' to /lib/svc/method/keymap - near the

code that tries to run /usr/lib/set_keyboard_layout (which is missing on

the sparc platform).

jkeil at 2007-7-5 17:07:48 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 8

****************

OTOH, I've just checked on a S10 sparc box, and there already is a

smf svc:/system/keymap:default service that runs the script

/lib/svc/method/keymap during boot.You can probably also solve the

problem by adding 'loadkeys -s 7' to /lib/svc/method/keymap - near the

code that tries to run /usr/lib/set_keyboard_layout (which is missing on

the sparc platform).[/quote]

*****************

Ok, that above fixes the problem totally when user root

is used, either from console or via telnet, ssh, etc.,

but for standard users scandinavian KB is ok too, except

those real scandinavian charcters, /,/ and / are

not echoed properly !

/ displays v

/ displays d

/ displays e

It is good now, but it would be nice to how to fix that also!

rgds,

Rane

Rane at 2007-7-5 17:07:48 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 9

<table border="0" align="center" width="90%" cellpadding="3" cellspacing="1"><tr><td class="SmallText"><b>Rane wrote on Fri, 28 October 2005 09:41</b></td></tr><tr><td class="quote">

for standard users scandinavian KB is ok too, except

those real scandinavian charcters, /,/ and / are

not echoed properly !

/ displays v

/ displays d

/ displays e

</td></tr></table>

Bit 8 appears to be stripped by some program.

I can reproduce such a behaviour easily by setting my gnome terminal

to 7-bit and istrip using "stty cs7 istrip".

With 8-bit terminal input using "stty cs8 -istrip" it works OK.

<div class="pre"><pre>% /bin/sh$ stty cs8 -istrip$ : not found$ stty cs7 istrip$ dv|DV\eE<<<< I typed the same  string hereDVeEdv: not found:not found</pre></div>

jkeil at 2007-7-5 17:07:48 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...
# 10

<table border="0" align="center" width="90%" cellpadding="3" cellspacing="1"><tr><td class="SmallText"><b>j.keil wrote on Fri, 28 October 2005 13:41</b></td></tr><tr><td class="quote">

<table border="0" align="center" width="90%" cellpadding="3" cellspacing="1"><tr><td class="SmallText"><b>Rane wrote on Fri, 28 October 2005 09:41</b></td></tr><tr><td class="quote">

for standard users scandinavian KB is ok too, except

those real scandinavian charcters, /,/ and / are

not echoed properly !

/ displays v

/ displays d

/ displays e

</td></tr></table>

Bit 8 appears to be stripped by some program.

I can reproduce such a behaviour easily by setting my gnome terminal

to 7-bit and istrip using "stty cs7 istrip".

With 8-bit terminal input using "stty cs8 -istrip" it works OK.

<div class="pre"><pre>% /bin/sh$ stty cs8 -istrip$ : not found$ stty cs7 istrip$ dv|DV\eE<<<< I typed the same  string hereDVeEdv: not found:not found</pre></div>

</td></tr></table>

***********

Well, anyway one solution seems to be that after

adding that 'loadkeys -s 7' command to 'keymap' file

define Bash shell for users and Scandi KB is in use totally.

rgds,

Rane

Rane at 2007-7-5 17:07:48 > top of Java-index,Solaris Operating System,Solaris Essentials - General Technical Questions...