Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Debian 9 Gnome : numlockx

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
User avatar
f.r3d
Posts: 75
Joined: 2016-07-28 16:39
Location: France
Has thanked: 4 times

Debian 9 Gnome : numlockx

#1 Post by f.r3d »

Hello everyone,

It is not my first time that I have installed a debian system and I usually know how to activate numlockx thanks to this documentation but it does not seem to work on Debian 9 Gnome...
Do you know what might have changed between debian 8 and 9?
Thank you for your help!
Debian 11 Gnome 64bit
Thinkpad T460
4X Intel Core i7-6600U / 8GB Ram / Intel HD Graphics 520 / 256GB SSD /

User avatar
debiman
Posts: 3063
Joined: 2013-03-12 07:18

Re: Debian 9 Gnome : numlockx

#2 Post by debiman »

i don't speak or read french, but "activating" numlockx probably means autostarting it.
you can do that from your user session, startup applications (assuming gnome).

User avatar
alan stone
Posts: 269
Joined: 2011-10-22 14:08
Location: In my body.

Re: Debian 9 Gnome : numlockx

#3 Post by alan stone »

I don't use D9, neither gnome, however does this help?

User avatar
f.r3d
Posts: 75
Joined: 2016-07-28 16:39
Location: France
Has thanked: 4 times

Re: Debian 9 Gnome : numlockx

#4 Post by f.r3d »

With Debian 8 numlockx worked fine at the logon screen, now with Debian 9 something is new and is not configured in the same way.
Debian 11 Gnome 64bit
Thinkpad T460
4X Intel Core i7-6600U / 8GB Ram / Intel HD Graphics 520 / 256GB SSD /

User avatar
alan stone
Posts: 269
Joined: 2011-10-22 14:08
Location: In my body.

Re: Debian 9 Gnome : numlockx

#5 Post by alan stone »

Insofar available, set the numlock through a gnome "keyboard preferences" option related to "numeric keypad keys"?

User avatar
f.r3d
Posts: 75
Joined: 2016-07-28 16:39
Location: France
Has thanked: 4 times

Re: Debian 9 Gnome : numlockx

#6 Post by f.r3d »

I created ~/.xprofile and /etc/xprofile with:

Code: Select all

if [ -x /usr/bin/numlockx ]; then
      /usr/bin/numlockx on
fi
and all the other options listed in https://wiki.archlinux.org/index.php/Ac ... _on_Bootup but it does not work...
Debian 11 Gnome 64bit
Thinkpad T460
4X Intel Core i7-6600U / 8GB Ram / Intel HD Graphics 520 / 256GB SSD /

User avatar
None1975
df -h | participant
df -h | participant
Posts: 1388
Joined: 2015-11-29 18:23
Location: Russia, Kaliningrad
Has thanked: 45 times
Been thanked: 65 times

Re: Debian 9 Gnome : numlockx

#7 Post by None1975 »

f.r3d wrote:Thank you for your help!
Hello. Read this.
OS: Debian 12.4 Bookworm / DE: Enlightenment
Debian Wiki | DontBreakDebian, My config files on github

User avatar
f.r3d
Posts: 75
Joined: 2016-07-28 16:39
Location: France
Has thanked: 4 times

Re: Debian 9 Gnome : numlockx

#8 Post by f.r3d »

I created ~/.gnomerc and ~/.xsessionrc with

Code: Select all

if [ -x /usr/bin/numlockx ]; then
      /usr/bin/numlockx on
fi
but numlockx is not activated yet...

I am self-taught in Debian/linux. I have been using it for 8 years but I am not an expert. I have already browsed through documentations and forums, and maybe the solution is somewhere in those documentations but I did not find it because I could not understand it. I did my part of searching but I CAN'T find it.
Debian 11 Gnome 64bit
Thinkpad T460
4X Intel Core i7-6600U / 8GB Ram / Intel HD Graphics 520 / 256GB SSD /

User avatar
alan stone
Posts: 269
Joined: 2011-10-22 14:08
Location: In my body.

Re: Debian 9 Gnome : numlockx

#9 Post by alan stone »

You might try one of the methods explained in this video.

User avatar
f.r3d
Posts: 75
Joined: 2016-07-28 16:39
Location: France
Has thanked: 4 times

Re: Debian 9 Gnome : numlockx

#10 Post by f.r3d »

It did not work. I tried the 3rd and the 4th methods (the others do not apply to Gnome).
Debian 11 Gnome 64bit
Thinkpad T460
4X Intel Core i7-6600U / 8GB Ram / Intel HD Graphics 520 / 256GB SSD /

User avatar
debiman
Posts: 3063
Joined: 2013-03-12 07:18

Re: Debian 9 Gnome : numlockx

#11 Post by debiman »

does numlockx work when you execute it manually?

also, what is the output of

Code: Select all

which numlockx
(i sense a triplefacepalm coming on)

User avatar
f.r3d
Posts: 75
Joined: 2016-07-28 16:39
Location: France
Has thanked: 4 times

Re: Debian 9 Gnome : numlockx

#12 Post by f.r3d »

Code: Select all

frederic@frederic-laptop:~$ which numlockx
/usr/bin/numlockx
I think numlockx works perfectly, the problem is that GDM does not load it at the login screen.
Debian 11 Gnome 64bit
Thinkpad T460
4X Intel Core i7-6600U / 8GB Ram / Intel HD Graphics 520 / 256GB SSD /

User avatar
debiman
Posts: 3063
Joined: 2013-03-12 07:18

Re: Debian 9 Gnome : numlockx

#13 Post by debiman »

have you tried the console options from the archwiki article you linked?

i think your problem is that most advice applies to the X session, but the login manager is not really part of the X session.
so maybe the tty stuff will work.

PS:
https://unix.stackexchange.com/question ... screen-gdm

ruffwoof
Posts: 298
Joined: 2016-08-20 21:00

Re: Debian 9 Gnome : numlockx

#14 Post by ruffwoof »

apt-get numlockx should install it so that it automatically starts at startup.

Try dpkg-reconfigure numlockx
... and check that /etc/X11/Xession-d/55-numlockx file exists (man page suggests its copied from /usr/share/doc/numlockx/55numlockx). Also try changing /etc/default/numlockx to a value of ON rather than AUTO

User avatar
furquan
Posts: 48
Joined: 2017-05-10 11:57
Location: India

Re: Debian 9 Gnome : numlockx

#15 Post by furquan »

You have to be in an X session for numlockx to work (which you seem to, since it works manually). GDM uses Wayland by default (not sure from which versions onwards), does using the Xorg backend help?

Also: do check if adding a line in /etc/gdm3/Init/Default helps or not.

There's also a very old (~6-7 years) unfixed bug which might be relevant to your situation.
The source code for the kernel, library, etc. should fit on one diskette. Sources for the GNU utilities will vary (and will be big). The sources to GNU emacs will take at least 3 disks. -- Theodore Ts'o, 1992 (distributing the first Linux disks)

Post Reply