[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xfree86
Subject:    [XFree86] Re: "support for special keys in sun keyboard" and "Keyboard problem"
From:       Naveen Atmakuri <naveen.maillist () gmail ! com>
Date:       2005-12-27 11:21:11
Message-ID: 764af1890512270309n1c40a186x4647bfec417e6e2c () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


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. Bu=
t
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 workin=
g
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@ualberta.ca> wrote:
>
> On Thu, 8 Dec 2005, Alipoor Rahim wrote:
>
> > I am new-bee to Open source and XFree86. I have compiled XFree86 4.5.0f=
or
> > 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 b=
e
> considered stable.  The bulk of this note is devoted to enumerating what
> remains to be done, along with other notes, broken down into various broa=
d
> 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@ualberta.ca          |
> |  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 #5 (text/html)]

<div><font face="Arial" color="#0000ff" size="2">Hi Marc,</font></div>
<div>&nbsp;</div>
<div>Thanks for the reply.</div>
<div>&nbsp;</div>
<div>I am using Sun Type 5C keyboard.</div>
<div>&nbsp;</div>
<div>As you suggested, I have gone through the sun_KbdEv.c file, and updated the \
symbol map table in &quot;map[256]&quot; array to include the special keys. The \
updated file is attached along with the mail [My updations can be found by grep \
&quot;- Sun:&quot;]. After this modification, the key events are generated for SUN's \
special key's. I confirmed the same by using the &quot;/usr/openwin/demo/xev&quot; \
program. But the keysyms are 0x0 with NoSymbol for the SUN's special keys.  </div>
<div>&nbsp;</div>
<div>As an alternative approach I remapped the Sun special keys using \
&quot;xmodmap&quot;. For this I used &quot;copy-paste&quot; map file, which is \
attached along with this mail. After execution of &quot;xmodmap&quot; 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. </div>
<div>&nbsp;</div>
<div>Following are my doubts:<br>1. Why is that keysyms are zero before xmodmap? \
<br>2. Which key symbol table does the sparc use for my type 5c keybaord? <br>2. \
After xmodmap why is that only copy, paste, undo and cut keys are working and not \
other keys?  </div>
<div>&nbsp;</div>
<div>It will be great if you can help me in fixing this issue.<span></span> </div>
<div>&nbsp;</div>
<div>Regards<br>&nbsp;</div>
<div>Naveen A.</div>
<div><br><br>&nbsp;</div>
<div><span class="gmail_quote">On 12/24/05, <b class="gmail_sendername">Marc Aurele \
La France</b> &lt;<a href="mailto:tsi@ualberta.ca">tsi@ualberta.ca</a>&gt; \
wrote:</span> <blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px \
0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">On Thu, 8 Dec 2005, Alipoor Rahim \
wrote:<br><br>&gt; I am new-bee to Open source and XFree86. I have compiled XFree86  \
4.5.0 for<br>&gt; Solaris Sparc. Everything is working fine except m keyboard. I have \
Sun<br>&gt; Type5c keyboad. My Keypad (for Home, PgUp, End and Arrow keys) is \
not<br>&gt; working when I depress the NUM lock key. But When NUM lock is pressed the \
<br>&gt; digits in keypad are working fine.<br><br>&gt; Also SUN special keys are not \
working like Help, Stop, Again, Front, Cut,<br>&gt; Copy, Paste.<br><br>&gt; My \
Keybaord configuration n XF86config file is as follows: <br>&gt; Section \
&quot;InputDevice&quot;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Identif \
ier&nbsp;&nbsp;&quot;Keyboard0&quot;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Driver&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&quot;keyboard&quot;<br>&gt; \
EndSection<br><br>&gt; When I specifiy the following in my configuration the keyboard \
dosen't take <br>&gt; any input.<br><br>&gt; Section \
&quot;InputDevice&quot;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Identif \
ier&nbsp;&nbsp;&quot;Keyboard0&quot;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
&nbsp;Driver&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&quot;keyboard&quot;<br>&gt;<br>&gt;&n \
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Option&nbsp;&nbsp;&quot;Xkbrules&quot; \
&quot;sun&quot; <br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Option&nbsp;&nbsp;&quot;XkbModel&quot; \
&quot;type5&quot;<br>&gt; EndSection<br><br>On Wed, 21 Dec 2005, Naveen Atmakuri \
wrote:<br><br>&gt; I am facing some problems with the special keys in the sun \
keyboard. It got<br> &gt; ten special keys such as (copy, paste, undo, again, stop, \
etc) in it. Could<br>&gt; any one tell me whether the driver that is there in the \
Xfree source<br>&gt; supports these keys or not. If it is, then from where it is \
getting the key <br>&gt; symbols.<br><br>xc/programs/Xserver/hw/xfree86/Domain.note \
in part says<br><br>&quot;Several loose ends still need to be addressed before these \
changes can be<br>considered stable.&nbsp;&nbsp;The bulk of this note is devoted to \
enumerating what <br>remains to be done, along with other notes, broken down into \
various broad<br>categories.<br><br>SPARC SunOS (aka \
Solaris)<br>-------------------------<br>- An overview of this XFree86 port is \
                available in README.Solaris
.<br>- The keyboard map code in hw/xfree86/os-support/sunos/sun_kbdEv.c \
needs<br>&nbsp;&nbsp;to be extended to handle more than only the sun5 keyboard I \
targeted it<br>&nbsp;&nbsp;for.&nbsp;&nbsp;Even for the sun5, the map is incomplete \
as several keys are not <br>&nbsp;&nbsp;mapped.&nbsp;&nbsp;What is there is just \
barely usable.&quot;<br><br>If you feel up to it, you can submit a patch that \
corrects this situation.<br><br>Marc.<br><br>+----------------------------------+-----------------------------------+
 <br>|&nbsp;&nbsp;Marc Aurele La \
France&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
|&nbsp;&nbsp;work:&nbsp;&nbsp; \
1-780-492-9310&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
|<br>|&nbsp;&nbsp;Academic Information \
and&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;fax:&nbsp;&nbsp;&nbsp;&nbsp;1-780-492-1729&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
|<br>|&nbsp;&nbsp;&nbsp;&nbsp;Communications Technologies&nbsp;&nbsp; \
|&nbsp;&nbsp;email:&nbsp;&nbsp;<a href="mailto:tsi@ualberta.ca"> \
tsi@ualberta.ca</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|<br>|&nbsp;&nbsp;352 \
General Services Building&nbsp;&nbsp; \
+-----------------------------------+<br>|&nbsp;&nbsp;University of \
Alberta&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;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sp \
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
|<br>+----------------------------------+-----------------------------------+ \
<br>XFree86 developer and VP.&nbsp;&nbsp;ATI driver and X server \
internals.<br></blockquote></div><br>


["sun_kbdEv.c" (application/octet-stream)]
["copy-paste" (text/plain)]

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


_______________________________________________
XFree86 mailing list
XFree86@XFree86.Org
http://XFree86.Org/mailman/listinfo/xfree86

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic