Thread View: de.comp.os.unix.linux.misc
3 messages
3 total messages
Started by Matthias Gerds
Fri, 16 Oct 2026 12:30
NumLock / Console
Author: Matthias Gerds
Date: Fri, 16 Oct 2026 12:30
Date: Fri, 16 Oct 2026 12:30
34 lines
1697 bytes
1697 bytes
Hallo! Vorweg: Ich starte hier ein Debian13-System ohne GUI, also nur per Console. Kriege es aber einfach nicht hin, dass NumLock beim Start eingeschaltet bleibt. Mag ja für Notebooks ohne Nummernblock die richtige Voreinstellung sein, aber nicht auf dem Desktop-PC: (1) BIOS/UEFI NumLock ist aktiviert (auch unter GRUB) (2) Script /etc/systemd/system/numlock.service erstellt: =============== [Service] ExecStartPre=/bin/sh -c 'setleds=+num < /dev/%I' =============== Systemctl-Dämonen neu geladen ... Kein Erfolg. (3) Eintrag 'LEDS=+num' in /etc/default/console-setup oder /etc/default/keyboard Kein Erfolg. Nach GRUB wird NumLock definitiv wieder ausgeschaltet. Evtl. nur ein Formfehler? P.S.: Unter KDE Plasma z.B. ist das kein Problem. Darum geht's mir aber nicht. M: --
Re: NumLock / Console (gelöst)
Author: Matthias Gerds
Date: Fri, 16 Oct 2026 15:48
Date: Fri, 16 Oct 2026 15:48
82 lines
3596 bytes
3596 bytes
Am Fri, 16 Oct 2026 14:30:23 +0200
schrieb Matthias Gerds <m.gerds@posteo.de>:
> Hallo!
>
> Vorweg: Ich starte hier ein Debian13-System ohne GUI, also nur per
> Console. Kriege es aber einfach nicht hin, dass NumLock beim Start
> eingeschaltet bleibt. Mag ja für Notebooks ohne Nummernblock die
> richtige Voreinstellung sein, aber nicht auf dem Desktop-PC:
>
> (1) BIOS/UEFI NumLock ist aktiviert (auch unter GRUB)
>
> (2) Script /etc/systemd/system/numlock.service erstellt:
> ===============
> [Service]
> ExecStartPre=/bin/sh -c 'setleds=+num < /dev/%I'
> ===============
> Systemctl-Dämonen neu geladen ... Kein Erfolg.
>
> (3) Eintrag 'LEDS=+num' in
> /etc/default/console-setup oder
> /etc/default/keyboard
> Kein Erfolg.
>
> Nach GRUB wird NumLock definitiv wieder ausgeschaltet.
>
> Evtl. nur ein Formfehler?
>
>
> P.S.: Unter KDE Plasma z.B. ist das kein Problem. Darum geht's mir
> aber nicht.
Habe es jetzt endlich hinbekommen, ok, das Llama3.2:8b hat geholfen:
Zeigt Ergebnisse für
debian 13 terminal only how to activate numlock before login
To activate NumLock before login on a Debian 13 terminal-only (TTY)
setup, you must enable it for the virtual consoles using a systemd
service that runs the setleds command.
1. Create the Systemd Service
Create a new service file to automate the activation of NumLock on all
virtual terminals:
[ sudo mkdir -p /etc/systemd/system ] if not exist
sudo nano /etc/systemd/system/numlock.service
==================================================
[Unit]
Description=Enable NumLock on all virtual consoles
After=getty.target
[Service]
Type=oneshot
ExecStart=/bin/bash -c 'for tty in /dev/tty{1..6}; do setleds -D +num < "$tty"; done' RemainAfterExit=yes
[Install]
WantedBy=multi-user.target
2. Enable and Start the Service
Enable the service so it runs automatically at boot and start it
immediately for the current session:
sudo systemctl daemon-reload
sudo systemctl enable --now numlock.service
This method ensures NumLock is active on all standard TTYs (/dev/tty1
through /dev/tty6) before any user logs in.
==================================================
Der Zahlenblock wird zwar mehrmals an- und ausgestellt während des
Bootvorgangs, ist aber VOR dem Consolen-Login an. Hatte ich mir
leichter vorgestellt, das Ganze ...
M:
--
Re: NumLock / Console (gelöst)
Author: Arno Welzel
Date: Wed, 28 Oct 2026 00:48
Date: Wed, 28 Oct 2026 00:48
14 lines
1629 bytes
1629 bytes
Matthias Gerds, 2026-10-16 17:48: > Der Zahlenblock wird zwar mehrmals an- und ausgestellt während des > Bootvorgangs, ist aber VOR dem Consolen-Login an. Hatte ich mir > leichter vorgestellt, das Ganze ... Ganz ohne KI: <https://wiki.archlinux.org/title/Activating_numlock_on_bootup_(Magyar)> -- Arno Welzel https://arnowelzel.de
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads