Opened 12 years ago

Closed 12 years ago

Last modified 10 years ago

#3344 closed enhancement (wontfix)

Add numlockx and numlock script to the book

Reported by: Fernando de Oliveira Owned by: blfs-book@…
Priority: low Milestone:
Component: BOOK Version: SVN
Severity: minor Keywords:
Cc:

Description

Both are used to turn on numlock automatically.

Change History (4)

comment:1 by bdubbs@…, 12 years ago

Is this really necessary? I believe that most of the time the bootup state of the numlock key can be set in the bios.

I found numlockx and it's a simple CMMI for a single 250 line c program.

The numlock for standard tty can also be set with:

for tty in /dev/tty{1..6}; do /usr/bin/setleds -D +num < "$tty"; done

The X tty is normally 7 (depends on inittab) so turning on 7 would probably work for that.

in reply to:  1 comment:2 by Fernando de Oliveira, 12 years ago

Replying to bdubbs@…:

I hope this is to be replied here, and not in dev.

Is this really necessary? I believe that most of the time the bootup state of the numlock key can be set in the bios.

I have machines where it cannot be set in bios.

I found numlockx and it's a simple CMMI for a single 250 line c program.

Yes.

The numlock for standard tty can also be set with:

for tty in /dev/tty{1..6}; do /usr/bin/setleds -D +num < "$tty"; done

Thanks for that! I had come across it some years ago, but did not know it was for tty. After some thought I have just created a boot script for this, linked to runlevels 3 4 5, and works. Used tty{1..7}.

The X tty is normally 7 (depends on inittab) so turning on 7 would probably work for that.

The machine does not start X or wm session using inittab, perhaps the reason for not working for it. Have no idea why, but X is in different tty, depending on the machine.

For the script, I find it might be educational for some users (was for me) and useful. It could be described in the numlockx page.

I do not mind if you decide against including in the book, but numlockx is useful (in my particular case, essential), and is mentioned in the book as an external link and found in most distributions - I know what you think about distributions. :-)

comment:3 by bdubbs@…, 12 years ago

Resolution: wontfix
Status: newclosed

X uses the first available tty. Generally inittab uses the first six tty devices and then X takes the 7th.

This is too simple a program to add to the overhead of the book.

comment:4 by bdubbs@…, 10 years ago

Milestone: current

Milestone current deleted

Note: See TracTickets for help on using tickets.