karel
Fri Sep 05 02:48:31 CDT 2003
We use a RealVNC like program (RFB protocol) to connect the
pc to the SUN. When I start a 'VNC server' on the SUN and
use a 'VNC viewer' on the PC to connect to this server, it
is possible to view (on the SUN) which events are sent
using the Unix command 'xev'. Currently, I can see that the
SUN specific keys do not produce any event. I want to
create a driver to make sure that an event is passed to my
SUN when one of the specific Sun keys are used. Once this
event is sent to my SUN, I can handle the event by mapping
it to the correct functionality (using 'xmodmap'). I'm not
sure if this works, but it's worth trying...
>for understanding how HID works, goto the usb website and
download the HID
>spec (HID is human interface device). also, i would
highly recommend walter
>oney's book (2nd edition), it talks about HID pretty
extensively.
>
>for understanding what a PDO is, device lower filter, etc,
get the latest
>DDK from the microsoft website, you will need to pay for
shipping and
>handling, but otherwise it is free. again, walter's book
will be very very
>helpful for you here in explaining these terms and PNP in
general.
>
>for a HID usage to ps/2 scan code mapping, see
>
http://www.microsoft.com/whdc/hwdev/tech/input/Scancode.mspx
for the
>mapping.
>
>I am not sure what you mean by remotely use an application
that is running
>on a SUN workstation. What application / technology is
doing the remoting?
>In all likelihood, no matter what driver you write, this
remoting technology
>will have to understand they keys you are trying to send
it. for instance,
>there is no concept of a "front" key in windows.
>
>d
>--
>This posting is provided "AS IS" with no warranties, and
confers no rights.
>"Karel Elferink" <k.elferink@freemail.nl> wrote in message
>news:174801c372fa$d9b0f7f0$a001280a@phx.gbl...
>> I'm not familiar with all the terms you use (top
>> level collections, device lower filter, POD), since I never
>> worked this
>> low in an (windows) operating system. Is it possible that
>> you give me
>> some (understandable) help? I will try to explain what we
>> are doing:
>>
>> We want to remotely use an application that runs on a SUN
>> workstion
>> using a pc with Windows XP. To assure that the user has the
>> same 'look
>> and feel' we want to connect an usb type-6 SUN keyboard to
>> the pc. I
>> already found that it is possible to remap keys using the
>> Windows
>> registry (Scancode Mapping), but this only works for the
>> standard keys
>> (the keys for which a PS/2 Scan code exists). The specific
>> SUN keys are
>> not recognized by the operating system (no PS/2 scancodes
>> exist in the
>> translation table) and are neglected. How can we find the
>> scancodes of
>> these keys that are sent to the OS and if we know these
>> scancodes how
>> can we let the OS use these codes?
>>
>>
>> >if these sun usages show up in the keyboard top level
>> collections and they
>> >are unmapped, kbdhid will not know how to translate them
>> and they will be
>> >thrown away. If you are a device lower filter between
>> kbdhid and its PDO,
>> >you could intercept the data being read and do what you
>> want with it.
>> >
>> >d
>> >
>>
>>
>> >> I do not know if i'm in the correct newsgroup (if not:
>> sorry).
>> >>
>> >> I've the following question:
>> >>
>> >> I'm trying to enable the SUN specific keys (front, copy,
>> >> paste, etc.) of a SUN type-6 usb keyboard which is
>> >> connected to a windows XP machine. I've already
played with
>> >> mapping of the scan codes in the registry, but i
don't know
>> >> how to reach the SUN specific keys.
>> >>
>> >> Is it possible to enable these buttons via scan code
>> >> mapping in the registry or do i have to write a driver?
>> >>
>> >> In the 'USB HID to PS/2 Scan Code Translation Table' the
>> >> PS/2 make and break scan codes for the SUN specific keys
>> >> are unassigned, is this relevant?
>> >>
>> >
>> >
>> >.
>> >
>
>
>.
>