For any of you who have PowerBooks, you will now be able to map your
CapsLock key to be Control in Linux.  Starting in 2.6.24 [1], you'll be
able to do:

echo 1 >/sys/module/adbhid/parameters/restore_capslock_events

and then key remapping will work whether you use xmodmap or xkb.  It's
actually an interesting problem that a number of people have looked at
(including our own Hans Fugal).  The keyboards that Apple included in
PowerBooks and iBooks are ADB rather than USB.  ADB keyboards keep their
own internal CapsLock state, rather than treating CapsLock as a normal
key.  An ADB keyboard only sends CapsLock events when the CapsLock is
activated and deactivated, whereas a USB keyboard sends CapsLock key
events whenever the key is pressed or released (just like any other
key).

If you want to use the CapsLock key as a Control key on a PowerBook or
iBook, you have to recreate the missing key events.  This is the same
thing that Mac OS does if you configure it to swap caps lock and
control.  Now you can do the same thing on Linux, too.  See
http://hans.fugal.net/yodl/blosxom.cgi/mac/caps.html for more details,
if you're really interested.  Anyway, thanks to Hans Fugal, Andy Wingo,
and Gregorio Gervas for getting it all started.

[1] 
http://groups.google.com/group/linux.kernel/browse_thread/thread/c7e4e9cab126b0b7/6cb7c97adeac82c2


-- 
Andrew McNabb
http://www.mcnabbs.org/andrew/
PGP Fingerprint: 8A17 B57C 6879 1863 DE55  8012 AB4D 6098 8826 6868

Attachment: pgpZAbIITGpnd.pgp
Description: PGP signature

--------------------
BYU Unix Users Group 
http://uug.byu.edu/ 

The opinions expressed in this message are the responsibility of their
author.  They are not endorsed by BYU, the BYU CS Department or BYU-UUG. 
___________________________________________________________________
List Info: http://uug.byu.edu/mailman/listinfo/uug-list

Reply via email to