PDA

View Full Version : [ubuntu] How to disable Keyboard and mouse events?



umang.ece
December 16th, 2008, 08:06 AM
Hi I am using ubuntu . I want to disable Keyboard/Moouse for a while and then re-enable them by command ?
I looked at /usr/lib/X11/xorg.conf but that disabling seems to be permanent.

Shhnap
December 18th, 2008, 01:14 AM
I think what you are looking for is a shell script that used xmodmap, setxkbmap or setkeycodes. Type in 'man xmodmap' in a terminal and get scripting. :) Either way i'm sure there is something that will do what you want. Just type in 'man -k key' for more commands.

LewRockwellFAN
January 9th, 2011, 11:43 PM
Me too, OP. Ideally what I want is something a bit like the lock-screen doodad that I can put on the panel at the top of my desktop, that will just DO it and not bother me with the run/display/run_in_terminal choice when I click it but UNLIKE that will continue to display what's going on on the monitor. I still want to SEE what's happening - I just don't want a wandering cat or a misplaced elbow to interrupt it or execute the super-secret hotkey for the program initiating the antimatter bomb for destruction of planet earth.

LewRockwellFAN
January 15th, 2011, 06:37 AM
Found an answer. Google "keyboard lock baby" and you'll find a bunch of links like this one:
http://www.filecluster.com/reviews/052009/keyboardlock-lock-your-keyboard-from-unwanted-baby-action/
For me it isn't perfect because it messes with the mouse a little more than I want it to but that maybe cause I stupidly installed Narwhal before I read the "this is an alpha and doesn't work quite right" warning.