NumLock in X

NumLock in X

Post by Matthew Leinho » Tue, 08 Feb 2000 04:00:00



Could anyone tell me how to get the NumLock to turn on automatically, upon
starting X? I am running SuSE 6.3.

Thanks,
Matt

--
"Where have you gone, Joe DiMaggio?  |              Matthew Leinhos

 to you."                            |    Colorado State University
         --Paul Simon                | Computer Science, Math major

 
 
 

NumLock in X

Post by Thomas Zaj » Wed, 09 Feb 2000 04:00:00



> Could anyone tell me how to get the NumLock to turn on automatically,
> upon starting X? I am running SuSE 6.3.

You can't. This was a feature in some older versions of X which has been
removed, AFAIK.

Thomas
--
=-------------------------------------------------------------------------=

-  "It is not easy to cut through a human head with a hacksaw."  (M. C.)  -
=-------------------------------------------------------------------------=

 
 
 

NumLock in X

Post by Hal Burgi » Wed, 09 Feb 2000 04:00:00


On Mon, 7 Feb 2000 20:19:50 -0700, Matthew Leinhos


>Could anyone tell me how to get the NumLock to turn on automatically,
>upon starting X? I am running SuSE 6.3.

You can try 'man xset' and check the section on 'leds'. I never could
get this to work. Someone around here pointed me to this:

In your ~/.Xmodmap put:

keycode 79=7
keycode 80=8
keycode 81=9
keycode 83=4
keycode 84=5
keycode 85=6
keycode 87=1
keycode 88=2
keycode 89=3
keycode 90=0
keycode 91=period

Then 'xmodmap ~/.Xmodmap'. No light on the keyboard, but keypad works
fine. Make sure one of your start scripts is doing the xmodmap thing.

--
Hal B

--

 
 
 

NumLock in X

Post by b.. » Wed, 09 Feb 2000 04:00:00


I have the same problem with SuSe 6.3. With RedHat6.0 you could edit the file default.kmap and change the keycodes for numpad but I have not found such a file with SuSE.


> > Could anyone tell me how to get the NumLock to turn on automatically,
> > upon starting X? I am running SuSE 6.3.

> You can't. This was a feature in some older versions of X which has been
> removed, AFAIK.

> Thomas
> --
> =-------------------------------------------------------------------------=

> -  "It is not easy to cut through a human head with a hacksaw."  (M. C.)  -
> =-------------------------------------------------------------------------=

==================================
Posted via http://nodevice.com
Linux Programmer's Site
 
 
 

NumLock in X

Post by Thomas Zaj » Wed, 09 Feb 2000 04:00:00



> I have the same problem with SuSe 6.3. With RedHat6.0 you could edit
> the file default.kmap and change the keycodes for numpad but I have
> not found such a file with SuSE.

Sure, you can always remap the keypad keys to act _as_if_ NumLock was
on, but you can't _set_ NumLock on (bar pressing NumLock manually, of
course :-). This works with all distributions, see 'man xmodmap'.

Thomas
--
=-------------------------------------------------------------------------=

-  "It is not easy to cut through a human head with a hacksaw."  (M. C.)  -
=-------------------------------------------------------------------------=

 
 
 

NumLock in X

Post by Martijn Brouw » Wed, 09 Feb 2000 04:00:00


In article


>Could anyone tell me how to get the NumLock to turn on automatically, upon
>starting X? I am running SuSE 6.3.

Actually I always have Numlock, and the appropriate led, on when I boot. I am
using SuSE 6.0. You can achiev this by editing your /etc/rc.config file. There
is an item like Numlock_boot_status. Afterwards run SuSEconfig.
 
 
 

NumLock in X

Post by Kevin Hay » Mon, 14 Feb 2000 04:00:00




>> Could anyone tell me how to get the NumLock to turn on automatically,
>> upon starting X? I am running SuSE 6.3.

>You can't. This was a feature in some older versions of X which has been
>removed, AFAIK.

>Thomas
>--
>=-------------------------------------------------------------------------=

>-  "It is not easy to cut through a human head with a hacksaw."  (M. C.)  -
>=-------------------------------------------------------------------------=

Put something like this in your .Xmodmap file,
works for me...

 ! redefine numeric keypad & deactivate NumLock
 keycode 79 = 7
 keycode 80 = 8
 keycode 81 = 9

 keycode 83 = 4
 keycode 84 = 5
 keycode 85 = 6

 keycode 87 = 1
 keycode 88 = 2
 keycode 89 = 3

 keycode 90 = 0
 keycode 91 = period
 keycode 86 = plus
                                                                                                  !
 !deactivates NumLock key
 keycode 77 =            

--
Kevin Hayes
Freshwater, Australia

  -----------== Posted via Newsfeeds.Com, Uncensored Usenet News ==----------
   http://www.newsfeeds.com       The Largest Usenet Servers in the World!
------== Over 73,000 Newsgroups - Including  Dedicated  Binaries Servers ==-----