Num Lock goes off when entering X session

Ben Woods woodsb02 at
Sat Mar 7 23:15:51 UTC 2015

This previous post should help you:

In summary, install the numlockx package and put "numlockx" in ~/.xinitrc,
before the lines starting the window manager.


On Sunday, March 8, 2015, Polytropon <freebsd at> wrote:

> I'd like to ask for explanation and advice regarding an observation
> that I made across XFree86 and sessions: When my system boots
> up, the Num Lock LED is activated (and the Num mode is on, as hereby
> suggested). Then I enter XDM and log in. As soon as the "real" X
> session starts, Num Lock goes off, and it needs to be manually
> reactivated. This also happens when I log off, re-enter XDM, log in
> again - and Num Lock goes off again.
> Does it have to be that way? And when yes, then why?
> Is there a way to switch Num Lock on via ~/.xinitrc, or tell X
> to not change it?
> NB: I'm using a regular keyboard (IBM Model M) and have to use
> the numeric block quite often. So this is an issue for me...
> --
> Polytropon
> Magdeburg, Germany
> Happy FreeBSD user since 4.0
> Andra moi ennepe, Mousa, ...
> _______________________________________________
> freebsd-questions at <javascript:;> mailing list
> To unsubscribe, send any mail to "
> freebsd-questions-unsubscribe at <javascript:;>"


From: Benjamin Woods
woodsb02 at

More information about the freebsd-questions mailing list