X2Go Bug report logs - #402
Numlock issues

version graph

Package: x2gomatebindings; Maintainer for x2gomatebindings is X2Go Developers <x2go-dev@lists.x2go.org>; Source for x2gomatebindings is src:x2gomatebindings.

Reported by: jordi@amospalla.es

Date: Fri, 17 Jan 2014 11:05:02 UTC

Severity: normal

Tags: moreinfo

Found in version

Done: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>

Bug is archived. No further changes may be made.

Full log

View this message in rfc822 format

X-Loop: owner@bugs.x2go.org
Subject: Bug#402: [X2Go-Dev] Bug#402: Numlock issues
Reply-To: jordi@amospalla.es, 402@bugs.x2go.org
Resent-From: jordi@amospalla.es
Resent-To: x2go-dev@lists.berlios.de
Resent-CC: X2Go Developers <x2go-dev@lists.berlios.de>
X-Loop: owner@bugs.x2go.org
Resent-Date: Thu, 30 Jan 2014 08:50:01 +0000
Resent-Message-ID: <handler.402.B402.139107156730071@bugs.x2go.org>
Resent-Sender: owner@bugs.x2go.org
X-X2Go-PR-Message: followup 402
X-X2Go-PR-Package: x2goserver
Received: via spool by 402-submit@bugs.x2go.org id=B402.139107156730071
          (code B ref 402); Thu, 30 Jan 2014 08:50:01 +0000
Received: (at 402) by bugs.x2go.org; 30 Jan 2014 08:46:07 +0000
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham
Received: from ispconfig.net1.amospalla.es (amospalla.es [])
	by ymir (Postfix) with ESMTP id 776FE5DA6C
	for <402@bugs.x2go.org>; Thu, 30 Jan 2014 09:46:06 +0100 (CET)
Received: from localhost (localhost [])
	by ispconfig.net1.amospalla.es (Postfix) with ESMTP id 1F3B21AC12AD;
	Thu, 30 Jan 2014 09:46:06 +0100 (CET)
X-Virus-Scanned: Debian amavisd-new at ispconfig.amospalla.es
Received: from ispconfig.net1.amospalla.es ([])
	by localhost (ispconfig.amospalla.es []) (amavisd-new, port 10024)
	with ESMTP id LCWakhDrPP5J; Thu, 30 Jan 2014 09:46:05 +0100 (CET)
Received: from amospalla.es (localhost [IPv6:::1])
	by ispconfig.net1.amospalla.es (Postfix) with ESMTP id D8E241AC0887;
	Thu, 30 Jan 2014 09:46:04 +0100 (CET)
Received: from
        (SquirrelMail authenticated user jordi@amospalla.es)
        by amospalla.es with HTTP;
        Thu, 30 Jan 2014 09:46:04 +0100
Message-ID: <bfeb081fdd3ec995c47b4ee7c9c96654.squirrel@amospalla.es>
In-Reply-To: <8be4d14fda106d24b56c8cf94ec9a918.squirrel@www.amospalla.es>
References: <8be4d14fda106d24b56c8cf94ec9a918.squirrel@www.amospalla.es>
Date: Thu, 30 Jan 2014 09:46:04 +0100
From: jordi@amospalla.es
To: jordi@amospalla.es,
User-Agent: SquirrelMail/1.4.23 [SVN]
MIME-Version: 1.0
Content-Type: text/plain;charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Priority: 3 (Normal)
Importance: Normal
> Package: x2goserver
> Version:
> Hello, numlock does not behave correctly. It behaves like if it was
> randomly and continuously toggling it state.
> Happens when numlock key is pressed, and after some time, it seems to
> stabilize in some state (on or off), but it can take some time.
> Happens on Mate 1.6 desktop environment over Debian 6. No problem on same
> host with a KDE session.
> If numlock state is modified with numlockx binary, it works as expected,
> only the key triggers this.
> user@host:~$ while numlockx status; do sleep 0.1; done
> Numlock is off
> Numlock is off
> Numlock is on
> Numlock is on
> Numlock is off
> Numlock is on
> Numlock is off
> Numlock is on
> Numlock is off
> Numlock is on
> Numlock is off
> Numlock is off
> Numlock is on
> Numlock is on
> Numlock is off
> Numlock is on
> Numlock is on
> ...

Found that the Mate setting which makes numlock state change at a very
high rate can be disabled by:
  gsettings set org.mate.peripherals-keyboard remember-numlock-state false

Still, users notify me that numlock change randomly. I did monitor
numlock status with "numlockx status" command, and I can see it do
change but very intermitently.

I first monitored numlock status and actively changed it to on with a

Lately, I added to the keyboard options, the equivalent to "setxkbmap -o
numpad:mac", which can be added to
/org/mate/desktop/peripherals/keyboard/kbd/options with

Here is a dirty script, which every user runs at session startup:

tab="$(printf "\t")"
cadena=( $(dconf read /org/mate/desktop/peripherals/keyboard/kbd/options |
sed -e 's/.*\[\|\]//g') )
for (( i=0;i<${#cadena[@]};i++ )); do
	# esborrar '[', ']' i ','
	cadena[$i]="$(printf "${cadena[$i]}" | sed -e 's/,//g')"
if ! echo ${cadena[@]} | grep -q 'compat\snumpad:mac'; then
	for (( i=0;i<${#cadena[@]};i++ )); do
		nova="$nova ${cadena[$i]},"
	nova="$nova 'compat${tab}numpad:mac'"
	dconf write /org/mate/desktop/peripherals/keyboard/kbd/options "[ $nova ]"
gsettings set org.mate.peripherals-keyboard numlock-state          'on'

Send a report that this bug log contains spam.

X2Go Developers <owner@bugs.x2go.org>. Last modified: Fri Jan 18 07:28:58 2019; Machine Name: ymir.das-netzwerkteam.de

X2Go Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.