To: debian-user@lists.debian.org Subject: Re: Request for guidance to output(print, i.e.) mouse movements, key press, perepherals insert, etc., on a terminal From: Darac Marjal <mailingl...@darac.org.uk> Date: Mon, 24 Apr 2023 18:24:06 +0100 Message-id: <[🔎] ab7599f3-2c92-358c-2ba4-250284395...@darac.org.uk> In-reply-to: <[🔎] CAEG4cZXDPaY3hkjYTf=fnm7byybfztmab-mo8rkvh-_vkpm...@mail.gmail.com> References: <[🔎] CAEG4cZXDPaY3hkjYTf=fnm7byybfztmab-mo8rkvh-_vkpm...@mail.gmail.com>
[ ... ] Try looking at "evtest". [ ... ] Thanks Mr. Marjal, for replying to my query. First of all, my apology for typing incorrectly the word Peripheral. My dear illustrious leaders and senior list members of debian-user, Checked a few of stackoverflow questions with your input and the string [stackoverflow "monitor mouse" debian]. These are about monitoring mouse/keystroke programmatically using c programming language, not with bash script. BUT my point is that GNU/Linux system must be doing this. I like to seek the data from the system program(s) that is/are monitoring all peripherals. >From these questions, found evemu, but this isn't available in Debian. Only on freedesktop. But an alternative is available: evemu-tools. But Debian manpages doesn't have an evemu-tools entry. Raed the manual of evtest. There are very little example code lines. evtest isn't installed in the Official Debian GNU/Linux Live 11.6.0 lxde 2022-12-17T11:46. Tthe package information was raed for evtest. evtest according to Debian is only being maintained. Advised that it was better to look for evemu. >From the package repository, it was found that evemu have separate manpages, each for: evemu-describe evemu-device evemu-event evemu-play evemu-record I read the man pages and tried: evemu-describe /dev/input/eventX For my laptop. Could I please be advised on how to: (1) monitor event0 (keyboard), event6 (external USB optical mouse) real time? (2) If there is a way to monitor mouse-clicks or keystroke, i.e., the two events, in real time, without a script or a programming language like c or python? (3) monitor the USB ports when some device is inserted into the ports? Best wishes, Rajib