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