Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: lar3ry@zk3.dec.com (lar3ry gensch)
To: "T. Ken Hayakawa" <kenh@vrt.com.au>
Subject: Re: Want to control console Num, Caps, and scroll Lock keys.
Date: 1999/10/18	[thread overview]
Message-ID: <7ufa6d$va1$1@nntpd.lkg.dec.com> (raw)
In-Reply-To: 7udj9s$c03$1@bunyip.cc.uq.edu.au

[Posted and mailed]

In article <7udj9s$c03$1@bunyip.cc.uq.edu.au>,
	"T. Ken Hayakawa" <kenh@vrt.com.au> 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.



      parent reply	other threads:[~1999-10-18  4:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-10-18  4:00 Want to control console Num, Caps, and scroll Lock keys T. Ken Hayakawa
1999-10-18  4:00 ` WB3KUM
1999-10-18  4:00 ` lar3ry gensch [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox