Gentoo Archives: gentoo-user

From: Mick <michaelkintzios@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] NumLock puzzle
Date: Tue, 24 May 2016 18:10:03
Message-Id: 2756114.fNYTaf7jmF@dell_xps
In Reply to: Re: [gentoo-user] NumLock puzzle by wabe
1 On Tuesday 24 May 2016 19:41:41 wabe wrote:
2 > Philip Webb <purslow@××××××××.net> wrote:
3 > > 160524 wabe wrote:
4 > > > Philip Webb <purslow@××××××××.net> wrote:
5 > > >> I've noticed that the NumLock key goes off after 'startx'.
6 > > >> My window manager is Fluxbox & I don't see any mention there
7 > > >> nor does there seem to be any setting under /etc/X11 .
8 > > >> I have added 'numlock' to the default runlevel,
9 > > >> but that makes no difference.
10 > > >
11 > > > I had the same "problem" under XFCE till I added to my .xinitrc
12 > > > 'xsetleds +num -caps -scroll'
13 > >
14 > > I tried that, inserting it before/after 'startfluxbox',
15 > > but it makes no difference.
16 > > 'xsetleds' has no man file & 'which xsetleds' yields nothing.
17 >
18 > $ which xsetleds
19 > /usr/bin/xsetleds
20 >
21 > eix xsetleds
22 > [I] x11-misc/xsetleds
23 > Verfügbare Versionen: 0.1.3{tbz2} ~0.1.3-r1
24 > Installierte Versionen: 0.1.3{tbz2}(07:53:32 25.10.2010)
25 > Startseite: ftp://ftp.unix-ag.org/user/bmeurer/xsetleds/
26 > Beschreibung: small tool to report and change the keyboard
27 > LED states of an X display
28 >
29 >
30 > There is also a manpage for xsetleds. I guess, xsetleds isn't just
31 > installed on your system.
32 >
33 > --
34 > Regards
35 > wabe
36
37 Alternatively, check man xset.
38
39 I was not sure if either of these just switches the LEDs on/off, or if it also
40 modifies the underlying functionality. I couldn't get xset to change my
41 numlock because it wouldn't recognise "Num Lock" as a name and numbers 1 to 3
42 would not have an effect on it.
43
44 Anyway, the way I did it was by emerging numlockx and then creating this file:
45
46 cat /etc/X11/xinit/xinitrc.d/95-numlockx
47 #!/bin/sh
48 numlockx on
49
50 --
51 Regards,
52 Mick

Attachments

File name MIME type
signature.asc application/pgp-signature