Hi Marc,
Thanks for the reply.
I am using Sun Type 5C keyboard.
As you suggested, I have gone through the sun_KbdEv.c file, and updated the symbol map table in "map[256]" array to include the special keys. The updated file is attached along with the mail [My updations can be found by grep "- Sun:"]. After this modification, the key events are generated for SUN's special key's. I confirmed the same by using the "/usr/openwin/demo/xev" program. But the keysyms are 0x0 with NoSymbol for the SUN's special keys.
As an alternative approach I remapped the Sun special keys using "xmodmap". For this I used "copy-paste" map file, which is attached along with this mail. After execution of "xmodmap" command, the cut, copy, paste and undo keys are working fine. But still the remaining keys (stop, Again, props, Front, Open, Find) are not working though the key symbols are generated. But after the xmodmap command the keysyms are generated for all the special keys. But still the rest of the keys are not working. This seems to be very much starnge to me.
Following are my doubts:
1. Why is that keysyms are zero before xmodmap?
2. Which key symbol table does the sparc use for my type 5c keybaord?
2. After xmodmap why is that only copy, paste, undo and cut keys are working and not other keys?
1. Why is that keysyms are zero before xmodmap?
2. Which key symbol table does the sparc use for my type 5c keybaord?
2. After xmodmap why is that only copy, paste, undo and cut keys are working and not other keys?
It will be great if you can help me in fixing this issue.
Regards
Naveen A.
On 12/24/05, Marc Aurele La France <tsi@xxxxxxxxxxx> wrote:
On Thu, 8 Dec 2005, Alipoor Rahim wrote:
> I am new-bee to Open source and XFree86. I have compiled XFree86 4.5.0 for
> Solaris Sparc. Everything is working fine except m keyboard. I have Sun
> Type5c keyboad. My Keypad (for Home, PgUp, End and Arrow keys) is not
> working when I depress the NUM lock key. But When NUM lock is pressed the
> digits in keypad are working fine.
> Also SUN special keys are not working like Help, Stop, Again, Front, Cut,
> Copy, Paste.
> My Keybaord configuration n XF86config file is as follows:
> Section "InputDevice"
> Identifier "Keyboard0"
> Driver "keyboard"
> EndSection
> When I specifiy the following in my configuration the keyboard dosen't take
> any input.
> Section "InputDevice"
> Identifier "Keyboard0"
> Driver "keyboard"
>
> Option "Xkbrules" "sun"
> Option "XkbModel" "type5"
> EndSection
On Wed, 21 Dec 2005, Naveen Atmakuri wrote:
> I am facing some problems with the special keys in the sun keyboard. It got
> ten special keys such as (copy, paste, undo, again, stop, etc) in it. Could
> any one tell me whether the driver that is there in the Xfree source
> supports these keys or not. If it is, then from where it is getting the key
> symbols.
xc/programs/Xserver/hw/xfree86/Domain.note in part says
"Several loose ends still need to be addressed before these changes can be
considered stable. The bulk of this note is devoted to enumerating what
remains to be done, along with other notes, broken down into various broad
categories.
SPARC SunOS (aka Solaris)
-------------------------
- An overview of this XFree86 port is available in README.Solaris .
- The keyboard map code in hw/xfree86/os-support/sunos/sun_kbdEv.c needs
to be extended to handle more than only the sun5 keyboard I targeted it
for. Even for the sun5, the map is incomplete as several keys are not
mapped. What is there is just barely usable."
If you feel up to it, you can submit a patch that corrects this situation.
Marc.
+----------------------------------+-----------------------------------+
| Marc Aurele La France | work: 1-780-492-9310 |
| Academic Information and | fax: 1-780-492-1729 |
| Communications Technologies | email: tsi@xxxxxxxxxxx |
| 352 General Services Building +-----------------------------------+
| University of Alberta | |
| Edmonton, Alberta | Standard disclaimers apply |
| T6G 2H1 | |
| CANADA | |
+----------------------------------+-----------------------------------+
XFree86 developer and VP. ATI driver and X server internals.
Attachment:
sun_kbdEv.c
Description: Binary data
keycode 145 = SunStop keycode 146 = SunAgain keycode 147 = SunProps keycode 148 = osfUndo keycode 149 = SunFront keycode 150 = osfCopy keycode 151 = SunOpen keycode 152 = osfPaste keycode 153 = SunFind keycode 154 = osfCut