From mboxrd@z Thu Jan 1 00:00:00 1970 From: erik quanstrom Date: Sat, 5 Apr 2014 11:09:21 -0400 To: 9fans@9fans.net Message-ID: <604a6e91e549fb18e8433d37861e7249@brasstown.quanstro.net> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] too fast key repeat in pcpae 2cpu mode Topicbox-Message-UUID: d781837e-ead8-11e9-9d60-3106f5b1d025 On Sat Apr 5 03:58:14 EDT 2014, kokamoto@hera.eonet.ne.jp wrote: > Eric, > > I reported I had no problem to use pcpae kernel so far. > This time, I must report a problem. > > I switched from 1CPU mode to 2CPU mode, and have > problem of too much high speed of keyboard input, > like aaaaaaaaaaa when I typed only one 'a'. > > Please check this, I want to use pcpae kernel for > CPU server soon. i assume this is a usb keyboard, and happens on any key? and i'll assume that you're using 9atom's usb/usbd built recently. is this what you're doing? can you run sos/sos and copy or email the output? sos itself gives instructions. also, check with a watch that sleep 10 or sleep 60 tracks correctly. i'm fairly confident in the usb/kb repeat process itself. i rewrote it because i was frustrated with this very problem. you are using usb and 9atom's usb/kb, right? the repeat mechanism is in /sys/src/cmd/usb/kb/kb.c:^/repeatproc and :^/repeattimerproc. the initial repeat delay is 500msec, and the subsequent delay is 30ms. which should be 33 repeats/sec. sources uses 160 and 25 (!) and warns * Rewrite instead of debug, if needed. you can verify the repeat rate tracks correctly with the system clock by running clock -s in one window and typing echo | freq hold down the 'a' where is for 10s exactly. we would expect 1 + 9.5*(1000/30) = 317 'a's on my machine, i get about 270-280. likely because kbin is unbuffered. - erik