Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

capslock/numlock keys behavior sometimes reversed

1,225 views
Skip to first unread message

Nicolas Bercher

unread,
Jul 12, 2011, 11:10:01 AM7/12/11
to
Hi ,

It's been a while (years!) that I sometimes find my keyboard's capslock/numlock keys
behaving reversed at times. This is often the case after: wackup-from-/any/, using qemu
or as the result of unidentified operations.

Does anyone here know how to get rid of this? Avoid it, restore the proper keys behavior,
etc.

Thanks a lot for sharing your experience.
Nicolas


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: http://lists.debian.org/4E1C6341...@yahoo.fr

Csanyi Pal

unread,
Jul 12, 2011, 11:30:02 AM7/12/11
to
Tue, 12 Jul 2011 17:07:45 +0200 keltezéssel Nicolas Bercher azt írta:

> Hi ,
>
> It's been a while (years!) that I sometimes find my keyboard's
> capslock/numlock keys behaving reversed at times. This is often the
> case after: wackup-from-/any/, using qemu or as the result of
> unidentified operations.
>
> Does anyone here know how to get rid of this? Avoid it, restore the
> proper keys behavior, etc.
>
> Thanks a lot for sharing your experience. Nicolas

I did the following:

Edited:
$ sudo mcedit /etc/default/keyboard

XKBMODEL="pc105"
XKBLAYOUT="hu"
XKBVARIANT="nodeadkeys"
XKBOPTIONS="ctrl:swapcaps"
BACKSPACE="guess"

according to man keyboard
XKBOPTIONS may have values described here:
$ mlocate xorg.lst
/usr/share/X11/xkb/rules/xorg.lst
/usr/share/doc/keyboard-configuration/xorg.lst
These two files are identical.

$ less /usr/share/doc/keyboard-configuration/xorg.lst

The edited /etc/defalut/keyboard file came a live for the console after
the following command:

$ sudo setupcon

For X Window maybe one must relogin.

--
Regards, Paul
<http://csanyi-pal.info>


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Archive: http://lists.debian.org/ivhosp$v5$1...@dough.gmane.org

Nicolas Bercher

unread,
Jul 12, 2011, 1:10:01 PM7/12/11
to
On 12/07/2011 17:23, Csanyi Pal wrote:
> I did the following:
>
> Edited:
> $ sudo mcedit /etc/default/keyboard
>
> XKBMODEL="pc105"
> XKBLAYOUT="hu"
> XKBVARIANT="nodeadkeys"
> XKBOPTIONS="ctrl:swapcaps"
> BACKSPACE="guess"
>
> according to man keyboard
> XKBOPTIONS may have values described here:
> $ mlocate xorg.lst
> /usr/share/X11/xkb/rules/xorg.lst
> /usr/share/doc/keyboard-configuration/xorg.lst
> These two files are identical.
>
> $ less /usr/share/doc/keyboard-configuration/xorg.lst
>
> The edited /etc/defalut/keyboard file came a live for the console after
> the following command:
>
> $ sudo setupcon
>
> For X Window maybe one must relogin.

Thank you so much, this looks great. I have no time this evening to try this, but for
sure I will tomorrow, I'll give you some feedback.

Nicolas


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Archive: http://lists.debian.org/4E1C7F9E...@yahoo.fr

lee

unread,
Jul 12, 2011, 5:10:02 PM7/12/11
to
Nicolas Bercher <nber...@yahoo.fr> writes:

> It's been a while (years!) that I sometimes find my keyboard's
> capslock/numlock keys behaving reversed at times. This is often the
> case after: wackup-from-/any/, using qemu or as the result of
> unidentified operations.
>
> Does anyone here know how to get rid of this? Avoid it, restore the
> proper keys behavior, etc.

What exactly means "reversed"?

Getting a keyboard to work right can be a non-trivial
task. /etc/default/keyboard is /the/ place to start at, then there's
/etc/X11/xorg.conf, loadkeys, xmodmap, xset and, IIRC, xinput ...

There's also a package the name of which I don't remember
(console-setup?) you may want to run dpkg-reconfigure on.


--
html messages are obsolete


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Archive: http://lists.debian.org/87tyarr...@yun.yagibdah.de

Nicolas Bercher

unread,
Jul 13, 2011, 7:10:01 AM7/13/11
to
On 12/07/2011 23:01, lee wrote:
> What exactly means "reversed"?
Sometimes the num/caps lock led is on, but the actual underneath function if off, and vice
versa.

Nicolas


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Archive: http://lists.debian.org/4E1D7C88...@yahoo.fr

Nicolas Bercher

unread,
Jul 13, 2011, 12:30:01 PM7/13/11
to
On 12/07/2011 23:01, lee wrote:
> What exactly means "reversed"?
Sometimes the num/caps lock led is on, but the actual underneath function if off, and vice
versa.

Nicolas


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Archive: http://lists.debian.org/4E1D5CD2...@yahoo.fr

lee

unread,
Jul 13, 2011, 1:20:02 PM7/13/11
to
Nicolas Bercher <nber...@yahoo.fr> writes:

> On 12/07/2011 23:01, lee wrote:
>> What exactly means "reversed"?
> Sometimes the num/caps lock led is on, but the actual underneath
> function if off, and vice versa.

Hm, that's probably hard to fix. When I switch from X11 to a console,
the LED stays on and goes off when I switch back. NumLock remains
active, though. If you don't need CapsLock, you can put something else
on the key, like Control.


--
html messages are obsolete

--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Archive: http://lists.debian.org/8762n6h...@yun.yagibdah.de

Camaleón

unread,
Jul 13, 2011, 1:50:02 PM7/13/11
to
On Tue, 12 Jul 2011 17:07:45 +0200, Nicolas Bercher wrote:

> It's been a while (years!) that I sometimes find my keyboard's
> capslock/numlock keys behaving reversed at times. This is often the
> case after: wackup-from-/any/, using qemu or as the result of
> unidentified operations.
>
> Does anyone here know how to get rid of this? Avoid it, restore the
> proper keys behavior, etc.

Well, I see -from time to time- a similar behaviour with caps lock. They
are reversed (→ caps lock "on" gives lower case and caps lock "off"
produces uppercase) when running OpenOffice and only after restarting my
user session -relogin- is back to normal :-?

Greetings,

--
Camaleón


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Archive: http://lists.debian.org/pan.2011.07...@gmail.com

Nicolas Bercher

unread,
Jul 13, 2011, 3:10:01 PM7/13/11
to
On 12/07/2011 17:23, Csanyi Pal wrote:
> XKBMODEL="pc105"
> XKBLAYOUT="hu"
> XKBVARIANT="nodeadkeys"
> XKBOPTIONS="ctrl:swapcaps"
> BACKSPACE="guess"
I tried that and it was really ugly !!!
Nicolas


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Archive: http://lists.debian.org/4E1DEB2C...@yahoo.fr

Selim T. Erdogan

unread,
Jul 13, 2011, 6:30:02 PM7/13/11
to
Camale?n, 13.07.2011:

> On Tue, 12 Jul 2011 17:07:45 +0200, Nicolas Bercher wrote:
>
> > It's been a while (years!) that I sometimes find my keyboard's
> > capslock/numlock keys behaving reversed at times. This is often the
> > case after: wackup-from-/any/, using qemu or as the result of
> > unidentified operations.
> >
> > Does anyone here know how to get rid of this? Avoid it, restore the
> > proper keys behavior, etc.
>
> Well, I see -from time to time- a similar behaviour with caps lock. They
> are reversed (??? caps lock "on" gives lower case and caps lock "off"
> produces uppercase) when running OpenOffice and only after restarting my
> user session -relogin- is back to normal :-?

Probably not relevant, but:
Some time ago, on the console, I noticed that the "windows key" would
turn the caps lock on and off (I think without turning on the led).
Though I just tested this and didn't reproduce it.


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Archive: http://lists.debian.org/2011071322...@cs.utexas.edu

lee

unread,
Jul 13, 2011, 8:50:01 PM7/13/11
to
Nicolas Bercher <nber...@yahoo.fr> writes:

> On 12/07/2011 17:23, Csanyi Pal wrote:
>> XKBMODEL="pc105"
>> XKBLAYOUT="hu"
>> XKBVARIANT="nodeadkeys"
>> XKBOPTIONS="ctrl:swapcaps"
>> BACKSPACE="guess"
> I tried that and it was really ugly !!!

Do you have a Hungarian keyboard?


--
html messages are obsolete

--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Archive: http://lists.debian.org/87mxghp...@yun.yagibdah.de

Marc Shapiro

unread,
Jul 14, 2011, 12:30:01 AM7/14/11
to
On 07/13/11 01:52, Nicolas Bercher wrote:
> On 12/07/2011 23:01, lee wrote:
>> What exactly means "reversed"?
> Sometimes the num/caps lock led is on, but the actual underneath
> function if off, and vice versa.

I have had this happen to me, as well. Even more odd... We have three
people logged in to separate logins and X sessions most of the time.
Usually, the reversed Caps Lock led is only on ONE of these X sessions.
The other two will properly match the LEDs. The only way that I have
found to get the LEDs to be correct for all three logins is to power
down and reboot. It's not a catastrophe, but it is annoying.

Marc


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Archive: http://lists.debian.org/4E1E705F...@gmail.com

Csanyi Pal

unread,
Jul 14, 2011, 1:50:01 AM7/14/11
to
lee <l...@yun.yagibdah.de> writes:

> Nicolas Bercher <nber...@yahoo.fr> writes:
>
>> On 12/07/2011 17:23, Csanyi Pal wrote:
>>> XKBMODEL="pc105"
>>> XKBLAYOUT="hu"
>>> XKBVARIANT="nodeadkeys"
>>> XKBOPTIONS="ctrl:swapcaps"
>>> BACKSPACE="guess"
>> I tried that and it was really ugly !!!
>
> Do you have a Hungarian keyboard?

Yes, I have.

--
Regards, Pal
<http://csanyi-pal.info>


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Archive: http://lists.debian.org/87fwm9z...@debian-asztal.excito

Nicolas Bercher

unread,
Jul 14, 2011, 3:00:02 AM7/14/11
to
On 14/07/2011 02:44, lee wrote:
> Do you have a Hungarian keyboard?
>

No, of course I tried this keeping the french layout.
But two options were really confusing to me and my muscle memory:
- "ctrl:swapcaps" : swaps left ctrl with caps
- "nodeadkeys" : wasn't able to do ^-e to get ê

Nicolas


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Archive: http://lists.debian.org/4E1E9277...@yahoo.fr

Nicolas Bercher

unread,
Jul 14, 2011, 3:10:01 AM7/14/11
to
On 14/07/2011 00:20, Selim T. Erdogan wrote:
> Probably not relevant, but:
> Some time ago, on the console, I noticed that the "windows key" would
> turn the caps lock on and off (I think without turning on the led).
> Though I just tested this and didn't reproduce it.
You are right, and here (tty1) I have really strange behaviors:
- when caps is enabled, apart the led stays off, it is working as expected
- only on the login prompt: the windows keys (both of them if they exist) act as
reversing caps (with the led still on), this is no more true when I'm logged in!

Nicolas


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Archive: http://lists.debian.org/4E1E961C...@yahoo.fr

Nicolas Bercher

unread,
Jul 14, 2011, 3:10:01 AM7/14/11
to
I remember that the first time I had this issue really regularly, it was when I had a new
keyboard from Dell at work (and maybe a new machine with it!) a SK8115 if I remember well.
The fact is that I'm quite sure I didn't have such issues with old noname keyboards at
home or older brand keyboards at work (ibm, dell as far as I remember). I also had this
issue on Dell Laptops.

I'm not sure Dell is guilty for that, but to me it was associated because correlated in time.

Nicolas


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Archive: http://lists.debian.org/4E1E94AD...@yahoo.fr

Csanyi Pal

unread,
Jul 14, 2011, 6:10:01 AM7/14/11
to
Nicolas Bercher <nber...@yahoo.fr> writes:

> On 14/07/2011 02:44, lee wrote:
>> Do you have a Hungarian keyboard?
>>
>
> No, of course I tried this keeping the french layout.
> But two options were really confusing to me and my muscle memory:
> - "ctrl:swapcaps" : swaps left ctrl with caps
> - "nodeadkeys" : wasn't able to do ^-e to get ê

The "ctrl:swapcaps" option swaps left Control key with CapsLock key, so
if one hit on tty1 console left Control key, after that can write
uppercase letters only (however, the CapsLock LED remain off, but only
on tty(1-6) console; on X Window system LED works) and vica versa, the
CapsLock key behave as the left Control key, both on tty(1-6) console
and on X Window system too.

--
Regards, Pal
<http://csanyi-pal.info>

--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Archive: http://lists.debian.org/877h7ly...@debian-asztal.excito

lee

unread,
Jul 14, 2011, 1:40:02 PM7/14/11
to
Nicolas Bercher <nber...@yahoo.fr> writes:

> On 14/07/2011 02:44, lee wrote:
>> Do you have a Hungarian keyboard?
>>
>
> No, of course I tried this keeping the french layout.

You didn't say so.

> But two options were really confusing to me and my muscle memory:
> - "ctrl:swapcaps" : swaps left ctrl with caps

You can try nocaps:

,---- [ /etc/default/keyboard ]
| XKBMODEL="pc102"
| XKBLAYOUT="de"
| XKBVARIANT="nodeadkeys"
| XKBOPTIONS="ctrl:nocaps"
`----

,---- [ /etc/X11/xorg.conf ]
| Section "InputDevice"
| Identifier "Keyboard0"
| Driver "kbd"
| Option "XKBOptions" "ctrl:nocaps"
| Option "XkbModel" "pc102"
| Option "XkbLayout" "de"
| EndSection
`----

,---- [ ~/.Xmodmap ]
| [...]
| keycode 66 = Control_L Control_L Control_L Control_L
| [...]
`----

That works nicely with an IBM Model M with German layout. Better get
one of those with French layout; the Model M keyboards (built by Unicomp
now) are the only decent keyboards you can get for computers.

You can use xev to figure out what keycodes your keys have. First make
sure your keyboard works as it should. Then use "xmodmap -pke" to
create an ~/.Xmodmap which you can modify for the customisations you
need. Finally, add

,---- [ ~/.xinitrc ]
| xset r rate 250 95 &
| xset m 2.5 0 &
`----

to your ~/.xinitrc and enjoy :)

If you use KDE, it's buggy in that it doesn't load your ~/.Xmodmap, and
it ignores your ~/.xinitrc. So you might have to do something to get it
loaded --- and turn off the customisations KDE itself applies.

> - "nodeadkeys" : wasn't able to do ^-e to get ê

That's what it is for :)

Your keyboard configuration may stop working at some time. They keep
changing the keyboard stuff all the time without telling anyone and then
you can spend hours again to figure out how to get your keyboard to work
:(

Still all this doesn't really solve the original problem of the LEDs not
indicating the status of the keyboard correctly. Perhaps we should send
a bug report --- but about which package?


--
html messages are obsolete

--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Archive: http://lists.debian.org/871uxse...@yun.yagibdah.de

Marc Shapiro

unread,
Jul 23, 2011, 3:10:01 AM7/23/11
to
On 07/14/11 00:09, Nicolas Bercher wrote:
> On 14/07/2011 00:20, Selim T. Erdogan wrote:
>> Probably not relevant, but:
>> Some time ago, on the console, I noticed that the "windows key" would
>> turn the caps lock on and off (I think without turning on the led).
>> Though I just tested this and didn't reproduce it.
> You are right, and here (tty1) I have really strange behaviors:
> - when caps is enabled, apart the led stays off, it is working as expected
> - only on the login prompt: the windows keys (both of them if they
> exist) act as reversing caps (with the led still on), this is no more
> true when I'm logged in!

No Windows key here. I have an ancient, solid, IBM keyboard with nice
tactile feedback. None of these new, flimsy keyboards for me. But I do
occasionally get this problem.

Marc


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Archive: http://lists.debian.org/4E2A72F0...@gmail.com

0 new messages