PDA

View Full Version : [ubuntu] NumBlock always off



vivamotos
March 15th, 2011, 09:40 AM
Hello,

I want to know how to disable permanently the numlock event if the user press it don't work.

Do you know how to do it?

vivamotos
March 16th, 2011, 06:25 PM
No answer???? :(

ankspo71
March 16th, 2011, 06:33 PM
Hi,
I just found this link:
"Enabling Numlock upon login"
https://help.ubuntu.com/community/NumLock
Hope this helps

drs305
March 16th, 2011, 06:37 PM
Just to confirm - you want to disable the key?...

The Numlock key on my system is 77. You can find it by running "xev" in a terminal and pressing the Numlock key to find the value.

The following command will disable the key:

xmodmap -e "keycode 77 = NoSymbol"
The command is non-persistent. It has to be run on each login. You can make a script and include it in the Startup list so it runs on each boot for a user or include it in the /etc/ startup folders for universal applicability.

vivamotos
March 17th, 2011, 04:37 PM
Hello,

First of all, It doen't work.

Second, I want to disable permanently the key (num lock)

Third, I explain:

I have the following script to connect to an Unix SO.
#!/bin/bash
numlockx off
xmodmap -e "keycode 77 = NoSymbol" (I've checked keycode 77 with xev)
Xephyr :1 -query <ip> -screen 1024x768x8 -ac -host-cursor -fullscreen

WHEN I CONNECT everything is ok, but in the session if the num lock is lightning (is active) I cant move, resize or close any window. But if it's inactive the num lock everything is ok (and the numeric pad didn't work with num lock active or inactive).

This problem I can fix it with the windows program called WinAxe, this program have the option of: Unlatched NumLock, and if it's active everything is ok, but in linux I don't know how to do it.

Anybody knows?

vivamotos
March 21st, 2011, 10:03 AM
No one knows the problem?