LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   USB Raw device data screws with my screen on Ubuntu Bionic (https://www.linuxquestions.org/questions/linux-newbie-8/usb-raw-device-data-screws-with-my-screen-on-ubuntu-bionic-4175678568/)

daveattwoo 07-11-2020 06:42 PM

USB Raw device data screws with my screen on Ubuntu Bionic
 
I have a Saitek Pro Flight Panel which connects via usb to /dev/hidraw<n>.
It's opened with
Code:

f = open ("/dev..., O_RDWR |O_NOBLOCK)
, and it reads fine BUT some of the input data is also acting as mouse input.
A test program reading as fast as possible exhibits the problem, so it doesn't seem to be data overrun.
Any ideas?

daveattwoo 07-12-2020 10:44 AM

Fixed it
 
By default, the Saitek Radio Panel was enabled as an input device for X. Following script fixes it.
Code:

#!/bin/bash
id=`xinput list | grep -P "Saitek.*Panel" | grep -oP "id=\d+" | grep -oP "\d+"`
xinput --disable $id

by disabling the device to X.
This was verified (only) on Ubuntu 18.04.4.


All times are GMT -5. The time now is 10:42 PM.