Article Title	 	: N-123 Keyboard bug
Creation Date		: 09/07/94
Message ID		: JGRNSQ
Last Update		: 
Expiration Rules	: unknown
Location		: NCD-Articles/NCD_X_Terminals/Keyboards
=================================================================

Q: Why does a NCD booting NCDware version 3.2.1 with a N123UX keyboard 
   have problems with the caps lock key and the Ctrl key?

A: The workaround is to remap these keys with the xmodmap utility.


Below is something you can add to the Xsession file to fix the
problem when the user is on a N-123 Unix keyboard.

If the keyboard has a N123 unix keyboard, then call xmodmap and 
give it the file called:

	N-123Unix.xmodmap  


##########################################################################
# Catch N-123 Keyboards and remap
result=`(/usr/local/X11/bin/xprop -root | grep -c "N-123 Unix")`

if [ $result -ge 1 ];then
        echo "Keyboard Type is N-123 Unix -- remapping Lock and Control"
        /usr/local/X11/bin/xmodmap /usr/local/X11/xdm/N-123Unix.xmodmap
fi
##########################################################################


Please change the path names of the files if they are located 
someplace else on your system.

This is the file called /usr/local/X11/xdm/N-123Unix.xmodmap:

----------------------( start cut here )-------------------------
!
! File to fix N-123 Unix Control/Caps Lock problem
!
remove Lock = Control_L
remove Control = Caps_Lock
keysym Control_L = Control_L
keysym Caps_Lock = Caps_Lock
add Lock = Caps_Lock
add Control = Control_L
----------------------( end cut here )-------------------------
