home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / os / linux / 21148 < prev    next >
Encoding:
Text File  |  1992-12-21  |  2.1 KB  |  55 lines

  1. Newsgroups: comp.os.linux
  2. Path: sparky!uunet!mcsun!fuug!prime!mits!kennu
  3. From: kennu@mits.mdata.fi (Kenneth Falck)
  4. Subject: Re: A keyboard problem
  5. Organization: Microdata International Telecomm Service, Helsinki, Finland
  6. Date: Fri, 18 Dec 1992 15:23:26 GMT
  7. Message-ID: <1992Dec18.152326.16342@prime.mdata.fi>
  8. References: <724620009snx@weasel.demon.co.uk>
  9. Sender: usenet@prime.mdata.fi (Usenet poster)
  10. Nntp-Posting-Host: mits.mdata.fi
  11. Lines: 42
  12.  
  13. agc@weasel.demon.co.uk (Alan Charlton) writes:
  14. > I've been using 0.99 for a couple of days now with no major problems,
  15. > but there's something odd going on with the keyboard driver.  Under 0.98pl5
  16. > I set KDB_FLAGS = 0x80 so I could use the Alt key as a Meta-key in emacs,
  17. > and it worked fine.  However, now I've successfully compiled the 0.99 kernel
  18. > a few times with the same value for KBD_FLAGS and the Alt-key doesn't work
  19. > any more.
  20. > Alan.
  21.  
  22. If you want a quick&dirty fix, edit linux/kernel/chr_drv/keyboard.c,
  23. find something like this around line 1042:
  24.  
  25.     if (kbd_flag(KG_ALT))
  26.         if (vc_kbd_flag(kbd,VC_META)) {
  27.             put_queue('\033');
  28.             put_queue(ch);
  29.         } else
  30.             put_queue(ch|0x80);
  31.  
  32. and change the if-comparison line containing VC_META into:
  33.  
  34.         if (1||vc_kbd_flag(kbd,VC_META)) {
  35.  
  36. It seems to work for me. Obviously there are plans to make it
  37. possible for every VC to have its own setting for the meta-key,
  38. but I couldn't find any ioctl or other stuff to select the state...
  39.  
  40. Btw, I just managed to `lock up' Linux pretty bad when I turned
  41. on the RAW keyboard mode with ioctl. It was my own stupidity/
  42. ignorance, of course, but it might be a good thing to have some
  43. "backup"-key which would turn on the XLATE-mode again.
  44.  
  45. > -- 
  46. > +---------------------------------+--------------------------------+
  47. > | Alan Charlton, Bristol, England | If B.U.R.D. doesn't spell Bird |
  48. > | agc@cix.compulink.co.uk         | - what the hell does it spell? |
  49. > | agc@weasel.demon.co.uk          |                                |
  50. > | Tel:  +44 454 202706 (after 6)  | ---  W. R. Hearst              |
  51. > +---------------------------------+--------------------------------+
  52.  
  53. -- 
  54. kennu@mits.mdata.fi
  55.