AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Xinput test linux3/28/2024 I can add a USB mouse and disable the touchpad so I do not accidentally touch it and cause the cursor to do things I do not want it to do. Personally, I have a laptop with a touchpad that I do not like at all. For example, if you have a laptop with a keyboard and you add another in the USB port, you want to be sure you disabled the proper keyboard. NOTE: For systems with multiple input devices, be sure that if one of the devices is to be disabled that it is the correct one. Another keyboard and/or mouse can be added using the Universal Serial Bus (USB). For example, on a laptop there is a keyboard and usually a touchpad or some such device to control the mouse. It is possible to have multiple mice and keyboards on a system. The core devices for Xinput are the mouse and keyboard. The Xinput extension, libXi, controls input from the mouse and keyboard as well as other input devices which may not be common. X Windows is made up of many components which are managed to support the GUI. X Windows is also referred to as X11, X-Windows and X. Repeat several times and collect the success/failure counts.The display manager of Linux systems is X Windows.Repeat for 2 or more fingers (dragging your nose and both hands is not recommended, get another person to assist if you want to test more contacts than available fingers). Place fingers on the screen one at a time until the counter stops increasing.Contact count (need to supply a tool for this).Hold a finger at the center of the screen and draw a large circle with another finger.Hold one finger on the middle left edge of the screen and move another finger up and down over the right edge.Tracking: as you move 2 fingers around the screen do the cursors swap?.During all testing, note any touch events that do not correspond to real contact such as random screen clicks or jumping to an edge or corner.(do we have to worry about gesture only devices and ignore some tests for those?) Fundamentally multitouch devices are an extension of single touch devices and testing should start with basic touch support and then progress to more advanced multitouch behaviors.Repeat with hibernation (suspend to disk).Verify device still functional calibration is correct. Put machine into sleep mode (suspend to ram) and wake it up.Verify from above output that device was detected by the kernel and X.Note dmesg, lsusb and xinput output after connecting device Note dmesg, lsusb and xinput output before connecting device Boot system to Ubuntu without device attached.Many drawing applications support different tools for each (gimp,mypaint, xournal). For pen based devices test both stylus and eraser.Exercise functionality from application using touch and verify works properly and smoothly.Pen devices typically support pressure, touch generally does not, though there do exist devices that support pressure with touch and some that do not support pressure with stylus. If cursor moves bottom to top instead, it is a coordinate system error.Drag vertical from the left side of screen to the right and verify mouse cursor moves accordingly.Tap on Terminal to launch a terminal window.Using finger, navigate in the menu to Accessories > Terminal If taps do not register (TODO: Then what?).Tap on the 'Applications' menu and verify the menu displays.Touch and move finger on screen, and verify the mouse cursor moves accordingly.Boot system to Ubuntu with touchscreen device attached/enabled (as appropriate).Determine the firmware version and update appropriate hardware table:.Kernel support for touch and pen screens can be found in:.Some serial devices won't show up in this output.Missing or incorrectly identified devices indicate lack of support or an error in a kernel driver.If that generates no output, review full output of sudo lsinput If event based input device check sudo lsinput | grep -i touch -A4 -B5 Note: some wacom devices may show up only as a serial device and will not show up on the usb bus or as input devices.Most usb devices even if unsupported should still be present in that list.Ex: "Bus 007 Device 002: ID 1b96:0001 N-Trig Duosense Transparent Electromagnetic Digitizer".Look for device labeled 'touchscreen' and/or 'multitouch'.Run xinput list and see if all expected devices shows up Attach touchscreen (if appropriate) and boot system to Ubuntu.Perform all tests for pen and finger based input as applicable.
0 Comments
Read More
Leave a Reply. |