keyboard driver problem?

Hans Petter Selasky hselasky at c2i.net
Sun Jan 2 14:56:16 UTC 2011


On Sunday 02 January 2011 15:42:42 too.much.dudes at gmail.com wrote:
> already tried variants :
> offset+=4 && len-=4
> offset+=0 && len-=4
> and yours, but they doesn't have correct effect
> (yours variant gives some addition lags:
> for example pressing "o" presses Scroll Lock, "h" - WIN_L and etc)

Hi,

Maybe you can add a printout, to dump the len bytes:

uint32_t yy;

printf("UKBD data: ");

for (yy = 0; yy != len; yy++)
{
	uint8_t temp;
	usbd_copy_out(pc, offset + yy, &temp, 1);

	printf("0x%02x ", (int)temp);
}

printf("\n");


I guess the reason your keyboard doesn't work is that we don't parse any HID 
descriptors in UKBD.

--HPS


More information about the freebsd-current mailing list