Announcement

Collapse
No announcement yet.

GAMEPAD( usb rudders pedals X,Y,Z issue ) may it be a wine or SDL issue

Collapse
This topic has been answered.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    [SOLVED] GAMEPAD( usb rudders pedals X,Y,Z issue ) may it be a wine or SDL issue

    Click image for larger version  Name:	Screenshot_20240914_101912.png Views:	4 Size:	87.3 KB ID:	682429
    Hi,

    thinking at first it is a wine issue....but i had read that SDL1.x could be a problem. we must go to SDL2 to have this working.

    I'am under Linux Kubuntu 6.8.0-44, i have three materials, Hotas warthog (joy+throttle) + T.flight rudder pedals. the last one is detected and perfectly used in linux kubuntu system with joystick configuration, all of these are /dev/input/js(0,1,2), the rudders are in js2.
    the Hotas's are detected from Dinput of "wine control".
    There is nothing into tab Xinput. (The rudder use flight switch position onto RJ12/USB connector.)

    I followed the tuto to play starcitizen or ubisoft games on linux with wine (9.x) and Lutris. it work well, i have better result than Windows. the hotas's work perfectly. but the rudder pedal do not work/be detected/usable from wine.

    Is there any chance i could use the rudder from linux system with manually modifications? did you encounter this problem and resolv it ? could you explain me how to do?

    some guys tells SDL 1.x is outdated and detect only axis rudders( without buttons) as accelerometers not joysticks, corrected with SDL 2.0. factually i have the libsdl2-2.0-0 installed. but T-Rudder doesn't work yet.

    or do you confirm it is a wine issue ?
    Last edited by MegsOconnor; Sep 14, 2024, 09:27 AM.
  • Answer selected by Snowhog at Sep 15, 2024, 10:01 AM.

    hmmmm:
    crw-rw-r--+ 1 root input 13, 0 sept. 15 17:35 js0
    crw-rw-r--+ 1 root input 13, 1 sept. 15 17:35 js1
    crw-rw-r--+ 1 root input 13, 2 sept. 15 17:35 js2

    ....
    lrwxrwxrwx 1 root root 9 sept. 15 17:44 usb-Thrustmaster_T-Rudder-event-if00 -> ../event8
    the udev line i wrote correct only the rigths on input and event files.
    but it solve the problem, all controllers are listed in "wine control".

    thanks to relocalizing my attention to this post, i found the solution there: https://github.com/ValveSoftware/Proton/issues/5126
    finally seems to be a bad SDL2 recognition and rights assignements on device.
    Last edited by MegsOconnor; Sep 15, 2024, 10:31 AM.

    Comment


      #2
      after some tries:

      be in root let wine control to see the rudder pedals. but the user cannot. it is definitively not a wine PB ( but with maybe bad files rigths on some input files.
      Hi, after some tries, there is new facts:
      - the rudder is in the wine control when i start the command in root...
      - The rudder not appear in wine control if i star in user account..

      lrwxrwxrwx 1 root root 9 sept. 14 15:54 usb-Thrustmaster_Throttle_-_HOTAS_Warthog-event-joystick -> ../event5
      lrwxrwxrwx 1 root root 6 sept. 14 15:54 usb-Thrustmaster_Throttle_-_HOTAS_Warthog-joystick -> ../js0
      lrwxrwxrwx 1 root root 9 sept. 14 15:54 usb-Thrustmaster_T-Rudder-event-if00 -> ../event7
      lrwxrwxrwx 1 root root 9 sept. 14 15:54 usb-Thustmaster_Joystick_-_HOTAS_Warthog-event-joystick -> ../event6
      lrwxrwxrwx 1 root root 6 sept. 14 15:54 usb-Thustmaster_Joystick_-_HOTAS_Warthog-joystick -> ../js1

      and

      crw-rw-r--+ 1 root input 13, 0 sept. 14 15:54 js0
      crw-rw-r--+ 1 root input 13, 1 sept. 14 15:54 js1
      crw-rw-r-- 1 root input 13, 2 sept. 14 15:54 js2

      some idear to fix it ?​
      Last edited by MegsOconnor; Sep 14, 2024, 10:01 AM.

      Comment


        #3
        Originally posted by MegsOconnor View Post
        be in root let wine control to see the rudder pedals. but the user cannot.
        Yes. of course, if you mean running something with sudo, and not physically logged in to the normally disabled root account.
        Using sudo makes any configuration or file it touches owned by root, so yes, it won't allow the user to change things, since the files are now owned by root, and not the user.
        All wine settings are stored in your $HOME, not at the system level at all. Even if you are using the root user account to log in to the desktop.

        Running most any GUI tool with sudo directly will break things, as you are seeing.



        BUT if you are not using sudo, there is another much more common issue:
        Many usb peripherals like joysticks etc do need custom UDEV rules to allow normal user access.

        Something like what is explained here:
        https://www.reddit.com/r/linux_gamin...rudder_pedals/

        I completely forgot about this, I'd have figured there would be udev rules for most of the more common game peripheral brands today.
        Last edited by claydoh; Sep 14, 2024, 09:32 PM.

        Comment


          #4
          Nop, surely i don't use Root to launch KDE. i am using root throught sudo to open a root shell if necessary to use it. ( i already does the error and i had to redo my system enougth times to avoid this usage. XD, ahhh the good time for it is done, remembering debian lenny with gui in root account...). Linux have heavily changed from last 10 years. i am lost into all folder moves and all new features.

          i know this reddit, because i had already read it in my research to resolv the pb.

          I have a pb between the 2 way you offer:
          - linux systeme recognize perfectly the three devices and create for two of them ( hotas) correct inputs. ( event+js), but the rudder two but have only event input in id and path subfolders. ANd their is some differences between rigths ( the +).
          - i start in user mode the joystick KDE gui configurator ( default in KDE and the jstest-gtk ), they show me all devices correctly.
          - if i run in user mode "wine control", the rudder disapear... and i don't understand why.
          - if i sudo the execution of "wine control" i find it.

          If i understand well what about the reddit speaking, They are speaking about a problem when system do not recognize my device. that is not the case i think. If it was badly recognized it can't be used by jstest-gtk no?

          You said all wine config is in $HOME. i don't know witch file is about the controller devices inits.
          thinking now it is more a wine pb. in 2018, some guy speaks about paths to correct the fact that wine is locked about 2 joystick devices only. i hoped it was corrected now but it may not. If this is that i cannot do anything.
          in another way an other pb is that to be detected as joystick, device must avec axes AND buttons. Rudders have only axis... thinking may it was corrected in system but Wine wasn't.

          in kubuntu seems not to have files for my thrustmasters. but devices are there. so adding a file 60-Thrustmaster-rudder.rules with ( lsusb info) :

          SUBSYSTEM=="input*", ATTRS{idVendor}=="044f", ATTRS{idProduct}=="b679", MODE="0664", TAG+="uaccess"​, ENV{ID_CLASS}="joystick", ENV{ID_INPUT_JOYSTICK}="1"
          . rebooting and....
          Last edited by MegsOconnor; Sep 15, 2024, 10:18 AM.

          Comment


            #5
            hmmmm:
            crw-rw-r--+ 1 root input 13, 0 sept. 15 17:35 js0
            crw-rw-r--+ 1 root input 13, 1 sept. 15 17:35 js1
            crw-rw-r--+ 1 root input 13, 2 sept. 15 17:35 js2

            ....
            lrwxrwxrwx 1 root root 9 sept. 15 17:44 usb-Thrustmaster_T-Rudder-event-if00 -> ../event8
            the udev line i wrote correct only the rigths on input and event files.
            but it solve the problem, all controllers are listed in "wine control".

            thanks to relocalizing my attention to this post, i found the solution there: https://github.com/ValveSoftware/Proton/issues/5126
            finally seems to be a bad SDL2 recognition and rights assignements on device.
            Last edited by MegsOconnor; Sep 15, 2024, 10:31 AM.

            Comment

            Working...
            X