Keyboard mapping problem with sunstudio

I'm a new sunstudio user and am having trouble with a setup issue. When I run sunstudio 11 from a sunray with a Sun keyboard all works fine (except the sunray has far too small of screen and it drive me crazy). When I run with my linux desktop being the x-server then none of the special keys (home, end, arrows, backbspace, enter, etc.) work correctly in sunstudio. All other gui apps I've tried (gedit, gvim, staroffice, web browser, etc.) work fine from my linux/pc keyboard.

Using google I discovered xev. It shows the keycode and keysym that is interpreted for each keyboard stroke. When I compare the output from my linux/pc keyboard vs. the sun keyboard connected to the sunray I see the expected differences in keycode, but the keysym and resulting interpretation (e.g. BACKSPACE) is the same. Yet sunstudio ignores any keystroke except normal alphabet characters that come from my linux/pc keyboard.

When using my linux/pc keyboard I'm in one of two configs (both act the same):

- ssh -X hostname

OR

- Xephyr :1 -screen 1250x975 -query hostname &

Thanks for any help.

cb

[1136 byte] By [cr_bina] at [2007-11-27 3:00:47]
# 1

There is a known problem related to control keys in the netbeans GUI.

http://www.genunix.org/wiki/index.php/Sun_Studio_FAQs#IDE_-_The_Sun_Studio_IDE_ is_ignoring_my_control_keys

It's hard to tell from your message where the programs are

executing from.

Run two X programs next to each other, running on the same machine,

and displaying to the same X server. Verify that one of them can see

ALT keys (for example) and the other one can't. Then you know it's

a problem with the application program, and not due to your keyboard.

The Sun Studio IDE has no idea what physical keyboard you're using.

It only sees the keysyms from the X server.

ChrisQuenellea at 2007-7-12 3:42:14 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 2
Thanks for the link to the FAQ. Based on that I tried starting up Xephyr with the "-kb" option to disable the X keyboard extension and it now works. (not sure what I missing with the -kb option, but I'll find out eventually :-) )cb
cr_bin2a at 2007-7-12 3:42:14 > top of Java-index,Development Tools,Solaris and Linux Development Tools...