You are not logged in.

#1 2009-08-20 04:38:17

deconstrained
Member
Registered: 2008-03-31
Posts: 49

Errors when enabling numlock on bootup

I added the following line to /etc/rc.local recently:

for tty in /dev/tty*; do /usr/bin/setleds -D +num < "$tty"; done

although this does enable numlock on bootup (yay) I see the following error message during boot:

KDGKBLED: Input/output error
Error reading current flags setting. Maybe you are not on the console?

What can I do to change this? Also, I'm using a USB keyboard... might this have something to do with it?

Offline

#2 2009-08-20 06:21:32

djszapi
Member
From: Cambridge, United Kingdom
Registered: 2009-06-14
Posts: 1,439
Website

Offline

#3 2009-08-20 06:39:50

deconstrained
Member
Registered: 2008-03-31
Posts: 49

Re: Errors when enabling numlock on bootup

No; my Arch box doesn't run xorg; numlockx is for enabling it in a GUI, and I'm trying to get it on my tty consoles.

Nevertheless, I just now found a solution: replace the "*" with a "?" wildcard; I only have/use six consoles, so tty1, tty2, etc... get selected, and this works without giving me any errors.

Offline

Board footer

Powered by FluxBB