4/1/2024 0 Comments Xinput test linuxTrying it out on screen proved that it now works as expected. Strangly it seems that origin is top-right corner, but we shouldn't care much about it beacuse we can specify them using following command (after rounding them a xinput set-prop 14000 2800 13500 Immidiatly we can see minimum and maximum values for both axes and putting figer on top-left corner of screen produced (a lot of) output like this:Įvent: time 1386078786.506710, - SYN_REPORT -Įvent: time 1386078786.510712, type 3 (EV_ABS), code 0 (ABS_X), value 13919Įvent: time 1386078786.510712, type 3 (EV_ABS), code 1 (ABS_Y), value 2782Īfter a few touches I had coordinates which where something like this: Input device name: "3M 3M USB Touchscreen - EX II" Input device ID: bus 0x3 vendor 0x596 product 0x1 version 0x410 dev/input/event8: SynPS/2 Synaptics TouchPad dev/input/event7: 3M 3M USB Touchscreen - EX II dev/input/event4: ThinkPad Extra Buttons dev/input/event0: AT Translated Set 2 keyboard No device specified, trying to scan all of /dev/input/event* You will have to run it as root as sudo evtest It's low level utility which enables you to see input events before they are passwd to Xorg server. Next, I needed to calibrate screen to track my finger moving over surface. If you don't know how many parameters property takes, just put one, try it out and if it returns errors, keep adding parameters until it suceeds. Parameters are device id, property id, X axis swap and Y axis swap. This can be acomplised using following xinput set-prop 9 267 1 0 Examining properties of device in more detail revealed that it has property to swap axes and calibrate them, but what to write into those xinput list-props 9Ĭoordinate Transformation Matrix (141): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000ĭevice Accel Constant Deceleration (264): 1.000000ĭevice Accel Adaptive Deceleration (265): 1.000000ĭevice Accel Velocity Scaling (266): 10.000000Īxis Labels (270): "Abs X" (261), "Abs Y" (262)īutton Labels (271): "Button Unknown" (260), "Button Unknown" (260), "Button Unknown" (260), "Button Wheel Up" (145), "Button Wheel Down" (146)Įvdev Third Button Emulation Timeout (275): 1000Įvdev Third Button Emulation Button (276): 3Įvdev Third Button Emulation Threshold (277): 20Įvdev Wheel Emulation Axes (279): 0, 0, 4, 5įirst task was was to flip x axes to make it move left-right instead of right-left. This seems like a good news, but when I tried to use it, it seemed that cursor would move only in middle of screen (with X axis swapped) so I wasn't very happy about it. Not giving up that easily I decided to see what xinput reports about it (without any additional drivers xinput list TouchscreenĪ bit of googling later, I found out that there are two different drivers for microtouch devices, but both of them support serial devices only. We have a couple of 3M MicroTouch M150 touch screens which are VGA monitors (1024*768 resolution) with USB touchscreen interface which is reported lsusb -d 0596:0001īus 002 Device 002: ID 0596:0001 MicroTouch Systems, Inc. In this post, I will try to explain how to examine your device using evtest and try out settings using xinput without restarting X server or installing any drivers other than built-in evdev. If you have different touch screen you might be out of luck or guess what to do. Libinput Accel Speed Default (285): 0.When you are trying to configure touch screen on Linux machine, internet offers examples nf configuration but without explanation were numbers in it came from. Xinput list-props 9 output, highlighting the two relevant ones: Xinput details: (unfortunately there are multiple ids with the same name "Razer Razer DeathAdder Elite", hence I have to use the id number = 9): ⎡ Virtual core pointer id=2 If I place them into ~/.bashrc, then they do work fine after opening a new terminal window, but I would like to achieve the same already when the desktop has started (preferable already being active at the long-in screen).įollowing this thread I did try to add these commands into ~/.xsessionrc, but also to several other different locations, like: /etc/profiles, ~/.xinputrc, /etc/X11/xinit/xinitrc, or /etc/X11/xinit/xinputrc, but none of them had effect after xwindows was up.Īny suggestions directing me to the correct path would be highly appreciated! The only problem is that I can't make these settings permanent after reboot. I would need to adjust the mouse speed, which I can do with xinput, using the following two commands in my case: xinput set-prop 9 287 0, 1 I am running Ubuntu 18.04.2 LTS with the standard gdm3 display manager.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |