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

 

 

 

GDM3 Enable NumLock on boot, before login

Graphical Environments, Managers, Multimedia & Desktop questions.
Post Reply
Message
Author
ponasm
Posts: 4
Joined: 2018-07-21 08:36

GDM3 Enable NumLock on boot, before login

#1 Post by ponasm »

Hey. I have had trouble trying to enable NumLock on boot.
I use Gnome Display Manager. I have numlockx installed and tried placing

Code: Select all

/usr/bin/numlockx on
in /etc/rc.local (which resulted in error opening display. Then I tried placing it in /etc/gdm3/Init/Default, just to find out it doesn't even get executed at boot. After trying few more things I finally came up with the solution: I installed lightdm and placed

Code: Select all

greeter-setup-script=/usr/bin/numlockx on
in /usr/share/lightdm/lightdm.conf.d/01_debian.conf. I finally got my numlock enabled on boot, but the lightdm greeter is horrible and would like to get it working on GDM.
Ṳ̴̰̮̗͘ͅͅN̡̟̮̬̬̞͚̘̗̲̯̙̻͘Ì̷̧̡͙̪̘̮̬̟̝̝͡Ç̸̬͈̰̣͉͇̥̮̖̖̦͉͡͡ͅÓ̸̱̝̪͚͕͔͍̺̣̟͍̩̫͍͡͠D̨̡̧͕̲̻̝͇̣̘̻̣͔͢͡E̵̯͈̦̫̕̕͟͠4̴̦̙̣̮̦̖͢͟L̴̨͈̫͉̞͚͓̮͔̞͙̟͚͖͜͢͡I͏͜͏̷̣̻̜̘͙̻̘̟̝̥̣̦̣̥̟̙ͅF͏͏̸͉͔̥̲̺̮̟̩͕͍E͏̲̺̜̘̳̮̥̯̺̲̹̩̳̰͍̱͔̀̀

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 133 times

Re: GDM3 Enable NumLock on boot, before login

#2 Post by Head_on_a_Stick »

The ArchWiki suggests ~/.xprofile but I think ~/.profile is the one for Debian:

https://wiki.archlinux.org/index.php/Ac ... up#Console

That won't work before login though, for obvious reasons, so perhaps try https://wiki.archlinux.org/index.php/Ac ... up#Console?

Disclaimer: all untested, I don't run a display manager :)
deadbang

ponasm
Posts: 4
Joined: 2018-07-21 08:36

Re: GDM3 Enable NumLock on boot, before login

#3 Post by ponasm »

Thanks. I created a service and did some tests to see if it gets executed before login, and yes it does, but my numlock for some reason is still disabled. I also tried changing this piece of code:

Code: Select all

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

Code: Select all

/usr/bin/numlockx on

(which worked on lightdm conf.d file)
but it also doesn't seem to work.
Ṳ̴̰̮̗͘ͅͅN̡̟̮̬̬̞͚̘̗̲̯̙̻͘Ì̷̧̡͙̪̘̮̬̟̝̝͡Ç̸̬͈̰̣͉͇̥̮̖̖̦͉͡͡ͅÓ̸̱̝̪͚͕͔͍̺̣̟͍̩̫͍͡͠D̨̡̧͕̲̻̝͇̣̘̻̣͔͢͡E̵̯͈̦̫̕̕͟͠4̴̦̙̣̮̦̖͢͟L̴̨͈̫͉̞͚͓̮͔̞͙̟͚͖͜͢͡I͏͜͏̷̣̻̜̘͙̻̘̟̝̥̣̦̣̥̟̙ͅF͏͏̸͉͔̥̲̺̮̟̩͕͍E͏̲̺̜̘̳̮̥̯̺̲̹̩̳̰͍̱͔̀̀

User avatar
Head_on_a_Stick
Posts: 14114
Joined: 2014-06-01 17:46
Location: London, England
Has thanked: 81 times
Been thanked: 133 times

Re: GDM3 Enable NumLock on boot, before login

#4 Post by Head_on_a_Stick »

deadbang

Post Reply