Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 05-15-2005, 06:39 AM   #1
Registered: Sep 2003
Location: Germany/BW
Distribution: My own
Posts: 237

Rep: Reputation: 22
Disable mouse, keyboard or other input devices / drivers

My problem is, that I schedule my program with FIFO - have to be, because it's
a very time critical app. (output) - maschine-nc-program.
That part (subprogram, terminal based) is written in NASM and in there I have to
disable the mouse, because of the user activities - the DM(Display Manager) can't execute the mouse events during that app. runtime, I only say left bottom corner, so unusual things could happen after return and the mouse events get executed.
Well I have some ideas : (1= easiest)[list=1][*]Clear the event buffer the DM is reading from, before switching back to SCHED_OTHER.[*]Keep the x-server away from writing to that event buffer and/or generating a mouse event during app. runtime[*]Keep linux away from handle the mouse IRQs - unload the mouse driver perhaps, that's silly I know,
because the interrupt have to be handled and the x-server generates also an mouse event, that couldn't be
decoded from the missing device driver (left bottom corner).[*]That could work: make a copy of the IDT and set the possible
mouse entries (serial,usb,ps2) to I_NULL, than load it in IDTR.
Also silly, I think that makes surly an INT13 and linux close the app (surly also as root).[/list=1]

So please give me any solution or hint you could have, or how I can realize such ideas.

O.K. it seems, that I have read in to fast cycles from the keyboard interface port 0x60. Now I stretched the cycles and all goes fine.

Last edited by bastl; 05-16-2005 at 03:44 PM.


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
X11 Input drivers (keyboard and mouse), events Cyborg16 Linux - Software 1 05-22-2005 09:01 AM
how do i disable keyboard input? thebover Linux - Newbie 5 08-24-2004 10:13 AM
my mouse input is takes as keyboard input in BASH e1000 Slackware 5 12-08-2003 03:00 PM
Keyboard and mouse input problems in 9.1 soup Slackware 6 09-30-2003 02:57 PM
newbie installation problem: no keyboard/mouse input vytlacil Linux - Newbie 0 08-09-2003 06:03 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:13 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
Open Source Consulting | Domain Registration