From owner-freebsd-hackers Mon Jul 5 11:42: 9 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from labinfo.iet.unipi.it (labinfo.iet.unipi.it [131.114.9.5]) by hub.freebsd.org (Postfix) with SMTP id B1B1C15093 for ; Mon, 5 Jul 1999 11:42:07 -0700 (PDT) (envelope-from luigi@labinfo.iet.unipi.it) Received: from localhost (luigi@localhost) by labinfo.iet.unipi.it (8.6.5/8.6.5) id SAA20442; Mon, 5 Jul 1999 18:11:31 +0200 From: Luigi Rizzo Message-Id: <199907051611.SAA20442@labinfo.iet.unipi.it> Subject: mouse/keyboard usage statistics... To: hackers@freebsd.org Date: Mon, 5 Jul 1999 18:11:31 +0200 (MET DST) X-Mailer: ELM [version 2.4 PL23] Content-Type: text Content-Length: 1180 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, just as a curiosity (or maybe not...) i was wondering what would be the easiest way to get rough estimate of the number of keypress and mouse movements i do. It appears that vmstat -i already gives some estimate for the keyboard, e.g. ordinary keys give a couple of interrupts (on press/release), but whenever the autorepeat starts I get some 18 int/s and thus the data is extremely noisy. Is there a way to get 'true' keypress counts in the "sc" driver, and especially log this info into syslog when the system is shut down ? Same problems for mouse movements, except perhaps that i can hook into moused and so the problem is a little bit easier to deal with. cheers luigi -----------------------------------+------------------------------------- Luigi RIZZO, luigi@iet.unipi.it . Dip. di Ing. dell'Informazione http://www.iet.unipi.it/~luigi/ . Universita` di Pisa TEL/FAX: +39-050-568.533/522 . via Diotisalvi 2, 56126 PISA (Italy) http://www.iet.unipi.it/~luigi/ngc99/ ==== First International Workshop on Networked Group Communication ==== -----------------------------------+------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message