Activating Numlock on Bootup

From ArchWiki
Revision as of 03:56, 23 October 2005 by Penguin (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Boot Process

Activating Numlock on Bootup

Virtual Consoles 1-6

To activate the numlock during normal bootup in virtual consoles 1-6 (vc/n), add the following line to /etc/rc.local:

for i in $(seq 6); do /usr/bin/setleds -D +num < /dev/vc/${i} >/dev/null; done

X windows

If you use startx to start your X windows session, simply install the numlockx package and add it to your ~/.xinitrc file.

Install numlockx:

pacman -S numlockx

Add it to ~/.xinitrc before "exec":

# ~/.xinitrc
# Executed by startx (run your window manager from here)

numlockx &

exec your_window_manager