Difference between revisions of "Talk:Activating Numlock on Bootup"

From ArchWiki
Jump to: navigation, search
m (Initscripts method: duh)
(systemd service -> AUR Package)
(One intermediate revision by one other user not shown)
Line 1: Line 1:
== systemd service -> AUR Package ==
+
--[[User:Josephk|Josephk]] ([[User talk:Josephk|talk]]) 16:58, 23 February 2013 (UTC)== systemd service -> AUR Package ==
  
 
In reference to to the 12/22 modification by Hgabreu I've created a little service who launch the script described here : [https://wiki.archlinux.org/index.php/Activating_Numlock_on_Bootup#Console]
 
In reference to to the 12/22 modification by Hgabreu I've created a little service who launch the script described here : [https://wiki.archlinux.org/index.php/Activating_Numlock_on_Bootup#Console]
Line 17: Line 17:
 
It's me again, peoples ask me to change the name of the packet, so now it will be systemd-numlockontty
 
It's me again, peoples ask me to change the name of the packet, so now it will be systemd-numlockontty
 
--[[User:Ybalrid|Ybalrid]] ([[User talk:Ybalrid|talk]]) 23:54, 2 January 2013 (UTC)
 
--[[User:Ybalrid|Ybalrid]] ([[User talk:Ybalrid|talk]]) 23:54, 2 January 2013 (UTC)
== Initscripts method ==
 
Since initscripts is not longer supported, I moved the old way here. - [[User:Chrisl|Chrisl]] ([[User talk:Chrisl|talk]]) 18:38, 11 January 2013 (UTC)
 
=== The old way ===
 
  
To activate NumLock during normal bootup in TTY (Teletype) consoles 1-6 (tty1 -> tty6) add the following line to {{ic|/etc/rc.local}}:
 
  
for tty in /dev/tty?; do /usr/bin/setleds -D +num < "$tty"; done
+
as of KDE. script workaround as described didn't work for me.
 
+
adding .sh extension and pre-kde startup did the trick
If the NumLock LED is on but the number pad still works as an arrow keypad it may be because of a conflict between {{Ic|setleds}} and Xserver. Limit the {{Ic|for}} command only to the consoles you have set on {{ic|/etc/inittab}}:
+
--[[User:Josephk|Josephk]] ([[User talk:Josephk|talk]]) 16:58, 23 February 2013 (UTC)
 
+
for tty in /dev/tty{1..6}; do ...
+

Revision as of 16:58, 23 February 2013

--Josephk (talk) 16:58, 23 February 2013 (UTC)== systemd service -> AUR Package ==

In reference to to the 12/22 modification by Hgabreu I've created a little service who launch the script described here : [1]

It works fine on my computer so I created a package on AUR, for sharing this little thing with the community. It doesn't depend on a deprecated file from initscript, (/etc/rc.local), it's full systemd :D

You can try to install it : numlockontty package [2]

the service name is numLockOnTty, so you just have to enable it.

If you think it's useful, we can edit the page to add theses instruction (in proper snglish because mine is a little poor and pretty awful... sorry I'm french ^^") --Ybalrid (talk) 19:37, 2 January 2013 (UTC)

It's me again, peoples ask me to change the name of the packet, so now it will be systemd-numlockontty --Ybalrid (talk) 23:54, 2 January 2013 (UTC)


as of KDE. script workaround as described didn't work for me. adding .sh extension and pre-kde startup did the trick --Josephk (talk) 16:58, 23 February 2013 (UTC)