Re: special situation: is it easy to write an application for two users to use two sets of mice / keyboard?





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.

Relevant Pages

  • Re: Format hard drive with XP upgrade wont work because of "newer
    ... I was wondering about the USB keyboard! ... Even when i boot from the XP Upgrade CD...I still get what looks like the ... host, or your BIOS is not ...
    (microsoft.public.windowsxp.basics)
  • Re: Strange screen cause the system to hang during boot
    ... > window with a light blue background. ... > managed to boot up linux in text mode. ... at the keyboard to log in. ... Are you saying you've got a USB keyboard? ...
    (comp.os.linux.setup)
  • Re: Linux 2.6.21-rc6
    ... that the second suspend hangs at "i8042 i8042: ... This is kinda interesting because I'm normally using a USB keyboard ... I'd still rather like to use my USB keyboard though. ... as USB legacy support is disabled (however without legacy support I ...
    (Linux-Kernel)
  • USB keyboard issues
    ... to work well in legacy apps and windows. ... if I boot from a USB memory ... booting the same files as a win98se startup floppy, the USB keyboard ...
    (alt.comp.periphs.mainboard.asus)
  • Keyboard at TC1000 (was Re: HEADSUP: kbdmux(4) is in both HEAD and RELENG_6)
    ... Detachable USB keyboard works ... Scan codes are another story - with no ... I used this patch: ...
    (freebsd-current)