problem with the command xinput

If none of the more specific forums is the right place to ask

problem with the command xinput

Postby cosmoff » 2018-12-10 13:54

Hello everybody,

I am using the command :
Code: Select all
xinput --test 9 | grep "button press"
where 9 represents the mouse,
and it works very well on Ubuntu but on Debian the "button press" are recognized only when I click on the bar of my terminal where I run the command. but the position of the mouse is properly recognized on all the screen with
Code: Select all
xinput --test 9


Do you have an idea of the problem

thank you
cosmoff
 
Posts: 4
Joined: 2018-12-10 13:39

Re: problem with the command xinput

Postby llivv » 2018-12-10 14:58

Code: Select all
"button press   1"

Code: Select all
"button press   2"
In memory of Ian Ashley Murdock (1973 - 2015) founder of the Debian project.
User avatar
llivv
 
Posts: 5847
Joined: 2007-02-14 18:10
Location: cold storage

Re: problem with the command xinput

Postby cosmoff » 2018-12-10 15:23

no it does not work.
In fact even with just
Code: Select all
xinput --test 9
the terminal return only the motion event. The press events do not work and I do not know why
cosmoff
 
Posts: 4
Joined: 2018-12-10 13:39

Re: problem with the command xinput

Postby llivv » 2018-12-11 06:22

cosmoff wrote:
Code: Select all
xinput --test 9 | grep "button press"
"button press" are recognized only when I click on the bar of my terminal where I run the command.
thank you

When you click on the terminal title bar and it sends
Code: Select all
button press  3
to the terminal cut that message and paste it into your grep pattern.
In memory of Ian Ashley Murdock (1973 - 2015) founder of the Debian project.
User avatar
llivv
 
Posts: 5847
Joined: 2007-02-14 18:10
Location: cold storage

Re: problem with the command xinput

Postby cosmoff » 2018-12-11 06:47

I want retrieving the clicks on all the screen not just on the terminal title bar. It works perfectly with ubuntu but not debian.
cosmoff
 
Posts: 4
Joined: 2018-12-10 13:39

Re: problem with the command xinput

Postby cosmoff » 2018-12-11 07:29

Is it a problem from a lib or a conf file ?
cosmoff
 
Posts: 4
Joined: 2018-12-10 13:39


Return to General Questions

Who is online

Users browsing this forum: No registered users and 7 guests

fashionable