home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / os / linux / 25095 < prev    next >
Encoding:
Text File  |  1993-01-22  |  5.0 KB  |  104 lines

  1. Newsgroups: comp.os.linux
  2. Path: sparky!uunet!usc!rpi!ghost.dsi.unimi.it!valentm
  3. From: valentm@ghost.dsi.unimi.it (marco valentini)
  4. Subject: VGA 80x25 & change keyboard layout
  5. Keywords: keyboard
  6. Organization: Computer Science Dep. - Milan University
  7. Date: Fri, 22 Jan 1993 12:13:47 GMT
  8. Message-ID: <1993Jan22.121347.10367@ghost.dsi.unimi.it>
  9. Summary: Would you switch in 80x25 textmode or change keyboard layout do it
  10. Lines: 92
  11.  
  12. Hello boy's here's a patch for starting linux in NORMAL_VGA text mode,You need NORTON
  13. DISK EDITOR and a copy of your linux boot diskette.
  14. Now whith DE read disk A: in physical mode and go to Cyl 0 Side 0 Sector 1 (the boot sector)
  15. and edit offset 506 to FD and offset 507 to FF, here's an example:
  16.  
  17. 000001F0:  00 00 00 00 00 00 00 00 - 00 00 FD FF 02 03 55 AA  ................ _
  18. Physical Sector: Cyl 0, Side 0, Sector 2   -----
  19. 00000000:  B8 00 90 8E D8 B4 88 CD - 15 A3 02 00 B8 05 03 BB  ................ _
  20. 00000010:  00 00 CD 16 B4 12 B3 10 - CD 10 A3 08 00 89 1E 0A  ................ _
  21. 00000020:  00 89 0E 0C 00 B8 19 50 - 80 FB 10 74 12 B8 00 1A  ................ _
  22. 00000030:  CD 10 89 C3 B8 19 50 80 - FB 1A 75 03 E8 45 01 A3  ................ _
  23. 00000040:  0E 00 B4 03 30 FF CD 10 - 89 16 00 00 B4 0F CD 10  ................ _
  24. 00000050:  89 1E 04 00 A3 06 00 B8 - 00 00 8E D8 C5 36 04 01  ................ _
  25. 00000060:  B8 00 90 8E C0 BF 80 00 - B9 10 00 FC F3 A4 B8 00  ................ _
  26. 00000070:  00 8E D8 C5 36 18 01 B8 - 00 90 8E C0 BF 90 00 B9  ................ _
  27.    Sector 0 of 2.879                                   Cyl 0, Side 0, Sector 1
  28.    Floppy drive A:                                         Offset 507, hex 1FB
  29.  Press ALT or F10 to select menus                                  Disk Editor
  30.  
  31. And now a patch for anyone want to cange keyboard layout (like Italian People)
  32.  
  33. Edit Cyl 22 Side 1 Sector 18 Starting by offset 27 make care of don't edit which you
  34. don't. (If you don't find It make a find in Not ignoring case mode of text string qwertyuiop)
  35. Search on your computer manual a US keybord layout document.now change the string to new
  36. layout.
  37.  
  38. EX: For my Italian keyboard I have made the following change:
  39.  
  40. 00000000:  00 00 00 00 00 00 00 00 - B4 71 08 00 00 00 00 00  ................ _
  41. 00000010:  FF FF FF FF 00 00 00 00 - FF 00 1B 31 32 33 34 35  ................ _
  42. 00000020:  36 37 38 39 30 27 8D 7F - 09 71 77 65 72 74 79 75  .........qwertyu _
  43. 00000030:  69 6F 70 8A 2B 0D 00 61 - 73 64 66 67 68 6A 6B 6C  iop....asdfghjkl _
  44. 00000040:  5B 5D 5C 00 97 7A 78 63 - 76 62 6E 6D 2C 2E 2D 00  []\.@zxcvbnm.... _
  45. 00000050:  2A 00 20 00 00 00 00 00 - 00 00 00 00 00 00 00 00  ................ _
  46. 00000060:  00 00 00 2D 00 00 00 2B - 00 00 00 00 00 00 00 3C  ................ _
  47. 00000070:  00 00 00 00 00 00 00 00 - 00 00 00 1B 21 22 23 24  ............!"#$ _
  48. 00000080:  25 26 2F 28 29 3D 3F 5E - 7F 09 51 57 45 52 54 59  %&/()=?...QWERTY _
  49. 00000090:  55 49 4F 50 82 2A 0D 00 - 41 53 44 46 47 48 4A 4B  UIOP*..ASDFGHJK _
  50. 000000A0:  4C 7B 7D 7C 30 7E 5A 58 - 43 56 42 4E 4D 3B 3A 5F  L{}|0~ZXCVBNM;:. _
  51. 000000B0:  00 2A 00 20 00 00 00 00 - 00 00 00 00 00 00 00 00  ................ _
  52. 000000C0:  00 00 00 00 2D 00 00 00 - 2B 00 00 00 00 00 00 00  ................ _
  53. 000000D0:  3E 00 00 00 00 00 00 00 - 00 00 00 00 00 00 40 00  ................ _
  54. 000000E0:  24 00 00 7B 5B 5D 7D 5C - 00 00 00 00 00 00 00 00  ................ _
  55. 000000F0:  00 00 00 00 00 00 7E 0D - 00 00 00 00 00 00 00 00  ................ _
  56. 00000100:  00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 00  ................ _
  57. 00000110:  00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 00  ................ _
  58. 00000120:  00 00 00 00 00 00 00 00 - 00 00 00 00 00 00 00 00  ................ _
  59. 00000130:  00 7C 00 00 00 00 00 00 - 00 00 00 00 20 C0 42 43  ............ +BC
  60.    Sector 0 of 2.052                                 Cyl 22, Side 1, Sector 18
  61.    Floppy drive A:                                          Offset 120, hex 78
  62.  Press ALT or F10 to select menus                                  Disk Editor
  63.  
  64. PS:you can use others program then NORTON DE but I don't have tested it.
  65.  
  66. The only problem of this path is that don't works with Xwindows.
  67. But under X all tasks are virualizzed so the keyboard mapping for change it
  68. you have to edit a file usually called .xmodmaprc and add the following
  69. commands:
  70.  
  71. keycode number=normal_key key_shifted
  72.  
  73. where number is a octal,decimal or hexadecimal number that you can find with
  74. xev (press a key under Event Tester window and take keycode number.
  75. For example for my Italian keyboard I have added:
  76.  
  77.  
  78. keycode 11=2 0x22
  79. keycode 15=54 0x26
  80. keycode 16=7 slash
  81. keycode 17=8 0x28
  82. keycode 18=9 0x29
  83. keycode 19=0 0x3d
  84. keycode 20=0x27 0x3f
  85. keycode 21=0x3f 0x5e
  86. keycode 49=0x5c 0x7c
  87. keycode 59=0x2c 0x3b
  88. keycode 60=0x2e 0x3a
  89. keycode 61=0x2d 0x5f
  90. keycode 35=0x2b 0x2a
  91. keycode 47=0x5b 0x7b
  92. keycode 48=0x5d 0x7d
  93. keycode 51=0x40 0x7e
  94.  
  95.  
  96. next save the file and run
  97.  
  98. xmodmap .xmodmaprc and the job is done.
  99. You can also add this command in your xinitrc.
  100.  
  101.                                         Marco Valentini
  102.                                         Valentm@pippo.sm.dsi.unimi.it
  103.  
  104.