On Sunday 02 October 2005 18:37, Nelson Castillo wrote: > Hi. > > Questions: > > - What is the best place to intercept keyboard strokes in UML? > - What is the best place to intercept keyboard strokes in i386? I think (from casual lurking on kerneltrap.org and lwn.net) that the best place is the serio layer on i386, which is independent of the actual keyboard layer, and the TTY layer on UML, since we (check with makefiles but if I'm wrong we probably have a bug) don't use serio.
In particular, the original discussion on kerneltrap from which I quote this suggestion is about disabling the trackpad while the keyboard is being used... the original implementation worked only for some keyboards, the author was suggested to use serio. I guess they didn't suggest using the TTY layer on i386 would probably miss cases such as X, I guess, while serio is more low-level. Btw (hope it doesn't matter), in the UML case, if you use X (in particular Xnest), I think there's no easy way to count keystrokes sent to the X server, except through the host. > I'd like to know which file (or function) I'd have to study > in order to write a small driver to show how many > times I've pushed keys in the keyboard. Maybe make > it a kernel module. > I guess it's done in userspace if I use UML. Yes, in the meaning it doesn't affect the host kernel. Sure. > I'd like to > use UML to test this. -- Inform me of my mistakes, so I can keep imitating Homer Simpson's "Doh!". Paolo Giarrusso, aka Blaisorblade (Skype ID "PaoloGiarrusso", ICQ 215621894) http://www.user-mode-linux.org/~blaisorblade ___________________________________ Yahoo! Mail: gratis 1GB per i messaggi e allegati da 10MB http://mail.yahoo.it ------------------------------------------------------- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl _______________________________________________ User-mode-linux-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user
