lkml.org 
[lkml]   [1998]   [Nov]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: Dvorak+Magic SysRq
On Mon, 23 Nov 1998, Robert Edmonds wrote:

> I have noticed that when using Magic SysRq keys I must press the QWERTY
> mapping instead (i.e. "." instead of "e"). Is there any support or fixes
> to allow Dvorak keymappings mith the Magic SysRq keys?

I've attached a patch that came through a while ago, should still apply
fine.

---
Tom Rini (TR1265)
http://dobbstown.yeti.edu/
diff -ur linux-2.1.125-orig/CREDITS linux/CREDITS
--- linux-2.1.125-orig/CREDITS Sat Oct 10 19:54:52 1998
+++ linux/CREDITS Sat Oct 10 19:50:27 1998
@@ -1868,6 +1868,11 @@
D: Co-author of German book ``Linux-Kernel-Programmierung''
D: Co-founder of Berlin Linux User Group

+N: Brion Vibber
+E: brion@pobox.com
+W: http://pobox.com/~brion/linux/
+D: Dvorak keymap for Magic SysRq Key
+
N: Patrick Volkerding
E: volkerdi@ftp.cdrom.com
D: Produced the Slackware distribution, updated the SVGAlib
diff -ur linux-2.1.125-orig/Documentation/Configure.help linux/Documentation/Configure.help
--- linux-2.1.125-orig/Documentation/Configure.help Sat Oct 10 19:54:52 1998
+++ linux/Documentation/Configure.help Sat Oct 10 19:33:07 1998
@@ -8618,6 +8618,20 @@
keys are documented in Documentation/sysrq.txt. Don't say Y unless
you really know what this hack does.

+Dvorak keyboard layout for Magic SysRq Key
+CONFIG_DVORAK
+ The keyboard scancode map used for the Magic SysRq Key is normally
+ based on the standard US QWERTY layout. If you prefer to use the
+ Dvorak simplified keyboard layout, say Y here.
+
+ This option affects only the Magic SysRq Key, not the regular
+ console, X, etc, which should be configured from user space.
+
+ WARNING: If your keyboard is labeled for QWERTY, make sure you can
+ touch-type in Dvorak! It is very easy to crash your system with the
+ Magic SysRq Key so you do NOT want to hit the wrong key by mistake.
+
+
ISDN subsystem
CONFIG_ISDN
ISDN ("Integrated Services Digital Networks", called RNIS in France)
diff -ur linux-2.1.125-orig/arch/i386/config.in linux/arch/i386/config.in
--- linux-2.1.125-orig/arch/i386/config.in Sat Oct 10 19:54:32 1998
+++ linux/arch/i386/config.in Fri Oct 9 21:36:37 1998
@@ -158,5 +158,8 @@

#bool 'Debug kmalloc/kfree' CONFIG_DEBUG_MALLOC
bool 'Magic SysRq key' CONFIG_MAGIC_SYSRQ
+if [ "$CONFIG_MAGIC_SYSRQ" != "n" ]; then
+ bool 'Dvorak keyboard layout' CONFIG_DVORAK
+fi
endmenu

diff -ur linux-2.1.125-orig/drivers/char/pc_keyb.c linux/drivers/char/pc_keyb.c
--- linux-2.1.125-orig/drivers/char/pc_keyb.c Sat Oct 10 19:54:27 1998
+++ linux/drivers/char/pc_keyb.c Fri Oct 9 21:36:37 1998
@@ -33,6 +33,16 @@
/* Simple translation table for the SysRq keys */

#ifdef CONFIG_MAGIC_SYSRQ
+#ifdef CONFIG_DVORAK
+unsigned char pckbd_sysrq_xlate[128] =
+ "\000\0331234567890[]\177\t" /* 0x00 - 0x0f */
+ "',.pyfgcrl/=\r\000ao" /* 0x10 - 0x1f */
+ "euidhtns-`\000\\;qjk" /* 0x20 - 0x2f */
+ "xbmwvz\000*\000 \000\201\202\203\204\205" /* 0x30 - 0x3f */
+ "\206\207\210\211\212\000\000789-456+1" /* 0x40 - 0x4f */
+ "230\177\000\000\213\214\000\000\000\000\000\000\000\000\000\000" /* 0x50 - 0x5f */
+ "\r\000/"; /* 0x60 - 0x6f */
+#else
unsigned char pckbd_sysrq_xlate[128] =
"\000\0331234567890-=\177\t" /* 0x00 - 0x0f */
"qwertyuiop[]\r\000as" /* 0x10 - 0x1f */
@@ -41,6 +51,7 @@
"\206\207\210\211\212\000\000789-456+1" /* 0x40 - 0x4f */
"230\177\000\000\213\214\000\000\000\000\000\000\000\000\000\000" /* 0x50 - 0x5f */
"\r\000/"; /* 0x60 - 0x6f */
+#endif
#endif

unsigned char pckbd_read_mask = KBD_STAT_OBF; /* Modified by psaux.c */
\
 
 \ /
  Last update: 2005-03-22 13:45    [from the cache]
©2003-2014 Jasper Spaans. Advertise on this site