From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,2793a9655cc7677c X-Google-Attributes: gidfee84,public From: lar3ry@zk3.dec.com (lar3ry gensch) Subject: Re: Want to control console Num, Caps, and scroll Lock keys. Date: 1999/10/18 Message-ID: <7ufa6d$va1$1@nntpd.lkg.dec.com>#1/1 X-Deja-AN: 538176860 References: <7udj9s$c03$1@bunyip.cc.uq.edu.au> To: "T. Ken Hayakawa" Content-Type: text/plain; charset=us-ascii Organization: Compaq Computer Corporation Mime-Version: 1.0 Reply-To: larry.gensch@digital.com Newsgroups: comp.unix.osf.osf1 [Posted and mailed] In article <7udj9s$c03$1@bunyip.cc.uq.edu.au>, "T. Ken Hayakawa" writes: > Does anyone know hot to contorl (espcecially) NumLock key? I need to have > console NumLock key automatically set to active when the system is booted. > > I hope this is very simple on DIGITAL UNIX. The `xset' utility maintains the leds. The `dxkeycaps' utility can be used to programmatically simulate key press and key release events (this may be a bit tricky, but it appears that it might be able to do this). If `xdpyinfo' shows that you are using the XKB extension, you may find some utility in the XKB functions: man -k XKB dxkbledpanel (1X) - Present an on-screen display of keyboard indicators. xkbcomp (1X) - compile XKB keyboard description xkbdfltmap (1X) - Determine default X keymap for locale and keyboard xkbprint (1X) - print an XKB keyboard description If all of these routes fail, it may be possible to write a short X program that does what you want. It will have to generate synthetic X events (which your X server may or may not decide to ignore for security purposes). Mind you, it has been a few years since I did any X window programming. I got most of this information from using `man' on my Tru64 Unix 5.0 system. Good luck! -- Larry Gensch Larry.Gensch@digital.com Compaq Computer Corporation As usual, the 110 Spit Brook Road ZKO3-2/W17 standard disclaimers Nashua, NH 03062 apply, etc.