Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Hardware
User Name
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?


  Search this Thread
Old 07-25-2009, 11:51 PM   #1
Registered: Aug 2005
Distribution: Debian Stable
Posts: 190

Rep: Reputation: 17
Temporarily enable/disable keyboard

I'm looking for a way to temporarily disable my keyboard by command. In my mind, I have a launcher on the gnome-panel, I click it, and the keyboard is disabled. If I click the launcher again, the keyboard is enabled.

Does anyone know the commands for this?
A gnome configuration setting change would also be acceptable.
I simply want to enable and disable the keyboard in gnome for temporary amounts of time.

The device cannot be unplugged.

Last edited by Cyberman; 07-25-2009 at 11:52 PM.
Old 07-26-2009, 01:53 AM   #2
Registered: Aug 2008
Distribution: Slackware
Posts: 53

Rep: Reputation: 16
Maybe trying with /dev directory devices? If you disable writing (or reading?) (change permission) on keyboard device it wont work, IMHO. Then you could place bash script on desktop which chmod +w keyboard device when you launch it (with mouse). You could also use "cron" or "at" programs which allow you to execute a command after some time without your interaction.
Correct me!


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
temporarily disable tty login Heber Linux - Networking 2 05-06-2009 10:27 AM
Need to temporarily Disable GNOME muzzavitch Linux - Newbie 3 02-24-2009 09:39 AM
How to disable and re-enable mouse and keyboard input? weijie90 Linux - Hardware 2 08-12-2007 07:17 PM
temporarily disable automount bnj Linux - Newbie 4 06-26-2005 08:41 AM
Can I temporarily disable GRUB?? Tiyogi Linux - General 4 04-15-2005 07:15 AM

All times are GMT -5. The time now is 07:46 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration