Otherwise I have to write one myself. In which case anybody have a good guide on writing Linux kernel drivers in rust? Maybe specifically catered towards controllers

Otherwise I guess I can get chat gpt to do it

The thing has three ‘modes’ Pc,ps4, and ps5. But just connecting it to Pc doesn’t work

  • frostphunk@lemmy.worldOP
    link
    fedilink
    arrow-up
    7
    ·
    edit-2
    1 year ago

    Hey guys,

    Seems I had a bad USB port. Looks like ChatGPT won’t be coding us a driver anytime soon

    I do concede my lack of sleep has led to bad judgement

  • olafurp@lemmy.ml
    link
    fedilink
    arrow-up
    3
    ·
    1 year ago

    If you want to write drivers you’ll need some really good documentation on how to interact with the device.

    Then when you have that ask ChatGPT how to write a driver, it’ll most likely not do the best job on writing it in Rush so for a sample code asking for C code will give better result.

    • frostphunk@lemmy.worldOP
      link
      fedilink
      arrow-up
      2
      ·
      edit-2
      1 year ago

      You’re right, I didn’t consider documentation being a problem never written a driver . I just assumed it was pretty easy for something with just 12 buttons. Any pointers on REing. I’m assuming victrix doesn’t put out any docs on their sticks

  • mvirts@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    1 year ago

    I would bet that you just need to add the USB device id to the right driver and it will work. It’s PlayStation compatible and Windows compatible, so it should work as either a dual shock USB device or a generic hid controller of some sort.

    • frostphunk@lemmy.worldOP
      link
      fedilink
      arrow-up
      1
      ·
      1 year ago

      Not at Pc atm but I’ll let you know ASAP

      also I’m running steam as steam deck in gamescope on wayland in case my hardware helps anyone. Should be recent versions b/c rolling release distro