Giter VIP home page Giter VIP logo

Comments (2)

thomasa88 avatar thomasa88 commented on May 28, 2024

It turns out that the value is missing from the Linux USB ID database.

Website:
http://www.linux-usb.org/usb-ids.html

File on Ubuntu:
/var/lib/usbutils/usb.ids

I will try editing usb.ids and, if it works, I will submit the ID for review to linux-usb.org

https://gist.github.com/m4ver1Kc/90462139e5ab0ab5e11e42d6779b5289 indicates that the product should be "Thrustmaster T150RS"

I will see if I can read a value from a Windows computer as well, just to be sure.

edit. Info on fetching latest database from the web: https://opensource.com/article/20/8/usb-id-repository

from t150_driver.

thomasa88 avatar thomasa88 commented on May 28, 2024

Turns out that the linux-usb.org webpage is mostly broken, but it seems that the usb.ids list still gets updated. I will try to send a patch to the robot, but I'm not sure if one must be registered first, somehow.

USB ids are nowadays read from "hwdb" in systemd, but they seem to fetch the USB IDs from the usb.ids file.

I added a local hwdb entry in this way (Ubuntu 20.04):
/etc/udev/hwdb.d/90-thrustmaster-t150.hwdb

usb:v044FpB677*
 ID_MODEL_FROM_DATABASE=T150 Racing Wheel
sudo systemd-hwdb update

lsusb -d 044f:b677
Bus 001 Device 101: ID 044f:b677 ThrustMaster, Inc. T150 Racing Wheel

lsusb -d 044f:b677 -v
  idVendor           0x044f ThrustMaster, Inc.
  idProduct          0xb677 T150 Racing Wheel

Based on this guide:
https://wiki.archlinux.org/title/Map_scancodes_to_keycodes

Upstream systemd hwdb: https://github.com/thomasa88/systemd/tree/main/hwdb.d

Edit: It did not make the wheel function in my Steam/proton games.

Edit: I have made a PR on SDL_GameControllerDB for a config that makes the wheel be visible as XInput in wine. (Mapping a controller in Steam also does this). Does not fix the mentioned games though. mdqinc/SDL_GameControllerDB#465

SDL_GAMECONTROLLERCONFIG="030000004f04000077b6000000010000,Thrustmaster T150RS,a:b1,b:b2,x:b4,y:b3,back:b9,guide:b0,start:b10,leftstick:b5,rightstick:b6,leftshoulder:b11,rightshoulder:b12,dpup:h0.1,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,leftx:a1,-rightx:b7,+rightx:b8,lefttrigger:a3,righttrigger:a2,platform:Linux,"

from t150_driver.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.