Difference between revisions of "Activating Numlock on Bootup (Italiano)"

From ArchWiki
Jump to: navigation, search
(created page and marked for translation)
 
m (translating)
Line 6: Line 6:
 
[[de:Numlock]]
 
[[de:Numlock]]
  
== TTY (Teletype) Consoles 1-6 ==
+
== TTY (Teletype) Console 1-6 ==
  
To activate NumLock during normal bootup in TTY consoles 1-6 (tty1 -> tty6), add the following line to {{Filename|/etc/rc.local}}:
+
Per attivare il NumLock durante il normale avvio dalle console 1-6 (tty1 -> tty6), aggiungere la seguente linea al file {{Filename|/etc/rc.local}}:
 
  for tty in /dev/tty?; do /usr/bin/setleds -D +num < "$tty"; done
 
  for tty in /dev/tty?; do /usr/bin/setleds -D +num < "$tty"; done
  
If strange things start to happen (the NumLock LED is on, but the num pad still works as arrow keypad), there seems to be a conflict between <code>setleds</code> and Xserver.
+
Se si verificano comportamenti strani (il led del NumLock è acceso, ma all'effettivo viene interpretato come se non lo fosse), probabilmente c'è un coflitto tra {{Codeline|setleds}} ed Xserver.
Limit the <code>for</code> command only to the consoles you have set on {{Filename|/etc/inittab}}. For example, for the first 6 consoles (default) : <code>for tty in /dev/tty{1..6}; do</code> ...
+
Limitare il ciclo {{Codeline|for}} solamente alla console impostata nel file {{Filename|/etc/inittab}}. Ad esemprio, per le prime 6 console (quelle di default):  
 +
 
 +
for tty in /dev/tty{1..6}; do ...
  
 
== X.org ==
 
== X.org ==
If you use startx to start your X session, simply install the numlockx package and add it to your {{Filename|~/.xinitrc}} file.
+
Se si usa {{Codeline|startx}} per avviare la sessione X, basterà semplicemente installare il pacchetto {{Package Official|numlockx}} ed aggiungerlo al proprio {{Filename|~/.xinitrc}}.
  
Install <code>numlockx</code>:
+
Installare {{Package Official|numlockx}}:
 
  # pacman -S numlockx
 
  # pacman -S numlockx
  
Add it to {{Filename|~/.xinitrc}} before <code>exec</code>:
+
Aggiugerlo al file {{Filename|~/.xinitrc}} prima del comando {{Codeline|exec}}:
 
  #!/bin/sh
 
  #!/bin/sh
 
  #
 
  #

Revision as of 20:34, 26 September 2011

Tango-preferences-desktop-locale.pngThis article or section needs to be translated.Tango-preferences-desktop-locale.png

Notes: please use the first argument of the template to provide more detailed indications. (Discuss in Talk:Activating Numlock on Bootup (Italiano)#)

This template has only maintenance purposes. For linking to local translations please use interlanguage links, see Help:i18n#Interlanguage links.


Local languages: Català – Dansk – English – Español – Esperanto – Hrvatski – Indonesia – Italiano – Lietuviškai – Magyar – Nederlands – Norsk Bokmål – Polski – Português – Slovenský – Česky – Ελληνικά – Български – Русский – Српски – Українська – עברית – العربية – ไทย – 日本語 – 正體中文 – 简体中文 – 한국어


External languages (all articles in these languages should be moved to the external wiki): Deutsch – Français – Română – Suomi – Svenska – Tiếng Việt – Türkçe – فارسی

TTY (Teletype) Console 1-6

Per attivare il NumLock durante il normale avvio dalle console 1-6 (tty1 -> tty6), aggiungere la seguente linea al file Template:Filename:

for tty in /dev/tty?; do /usr/bin/setleds -D +num < "$tty"; done

Se si verificano comportamenti strani (il led del NumLock è acceso, ma all'effettivo viene interpretato come se non lo fosse), probabilmente c'è un coflitto tra Template:Codeline ed Xserver. Limitare il ciclo Template:Codeline solamente alla console impostata nel file Template:Filename. Ad esemprio, per le prime 6 console (quelle di default):

for tty in /dev/tty{1..6}; do ...

X.org

Se si usa Template:Codeline per avviare la sessione X, basterà semplicemente installare il pacchetto Template:Package Official ed aggiungerlo al proprio Template:Filename.

Installare Template:Package Official:

# pacman -S numlockx

Aggiugerlo al file Template:Filename prima del comando Template:Codeline:

#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)
#

numlockx &

exec your_window_manager

KDM

If you use KDM as a login manager, add :

numlockx on

to your {{Filename|/usr/share/config/kdm/Xsetup, or to Template:Filename if you're using KDM3.

Note that this file lives outside of Pacman's protected area, so it might be overwritten on update without warning or creating a .pacnew file. If it bothers you, add the following line to your Template:Filename file (omit the leading slash in the path):

NoUpgrade = usr/share/config/kdm/Xsetup

KDE4 Users

Go to System Settings, under the Hardware/Input Devices/Keyboard item you will find an option to select the behavior of NumLock.


Alternate Method

You may alternatively add a script to your Template:Filename directory:

$ nano ~/.kde4/Autostart/numlockx

Add the following:

#!/bin/sh
numlockx on

And make it executable:

$ chmod +x ~/.kde4/Autostart/numlockx

GDM

First make sure that you have numlockx (from extra) installed. Then, GDM users may add the following code to Template:Filename:

if [ -x /usr/bin/numlockx ]; then
      /usr/bin/numlockx on
fi

SLiM

In the file Template:Filename find the line:

#numlock             on

and remove the "#"