Xubuntu and PS3 Controller

Discussion in 'Computer Games and General Discussion' started by Touko White, May 1, 2016.

  1. Touko White
    OP

    Touko White (not)Banned

    Member
    686
    1,456
    Jan 12, 2016
    United Kingdom
    Xubuntu 16.04 is proving to be a fucking problem.

    I mainly installed it because I couldn't run PS3 controller on a Mac at all, among a few other reasons why I did so, my last controller broke the R1 button and could not use.

    I tried to use higan and QtSixA. The controller is on and working, but it doesn't seem to detect fuck all, just sits there with the P1 light mocking your face while you can't play anything. Tried using my main (ZSNES) in Wine, that also accounted to fuck all, because the controller was still deciding to mock me.

    Any suggestions? I haven't played anything emulation-wise since I came back from holiday, I'm absolutely NOT switching to Windows and I want to play some SNES titles, without using a shitty Mac keyboard. And don't tell me to buy another keyboard.

    Thanks.
     
  2. 0x40

    0x40 GBAtemp Regular

    Member
    226
    63
    Apr 20, 2013
    Make sure you have xboxdrv installed, then post the output and relevant lines from dmesg.
     
  3. Touko White
    OP

    Touko White (not)Banned

    Member
    686
    1,456
    Jan 12, 2016
    United Kingdom
    I didn't even know that existed, anyway from that description it's not for PS3...

    — Posts automatically merged - Please don't double post! —

    I just installed XBOXDRV anyway.
    Then I noticed Input is Off for PS3 controller in QtSixA. Turned that on.

    Nothing, still.
    Don't know where the logs are. I don't really understand Linux at all.
     
  4. 0x40

    0x40 GBAtemp Regular

    Member
    226
    63
    Apr 20, 2013
    xboxdrv works with both wired and wireless PS3 controllers.
     
  5. Touko White
    OP

    Touko White (not)Banned

    Member
    686
    1,456
    Jan 12, 2016
    United Kingdom
    Just got this when launch 'xboxdrv'
    USBController::USBController(): libusb_open() failed: LIBUSB_ERROR_ACCESS

    I don't know what this means but it is recognising the controller correctly via USB
     
  6. 0x40

    0x40 GBAtemp Regular

    Member
    226
    63
    Apr 20, 2013
    Open a terminal, type "sudo dmesg | grep sony" then "sudo xboxdrv --detach-kernel-driver"
    You should see output in terminal when you press a button on the controller.
     
    Last edited by 0x40, May 1, 2016
  7. Touko White
    OP

    Touko White (not)Banned

    Member
    686
    1,456
    Jan 12, 2016
    United Kingdom
    The first part worked okay.
    Now it tells me that detach-kernel-driver is a unrecognised option.

    Probably something wrong with me, being an idiot...
     
  8. 0x40

    0x40 GBAtemp Regular

    Member
    226
    63
    Apr 20, 2013
    Strange. It works for me with xboxdrv version 0.8.8. Try with just -d instead of --detach-kernel-driver.
     
  9. Touko White
    OP

    Touko White (not)Banned

    Member
    686
    1,456
    Jan 12, 2016
    United Kingdom
    Got it right. Turned out I didn't write Detach properly.
    Says now:

    Error couldn't claim the USB interface: LIBUSB_ERROR_NOT_FOUND
    Try to run 'rmmod xpad' and then xboxdrv again or start xboxdrv with the option --detach-kernel-driver.

    I did use sudo.
    I tried to run xpad, then rmmod xpad and then got nothing but the Terminal went blank (stopped allowing me to use commands) and then came up something a bit like a sticky note or such.
     
  10. 0x40

    0x40 GBAtemp Regular

    Member
    226
    63
    Apr 20, 2013
    That means some other program is using the USB interface. Run "sudo lsmod | grep usb" and copy paste the output here.
     
  11. Touko White
    OP

    Touko White (not)Banned

    Member
    686
    1,456
    Jan 12, 2016
    United Kingdom
    btusb 45056 0
    btrtl 16384 1 btusb
    btbcm 16384 1 btusb
    btintel 16384 1 btusb
    bluetooth 520192 42 bnep,hidp,btbcm,btrtl,btusb,rfcomm,btintel
    usbhid 49152 0
    hid 118784 5 hidp,hid_sony,hid_generic,usbhid,hid_apple

    I'm using a MacBook Air...
    Probably the cause is that...

    Edit 3: Just rebooted and disconnected everything. Nothing SHOULD be using the device, although it has two other entries in there, don't understand everything. Probably the Mac's problem. changed usb slot, same problem.

    might have to give up at this point
     
    Last edited by Touko White, May 1, 2016
  12. Touko White
    OP

    Touko White (not)Banned

    Member
    686
    1,456
    Jan 12, 2016
    United Kingdom
  13. Touko White
    OP

    Touko White (not)Banned

    Member
    686
    1,456
    Jan 12, 2016
    United Kingdom
    cammy@cammy-MacBookAir:~$ sudo xboxdrv --detach-kernel-driver
    xboxdrv 0.8.5 - http://pingus.seul.org/~grumbel/xboxdrv/
    Copyright © 2008-2011 Ingo Ruhnke <grumbel@gmx.de>
    Licensed under GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
    This program comes with ABSOLUTELY NO WARRANTY.
    This is free software, and you are welcome to redistribute it under certain
    conditions; see the file COPYING for details.

    Controller: PLAYSTATION(R)3 Controller
    Vendor/Product: 054c:0268
    USB Path: 001:008
    Controller Type: Playstation 3 USB

    Your Xbox/Xbox360 controller should now be available as:
    /dev/input/js1
    /dev/input/event7

    After a while of discussion on the Xubuntu facebook group I ended up with this result.
    Also the PS3 controller is recognised as a separate keyboard in the battery system, which is good. :)

    Will be to trying with the ZSNES later :)
    I'll make a test video if I can.