Page 21 of 22 FirstFirst ... 1119202122 LastLast
Results 201 to 210 of 218

Thread: Xbox 360 Controller in Feisty

  1. #201
    Join Date
    Nov 2009
    Beans
    1

    Re: Xbox 360 Controller in Feisty

    oookay.

    I was having the same problems like BigSilly (?) on the first few pages, with the same gamepad.

    xpad is blacklisted, endpoints had been tested hardcoded as both 1 and 2, but it still wouldn't allow the driver to claim that interface.
    So I did a little bit of treachery, stealing the interface from the kernel (not my code, stolen from here http://www.c-plusplus.de/forum/viewt...is-243643.html)
    Code:
    void forceClaimInterface( usb_dev_handle *targetDevice, int interfaceNumber ){
        int nRet = -1;
        for( int i = 0; i < nRetries; i++)
        {
            if(1)
            {
                nRet = usb_claim_interface( targetDevice, interfaceNumber);
                if( nRet < 0)
                {
                    std::cerr << "openUSBDevice: try to claim interface again..." << std::endl;
                    if( usb_detach_kernel_driver_np( targetDevice, interfaceNumber ) < 0)
                    {
                        printf( "failed to detach kernel driver from USB device...");
                        return;
                    }
                }
                else
                {
                    std::cerr << "openUSBDevice: claimed interface successfully" << std::endl;
                    break;
                }
            }
        }
    }
    and then it told me this:
    Code:
    openUSBDevice: try to claim interface again...
    openUSBDevice: claimed interface successfully
    
    Starting with uinput... done
    
    Your Xbox/Xbox360 controller should now be available as:
      /dev/input/js0
      /dev/input/event5
    
    Press Ctrl-c to quit
    Well. When using jstest, js0 and event5 are removed again, and jstest tells me those files do not exist (they are removed when using jstest, not before).

    When disconnecting and reconnecting the gamepad to the usb-port, a new js0 is created.
    Both jscalibrator and jstest then think to know my device, but don't react to any buttons/pads whatsoever.

    any idea on what to do?
    EDIT: Wrong thread. Actually should have landed in here.
    Last edited by SerraAvenger; November 7th, 2009 at 01:43 AM.

  2. #202
    Join Date
    Sep 2007
    Beans
    144

    Re: Xbox 360 Controller in Feisty

    Well. When using jstest, js0 and event5 are removed again,
    xboxdrv only guesses the names of js0 and event5, it does not actually know if the devices where created or what their exact names are, so its more likely that xboxdrv is wrong neither ever got created in the first place instead of them disappearing later on.

    When disconnecting and reconnecting the gamepad to the usb-port, a new js0 is created.
    That (along with the claiming issue) indicates that there is something else grabbing control of the pads instead of xboxdrv and that might be causing trouble. So I would try to find what it is. Plug in the joystick and see what dependencies 'lsmod' list for the joydev module, a look at 'dmesg' might also help.

    One issue might be that xpad simply isn't blacklisted. On the latest Ubuntu the naming seems to have changed and files in modprobe.d now require a .conf ending. So try blacklisting xpad in /etc/modprobe.d/blacklist.conf instead of /etc/modprobe.d/blacklist. Also verify with 'lsmod' that its really gone and doesn't come back when you plug in the pad.

    If all that doesn't help: What controller are you using (Xbox1, Xbox360, first party, third party, etc.)?

  3. #203
    Join Date
    Dec 2007
    Beans
    1,046

    Re: Xbox 360 Controller in Feisty

    Is there a tar.gz, to do :

    Code:
    ./configure
    make 
    make install
    play with insmod and rmmod, and see the gamepad working on a 2.6.18 kernel?


    alternatively to run to see it working:
    rmmod XX
    modprobe XXXX
    insmod XX.ko

  4. #204
    Join Date
    Sep 2007
    Beans
    144

    Re: Xbox 360 Controller in Feisty

    Quote Originally Posted by frenchn00b View Post
    Is there a tar.gz, to do
    Thats what xboxdrv is for, see README for details:

    http://pingus.seul.org/~grumbel/xboxdrv/

    You could also just try "modprobe xpad", however in 2.6.18 the driver might still be broken.

  5. #205
    Join Date
    Dec 2007
    Beans
    1,046

    Re: Xbox 360 Controller in Feisty

    Quote Originally Posted by po0f View Post
    Uranium235,

    Sure thing:

    Code:
    $ tar xvzf /path/to/xpad360.tar.gz
    $ cd xpad360
    $ make
    $ sudo make install
    If you want to back up the original xpad driver (run before `sudo make install` above):

    Code:
    $ cp /lib/modules/`uname -r`/kernel/drivers/usb/input/xpad.ko xpad.ko.orig
    before crashing the pc changing the filesystem, you can test it with :

    Code:
    make 
    rmmod the running pad driver (which one is it?)
    insmod xpad.ko

  6. #206
    Join Date
    Dec 2007
    Beans
    1,046

    Wink Re: Xbox 360 Controller in Feisty

    Quote Originally Posted by Grumbel View Post
    Thats what xboxdrv is for, see README for details:

    http://pingus.seul.org/~grumbel/xboxdrv/

    You could also just try "modprobe xpad", however in 2.6.18 the driver might still be broken.
    thanks Grumbel! I am testing / trying now ...

  7. #207
    Join Date
    Dec 2007
    Beans
    1,046

    Re: Xbox 360 Controller in Feisty

    xbox 360 you gave is too difficult to be installed

    here a xpad.ko working for the gamepad xbox
    but i cannot get it for 2.6.18 working

    insmod xpad.ko

    dmesg said on a 2.6.30 kernel:
    Code:
    387.375566] usbcore: registered new interface driver xpad
    [ 1387.375586] xpad: X-Box pad driver
    [ 1654.328173] usb 2-1: USB disconnect, address 4
    [ 1654.329465] xpad: xpad_irq_in - usb_submit_urb failed with result -19
    [ 1654.329485] xpad: xpad_irq_in - usb_submit_urb failed with result -19
    [ 1654.329500] xpad: xpad_irq_in - usb_submit_urb failed with result -19
    [ 1656.056113] usb 2-1: new full speed USB device using uhci_hcd and address 5
    [ 1656.291485] usb 2-1: New USB device found, idVendor=045e, idProduct=0719
    [ 1656.291502] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    [ 1656.291515] usb 2-1: Product: Xbox 360 Wireless Receiver for Windows
    [ 1656.291526] usb 2-1: Manufacturer: ©Microsoft
    [ 1656.291535] usb 2-1: SerialNumber: FDE5EEB0
    [ 1656.291828] usb 2-1: configuration #1 chosen from 1 choice
    [ 1656.294134] input: Xbox 360 Wireless Receiver as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1:1.0/input/input26
    [ 1656.295983] input: Xbox 360 Wireless Receiver as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1:1.2/input/input27
    [ 1656.298148] input: Xbox 360 Wireless Receiver as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1:1.4/input/input28
    [ 1656.300298] input: Xbox 360 Wireless Receiver as /devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1:1.6/input/input29
    [ 1910.264241] usb 2-1: USB disconnect, address 5
    [ 1910.266466] xpad: xpad_irq_in - usb_submit_urb failed with result -19
    [ 2238.680111] usb 2-2: new full speed USB device using uhci_hcd and address 6
    [ 2238.971205] usb 2-2: New USB device found, idVendor=045e, idProduct=0719
    [ 2238.971221] usb 2-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    [ 2238.971234] usb 2-2: Product: Xbox 360 Wireless Receiver for Windows
    [ 2238.971245] usb 2-2: Manufacturer: ©Microsoft
    [ 2238.971254] usb 2-2: SerialNumber: FDE5EEB0
    [ 2238.971550] usb 2-2: configuration #1 chosen from 1 choice
    [ 2238.974674] input: Xbox 360 Wireless Receiver as /devices/pci0000:00/0000:00:1d.0/usb2/2-2/2-2:1.0/input/input30
    [ 2238.976520] input: Xbox 360 Wireless Receiver as /devices/pci0000:00/0000:00:1d.0/usb2/2-2/2-2:1.2/input/input31
    [ 2238.978500] input: Xbox 360 Wireless Receiver as /devices/pci0000:00/0000:00:1d.0/usb2/2-2/2-2:1.4/input/input32
    [ 2238.980449] input: Xbox 360 Wireless Receiver as /devices/pci0000:00/0000:00:1d.0/usb2/2-2/2-2:1.6/input/input33

    the given xpad.tar.gz isnt working

    not working still for the 2.6.18 kernel
    Attached Files Attached Files
    Last edited by frenchn00b; November 14th, 2009 at 03:40 PM.

  8. #208
    Join Date
    Dec 2007
    Beans
    1,046

    Wink Re: Xbox 360 Controller in Feisty

    Quote Originally Posted by insanecrazy4 View Post
    can someone help me with this problem with makefile

    Code:
    devon@devon-laptop:~/xpad$ make
    make modules -C /lib/modules/2.6.28-15-generic/build SUBDIRS=/home/devon/xpad
    make[1]: Entering directory `/usr/src/linux-headers-2.6.28-15-generic'
      CC [M]  /home/devon/xpad/xpad.o
    /home/devon/xpad/xpad.c: In function ‘xpad_open’:
    /home/devon/xpad/xpad.c:337: error: ‘struct input_dev’ has no member named ‘private’
    /home/devon/xpad/xpad.c: In function ‘xpad_close’:
    /home/devon/xpad/xpad.c:348: error: ‘struct input_dev’ has no member named ‘private’
    /home/devon/xpad/xpad.c: In function ‘xpad_probe’:
    /home/devon/xpad/xpad.c:438: error: ‘struct input_dev’ has no member named ‘cdev’
    /home/devon/xpad/xpad.c:439: error: ‘struct input_dev’ has no member named ‘private’
    make[2]: *** [/home/devon/xpad/xpad.o] Error 1
    make[1]: *** [_module_/home/devon/xpad] Error 2
    make[1]: Leaving directory `/usr/src/linux-headers-2.6.28-15-generic'
    make: *** [all] Error 2
    devon@devon-laptop:~/xpad$
    you need to be capable to compile. ./configure ; make ; make install will not be a secret for you.
    Try this code once and you'll be able to compile with QT, GCC, ... :

    Code:
    #!/bin/sh
    echo " ==========   "
    echo "QTDIR is :  $QTDIR"
    echo "---Listing /usr/share/qt-----------"
    ls /usr/share/qt* 
    ls /usr/bin/gcc* -lha
    
    
    
    echo "--------------"
    printf "Type which QT3 or QT4 to use, but plz type qt3: "
    read qtversion
    export QTDIR="/usr/share/$qtversion"
    echo "Configuring to: /usr/share/$qtversion"
    echo " "
    echo " "
    echo " "
    echo "---Listing /usr/bin/gcc-----------"
    ls /usr/bin/gcc* 
    echo "--------------"
    printf "Type which 3.4 or 4.3 to use, but plz type 4.3: "
    read ccversion
     
    export CC="/usr/bin/gcc-$ccversion" 
    rm /usr/bin/gcc
    ln -s /usr/bin/gcc-$ccversion /usr/bin/gcc
    ls -la /usr/bin/gcc
    
    echo "--------------"
    echo "--------------"
    echo " Installing ... "
    
    apt-get -f -y --allow-unauthenticated      install 
    apt-get -f -y --allow-unauthenticated      install
    
    
    apt-get -f -y --allow-unauthenticated      install gcc 
    apt-get -f -y --allow-unauthenticated      install build-essential imlib11-dev esound-clients
    #rm /usr/bin/gcc
    #ln -s /usr/bin/gcc-3.4 /usr/bin/gcc
    apt-get -f -y --allow-unauthenticated      install linux-headers-$(uname -r)
    apt-get -f -y --allow-unauthenticated      install build-essential 
    apt-get -f -y --allow-unauthenticated      install 
    apt-get -f -y --allow-unauthenticated      install cvs
    apt-get -f -y --allow-unauthenticated      install 
    apt-get -f -y --allow-unauthenticated      install bison
    apt-get -f -y --allow-unauthenticated      install flex
    apt-get -f -y --allow-unauthenticated      install 
    ## voor vmware
    apt-get -f -y --allow-unauthenticated      install make
    apt-get -f -y --allow-unauthenticated      install build-essential
    apt-get -f -y --allow-unauthenticated      install gcc 
    apt-get -f -y --allow-unauthenticated      install build-essential 
    apt-get -f -y --allow-unauthenticated      install zenity
    
    apt-get -f -y --allow-unauthenticated      install g++
    
    cat /proc/version
    
    apt-get -f -y --allow-unauthenticated      install
    apt-get -f -y --allow-unauthenticated      install
    ######## installing qt3
    apt-get -f -y --allow-unauthenticated      install qt3-dev-tools
    apt-get -f -y --allow-unauthenticated      install qt3-apps-dev
    apt-get -f -y --allow-unauthenticated      install libqt3-headers
    apt-get -f -y --allow-unauthenticated      install qca-dev
    apt-get -f -y --allow-unauthenticated      install libqt3c102-mt

  9. #209
    Join Date
    Dec 2007
    Beans
    1,046

    Re: Xbox 360 Controller in Feisty

    hey guys,

    this driver is not working for 2 players.
    so sad

    Look here the output of zsnes and dgen:

    Code:
     
    mednafen (working for 2players)
    Using Microsoft Xbox 360 Wireless Controller (PC) (#0) as pad1 and Microsoft Xbox 360 Wireless Controller (PC) (#1) as pad2 
    42 frames per second (optimal 60)
    Starting Mednafen 0.8.5
     Loading settings from "/home/frenchn00b/.mednafen/mednafen.cfg"...
     Compiled against SDL 1.2.11, running with SDL 1.2.12
    
    
    ZSNES (non working for 2players, to set the input of the player #2 ie. buttons)
    non working :(
    
    dgen (non working, pad #2 not seen)
     Initializing joysticks...
      Joystick 0 - Microsoft Xbox 360 Wireless Controller (PC) - Unique ID: e462ea11338354e1
      Joystick 1 - Microsoft Xbox 360 Wireless Controller (PC) - Unique ID: e462ea11338354e2
      Joystick 2 - Microsoft Xbox 360 Wireless Controller (PC) - Unique ID: e462ea11338354e2
      Joystick 3 - Microsoft Xbox 360 Wireless Controller (PC) - Unique ID: e462ea11338354e2
      Joystick 4 - Logitech Logitech Dual Action - Unique ID: ce96ea6b9d7ca56a
     Loading rom-test.bin...
    
    
    SNES-9x (non working, pad #2 not seen)
    Unrecognized file format.  Sorry.
    Controller Port 1: Pad 1
    Controller Port 2: <none>
    Rate: 22050, Buffer size: 2048, 16-bit: yes, Stereo: yes, Encoded: no
    No ROM file header found.
    "B??.??r&N?" [bad checksum] LoROM, Corrupt, Type: ROM+ST-018, Mode: 40, TV: PAL, S-RAM: 4KB, ROMId:  Company: FF CRC32: 9BDC230C
    Unrecognized input device name 'K00:grave'
    Could not map 'Superscope ToggleTurbo' to 'K00:grave'
    Unrecognized input device name 'K00:grave'
    Could not map 'Superscope ToggleTurbo' to 'K00:grave'
    Last edited by frenchn00b; January 3rd, 2010 at 05:57 PM.

  10. #210
    Join Date
    Sep 2007
    Beans
    144

    Re: Xbox 360 Controller in Feisty

    Quote Originally Posted by frenchn00b View Post
    this driver is not working for 2 players.
    If we are talking about xboxdrv, you have to start the driver twice, once for each controller and give the proper "--wid" on startup. This hasn't been tested much, but should work and if not its not hard to fix.
    Last edited by Grumbel; January 3rd, 2010 at 05:57 PM.

Page 21 of 22 FirstFirst ... 1119202122 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •