Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

problem with the command xinput

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
cosmoff
Posts: 4
Joined: 2018-12-10 13:39

problem with the command xinput

#1 Post by cosmoff »

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

User avatar
llivv
Posts: 5340
Joined: 2007-02-14 18:10
Location: cold storage

Re: problem with the command xinput

#2 Post by llivv »

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.

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

Re: problem with the command xinput

#3 Post by cosmoff »

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

User avatar
llivv
Posts: 5340
Joined: 2007-02-14 18:10
Location: cold storage

Re: problem with the command xinput

#4 Post by llivv »

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.

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

Re: problem with the command xinput

#5 Post by cosmoff »

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

#6 Post by cosmoff »

Is it a problem from a lib or a conf file ?

Post Reply