Bug 183308 - Numlock Light Indicator Shuts Off After Activation within KDE 4.2 and Subsequent Log out or Reboot
Summary: Numlock Light Indicator Shuts Off After Activation within KDE 4.2 and Subsequ...
Status: RESOLVED UPSTREAM
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_keyboard (show other bugs)
Version: unspecified
Platform: Unlisted Binaries Linux
: NOR normal
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords: investigated, triaged
: 187410 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-02-05 15:31 UTC by Eugene Markow
Modified: 2018-09-19 14:35 UTC (History)
13 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
kxkbrc (327 bytes, text/plain)
2010-05-12 08:54 UTC, karaluh
Details
kxkbrc (192 bytes, text/plain)
2010-08-20 19:29 UTC, Antonio
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Eugene Markow 2009-02-05 15:31:54 UTC
Version:            (using KDE 4.2.0)
Compiler:          gcc 4.3.3-1 (GNU Compilier) 
OS:                Linux
Installed from:    Unspecified Linux

System Info:
------------
System: Arch Linux
Desktop: KDE 4.2
Compiler: gcc 4.3.3-1 (GNU Compiler)
------------

First, activate and enable the NumLock feature using the following menu commands:

[System > System Settings > Keyboard & Mouse > Click on "Turn On" for "NumLock on KDE Startup"]

When rebooting the computer or restarting KDE, initially, but for a very short time, the NumLock Light indicator is "On", and then after a brief period, it shuts off after that. The light seems to shut off after various keyboard activity, such as typing the "free -m" command line in the KDE Konsole (Terminal) for example. However, NumLock functionality is still there, hence, enabling one to type numbers using the keypad even though the Light Indicator is off.
Comment 1 Eugene Markow 2009-02-15 14:55:57 UTC
Is this issue going to be assigned to anyone to review?
Comment 2 Jonathan Thomas 2009-07-26 15:38:53 UTC
*** Bug 187410 has been marked as a duplicate of this bug. ***
Comment 3 Kyle Tirak 2009-10-18 20:12:36 UTC
Confirmed here on KDE 4.3.2 (Arch Linux)
Comment 4 Antonio 2009-12-11 16:12:20 UTC
Confirmed on KDE 4.3.4 (Kubuntu).
Comment 5 Andriy Rysin 2010-05-12 02:59:05 UTC
Any xkb options used? any keyboard layouts configured? if yes could you please attach ~/.kde/share/config/.kxkbrc ?
Comment 6 karaluh 2010-05-12 08:54:31 UTC
Created attachment 43505 [details]
kxkbrc

> Any xkb options used? any keyboard layouts configured?

None that I'm aware of, but I attached the file as requested.
Comment 7 Andriy Rysin 2010-05-24 14:53:07 UTC
This problem seems to be unrelated to KDE's keyboard module.
Do you by any chance run some LED daemon, like http://manpages.ubuntu.com/manpages/hardy/man8/ledd.8.html ?

There's a very similar problem https://bugs.kde.org/show_bug.cgi?id=232364 which was fixed by stopping ledd daemon.
Comment 8 karaluh 2010-05-25 08:15:34 UTC
No, ledcontrol isn't and never was installed. There's also no ledd in ps aux.
Comment 9 Lukas Jirkovsky 2010-05-30 11:43:58 UTC
*** This bug has been confirmed by popular vote. ***
Comment 10 Lukas Jirkovsky 2010-05-30 11:45:39 UTC
Confirming on KDE 4.4.3 on Arch Linux. No application possibly touching the state of led is installed
Comment 11 Andriy Rysin 2010-08-18 03:49:36 UTC
Any news on this? Any improvements with newer X.org or KDE 4.5?
Comment 12 Andriy Rysin 2010-08-19 06:25:46 UTC
I can't reproduce this problem on either Mandriva or openSUSE for either KDE 4.4.4 or 4.5.

Taking to account three reports were from Arch Linux (and one from Kubuntu which might be ledd problem) I would think it's related to the distro packaging.

I am marking this bug as "need more info" for now, but if there's any additional information please add it to the bug and I'll take a look.
Comment 13 karaluh 2010-08-19 08:38:45 UTC
It's fixed for me.
Comment 14 Lukas Jirkovsky 2010-08-19 13:35:12 UTC
I'm not sure whether it's the same issue, but when I switch the user (start another session) and I switch back the light indicator shuts off even though num lock is still on. Both users have the setting to turn on the numlock at startup enabled.

LED is re-enabled when I switch on and off numlock. I've configured keyboard layout switcher to indicate the keyboard layout using the Scroll lock LED. When I switch layouts and the scroll lock led is switched on/off, the numlock LED is re-enabled too.

The system is Arch Linux with KDE 4.4.5
Comment 15 Kyle Tirak 2010-08-20 16:23:16 UTC
Yes, this no longer appears to be a problem for me, at least as of 4.4.5. I have not checked on Lukas's issue (Comment #14), though.
Comment 16 Antonio 2010-08-20 19:29:32 UTC
Created attachment 50788 [details]
kxkbrc

It still is an issue for me, using KDE 4.5.0 on Kubuntu 10.04.1. I can reproduce everything from comment #14, and also using Suspend to RAM: after waking up, the LED is off, even though NumLock is active. I have no LED daemon such as ledcontrol installed, and my keyboard layouts are "us(altgr-intl)" and "de".
Comment 17 karaluh 2010-10-19 14:00:31 UTC
I was hit by this bug again today. Kubuntu Maverick.
Comment 18 Andriy Rysin 2010-10-25 06:08:27 UTC
(In reply to comment #17)
> I was hit by this bug again today. Kubuntu Maverick.

And led daemon is not used? That seems to be most probably cause at least for *Ubuntu distros.
Comment 19 karaluh 2010-10-25 15:45:43 UTC
(In reply to comment #18)
> (In reply to comment #17)
> > I was hit by this bug again today. Kubuntu Maverick.
> 
> And led daemon is not used?

Nope, sorry.
Comment 20 foofyfoofer 2010-11-11 20:00:45 UTC
(In reply to comment #0)
> Version:            (using KDE 4.2.0)
> Compiler:          gcc 4.3.3-1 (GNU Compilier) 
> OS:                Linux
> Installed from:    Unspecified Linux
> 
> System Info:
> ------------
> System: Arch Linux
> Desktop: KDE 4.2
> Compiler: gcc 4.3.3-1 (GNU Compiler)
> ------------
> 
> First, activate and enable the NumLock feature using the following menu
> commands:
> 
> [System > System Settings > Keyboard & Mouse > Click on "Turn On" for "NumLock
> on KDE Startup"]
> 
> When rebooting the computer or restarting KDE, initially, but for a very short
> time, the NumLock Light indicator is "On", and then after a brief period, it
> shuts off after that. The light seems to shut off after various keyboard
> activity, such as typing the "free -m" command line in the KDE Konsole
> (Terminal) for example. However, NumLock functionality is still there, hence,
> enabling one to type numbers using the keypad even though the Light Indicator
> is off.

I can confirm this issue as well. Once the light is off it swaps where num lock on is off and num lock off is on. Kubuntu 10.10 KDE 4.5.3. Any info I can submit?
Comment 21 Antonio 2011-05-25 16:14:17 UTC
Still an issue with KDE 4.6.2 on Kubuntu. Long-time issues like this - keypad status is that of reverse LED - sadly display some staggering non-professionalism, I'm beginning to think.
Comment 22 anderlia 2011-05-25 16:30:10 UTC
I also experienced this bad behavior too, I mean: System > System Settings > Keyboard & Mouse > Click on "Turn On" for "NumLock on KDE Startup", then system reboot: the numlock status LED is OFF although my numeric keypad is enabled, and the way around: if I press the numlock key, the numlock status LED is ON but my numeric keypad is disabled. Pb is 100% reproducible (I'm running Kubuntu Natty 11.04 with KDE 4.6.2). I don't have the numlock status LED transiently switching to ON just after the reboot as reported in comment #1. Also, if I check "Leave unchanged" for "NumLock on KDE Startup" in my system settings, I may have my numlock status LED correctly handled, but then after some while, the LED status gets de-synchronized with the actual numeric keyboard status (I did not identified one single action that triggers the de-synchronization so far).

The bug is classified as "waitingInfo": which info do you miss for investigating this issue further, which issue being pending for some while now (I do not remember from which KDE version this pb appears, but I did not have any problem at all with numlock handling one or two years ago).
Comment 23 Andriy Rysin 2011-05-28 23:38:39 UTC
(In reply to comment #22)
> The bug is classified as "waitingInfo": which info do you miss for
> investigating this issue further, which issue being pending for some while now
I tried and could not reproduce this problem on Mandriva 2010.x, OpenSuse 11.3 and 11.4 and Fedora 14 and 15. I also tried KDE 4.4, 4.5, 4.6 and master (upcoming 4.7). It was also tried on several X.org versions.
It's not quite clear from the comments but looks like the problem in Arch distro is gone (at least for some users) so it leaves only Kununtu to misbehave.
I could change the status to WORKSFORME (which is the right one when it can't be reproduced), but I am willing to look at it again if somebody can reproduce it on some other distribution I have access to (that's why it's still in WAITINGFORINFO).
Also there's several possibly related bugs in x.org which are still open:
https://bugs.freedesktop.org/show_bug.cgi?id=32921
https://bugs.freedesktop.org/show_bug.cgi?id=35005
https://bugs.freedesktop.org/show_bug.cgi?id=8411
https://bugs.freedesktop.org/show_bug.cgi?id=12434
https://bugs.freedesktop.org/show_bug.cgi?id=3037

Now there's at least one bug in Ubuntu which was seen under Gnome so also is not related to KDE:
https://bugs.launchpad.net/ubuntu/+source/xorg-server/+bug/92482

(In reply to comment #21)
> Still an issue with KDE 4.6.2 on Kubuntu. Long-time issues like this - keypad
> status is that of reverse LED - sadly display some staggering
> non-professionalism, I'm beginning to think.
Yes, I agree, that's why I don't use Kubuntu or and don't recommend it to anybody :)
Comment 24 Lukas Jirkovsky 2011-05-29 10:00:32 UTC
I can reproduce it on both OpenSuSE 11.4 and Arch. It doesn't happen when rebooting but the symptoms are exactly the same. The LED shortly switches on to indicate that numlock is on, but then it the LED switches off while the numlock is still enabled.

Steps to reproduce:
1. create two users
2. log into as the first user and enable numlock
3. use "Switch User" and log into the second user
4. switch back to the first user user using Ctrl + Alt + Fx, and unlock the session

Result:
in most cases the LED indicating numlock state is is off while numlock is still enabled. However the KDE session for 2nd user seems to handles numlock LED correctly.

If the bug doesn't show up, try to switch the numlock on/off randomly while switching between users. Actually, after few tries I was able to break numlock indicator for the second user too.
Comment 25 Andriy Rysin 2011-05-29 23:30:28 UTC
(In reply to comment #24)
> I can reproduce it on both OpenSuSE 11.4 and Arch. It doesn't happen when
> rebooting but the symptoms are exactly the same.
Lukas, thanks a lot for good description, I was trying to reproduce the original report (the problem on booting up) that's why I didn't see it.
The problem with switching VT's is a x.org bug though, see https://bugs.freedesktop.org/show_bug.cgi?id=9964 (Wrong state of NumLock LED with 2 X servers started or state of NumLock LED is not preserved)
I was able to reproduce it with OpenSuse 11.4 (X server 1.9.3) even without KDE - I just started two simple X sessions and the problem with numlock is there. So you may want to subscribe to the x.org bug.
It also may be somewhat related to https://bugs.freedesktop.org/show_bug.cgi?id=35005 (NumLock state on two USB keyboard LED-s), interesting bit from that bug: "Laptop keyboards have its own driver / hardware numlock handling and therefore these can have independent numlock state" - this probably complicates the problem even more.
Comment 26 Andriy Rysin 2011-05-29 23:54:16 UTC
Just tried VT switching in Fedora 15 (X.Org X Server 1.10.1) and the numlock problem is still there. I am marking this as UPSTREAM.
Comment 27 anderlia 2011-05-30 10:50:16 UTC
@Andriy Rysin: forgot to mention that the pb occurs on a USB keyboard connected to my T400 laptop, which has already an internal keyboard. The Numlock status LED on this laptop internal keyboard is correctly handled and I never noticed so far any discrepancy on that keyboard between the numlock LED status and the actual status of the numeric keyboard. The pb occurs with the external USB keyboard only, and I don't need so far to switch betwen VT console for the pb to appear, neither I need to switch between two active users. As far as I can see, the pb rather relates to https://bugs.freedesktop.org/show_bug.cgi?id=35005: seems as if the external keyboard does not get the NumLock LED state message on reboot: only the internal keyboard gets it.

"I am willing to look at it again if somebody can reproduce
it on some other distribution I have access to (that's why it's still in
WAITINGFORINFO)" > Do you want me to carry out some traces, or dump some debug information, that might be helpful for identifying the source of this bug? If so, please let me know, I would be keen helping you further (and don't start the distro war please: the pb so far seems not related to the distro but the xorg server, isn't it).
Comment 28 Andriy Rysin 2011-06-01 00:05:52 UTC
@anderlia Unfortunately as you already mentioned it's a problem in x.org, and I don't have an easy way to fix it in KDE. I suspect some things could be done a bit better if we support configuring multiple keyboards (https://bugs.kde.org/show_bug.cgi?id=177889) which might make it a bit more explicit as to which keyboard numlock state goes but even then the problems in x.org will probably create other issues we'll have to deal with.
I'd say this needs to be fixed in upstream or we can just wait for Wayland and hope there will be no problems like these :)
Comment 29 anderlia 2012-05-03 09:19:12 UTC
Seems the problem is fixed from 12.04 Precise Pangolin onwards (KDE 4.8.2, xserver-xorg 1:7.6+12ubuntu1). The NUMLOCK LED indicator on my external USB keyboard is now consistent with the actual status of the numercal keyboard, and I can correctly set the NUMLOCK status at startup time in my KDE system settings either to OFF/ON/LEAVE UNCHANGED. I tested the threee options and they all work fine. As far as I am concerned, 183308 bug can be set to CLOSE/RESOLVED.
Comment 30 Lukas Jirkovsky 2012-05-03 17:08:55 UTC
It seems to be partially fixed (KDE 4.8.2) on Arch. It doesn't happen when I have the first keyboard layout selected, but it still sometimes happen when I have the second keyboard layout selected while switching to another user.
Comment 31 DonJaime 2012-12-27 08:52:20 UTC
To reproduce under Arch with KDE 4.9.4 using a PS2 keyboard:

1. Set Num Lock to be on in the System Settings.
2. Log out/in.
3. Switch to another virtual console with ctrl-alt-F1
4. Switch back with alt-F7
5. [Do more or less anything you like, but do not press caps-lock or numlock]
6. Press any shift, ctrl, or alt key and watch the LED go out.
Comment 32 karaluh 2013-01-02 09:18:30 UTC
(In reply to comment #31)
> To reproduce under Arch with KDE 4.9.4 using a PS2 keyboard:

Confirmed under Kubuntu with KDE SC 4.9.4 using USB keyboard.
Comment 33 John 2013-03-13 04:05:39 UTC
Same problem here, with Slackware and KDE 4.8.2. 

Only, I noticed something different too: I frequently use the
compose key (spanish locale), and that functionality _also_ stops working.
This is very annoying, as it alwys stops at the moment I most need it (Murphy's Law).

I don't actually use KDE as window manager (I use XFCE), but Slackware is KDE 
based and running some kde programs starts the kdeinit4 daemon.
Another strange thing: I can re-enable Compose, using xmodmap, but it 
stops working again after a random time. 

I very much suspect both problems (LED and Compose) are related. Does anyone 
using Compose notice this?

John
Comment 34 Andriy Rysin 2013-03-13 04:27:20 UTC
could you please  attach. xsession-errors and Xorg.0.log right after it happens?
Comment 35 John 2013-03-13 05:37:54 UTC
Andriy,

I will do that - I am now testing a suggestion which seems to make sense. I removed
'setxkbmap us' from my bashrc. I read a report that after calling setxkbmap the problem
is activated.

Either way, I'll report back tomorrow.

John
Comment 36 John 2013-03-15 18:19:03 UTC
Hello guys,

I can quite firmly state that the problem went away here. Apparently, after
removing 'setxkbmap us' from my bashrc, the issues disappeared. 

I have been using the machine for more than 48 hours now, and I still have 
the Compose key working, _and_ the numkey has not switched off in all
this time.

Of course I cannot confirm this 100%, but the change is really notable.

Maybe someone coudl find a reason for setxkbmap causing this effect?
I'll leave it like this some more, then try putting it in again to check if the
problem reappears...

John
Comment 37 Alad Wenter 2014-04-14 03:19:22 UTC
Can confirm this bug under KDE 4.11.3 with Tanglu 1.0 (Debian). Steps to reproduce:

Activate numlock on login
Standby
Resume
Numlock is active, LED goes on briefly then back off

I don't use a compose key.

Regards,

Alad
Comment 38 Egmont Koblinger 2014-04-27 20:59:33 UTC
I reported upstream that NumLock is broken after using setxkbmap (as mentioned in comment 35):
https://bugs.freedesktop.org/show_bug.cgi?id=78012
Comment 39 Jacem Chaieb 2015-08-27 08:48:34 UTC
Confirmed on KDE 4.14.2 under Debian GNU/Linux 8.1 (jessie)
Comment 40 Andrew Crouthamel 2018-09-19 14:35:08 UTC
This bug has had its resolution changed, but accidentally has been left in NEEDSINFO status. I am thus closing this bug and setting the status as RESOLVED to reflect the resolution change.