* Shift keycodes on the iBook
@ 2002-08-31 5:56 Ethan Blanton
2002-09-02 17:28 ` Benjamin Herrenschmidt
0 siblings, 1 reply; 9+ messages in thread
From: Ethan Blanton @ 2002-08-31 5:56 UTC (permalink / raw)
To: linuxppc-dev
Hi,
I have come across this issue several times in the past, and it has
never been a show-stopper for me ... but now it is more painful.
The Linux kernel does not seem to differentiate between several of
the keys on the iBook (iceBook in this case) keyboard that are
differentiable on most platforms... For instance (my current
problem), the left and right shift keys both return a left shift
keycode. (Ditto for the command key, same keycode for both.)
Unfortunately I am in the situation of needing to set up an iBook for
a Russian user who is used to using a shift+shift chord to change
character sets (apparently this is quite common) ... since the iBook
produces the same keycode for both keys, there is no way to produce
this chord. I can use a different method (for instance I currently
have her using the caps lock key to change mappings), but it isn't
what she is used to.
Is this a hardware limitation, or just a limitation of the current
maps? If it is the latter, can it be easily fixed? I'm willing to
provide whatever information is necessary if the problem is just that
the appropriate developer needs information about the iBook keyboard.
Thanks for your time,
Ethan
--
Now if I wasn't such a weenie do ya think you'd still love me,
Pretendin' I'm an airplane on the living room floor?
-- The Offspring, "I Choose"
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 9+ messages in thread* Re: Shift keycodes on the iBook
2002-08-31 5:56 Shift keycodes on the iBook Ethan Blanton
@ 2002-09-02 17:28 ` Benjamin Herrenschmidt
2002-09-03 15:13 ` Jason E. Stewart
0 siblings, 1 reply; 9+ messages in thread
From: Benjamin Herrenschmidt @ 2002-09-02 17:28 UTC (permalink / raw)
To: Ethan Blanton, linuxppc-dev
>Is this a hardware limitation, or just a limitation of the current
>maps? If it is the latter, can it be easily fixed? I'm willing to
>provide whatever information is necessary if the problem is just that
>the appropriate developer needs information about the iBook keyboard.
AFAIK, it's a HW limitation (or at least a limitation of the PMU's
firmware), there is no workaround I know about.
Ben.
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Shift keycodes on the iBook
2002-09-02 17:28 ` Benjamin Herrenschmidt
@ 2002-09-03 15:13 ` Jason E. Stewart
2002-09-03 19:21 ` Michel Lanners
2002-09-03 20:15 ` Benjamin Herrenschmidt
0 siblings, 2 replies; 9+ messages in thread
From: Jason E. Stewart @ 2002-09-03 15:13 UTC (permalink / raw)
To: Benjamin Herrenschmidt; +Cc: Ethan Blanton, linuxppc-dev
"Benjamin Herrenschmidt" <benh@kernel.crashing.org> writes:
> >Is this a hardware limitation, or just a limitation of the current
> >maps? If it is the latter, can it be easily fixed? I'm willing to
> >provide whatever information is necessary if the problem is just that
> >the appropriate developer needs information about the iBook keyboard.
>
> AFAIK, it's a HW limitation (or at least a limitation of the PMU's
> firmware), there is no workaround I know about.
The interesting thing is that was what was believed for years about
the locking capslock key as well...
jas.
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Shift keycodes on the iBook
2002-09-03 15:13 ` Jason E. Stewart
@ 2002-09-03 19:21 ` Michel Lanners
2002-09-03 20:17 ` Benjamin Herrenschmidt
2002-09-03 20:15 ` Benjamin Herrenschmidt
1 sibling, 1 reply; 9+ messages in thread
From: Michel Lanners @ 2002-09-03 19:21 UTC (permalink / raw)
To: jason; +Cc: benh, eblanton, linuxppc-dev
On 3 Sep, this message from Jason E. Stewart echoed through cyberspace:
>> >Is this a hardware limitation, or just a limitation of the current
>> >maps? If it is the latter, can it be easily fixed? I'm willing to
>> >provide whatever information is necessary if the problem is just that
>> >the appropriate developer needs information about the iBook keyboard.
>>
>> AFAIK, it's a HW limitation (or at least a limitation of the PMU's
>> firmware), there is no workaround I know about.
>
> The interesting thing is that was what was believed for years about
> the locking capslock key as well...
Ah, but that depends on the specific model of keyboard. At least some of
Apple's ADB keyboards _do_ indead have a mechanical capslock.
I don't know for USB keyboards, but obviously the PowerBook keyboards
have a regular (non-locking) key as capslock. Whether the lock is done
in the ADB driver or in the keyboard controller, I don't know...
Cheers
Michel
-------------------------------------------------------------------------
Michel Lanners | " Read Philosophy. Study Art.
23, Rue Paul Henkes | Ask Questions. Make Mistakes.
L-1710 Luxembourg |
email mlan@cpu.lu |
http://www.cpu.lu/~mlan | Learn Always. "
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Shift keycodes on the iBook
2002-09-03 19:21 ` Michel Lanners
@ 2002-09-03 20:17 ` Benjamin Herrenschmidt
2002-09-05 6:03 ` Michel Lanners
0 siblings, 1 reply; 9+ messages in thread
From: Benjamin Herrenschmidt @ 2002-09-03 20:17 UTC (permalink / raw)
To: mlan, jason; +Cc: eblanton, linuxppc-dev
>> The interesting thing is that was what was believed for years about
>> the locking capslock key as well...
>
>Ah, but that depends on the specific model of keyboard. At least some of
>Apple's ADB keyboards _do_ indead have a mechanical capslock.
>
>I don't know for USB keyboards, but obviously the PowerBook keyboards
>have a regular (non-locking) key as capslock. Whether the lock is done
>in the ADB driver or in the keyboard controller, I don't know...
Actually, the lock itself isn't, but the keycode sent by the PMU behave
like a HW lock (and the LED is driven that way too).
In both cases, there may be ways to instruct the PMU to behave differently
but I don't know about them.
Ben.
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Shift keycodes on the iBook
2002-09-03 20:17 ` Benjamin Herrenschmidt
@ 2002-09-05 6:03 ` Michel Lanners
2002-09-05 8:15 ` Benjamin Herrenschmidt
2002-09-05 23:39 ` Segher Boessenkool
0 siblings, 2 replies; 9+ messages in thread
From: Michel Lanners @ 2002-09-05 6:03 UTC (permalink / raw)
To: benh; +Cc: jason, eblanton, linuxppc-dev
On 3 Sep, this message from Benjamin Herrenschmidt echoed through cyberspace:
>>> The interesting thing is that was what was believed for years about
>>> the locking capslock key as well...
>>
>>Ah, but that depends on the specific model of keyboard. At least some of
>>Apple's ADB keyboards _do_ indead have a mechanical capslock.
>>
>>I don't know for USB keyboards, but obviously the PowerBook keyboards
>>have a regular (non-locking) key as capslock. Whether the lock is done
>>in the ADB driver or in the keyboard controller, I don't know...
>
> Actually, the lock itself isn't, but the keycode sent by the PMU behave
> like a HW lock (and the LED is driven that way too).
>
> In both cases, there may be ways to instruct the PMU to behave differently
> but I don't know about them.
Anybody up for sucking the PMU firmware out of the little beast and
reverse-engineering it? Might be a fun project :-))
Cheers
Michel
-------------------------------------------------------------------------
Michel Lanners | " Read Philosophy. Study Art.
23, Rue Paul Henkes | Ask Questions. Make Mistakes.
L-1710 Luxembourg |
email mlan@cpu.lu |
http://www.cpu.lu/~mlan | Learn Always. "
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Shift keycodes on the iBook
2002-09-05 6:03 ` Michel Lanners
@ 2002-09-05 8:15 ` Benjamin Herrenschmidt
2002-09-05 23:39 ` Segher Boessenkool
1 sibling, 0 replies; 9+ messages in thread
From: Benjamin Herrenschmidt @ 2002-09-05 8:15 UTC (permalink / raw)
To: mlan; +Cc: jason, eblanton, linuxppc-dev
>Anybody up for sucking the PMU firmware out of the little beast and
>reverse-engineering it? Might be a fun project :-))
Already beeing done, though I'll let the culprit tell about it
himself if he wants to ;)
Ben.
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Shift keycodes on the iBook
2002-09-05 6:03 ` Michel Lanners
2002-09-05 8:15 ` Benjamin Herrenschmidt
@ 2002-09-05 23:39 ` Segher Boessenkool
1 sibling, 0 replies; 9+ messages in thread
From: Segher Boessenkool @ 2002-09-05 23:39 UTC (permalink / raw)
To: mlan; +Cc: benh, jason, eblanton, linuxppc-dev
Michel Lanners wrote:
>
> On 3 Sep, this message from Benjamin Herrenschmidt echoed through cyberspace:
> >>> The interesting thing is that was what was believed for years about
> >>> the locking capslock key as well...
> >>
> >>Ah, but that depends on the specific model of keyboard. At least some of
> >>Apple's ADB keyboards _do_ indead have a mechanical capslock.
> >>
> >>I don't know for USB keyboards, but obviously the PowerBook keyboards
> >>have a regular (non-locking) key as capslock. Whether the lock is done
> >>in the ADB driver or in the keyboard controller, I don't know...
> >
> > Actually, the lock itself isn't, but the keycode sent by the PMU behave
> > like a HW lock (and the LED is driven that way too).
> >
> > In both cases, there may be ways to instruct the PMU to behave differently
> > but I don't know about them.
>
> Anybody up for sucking the PMU firmware out of the little beast and
> reverse-engineering it? Might be a fun project :-))
There's a little program for doing the "sucking" part of this available on
my page at penguinppc.org; Apple was nice enough to include some commands
in the CPU<->PMU interface language for reading any part of the PMU memory.
The PMU is a Mitsubishi MCU; afaik, it's a M30624FGMGP, which is a member of the
M16C/62 family. Mitsubishi's documentation pages have been much improved
lately; you can actually find the pdf's you need now :)
Reverse engineering something as big as this is quite a bit of work, though;
especially if you don't know which of the 88 i/o lines on the chip are
connected where ;)
Cheers,
Segher
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Shift keycodes on the iBook
2002-09-03 15:13 ` Jason E. Stewart
2002-09-03 19:21 ` Michel Lanners
@ 2002-09-03 20:15 ` Benjamin Herrenschmidt
1 sibling, 0 replies; 9+ messages in thread
From: Benjamin Herrenschmidt @ 2002-09-03 20:15 UTC (permalink / raw)
To: jason; +Cc: Ethan Blanton, linuxppc-dev
>> >Is this a hardware limitation, or just a limitation of the current
>> >maps? If it is the latter, can it be easily fixed? I'm willing to
>> >provide whatever information is necessary if the problem is just that
>> >the appropriate developer needs information about the iBook keyboard.
>>
>> AFAIK, it's a HW limitation (or at least a limitation of the PMU's
>> firmware), there is no workaround I know about.
>
>The interesting thing is that was what was believed for years about
>the locking capslock key as well...
The locking capslock is in HW as well, there is a hack to turn capslock
into some different key, but it's really a hack.
Ben.
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2002-09-05 23:39 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-08-31 5:56 Shift keycodes on the iBook Ethan Blanton
2002-09-02 17:28 ` Benjamin Herrenschmidt
2002-09-03 15:13 ` Jason E. Stewart
2002-09-03 19:21 ` Michel Lanners
2002-09-03 20:17 ` Benjamin Herrenschmidt
2002-09-05 6:03 ` Michel Lanners
2002-09-05 8:15 ` Benjamin Herrenschmidt
2002-09-05 23:39 ` Segher Boessenkool
2002-09-03 20:15 ` Benjamin Herrenschmidt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).