LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-11-2020, 06:42 PM   #1
daveattwoo
LQ Newbie
 
Registered: Mar 2006
Location: Chester UK
Distribution: Ubuntu
Posts: 3

Rep: Reputation: 0
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?
 
Old 07-12-2020, 10:44 AM   #2
daveattwoo
LQ Newbie
 
Registered: Mar 2006
Location: Chester UK
Distribution: Ubuntu
Posts: 3

Original Poster
Rep: Reputation: 0
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.

Last edited by daveattwoo; 07-13-2020 at 03:20 PM. Reason: Simplify script
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: An open source bionic leg, Python data pipeline, data breach detection, and more news LXer Syndicated Linux News 0 06-09-2019 06:10 AM
About raw device or raw fs snowball0916 Red Hat 6 03-10-2011 07:39 AM
sending raw data to a USB device from terminal in ubuntu raphtor Linux - Networking 1 01-25-2010 04:37 AM
Difference between using Raw block device with O_DIRECT and Raw Character Device srithi Linux - Newbie 1 08-19-2009 10:52 AM
reinstall windows xp screws up redhat load screen? spchehe Linux - Software 6 06-02-2004 07:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:56 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration