Date: Mon, 5 Jul 1999 18:11:31 +0200 (MET DST) From: Luigi Rizzo <luigi@labinfo.iet.unipi.it> To: hackers@freebsd.org Subject: mouse/keyboard usage statistics... Message-ID: <199907051611.SAA20442@labinfo.iet.unipi.it>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199907051611.SAA20442>