Mailinglist Archive: opensuse (2407 mails)
| < Previous | Next > |
[SLE] Activate NumLock @ Start of Xwindows
- From: tabanna@xxxxxxxxxxxxxxx (tabanna)
- Date: Fri, 11 Aug 2000 11:13:21 +0000
- Message-id: <00081111193001.00392@AIG>
Hi SuSErs :)
from the SuSE Knowledge_Base, I got the following :-
.............................................
Activate Numlock key at the start of X
Request:
You would like to have the Numlock key activated at the start of the
graphical user interface instead of pressing the Numlock-key manually.
Procedure:
Use the following program to activate the NumLock-key
//numlock.c
#include
#include
int main(void) {
Display* disp = XOpenDisplay( NULL );
if( disp == NULL )
return 1;
XTestFakeKeyEvent( disp, XKeysymToKeycode( disp, XK_Num_Lock), True, CurrentTime );
XTestFakeKeyEvent( disp, XKeysymToKeycode( disp, XK_Num_Lock), False, CurrentTime );
XCloseDisplay( disp );
return 0;
}
Create a file Numlock.c with the program code mentioned above and
enter the command
gcc -I/usr/X11R6/include -L/usr/X11R6/lib -o setnumlock Numlock.c -lX11 -lXtst
To successfully invoke this command you need the C compiler(series d,
package gcc) and the include files of the X libraries(package xdevel,
series x). You will find a program called setnumlock in the current
directory. You have to copy this file into the directory /usr/bin/local
and make an entry in the file ~/.xinitrc.
..............................................................
I believe that I have read this stuff, and have the libraries needed.
.. . . maybe I did not understand what I read !
Attempts to execute the instructions, in the directories of
/root, then /usr/src/linux, and finally /home/myself have all failed :(
Did anyone have better luck ?
best wishes
Richard
-------
____________
sent on Linux
____________
This Email is 100% Virus Free!
How do I know? ~ Because no Microsoft
products were used to generate it!
--
To unsubscribe send e-mail to suse-linux-e-unsubscribe@xxxxxxxx
For additional commands send e-mail to suse-linux-e-help@xxxxxxxx
Also check the FAQ at http://www.suse.com/support/faq
| < Previous | Next > |