I don't have a solution but i have something that turn on the numlock when you 
change layout (it's stupid, but works for me).
follow the steps below:

1)mkdir ~/keyfix ; cd ~/keyfix


2)open a file  show_layout.sh and  copy and paste this: " setxkbmap -print | 
grep xkb_symbols | awk '{print $4}' | awk -F"+" '{print $2}' " (without the 
first and the last ")
 

3)open a file  keyfix.sh and copy and paste this:
s=0
s1=0
while test "1" == "1"
do

s=`$HOME/keyfix/show_layout.sh`

sleep 0.001s

if test "$s" != "$s1"
then

numlockx off
numlockx on


#if test "$s" == "alt_layout"
#then
#xset led named "Scroll Lock"
#else
#xset -led named "Scroll Lock"
#fi

fi


s1=`$HOME/keyfix/show_layout.sh`




if test "$s" != "$s1"
then

numlockx off
numlockx on


#if test "$s" == "alt_layout"
#then
#xset led named "Scroll Lock"
#else
#xset -led named "Scroll Lock"
#fi


fi 
sleep 0.01s

done
********************
if you want to turn on scroll lock when you use alternative layout, remove the 
#'s and change alt_layout to your alternative layout i.e. "gr" or "us"
**************************

3)open a file  disown_easy.sh and copy and paste this:
#!/bin/bash
$1 &
P=`which $1`
disown `pidof ${P}`


4)open a file  run-keyfix and copy and paste this:
$HOME/keyfix/disown_easy.sh $HOME/keyfix/keyfix.sh


5) open a terminal and type:
 chmod +x ~/keyfix/* ;  sudo cp ~/keyfix/run-keyfix  /usr/bin/


6)make the script run-keyfix to run on startup! (go to startup applications and 
add it)


THIS IS NOT A SOLUTION! THIS IS A STUPID FIX!

*don't use these scripts to make weapons!

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to xorg-server in Ubuntu.
https://bugs.launchpad.net/bugs/1247668

Title:
  NumLock turned off on layout switch

Status in X.Org X server:
  Confirmed
Status in “xorg-server” package in Ubuntu:
  Confirmed

Bug description:
  Extracting from bug 1218322, confirmed there by multiple users:

  When switching the keyboard layout using a shortcut (such as
  Alt+Shift), NumLock functionality is (mostly) turned off.  More
  precisely: it goes into an inconsistent state where pressing numpad 5
  inserts the digit 5, but the other numpad keys move the cursor.
  Pressing the NumLock key turns it off completely (pressing numpad 5 no
  longer does anything), and pressing once again turns it on.

  This means that if someone prefers to have the NumLock functionality
  switched on all the time, they have to press the NumLock key twice
  after each layout change. I find this a huge usability problem.

  (I don't have a LED, so I cannot tell how that one is lit.)

  The bug is not present when changing the layout via the indicator
  applet.

  ProblemType: Bug
  DistroRelease: Ubuntu 13.10
  Package: gnome-settings-daemon 3.8.5-0ubuntu11.1
  ProcVersionSignature: Ubuntu 3.11.0-12.19-generic 3.11.3
  Uname: Linux 3.11.0-12-generic x86_64
  ApportVersion: 2.12.5-0ubuntu2.1
  Architecture: amd64
  Date: Sun Nov  3 21:54:37 2013
  InstallationDate: Installed on 2012-05-30 (522 days ago)
  InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Release amd64 
(20120425)
  MarkForUpload: True
  SourcePackage: gnome-settings-daemon
  UpgradeStatus: Upgraded to saucy on 2013-10-12 (21 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/xorg-server/+bug/1247668/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to