Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #257531 > unrolled thread
| Started by | "Susmita/Rajib" <bkpsusmitaa@gmail.com> |
|---|---|
| First post | 2023-04-24 16:00 +0200 |
| Last post | 2023-05-03 10:30 +0200 |
| Articles | 8 — 5 participants |
Back to article view | Back to linux.debian.user
Request for guidance to output(print, i.e.) mouse movements, key press, perepherals insert, etc., on a terminal "Susmita/Rajib" <bkpsusmitaa@gmail.com> - 2023-04-24 16:00 +0200
Re: Request for guidance to output(print, i.e.) mouse movements, key press, perepherals insert, etc., on a terminal Darac Marjal <mailinglist@darac.org.uk> - 2023-04-24 19:30 +0200
Re: Request for guidance to output(print, i.e.) mouse movements, key press, perepherals insert, etc., on a terminal "Susmita/Rajib" <bkpsusmitaa@gmail.com> - 2023-04-25 07:20 +0200
Re: Request for guidance to output(print, i.e.) mouse movements, key press, perepherals insert, etc., on a terminal David <bouncingcats@gmail.com> - 2023-04-25 07:50 +0200
Re: Request for guidance to output(print, i.e.) mouse movements, key press, perepherals insert, etc., on a terminal "Susmita/Rajib" <bkpsusmitaa@gmail.com> - 2023-04-25 15:30 +0200
Re: Request for guidance to output(print, i.e.) mouse movements, key press, perepherals insert, etc., on a terminal Yassine Chaouche <a.chaouche@algerian-radio.dz> - 2023-05-02 10:10 +0200
Re: Request for guidance to output(print, i.e.) mouse movements, key press, perepherals insert, etc., on a terminal songbird <songbird@anthive.com> - 2023-05-02 16:10 +0200
Re: Request for guidance to output(print, i.e.) mouse movements, key press, perepherals insert, etc., on a terminal Yassine Chaouche <a.chaouche@algerian-radio.dz> - 2023-05-03 10:30 +0200
| From | "Susmita/Rajib" <bkpsusmitaa@gmail.com> |
|---|---|
| Date | 2023-04-24 16:00 +0200 |
| Subject | Request for guidance to output(print, i.e.) mouse movements, key press, perepherals insert, etc., on a terminal |
| Message-ID | <Go4Tv-4cp9-1@gated-at.bofh.it> |
The output could be simple dots for mouse movement, dashes for key press, and colon for perepherals insert. No need for exact key or mouse positions or perepheral details. Best wishes, Rajib
[toc] | [next] | [standalone]
| From | Darac Marjal <mailinglist@darac.org.uk> |
|---|---|
| Date | 2023-04-24 19:30 +0200 |
| Message-ID | <Go8aJ-4ewD-1@gated-at.bofh.it> |
| In reply to | #257531 |
[Multipart message — attachments visible in raw view] — view raw
Note that the subject of an email should be just that - an indication of the subject matter. Putting important information JUST in the subject line can be confusing. On 24/04/2023 14:40, Susmita/Rajib wrote: > The output could be simple dots for mouse movement, dashes for key > press, and colon for perepherals insert. > No need for exact key or mouse positions or perepheral details. Try looking at "evtest". > Best wishes, > Rajib >
[toc] | [prev] | [next] | [standalone]
| From | "Susmita/Rajib" <bkpsusmitaa@gmail.com> |
|---|---|
| Date | 2023-04-25 07:20 +0200 |
| Message-ID | <GojfP-4lCT-1@gated-at.bofh.it> |
| In reply to | #257531 |
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 <mailinglist@darac.org.uk>
Date: Mon, 24 Apr 2023 18:24:06 +0100
Message-id: <[🔎] ab7599f3-2c92-358c-2ba4-250284395936@darac.org.uk>
In-reply-to: <[🔎]
CAEG4cZXDPaY3hkjYTf=FNm7byybFztmaB-mo8RkvH-_vkPMP7A@mail.gmail.com>
References: <[🔎]
CAEG4cZXDPaY3hkjYTf=FNm7byybFztmaB-mo8RkvH-_vkPMP7A@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
[toc] | [prev] | [next] | [standalone]
| From | David <bouncingcats@gmail.com> |
|---|---|
| Date | 2023-04-25 07:50 +0200 |
| Message-ID | <GojIR-4lOB-1@gated-at.bofh.it> |
| In reply to | #257558 |
On Tue, 25 Apr 2023 at 05:18, Susmita/Rajib <bkpsusmitaa@gmail.com> wrote: > [...] > >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? Use an internet search engine like google or duckduckgo to search for "using evemu-tools" and click on any of the first five results.
[toc] | [prev] | [next] | [standalone]
| From | "Susmita/Rajib" <bkpsusmitaa@gmail.com> |
|---|---|
| Date | 2023-04-25 15:30 +0200 |
| Message-ID | <GoqU1-4qFI-7@gated-at.bofh.it> |
| In reply to | #257558 |
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: "Susmita/Rajib" <bkpsusmitaa@gmail.com>
Date: Tue, 25 Apr 2023 10:30:04 +0530
Message-id: <[🔎]
CAEG4cZWPbFH7eFBcz5k+UxykErvD4cMNr4tUw9z_znovj_tBNQ@mail.gmail.com>
In-reply-to:
<CAEG4cZXRmKXsHZhJuf3FD17n-wCkDOfvHyNpwR_nAmp0CQgAqA@mail.gmail.com>
References: <[🔎]
CAEG4cZXDPaY3hkjYTf=FNm7byybFztmaB-mo8RkvH-_vkPMP7A@mail.gmail.com>
<CAEG4cZUvPwDBcKf0XMr3fzr28fhEwSNYCUcXHab+xpDinMZtUg@mail.gmail.com>
<CAEG4cZXRmKXsHZhJuf3FD17n-wCkDOfvHyNpwR_nAmp0CQgAqA@mail.gmail.com>
My dear illustrious leaders and senior members of this mailing list,
Please Ignore my earlier post on evemu at
https://lists.debian.org/debian-user/2023/04/msg01018.html, as the
input events can be accessed from the terminals without the
implementation of evemu,
The ideal candidates would be kernel event handlers, like mouse and
keyboard event handlers, which are illustrated in the file:
https://www.kernel.org/doc/Documentation/input/input.txt
I would like the latest edition of the said document: whether a
commensurate version exists, such as
https://kernel-team.pages.debian.net/kernel-handbook/.
BUT mainly how could I access the input events from the terminal?
For example, in the case of my laptop, my usb mouse is reported by
invoking as root, $cat /dev/input/mouse1 and the laptop keyboard, as
root by $cat /dev/input/event0.
What remains to be accomplished is the event when a USB device is
inserted into the USB ports.
After the "USB insertion" is sorted out, I will seek support for the
next course of action.
Best wishes
[toc] | [prev] | [next] | [standalone]
| From | Yassine Chaouche <a.chaouche@algerian-radio.dz> |
|---|---|
| Date | 2023-05-02 10:10 +0200 |
| Message-ID | <GqTfb-5ZMC-1@gated-at.bofh.it> |
| In reply to | #257558 |
Le 4/25/23 à 06:00, Susmita/Rajib a écrit : > > Try looking at "evtest". > > [ ... ] > > 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. I second evtest which is very straightforward. Upon running evtest (with root privileges) you will be presented with a menu of all devices it can monitor. You just have to type the associated number to select that device. Of course it's not pre-installed in the live version of Debian, or any debian, but you can install it just fine. $ sudo apt-get install evtest [...] $ sudo evtest Best, -- yassine -- sysadm +213-779 06 06 23 http://about.me/ychaouche Looking for side gigs.
[toc] | [prev] | [next] | [standalone]
| From | songbird <songbird@anthive.com> |
|---|---|
| Date | 2023-05-02 16:10 +0200 |
| Subject | Re: Request for guidance to output(print, i.e.) mouse movements, key press, perepherals insert, etc., on a terminal |
| Message-ID | <GqYRz-639I-5@gated-at.bofh.it> |
| In reply to | #257841 |
Yassine Chaouche wrote: > Le 4/25/23 à 06:00, Susmita/Rajib a écrit : > >> >> Try looking at "evtest". >> >> [ ... ] >> >> 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. > > > I second evtest which is very straightforward. > Upon running evtest (with root privileges) > you will be presented with a menu of all devices it can monitor. > You just have to type the associated number to select that device. > > Of course it's not pre-installed in the live version of Debian, > or any debian, > but you can install it just fine. > > $ sudo apt-get install evtest > [...] > $ sudo evtest note this from the package description: "evtest is now in maintenance mode and doesn't support all the features of the latest kernels; evemu-record from the evemu-tools package should be used instead. " songbird
[toc] | [prev] | [next] | [standalone]
| From | Yassine Chaouche <a.chaouche@algerian-radio.dz> |
|---|---|
| Date | 2023-05-03 10:30 +0200 |
| Message-ID | <Grg25-6e6A-9@gated-at.bofh.it> |
| In reply to | #257856 |
Le 5/2/23 à 14:40, songbird a écrit : > [...] > > note this from the package description: > > "evtest is now in maintenance mode and doesn't support all the features of the latest kernels; evemu-record from the evemu-tools package should be used instead." Thanks for the heads-up! Best, -- yassine -- sysadm +213-779 06 06 23 http://about.me/ychaouche Looking for side gigs.
[toc] | [prev] | [standalone]
Back to top | Article view | linux.debian.user
csiph-web