linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Caps lock XOR on multiple keyboards?
@ 2012-12-04  0:01 George Spelvin
  2012-12-04  5:33 ` Dmitry Torokhov
  0 siblings, 1 reply; 7+ messages in thread
From: George Spelvin @ 2012-12-04  0:01 UTC (permalink / raw)
  To: linux-input; +Cc: alan, chris, gregkh, jslaby, linux

(Moving to linux-input.)

I happen to have both a PS/2 and USB keyboard plugged, in, but was
noticing that the caps lock key seemed inverted.  When the LED was off,
I got all caps (unless I used shift), while when it was on I got normal
lower-case letters.

This quite confused me, until I looked over and saw that someone had
hit caps lock on the PS/2.

Experimenting, it seems that each keyboard has its own caps lock LED
state, and the XOR of the two controls the case of the letters.

The corresponding shift keys have a shared logical state which depends
on who last had a transition.  Holding down left-shift on one can be
cancelled by pressing and releasing left-shift on the other.  (But
left & right shift are tracked separately.)

It would make more sense if each keyboard's caps lock LED controlled
the effect on its keys.  Either give each keyboard a completely separate
caps lock state, or toggle both LEDs when either caps lock is pressed.

Perhaps the answer is "It's too much work to fix; stop doing something
so stupid", but I thought I'd at least mention it.

(Er... it appears that my XOR description was incomplete.  I now have
the keyboard system in a state where *one* caps lock LED has to be on
to get normal lower-case letters.  I was playing with down1/down2/up1/up2
combinations, but I'm not quite sure what happened...)

^ permalink raw reply	[flat|nested] 7+ messages in thread
[parent not found: <20121203211911.20156.qmail@science.horizon.com>]

end of thread, other threads:[~2013-03-26 16:54 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-04  0:01 Caps lock XOR on multiple keyboards? George Spelvin
2012-12-04  5:33 ` Dmitry Torokhov
2012-12-04 10:26   ` George Spelvin
     [not found] <20121203211911.20156.qmail@science.horizon.com>
     [not found] ` <20121203235848.04228689@bob.linux.org.uk>
2013-03-24 10:30   ` Pavel Machek
2013-03-24 10:41     ` Pavel Machek
2013-03-24 22:39     ` Samuel Thibault
2013-03-26 16:54       ` Peter Korsgaard

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).