[Bug 1010880] New: NUMLOCK configuration not taken into account
http://bugzilla.opensuse.org/show_bug.cgi?id=1010880 Bug ID: 1010880 Summary: NUMLOCK configuration not taken into account Classification: openSUSE Product: openSUSE Distribution Version: Leap 42.2 Hardware: x86-64 OS: SUSE Other Status: NEW Severity: Normal Priority: P5 - None Component: Other Assignee: bnc-team-screening@forge.provo.novell.com Reporter: jcdole@free.fr QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- Current config : Yast/sysconfig/hardware/keyboard/KBD_NUMLOCK="yes" KDE 5 version 5.26.0 For every user : Systemsettings/hardware/input device/keyboard/hardware/numlock_on_plasma_startup="Turn on" On boot, re-boot : Numlock led is off, Numlock functionality is "Numlock off" Changing user by log-off followed by log-on on another user, switching to another user got two different behaviors : 1°) The led is on (numlock on) but Numlock functionality is "Numlock off"; clicking the numlock key set Numlock functionality is "Numlock off" without modifying the numlock led which stay on. 2°) The led is on (numlock on) but Numlock functionality is "Numlock off"; clicking the numlock key switch off the led and Numlock functionality is "Numlock off". Need to click the numlock key then Numlock functionality is "Numlock on". uname : 4.4.27-2-default #1 SMP Thu Nov 3 14:59:54 UTC 2016 (5c21e7c) x86_64 x86_64 x86_64 GNU/Linux SUSE-brand : openSUSE VERSION = 42.1 SuSE-release : openSUSE 42.2 (x86_64) VERSION = 42.2 CODENAME = Malachite os-release : NAME="openSUSE Leap" VERSION="42.2" ID=opensuse ID_LIKE="suse" VERSION_ID="42.2" PRETTY_NAME="openSUSE Leap 42.2" ANSI_COLOR="0;32" CPE_NAME="cpe:/o:opensuse:leap:42.2" BUG_REPORT_URL="https://bugs.opensuse.org" HOME_URL="https://www.opensuse.org/" -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1010880
http://bugzilla.opensuse.org/show_bug.cgi?id=1010880#c1
--- Comment #1 from Jean-Claude Dole
http://bugzilla.opensuse.org/show_bug.cgi?id=1010880
http://bugzilla.opensuse.org/show_bug.cgi?id=1010880#c2
--- Comment #2 from Jean-Claude Dole
http://bugzilla.opensuse.org/show_bug.cgi?id=1010880
http://bugzilla.opensuse.org/show_bug.cgi?id=1010880#c3
--- Comment #3 from Jean-Claude Dole
http://bugzilla.opensuse.org/show_bug.cgi?id=1010880
http://bugzilla.opensuse.org/show_bug.cgi?id=1010880#c4
--- Comment #4 from Jean-Claude Dole
http://bugzilla.opensuse.org/show_bug.cgi?id=1010880
http://bugzilla.opensuse.org/show_bug.cgi?id=1010880#c5
Christos Gourdoupis
http://bugzilla.opensuse.org/show_bug.cgi?id=1010880
http://bugzilla.opensuse.org/show_bug.cgi?id=1010880#c6
--- Comment #6 from Christos Gourdoupis
http://bugzilla.opensuse.org/show_bug.cgi?id=1010880
http://bugzilla.opensuse.org/show_bug.cgi?id=1010880#c7
Peter Gumbrell
http://bugzilla.opensuse.org/show_bug.cgi?id=1010880
http://bugzilla.opensuse.org/show_bug.cgi?id=1010880#c8
Chris Myers
http://bugzilla.opensuse.org/show_bug.cgi?id=1010880
http://bugzilla.opensuse.org/show_bug.cgi?id=1010880#c9
Stefan Dirsch
http://bugzilla.opensuse.org/show_bug.cgi?id=1010880
Felix Miata
http://bugzilla.opensuse.org/show_bug.cgi?id=1010880
Björn Voigt
http://bugzilla.opensuse.org/show_bug.cgi?id=1010880
http://bugzilla.opensuse.org/show_bug.cgi?id=1010880#c15
Felix Miata
http://bugzilla.opensuse.org/show_bug.cgi?id=1010880
http://bugzilla.opensuse.org/show_bug.cgi?id=1010880#c17
--- Comment #17 from Felix Miata
So how is this related to the kernel?
What but the kernel could be kicking NUM off when the BIOS has turned it on before the kernel loaded and init began? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1010880
http://bugzilla.opensuse.org/show_bug.cgi?id=1010880#c21
--- Comment #21 from Felix Miata
Of course this doesn't affect Felix, since he is surely using some ancient driver, which needs to be loaded by an Xserver running as root. ;-)
Ha ha. This is only happening so far on my week old Kaby Lake PC, the only one (of more than 25) I have configured to use UEFI/GPT. And, my problem is entirely independent of anything to do with Xorg, since it's on the vttys where my complaint lies, booted to multi-user.target. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1010880
http://bugzilla.opensuse.org/show_bug.cgi?id=1010880#c22
--- Comment #22 from Takashi Iwai
http://bugzilla.opensuse.org/show_bug.cgi?id=1010880
Franck Bui
http://bugzilla.opensuse.org/show_bug.cgi?id=1010880
http://bugzilla.opensuse.org/show_bug.cgi?id=1010880#c24
Stefan Dirsch
http://bugzilla.opensuse.org/show_bug.cgi?id=1010880
Stefan Dirsch
http://bugzilla.opensuse.org/show_bug.cgi?id=1010880
http://bugzilla.opensuse.org/show_bug.cgi?id=1010880#c25
Franck Bui
http://bugzilla.opensuse.org/show_bug.cgi?id=1010880
http://bugzilla.opensuse.org/show_bug.cgi?id=1010880#c26
--- Comment #26 from Stefan Dirsch
No that's not what I meant: it's not been removed erroneously since the plan was to move those bits to the kbd package.
Sure you've read comment#14 ? "Sysconfig was kept, but the function was moved from kbd sysvinit script to systemd. As kbd service does not exist, the functionality was moved to systemd. [...]" So it was exactly the other way round. You've mixed up something.
If so could you reassign this to Stanislav ?
He made his work by creating the patch for systemd, that one wants simply back ... I'm aware, that you want to remove any SUSE-specific patch from our systemd package ... -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1010880
http://bugzilla.opensuse.org/show_bug.cgi?id=1010880#c27
--- Comment #27 from Franck Bui
He made his work by creating the patch for systemd, that one wants simply back ...
No you got it wrong again. The plan (when the git repo for systemd was created) was to move it back *again* to the kbd package, at least that was my understanding as systemd doesn't seem to be the right place to put all keyboard customizations though. The reason why it hasn't been done is unclear to me.
I'm aware, that you want to remove any SUSE-specific patch from our systemd package ...
Not sure what you insinuate here but yes we try to minimize the number of specific patches for obvious reasons. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1010880
Stanislav Brabec
http://bugzilla.opensuse.org/show_bug.cgi?id=1010880
http://bugzilla.opensuse.org/show_bug.cgi?id=1010880#c30
Stanislav Brabec
http://bugzilla.opensuse.org/show_bug.cgi?id=1010880
http://bugzilla.opensuse.org/show_bug.cgi?id=1010880#c32
--- Comment #32 from Franck Bui
Franck Bui: I found that you removed sysconfig variable KEYTABLE saying "Drop from some fill-up templates, a couple of sysconfig variables no more read by systemd (fate#319454)". But the current vconsole-setup.c still reads this variable, and /usr/bin/kbd reads it as well. Is the dropping intended change or mistake?
Not sure what you meant by "current vconsole-setup.c". This change is currently only addressed by SLE15. Once it will be validated it will reach Factory/TW as well. But only those distros will implement fate#319454. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1010880
http://bugzilla.opensuse.org/show_bug.cgi?id=1010880#c39
--- Comment #39 from Dr. Werner Fink
http://bugzilla.opensuse.org/show_bug.cgi?id=1010880
http://bugzilla.opensuse.org/show_bug.cgi?id=1010880#c41
Wolfgang Bauer
http://bugzilla.opensuse.org/show_bug.cgi?id=1010880
http://bugzilla.opensuse.org/show_bug.cgi?id=1010880#c42
--- Comment #42 from Wolfgang Bauer
http://bugzilla.opensuse.org/show_bug.cgi?id=1010880
http://bugzilla.opensuse.org/show_bug.cgi?id=1010880#c43
--- Comment #43 from Stefan Dirsch
And some minor nitpicks:
The comment for KBD_NUMLOCK in /etc/sysconfig/keyboard says this: # NumLock on? ("yes" or "no" or empty or "bios" for BIOS setting)
Which IMHO would imply that an empty setting should be the same as "bios".
But AFAICS, the script will just do nothing in this case. Probably a good idea to either change the script or the comment I think.
And there's a typo in line 30: echo "Valume ${!conf} invalid for $conf" ^^^^^^
Now you lost me. Which script are you talking about now? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1010880
http://bugzilla.opensuse.org/show_bug.cgi?id=1010880#c44
--- Comment #44 from Wolfgang Bauer
(In reply to Wolfgang Bauer from comment #42)
And some minor nitpicks:
The comment for KBD_NUMLOCK in /etc/sysconfig/keyboard says this: # NumLock on? ("yes" or "no" or empty or "bios" for BIOS setting)
Which IMHO would imply that an empty setting should be the same as "bios".
But AFAICS, the script will just do nothing in this case. Probably a good idea to either change the script or the comment I think.
And there's a typo in line 30: echo "Valume ${!conf} invalid for $conf" ^^^^^^
Now you lost me. Which script are you talking about now?
kbdsettings in the new kbd package in home:sbrabec:branches:kbd-numlock. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1010880
http://bugzilla.opensuse.org/show_bug.cgi?id=1010880#c45
--- Comment #45 from Stefan Dirsch
kbdsettings in the new kbd package in home:sbrabec:branches:kbd-numlock.
Just had a look at these source. Hmm. Isn't KBD_NUMLOCK now completely ignored? I don't see anything using it after reading /etc/sysconfig/keyboard ... -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1010880
http://bugzilla.opensuse.org/show_bug.cgi?id=1010880#c46
--- Comment #46 from Wolfgang Bauer
Hmm. Isn't KBD_NUMLOCK now completely ignored?
No. kbdsettings does this: for i in NUM SCR CAPS; do conf=$(eval echo KBD_${i}LOCK) [ -z ${!conf} ] && continue ... I.e. it reads the values of KBD_NUMLOCK, KBD_SCRLOCK and KBD_CAPSLOCK and acts upon each (unless it's empty). -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1010880
http://bugzilla.opensuse.org/show_bug.cgi?id=1010880#c47
--- Comment #47 from Stefan Dirsch
http://bugzilla.opensuse.org/show_bug.cgi?id=1010880
http://bugzilla.opensuse.org/show_bug.cgi?id=1010880#c48
--- Comment #48 from Stanislav Brabec
http://bugzilla.opensuse.org/show_bug.cgi?id=1010880
http://bugzilla.opensuse.org/show_bug.cgi?id=1010880#c49
--- Comment #49 from Wolfgang Bauer
comment 41: Good hint. I forgot that /var/run/numlock-on is needed by X.
Haven't tried it yet, but that change seems to have a flaw.
From what I can see, it would touch /var/run/numlock-on also if KBD_SCRLOCK or KBD_CAPSLOCK is "yes" (and KBD_NUMLOCK is "no").
I am still unsure whether behavior of Scroll Lock is a bug or standard behavior.
Well, it seems to work as expected here (Leap 42.3), setleds correctly reports the Scroll Lock flag as "on" if I set KBD_SCRLOCK="yes", without running setleds -D +scroll manually. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1010880
http://bugzilla.opensuse.org/show_bug.cgi?id=1010880#c50
--- Comment #50 from Stefan Dirsch
http://bugzilla.opensuse.org/show_bug.cgi?id=1010880
http://bugzilla.opensuse.org/show_bug.cgi?id=1010880#c51
--- Comment #51 from Wolfgang Bauer
Seems so. And /run/numlock-on should be removed ("rm -f /run/numlock-on"), if the setting is "off" or "unknown". Otherwise it will still be enabled even if the user changes the setting in the BIOS.
/run and /var/run are on tmpfs, so there should be no need to remove it I think. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1010880
http://bugzilla.opensuse.org/show_bug.cgi?id=1010880#c52
--- Comment #52 from Stanislav Brabec
http://bugzilla.opensuse.org/show_bug.cgi?id=1010880
http://bugzilla.opensuse.org/show_bug.cgi?id=1010880#c53
--- Comment #53 from Stanislav Brabec
http://bugzilla.opensuse.org/show_bug.cgi?id=1010880
http://bugzilla.opensuse.org/show_bug.cgi?id=1010880#c59
Felix Miata
http://bugzilla.opensuse.org/show_bug.cgi?id=1010880
http://bugzilla.opensuse.org/show_bug.cgi?id=1010880#c60
--- Comment #60 from Stefan Dirsch
participants (1)
-
bugzilla_noreply@novell.com