Re: special situation: is it easy to write an application for two users to use two sets of mice / keyboard?
- From: Whoever <nobody@xxxxxxxxxxxx>
- Date: Thu, 26 Oct 2006 13:24:31 -0700
On Wed, 25 Oct 2006, 张é~_¡武 wrote:
during working without rebooting. She unplug current keyboard, plug
another on the computer, and then this 'other' keyboard become available
for the console rather then X. For example, X is configured to use
/dev/input/event4 (USB keyboard), after the clerk switch keyboard, USB
keyboard is /dev/input/event5. For X, it means no more keyboards there. I
hope I am clear;)
I think perhaps the solution is to write a daemon process to create a
device, e.g. /dev/input/clerk_keyboard and automaticlly forwared the
signal from any USB keyboard to this device (dynamically, e.g. should be
aware if keyboard switched). X should be configured to use
/dev/input/clerk_keyboard. However I am pretty new to C and Linux
development, I guess I should first come to the newsgroup to check if you
have ideas on how to make this happen without having to write own daemon
process.
Start by looking at what UDEV can do for you. Most modern distributions use UDEV to create the entries in /dev and it is customisable.
- References:
- Prev by Date: Initrd boot phase errors reading bogus partition on raid drive
- Next by Date: Re: which linux
- Previous by thread: special situation: is it easy to write an application for two users to use two sets of mice / keyboard?
- Next by thread: Smp kernel hangs up with a kernel panic
- Index(es):
Relevant Pages
|