svn commit: r223989 - head/sys/dev/usb/input

Hans Petter Selasky hselasky at c2i.net
Wed Jul 20 10:51:53 UTC 2011


On Wednesday 20 July 2011 12:37:44 Andriy Gapon wrote:
> > This special code is a workaround. The problem is that when not polling
> > the  key presses will be fed into syscons I think, and not returned via
> > the polling function. That's why there is a timer there to distinguish
> > when polling starts and polling stops. It is not enough just to
> > enable/disable polling around each key-press like currently done.
> 
> I must admit that I failed to understand this paragraph, so I think that I
> should shut up until I know the relevant code better.

Try and see for yourself, maybe you will understand it then? Remove the 
kbd_active == 0 branch in the ukbd.c. Then get into the mount-root prompt. 
Then start pressing keys. You will see that some keys are captured and some 
are not. This is because two clients are listening for keys.

--HPS


More information about the svn-src-all mailing list