From: stefan.eletzhofer@eletztrick.de
To: linux-kernel@vger.kernel.org
Subject: Re: Keyboard Writing
Date: Tue, 11 Feb 2003 19:15:02 +0100 [thread overview]
Message-ID: <20030211181502.GA26990@gonzo.local> (raw)
In-Reply-To: <Pine.GSO.4.50.0302111142060.53-100000@oscar.cc.gatech.edu>
On Tue, Feb 11, 2003 at 12:01:38PM -0500, James Gibson Fusia wrote:
> I've read through the keyboard driver files (kd.h, keyboard*, pc_keyb*),
> and come to the conclusion that you can't write to the keyboard. Get mode,
> set mode, get leds, set leds, change keymap. But no write to keyboard.
>
> I need to be able to re-program a keyboard from userspace, and this
> involves sending certain keycodes to the keyboard via port manipulation
> (set write bit, write, wait for write bit clear.. blah blah blah), and no
> manipulation handles.
>
> My question to you, then, is how do I add definitions for ioctl to be able
> to write to the ps/2 keyboard from user-space? (the #defs for
> KD(GET|SET)LED seem to be arbitrary and not related to 0x64).
>
> Essentially, I would like to be able to treat the keyboard like a serial
> port. Any docs you can point me at? (Yes, I've checked everything google
> showed me and none of it seemed pertinent to physically writing to the
> keyboard.)
>
> Please respond directly to me, as I'm a bum and don't want to join the
> kernel-dev list.
> -James Gibson Fusia (visyz@cc.gatech.edu)
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
Hi, I needed to do the same for one of my customer's embedded board, which has
some battery controller PIC attached to the PS/2 kbd.
I needed to access this PIC, but found no other way but copy the existing
keyboard driver and hack that one.
Cheers,
Stefan
--
Eletztrick Computing - Customized Linux Development
Stefan Eletzhofer
Gottlieb-Daimler-Strasse 10
88214 Ravensburg
GERMANY
http://www.eletztrick.de
http://hackkit.eletztrick.de
mailto://stefan.eletzhofer@eletztrick.de
+49 751 35 44 112
+49 751 35 44 115 (FAX)
prev parent reply other threads:[~2003-02-11 19:07 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-02-11 17:01 Keyboard Writing James Gibson Fusia
2003-02-11 18:15 ` stefan.eletzhofer [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030211181502.GA26990@gonzo.local \
--to=stefan.eletzhofer@eletztrick.de \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox